Don't warn when alignment of global common data exceeds maximum alignment.
[official-gcc.git] / gcc / configure
blob500e3f68215055d201612fb2f61e42de0f7b3654
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 NO_PIE_FLAG_FOR_BUILD
757 NO_PIE_CFLAGS_FOR_BUILD
758 BUILD_NO_PIE_FLAG
759 BUILD_NO_PIE_CFLAGS
760 STMP_FIXINC
761 BUILD_LDFLAGS
762 BUILD_CXXFLAGS
763 BUILD_CFLAGS
764 CXX_FOR_BUILD
765 CC_FOR_BUILD
766 inhibit_libc
767 BUILD_SYSTEM_HEADER_DIR
768 SYSTEM_HEADER_DIR
770 CROSS
771 CATOBJEXT
772 GENCAT
773 INSTOBJEXT
774 DATADIRNAME
775 CATALOGS
776 POSUB
777 GMSGFMT
778 XGETTEXT
779 INCINTL
780 LIBINTL_DEP
781 LIBINTL
782 USE_NLS
783 get_gcc_base_ver
784 HAVE_AUTO_BUILD
785 extra_opt_files
786 extra_modes_file
787 NATIVE_SYSTEM_HEADER_DIR
788 objext
789 manext
790 LIBICONV_DEP
791 LTLIBICONV
792 LIBICONV
793 ZSTD_LDFLAGS
794 ZSTD_CPPFLAGS
795 ZSTD_LIB
796 ZSTD_INCLUDE
797 DL_LIB
798 LDEXP_LIB
799 NETLIBS
800 EXTRA_GCC_LIBS
801 GNAT_LIBEXC
802 COLLECT2_LIBS
803 CXXDEPMODE
804 DEPDIR
805 am__leading_dot
806 doc_build_sys
809 BISON
810 FLEX
811 GENERATED_MANPAGES
812 BUILD_INFO
813 MAKEINFO
814 have_mktemp_command
815 make_compare_target
816 INSTALL_DATA
817 INSTALL_PROGRAM
818 INSTALL
819 ranlib_flags
820 RANLIB
822 LN_S
824 SET_MAKE
825 omp_device_property_deps
826 omp_device_properties
827 accel_dir_suffix
828 real_target_noncanonical
829 enable_as_accelerator
830 gnat_install_lib
831 REPORT_BUGS_TEXI
832 REPORT_BUGS_TO
833 PKGVERSION
834 CONFIGURE_SPECS
835 enable_gcov
836 enable_shared
837 enable_fixed_point
838 enable_decimal_float
839 with_float
840 with_cpu
841 enable_multiarch
842 enable_multilib
843 coverage_flags
844 valgrind_command
845 valgrind_path_defines
846 valgrind_path
847 TREECHECKING
848 nocommon_flag
849 noexception_flags
850 warn_cxxflags
851 warn_cflags
852 c_strict_warn
853 strict_warn
854 c_loose_warn
855 loose_warn
856 aliasing_flags
858 EGREP
859 GREP
860 CXXCPP
861 PICFLAG_FOR_TARGET
862 GNATMAKE
863 GNATBIND
864 ac_ct_CXX
865 CXXFLAGS
867 OBJEXT
868 EXEEXT
869 ac_ct_CC
870 CPPFLAGS
871 LDFLAGS
872 CFLAGS
874 GENINSRC
875 CROSS_SYSTEM_HEADER_DIR
876 TARGET_SYSTEM_ROOT_DEFINE
877 TARGET_SYSTEM_ROOT
878 SYSROOT_CFLAGS_FOR_TARGET
879 target_subdir
880 host_subdir
881 build_subdir
882 build_libsubdir
883 target_noncanonical
884 host_noncanonical
885 target_os
886 target_vendor
887 target_cpu
888 target
889 host_os
890 host_vendor
891 host_cpu
892 host
893 build_os
894 build_vendor
895 build_cpu
896 build
897 target_alias
898 host_alias
899 build_alias
900 LIBS
901 ECHO_T
902 ECHO_N
903 ECHO_C
904 DEFS
905 mandir
906 localedir
907 libdir
908 psdir
909 pdfdir
910 dvidir
911 htmldir
912 infodir
913 docdir
914 oldincludedir
915 includedir
916 localstatedir
917 sharedstatedir
918 sysconfdir
919 datadir
920 datarootdir
921 libexecdir
922 sbindir
923 bindir
924 program_transform_name
925 prefix
926 exec_prefix
927 PACKAGE_URL
928 PACKAGE_BUGREPORT
929 PACKAGE_STRING
930 PACKAGE_VERSION
931 PACKAGE_TARNAME
932 PACKAGE_NAME
933 PATH_SEPARATOR
934 SHELL'
935 ac_subst_files='option_includes
936 language_hooks'
937 ac_user_opts='
938 enable_option_checking
939 with_build_libsubdir
940 with_local_prefix
941 with_native_system_header_dir
942 with_build_sysroot
943 with_sysroot
944 with_gxx_include_dir
945 with_gxx_libcxx_include_dir
946 with_cpp_install_dir
947 enable_generated_files_in_srcdir
948 with_gnu_ld
949 with_ld
950 with_demangler_in_ld
951 with_dsymutil
952 with_gnu_as
953 with_as
954 enable_largefile
955 enable_build_format_warnings
956 enable_werror_always
957 enable_checking
958 enable_coverage
959 enable_gather_detailed_mem_stats
960 enable_valgrind_annotations
961 with_stabs
962 enable_multilib
963 enable_multiarch
964 with_stack_clash_protection_guard_size
965 enable___cxa_atexit
966 enable_decimal_float
967 enable_fixed_point
968 enable_threads
969 enable_tls
970 enable_vtable_verify
971 enable_analyzer
972 enable_objc_gc
973 with_dwarf2
974 enable_shared
975 enable_gcov
976 with_specs
977 with_pkgversion
978 with_bugurl
979 with_documentation_root_url
980 with_changes_root_url
981 enable_languages
982 with_multilib_list
983 with_multilib_generator
984 with_zstd
985 with_zstd_include
986 with_zstd_lib
987 enable_rpath
988 with_libiconv_prefix
989 with_libiconv_type
990 enable_sjlj_exceptions
991 with_gcc_major_version_only
992 enable_secureplt
993 enable_mingw_wildcard
994 enable_large_address_aware
995 enable_leading_mingw64_underscores
996 enable_cld
997 enable_frame_pointer
998 enable_win32_registry
999 enable_static
1000 with_pic
1001 enable_fast_install
1002 enable_libtool_lock
1003 enable_ld
1004 enable_gold
1005 with_plugin_ld
1006 enable_gnu_indirect_function
1007 enable_initfini_array
1008 enable_comdat
1009 enable_newlib_nano_formatted_io
1010 enable_standard_branch_protection
1011 enable_fix_cortex_a53_835769
1012 enable_fix_cortex_a53_843419
1013 with_glibc_version
1014 enable_gnu_unique_object
1015 enable_linker_build_id
1016 enable_libssp
1017 enable_default_ssp
1018 with_long_double_128
1019 with_long_double_format
1020 with_gc
1021 with_system_zlib
1022 enable_maintainer_mode
1023 enable_link_mutex
1024 enable_link_serialization
1025 enable_version_specific_runtime_libs
1026 enable_plugin
1027 enable_host_shared
1028 enable_libquadmath_support
1029 with_linker_hash_style
1030 with_diagnostics_color
1031 with_diagnostics_urls
1032 enable_default_pie
1033 enable_cet
1034 enable_s390_excess_float_precision
1036 ac_precious_vars='build_alias
1037 host_alias
1038 target_alias
1040 CFLAGS
1041 LDFLAGS
1042 LIBS
1043 CPPFLAGS
1045 CXXFLAGS
1047 CXXCPP
1049 GMPLIBS
1050 GMPINC
1051 ISLLIBS
1052 ISLINC'
1055 # Initialize some variables set by options.
1056 ac_init_help=
1057 ac_init_version=false
1058 ac_unrecognized_opts=
1059 ac_unrecognized_sep=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file=/dev/null
1063 exec_prefix=NONE
1064 no_create=
1065 no_recursion=
1066 prefix=NONE
1067 program_prefix=NONE
1068 program_suffix=NONE
1069 program_transform_name=s,x,x,
1070 silent=
1071 site=
1072 srcdir=
1073 verbose=
1074 x_includes=NONE
1075 x_libraries=NONE
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir='${exec_prefix}/bin'
1084 sbindir='${exec_prefix}/sbin'
1085 libexecdir='${exec_prefix}/libexec'
1086 datarootdir='${prefix}/share'
1087 datadir='${datarootdir}'
1088 sysconfdir='${prefix}/etc'
1089 sharedstatedir='${prefix}/com'
1090 localstatedir='${prefix}/var'
1091 includedir='${prefix}/include'
1092 oldincludedir='/usr/include'
1093 docdir='${datarootdir}/doc/${PACKAGE}'
1094 infodir='${datarootdir}/info'
1095 htmldir='${docdir}'
1096 dvidir='${docdir}'
1097 pdfdir='${docdir}'
1098 psdir='${docdir}'
1099 libdir='${exec_prefix}/lib'
1100 localedir='${datarootdir}/locale'
1101 mandir='${datarootdir}/man'
1103 ac_prev=
1104 ac_dashdash=
1105 for ac_option
1107 # If the previous option needs an argument, assign it.
1108 if test -n "$ac_prev"; then
1109 eval $ac_prev=\$ac_option
1110 ac_prev=
1111 continue
1114 case $ac_option in
1115 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116 *=) ac_optarg= ;;
1117 *) ac_optarg=yes ;;
1118 esac
1120 # Accept the important Cygnus configure options, so we can diagnose typos.
1122 case $ac_dashdash$ac_option in
1124 ac_dashdash=yes ;;
1126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1127 ac_prev=bindir ;;
1128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1129 bindir=$ac_optarg ;;
1131 -build | --build | --buil | --bui | --bu)
1132 ac_prev=build_alias ;;
1133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1134 build_alias=$ac_optarg ;;
1136 -cache-file | --cache-file | --cache-fil | --cache-fi \
1137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1138 ac_prev=cache_file ;;
1139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1141 cache_file=$ac_optarg ;;
1143 --config-cache | -C)
1144 cache_file=config.cache ;;
1146 -datadir | --datadir | --datadi | --datad)
1147 ac_prev=datadir ;;
1148 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1149 datadir=$ac_optarg ;;
1151 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1152 | --dataroo | --dataro | --datar)
1153 ac_prev=datarootdir ;;
1154 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1155 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1156 datarootdir=$ac_optarg ;;
1158 -disable-* | --disable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid feature name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval enable_$ac_useropt=no ;;
1174 -docdir | --docdir | --docdi | --doc | --do)
1175 ac_prev=docdir ;;
1176 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1177 docdir=$ac_optarg ;;
1179 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 ac_prev=dvidir ;;
1181 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1182 dvidir=$ac_optarg ;;
1184 -enable-* | --enable-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid feature name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "enable_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval enable_$ac_useropt=\$ac_optarg ;;
1200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1202 | --exec | --exe | --ex)
1203 ac_prev=exec_prefix ;;
1204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1206 | --exec=* | --exe=* | --ex=*)
1207 exec_prefix=$ac_optarg ;;
1209 -gas | --gas | --ga | --g)
1210 # Obsolete; use --with-gas.
1211 with_gas=yes ;;
1213 -help | --help | --hel | --he | -h)
1214 ac_init_help=long ;;
1215 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1216 ac_init_help=recursive ;;
1217 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1218 ac_init_help=short ;;
1220 -host | --host | --hos | --ho)
1221 ac_prev=host_alias ;;
1222 -host=* | --host=* | --hos=* | --ho=*)
1223 host_alias=$ac_optarg ;;
1225 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226 ac_prev=htmldir ;;
1227 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228 | --ht=*)
1229 htmldir=$ac_optarg ;;
1231 -includedir | --includedir | --includedi | --included | --include \
1232 | --includ | --inclu | --incl | --inc)
1233 ac_prev=includedir ;;
1234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1235 | --includ=* | --inclu=* | --incl=* | --inc=*)
1236 includedir=$ac_optarg ;;
1238 -infodir | --infodir | --infodi | --infod | --info | --inf)
1239 ac_prev=infodir ;;
1240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1241 infodir=$ac_optarg ;;
1243 -libdir | --libdir | --libdi | --libd)
1244 ac_prev=libdir ;;
1245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1246 libdir=$ac_optarg ;;
1248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1249 | --libexe | --libex | --libe)
1250 ac_prev=libexecdir ;;
1251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1252 | --libexe=* | --libex=* | --libe=*)
1253 libexecdir=$ac_optarg ;;
1255 -localedir | --localedir | --localedi | --localed | --locale)
1256 ac_prev=localedir ;;
1257 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1258 localedir=$ac_optarg ;;
1260 -localstatedir | --localstatedir | --localstatedi | --localstated \
1261 | --localstate | --localstat | --localsta | --localst | --locals)
1262 ac_prev=localstatedir ;;
1263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1264 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1265 localstatedir=$ac_optarg ;;
1267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1268 ac_prev=mandir ;;
1269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1270 mandir=$ac_optarg ;;
1272 -nfp | --nfp | --nf)
1273 # Obsolete; use --without-fp.
1274 with_fp=no ;;
1276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1277 | --no-cr | --no-c | -n)
1278 no_create=yes ;;
1280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1282 no_recursion=yes ;;
1284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1286 | --oldin | --oldi | --old | --ol | --o)
1287 ac_prev=oldincludedir ;;
1288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1291 oldincludedir=$ac_optarg ;;
1293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1294 ac_prev=prefix ;;
1295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1296 prefix=$ac_optarg ;;
1298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1299 | --program-pre | --program-pr | --program-p)
1300 ac_prev=program_prefix ;;
1301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1303 program_prefix=$ac_optarg ;;
1305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1306 | --program-suf | --program-su | --program-s)
1307 ac_prev=program_suffix ;;
1308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1310 program_suffix=$ac_optarg ;;
1312 -program-transform-name | --program-transform-name \
1313 | --program-transform-nam | --program-transform-na \
1314 | --program-transform-n | --program-transform- \
1315 | --program-transform | --program-transfor \
1316 | --program-transfo | --program-transf \
1317 | --program-trans | --program-tran \
1318 | --progr-tra | --program-tr | --program-t)
1319 ac_prev=program_transform_name ;;
1320 -program-transform-name=* | --program-transform-name=* \
1321 | --program-transform-nam=* | --program-transform-na=* \
1322 | --program-transform-n=* | --program-transform-=* \
1323 | --program-transform=* | --program-transfor=* \
1324 | --program-transfo=* | --program-transf=* \
1325 | --program-trans=* | --program-tran=* \
1326 | --progr-tra=* | --program-tr=* | --program-t=*)
1327 program_transform_name=$ac_optarg ;;
1329 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1330 ac_prev=pdfdir ;;
1331 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1332 pdfdir=$ac_optarg ;;
1334 -psdir | --psdir | --psdi | --psd | --ps)
1335 ac_prev=psdir ;;
1336 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1337 psdir=$ac_optarg ;;
1339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1340 | -silent | --silent | --silen | --sile | --sil)
1341 silent=yes ;;
1343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1344 ac_prev=sbindir ;;
1345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1346 | --sbi=* | --sb=*)
1347 sbindir=$ac_optarg ;;
1349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1351 | --sharedst | --shareds | --shared | --share | --shar \
1352 | --sha | --sh)
1353 ac_prev=sharedstatedir ;;
1354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1357 | --sha=* | --sh=*)
1358 sharedstatedir=$ac_optarg ;;
1360 -site | --site | --sit)
1361 ac_prev=site ;;
1362 -site=* | --site=* | --sit=*)
1363 site=$ac_optarg ;;
1365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1366 ac_prev=srcdir ;;
1367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1368 srcdir=$ac_optarg ;;
1370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1371 | --syscon | --sysco | --sysc | --sys | --sy)
1372 ac_prev=sysconfdir ;;
1373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1375 sysconfdir=$ac_optarg ;;
1377 -target | --target | --targe | --targ | --tar | --ta | --t)
1378 ac_prev=target_alias ;;
1379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1380 target_alias=$ac_optarg ;;
1382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1383 verbose=yes ;;
1385 -version | --version | --versio | --versi | --vers | -V)
1386 ac_init_version=: ;;
1388 -with-* | --with-*)
1389 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392 as_fn_error $? "invalid package name: $ac_useropt"
1393 ac_useropt_orig=$ac_useropt
1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1397 "with_$ac_useropt"
1398 "*) ;;
1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1401 esac
1402 eval with_$ac_useropt=\$ac_optarg ;;
1404 -without-* | --without-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error $? "invalid package name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1413 "with_$ac_useropt"
1414 "*) ;;
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1417 esac
1418 eval with_$ac_useropt=no ;;
1420 --x)
1421 # Obsolete; use --with-x.
1422 with_x=yes ;;
1424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1425 | --x-incl | --x-inc | --x-in | --x-i)
1426 ac_prev=x_includes ;;
1427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1429 x_includes=$ac_optarg ;;
1431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1433 ac_prev=x_libraries ;;
1434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1436 x_libraries=$ac_optarg ;;
1438 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1439 Try \`$0 --help' for more information"
1442 *=*)
1443 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 case $ac_envvar in #(
1446 '' | [0-9]* | *[!_$as_cr_alnum]* )
1447 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1448 esac
1449 eval $ac_envvar=\$ac_optarg
1450 export $ac_envvar ;;
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1460 esac
1461 done
1463 if test -n "$ac_prev"; then
1464 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1465 as_fn_error $? "missing argument to $ac_option"
1468 if test -n "$ac_unrecognized_opts"; then
1469 case $enable_option_checking in
1470 no) ;;
1471 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1473 esac
1476 # Check all directory arguments for consistency.
1477 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478 datadir sysconfdir sharedstatedir localstatedir includedir \
1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480 libdir localedir mandir
1482 eval ac_val=\$$ac_var
1483 # Remove trailing slashes.
1484 case $ac_val in
1485 */ )
1486 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487 eval $ac_var=\$ac_val;;
1488 esac
1489 # Be sure to have absolute directory names.
1490 case $ac_val in
1491 [\\/$]* | ?:[\\/]* ) continue;;
1492 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1493 esac
1494 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1495 done
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1500 build=$build_alias
1501 host=$host_alias
1502 target=$target_alias
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506 if test "x$build_alias" = x; then
1507 cross_compiling=maybe
1508 elif test "x$build_alias" != "x$host_alias"; then
1509 cross_compiling=yes
1513 ac_tool_prefix=
1514 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1516 test "$silent" = yes && exec 6>/dev/null
1519 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di=`ls -di .` &&
1521 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $? "working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $? "pwd does not report name of working directory"
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 s//\1/
1541 /^X\(\/\/\)[^/].*/{
1542 s//\1/
1545 /^X\(\/\/\)$/{
1546 s//\1/
1549 /^X\(\/\).*/{
1550 s//\1/
1553 s/.*/./; q'`
1554 srcdir=$ac_confdir
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556 srcdir=..
1558 else
1559 ac_srcdir_defaulted=no
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1565 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1566 ac_abs_confdir=`(
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1568 pwd)`
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1571 srcdir=.
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1576 case $srcdir in
1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1578 esac
1579 for ac_var in $ac_precious_vars; do
1580 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_${ac_var}_value=\$${ac_var}
1582 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1584 done
1587 # Report the --help message.
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1592 cat <<_ACEOF
1593 \`configure' configures this package to adapt to many kinds of systems.
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1600 Defaults for the options are specified in brackets.
1602 Configuration:
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1617 [PREFIX]
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1624 For better control, use the options below.
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1646 _ACEOF
1648 cat <<\_ACEOF
1650 Program names:
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1655 System types:
1656 --build=BUILD configure for building on BUILD [guessed]
1657 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1658 --target=TARGET configure for building compilers for TARGET [HOST]
1659 _ACEOF
1662 if test -n "$ac_init_help"; then
1664 cat <<\_ACEOF
1666 Optional Features:
1667 --disable-option-checking ignore unrecognized --enable/--with options
1668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1670 --enable-generated-files-in-srcdir
1671 put copies of generated files in source dir intended
1672 for creating source tarballs for users without
1673 texinfo bison or flex
1674 --disable-largefile omit support for large files
1675 --disable-build-format-warnings
1676 don't use -Wformat while building GCC
1677 --enable-werror-always enable -Werror despite compiler version
1678 --enable-checking[=LIST]
1679 enable expensive run-time checks. With LIST, enable
1680 only specific categories of checks. Categories are:
1681 yes,no,all,none,release. Flags are:
1682 assert,df,extra,fold,gc,gcac,gimple,misc,
1683 rtlflag,rtl,runtime,tree,valgrind,types
1684 --enable-coverage[=LEVEL]
1685 enable compiler's code coverage collection. Use to
1686 measure compiler performance and locate unused parts
1687 of the compiler. With LEVEL, specify optimization.
1688 Values are opt, noopt, default is noopt
1689 --enable-gather-detailed-mem-stats
1690 enable detailed memory allocation stats gathering
1691 --enable-valgrind-annotations
1692 enable valgrind runtime interaction
1693 --enable-multilib enable library support for multiple ABIs
1694 --enable-multiarch enable support for multiarch paths
1695 --enable-__cxa_atexit enable __cxa_atexit for C++
1696 --enable-decimal-float={no,yes,bid,dpd}
1697 enable decimal float extension to C. Selecting 'bid'
1698 or 'dpd' choses which decimal floating point format
1699 to use
1700 --enable-fixed-point enable fixed-point arithmetic extension to C
1701 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1702 package
1703 --enable-tls enable or disable generation of tls code overriding
1704 the assembler check for tls support
1705 --enable-vtable-verify enable vtable verification feature
1706 --disable-analyzer disable -fanalyzer static analyzer
1707 --enable-objc-gc enable the use of Boehm's garbage collector with the
1708 GNU Objective-C runtime
1709 --disable-shared don't provide a shared libgcc
1710 --disable-gcov don't provide libgcov and related host tools
1711 --enable-languages=LIST specify which front-ends to build
1712 --disable-rpath do not hardcode runtime library paths
1713 --enable-sjlj-exceptions
1714 arrange to use setjmp/longjmp exception handling
1715 --enable-secureplt enable -msecure-plt by default for PowerPC
1716 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1717 Default to platform configuration
1718 --enable-large-address-aware
1719 Link mingw executables with --large-address-aware
1720 --enable-leading-mingw64-underscores
1721 enable leading underscores on 64 bit mingw targets
1722 --enable-cld enable -mcld by default for 32bit x86
1723 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the Registry
1726 on Windows hosts
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1730 of the registry key
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1737 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1738 --enable-gnu-indirect-function
1739 enable the use of the @gnu_indirect_function to
1740 glibc systems
1741 --enable-initfini-array use .init_array/.fini_array sections
1742 --enable-comdat enable COMDAT group support
1743 --enable-newlib-nano-formatted-io
1744 Use nano version formatted IO
1746 --enable-standard-branch-protection
1747 enable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1749 --disable-standard-branch-protection
1750 disable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1754 --enable-fix-cortex-a53-835769
1755 enable workaround for AArch64 Cortex-A53 erratum
1756 835769 by default
1757 --disable-fix-cortex-a53-835769
1758 disable workaround for AArch64 Cortex-A53 erratum
1759 835769 by default
1762 --enable-fix-cortex-a53-843419
1763 enable workaround for AArch64 Cortex-A53 erratum
1764 843419 by default
1765 --disable-fix-cortex-a53-843419
1766 disable workaround for AArch64 Cortex-A53 erratum
1767 843419 by default
1769 --enable-gnu-unique-object
1770 enable the use of the @gnu_unique_object ELF
1771 extension on glibc systems
1772 --enable-linker-build-id
1773 compiler will always pass --build-id to linker
1774 --enable-libssp enable linking against libssp
1775 --enable-default-ssp enable Stack Smashing Protection as default
1776 --enable-maintainer-mode
1777 enable make rules and dependencies not useful (and
1778 sometimes confusing) to the casual installer
1779 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1780 thrashing on the build machine
1781 --enable-link-serialization
1782 avoid linking multiple GCC front-ends at once using
1783 make dependencies to avoid thrashing on the build
1784 machine
1785 --enable-version-specific-runtime-libs
1786 specify that runtime libraries should be installed
1787 in a compiler-specific directory
1788 --enable-plugin enable plugin support
1789 --enable-host-shared build host code as shared libraries
1790 --disable-libquadmath-support
1791 disable libquadmath support for Fortran
1792 --enable-default-pie enable Position Independent Executable as default
1793 --enable-cet enable Intel CET in host libraries [default=auto]
1794 --enable-s390-excess-float-precision
1795 on s390 targets, evaluate float with double
1796 precision when in standards-conforming mode
1798 Optional Packages:
1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1801 --with-build-libsubdir=DIR Directory where to find libraries for build system
1802 --with-local-prefix=DIR specifies directory to put local include
1803 --with-native-system-header-dir=dir
1804 use dir as the directory to look for standard
1805 system header files in. Defaults to /usr/include.
1806 --with-build-sysroot=sysroot
1807 use sysroot as the system root during the build
1808 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1809 --with-gxx-include-dir=DIR
1810 specifies directory to put g++ header files
1811 --with-gxx-libcxx-include-dir=DIR
1812 specifies directory to find libc++ header files
1813 --with-cpp-install-dir=DIR
1814 install the user visible C preprocessor in DIR
1815 (relative to PREFIX) as well as PREFIX/bin
1816 --with-gnu-ld arrange to work with GNU ld
1817 --with-ld arrange to use the specified ld (full pathname)
1818 --with-demangler-in-ld try to use demangler in GNU ld
1819 --with-dsymutil arrange to use the specified dsymutil (full
1820 pathname)
1821 --with-gnu-as arrange to work with GNU as
1822 --with-as arrange to use the specified as (full pathname)
1823 --with-stabs arrange to use stabs instead of host debug format
1824 --with-stack-clash-protection-guard-size=size
1825 Set the default stack clash protection guard size
1826 for specific targets as a power of two in bytes.
1827 --with-dwarf2 force the default debug format to be DWARF 2
1828 --with-specs=SPECS add SPECS to driver command-line processing
1829 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1830 --with-bugurl=URL Direct users to URL to report a bug
1831 --with-documentation-root-url=URL
1832 Root for documentation URLs
1833 --with-changes-root-url=URL
1834 Root for GCC changes URLs
1835 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1836 --with-multilib-generator
1837 Multi-libs configuration string (RISC-V only)
1838 --with-zstd=PATH specify prefix directory for installed zstd library.
1839 Equivalent to --with-zstd-include=PATH/include plus
1840 --with-zstd-lib=PATH/lib
1841 --with-zstd-include=PATH
1842 specify directory for installed zstd include files
1843 --with-zstd-lib=PATH specify directory for the installed zstd library
1844 --with-gnu-ld assume the C compiler uses GNU ld default=no
1845 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1846 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1847 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1848 --with-gcc-major-version-only
1849 use only GCC major number in filesystem paths
1850 --with-pic try to use only PIC/non-PIC objects [default=use
1851 both]
1852 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1853 --with-plugin-ld=[ARG] specify the plugin linker
1854 --with-glibc-version=M.N
1855 assume GCC used with glibc version M.N or later
1856 --with-long-double-128 use 128-bit long double by default
1857 --with-long-double-format={ieee,ibm}
1858 Specify whether PowerPC long double uses IEEE or IBM format
1860 --with-gc={page,zone} this option is not supported anymore. It used to
1861 choose the garbage collection mechanism to use with
1862 the compiler
1863 --with-system-zlib use installed libz
1864 --with-linker-hash-style={sysv,gnu,both}
1865 specify the linker hash style
1866 --with-diagnostics-color={never,auto,auto-if-env,always}
1867 specify the default of -fdiagnostics-color option
1868 auto-if-env stands for -fdiagnostics-color=auto if
1869 GCC_COLOR environment variable is present and
1870 -fdiagnostics-color=never otherwise
1871 --with-diagnostics-urls={never,auto,auto-if-env,always}
1872 specify the default of -fdiagnostics-urls option
1873 auto-if-env stands for -fdiagnostics-urls=auto if
1874 GCC_URLS or TERM_URLS environment variable is
1875 present and -fdiagnostics-urls=never otherwise
1877 Some influential environment variables:
1878 CC C compiler command
1879 CFLAGS C compiler flags
1880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1881 nonstandard directory <lib dir>
1882 LIBS libraries to pass to the linker, e.g. -l<library>
1883 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1884 you have headers in a nonstandard directory <include dir>
1885 CXX C++ compiler command
1886 CXXFLAGS C++ compiler flags
1887 CXXCPP C++ preprocessor
1888 CPP C preprocessor
1889 GMPLIBS How to link GMP
1890 GMPINC How to find GMP include files
1891 ISLLIBS How to link isl
1892 ISLINC How to find isl include files
1894 Use these variables to override the choices made by `configure' or to help
1895 it to find libraries and programs with nonstandard names/locations.
1897 Report bugs to the package provider.
1898 _ACEOF
1899 ac_status=$?
1902 if test "$ac_init_help" = "recursive"; then
1903 # If there are subdirs, report their specific --help.
1904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1905 test -d "$ac_dir" ||
1906 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1907 continue
1908 ac_builddir=.
1910 case "$ac_dir" in
1911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1914 # A ".." for each directory in $ac_dir_suffix.
1915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1916 case $ac_top_builddir_sub in
1917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1919 esac ;;
1920 esac
1921 ac_abs_top_builddir=$ac_pwd
1922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1923 # for backward compatibility:
1924 ac_top_builddir=$ac_top_build_prefix
1926 case $srcdir in
1927 .) # We are building in place.
1928 ac_srcdir=.
1929 ac_top_srcdir=$ac_top_builddir_sub
1930 ac_abs_top_srcdir=$ac_pwd ;;
1931 [\\/]* | ?:[\\/]* ) # Absolute name.
1932 ac_srcdir=$srcdir$ac_dir_suffix;
1933 ac_top_srcdir=$srcdir
1934 ac_abs_top_srcdir=$srcdir ;;
1935 *) # Relative name.
1936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1937 ac_top_srcdir=$ac_top_build_prefix$srcdir
1938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1939 esac
1940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1942 cd "$ac_dir" || { ac_status=$?; continue; }
1943 # Check for guested configure.
1944 if test -f "$ac_srcdir/configure.gnu"; then
1945 echo &&
1946 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1947 elif test -f "$ac_srcdir/configure"; then
1948 echo &&
1949 $SHELL "$ac_srcdir/configure" --help=recursive
1950 else
1951 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1952 fi || ac_status=$?
1953 cd "$ac_pwd" || { ac_status=$?; break; }
1954 done
1957 test -n "$ac_init_help" && exit $ac_status
1958 if $ac_init_version; then
1959 cat <<\_ACEOF
1960 configure
1961 generated by GNU Autoconf 2.69
1963 Copyright (C) 2012 Free Software Foundation, Inc.
1964 This configure script is free software; the Free Software Foundation
1965 gives unlimited permission to copy, distribute and modify it.
1966 _ACEOF
1967 exit
1970 ## ------------------------ ##
1971 ## Autoconf initialization. ##
1972 ## ------------------------ ##
1974 # ac_fn_c_try_compile LINENO
1975 # --------------------------
1976 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_c_try_compile ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext
1981 if { { ac_try="$ac_compile"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_compile") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest.$ac_objext; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2005 ac_retval=1
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status $ac_retval
2010 } # ac_fn_c_try_compile
2012 # ac_fn_cxx_try_compile LINENO
2013 # ----------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_cxx_try_compile ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext
2019 if { { ac_try="$ac_compile"
2020 case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_compile") 2>conftest.err
2027 ac_status=$?
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; then :
2038 ac_retval=0
2039 else
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2043 ac_retval=1
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_cxx_try_compile
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2057 case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i && {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2074 }; then :
2075 ac_retval=0
2076 else
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2080 ac_retval=1
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2085 } # ac_fn_cxx_try_cpp
2087 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2091 # accordingly.
2092 ac_fn_cxx_check_header_mongrel ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if eval \${$3+:} false; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 else
2105 # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_cxx_try_compile "$LINENO"; then :
2114 ac_header_compiler=yes
2115 else
2116 ac_header_compiler=no
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_cxx_try_cpp "$LINENO"; then :
2130 ac_header_preproc=yes
2131 else
2132 ac_header_preproc=no
2134 rm -f conftest.err conftest.i conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2138 # So? What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2140 yes:no: )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2146 no:yes:* )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2158 esac
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 eval "$3=\$ac_header_compiler"
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_cxx_check_header_mongrel
2174 # ac_fn_cxx_try_run LINENO
2175 # ------------------------
2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2177 # that executables *can* be run.
2178 ac_fn_cxx_try_run ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if { { ac_try="$ac_link"
2182 case "(($ac_try" in
2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2185 esac
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_link") 2>&5
2189 ac_status=$?
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2192 { { case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_try") 2>&5
2199 ac_status=$?
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; }; }; then :
2202 ac_retval=0
2203 else
2204 $as_echo "$as_me: program exited with status $ac_status" >&5
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 ac_retval=$ac_status
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval
2214 } # ac_fn_cxx_try_run
2216 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists and can be compiled using the include files in
2219 # INCLUDES, setting the cache variable VAR accordingly.
2220 ac_fn_cxx_check_header_compile ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2227 else
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2231 #include <$2>
2232 _ACEOF
2233 if ac_fn_cxx_try_compile "$LINENO"; then :
2234 eval "$3=yes"
2235 else
2236 eval "$3=no"
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 eval ac_res=\$$3
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_cxx_check_header_compile
2247 # ac_fn_c_try_cpp LINENO
2248 # ----------------------
2249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2250 ac_fn_c_try_cpp ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_cpp conftest.$ac_ext"
2254 case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257 esac
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2261 ac_status=$?
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } > conftest.i && {
2269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2270 test ! -s conftest.err
2271 }; then :
2272 ac_retval=0
2273 else
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2277 ac_retval=1
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2282 } # ac_fn_c_try_cpp
2284 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2285 # ----------------------------------------------
2286 # Tries to find the compile-time value of EXPR in a program that includes
2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2288 # computed
2289 ac_fn_cxx_compute_int ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if test "$cross_compiling" = yes; then
2293 # Depending upon the size, compute the lo and hi bounds.
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2298 main ()
2300 static int test_array [1 - 2 * !(($2) >= 0)];
2301 test_array [0] = 0;
2302 return test_array [0];
2305 return 0;
2307 _ACEOF
2308 if ac_fn_cxx_try_compile "$LINENO"; then :
2309 ac_lo=0 ac_mid=0
2310 while :; do
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2315 main ()
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2318 test_array [0] = 0;
2319 return test_array [0];
2322 return 0;
2324 _ACEOF
2325 if ac_fn_cxx_try_compile "$LINENO"; then :
2326 ac_hi=$ac_mid; break
2327 else
2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329 if test $ac_lo -le $ac_mid; then
2330 ac_lo= ac_hi=
2331 break
2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 done
2337 else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2342 main ()
2344 static int test_array [1 - 2 * !(($2) < 0)];
2345 test_array [0] = 0;
2346 return test_array [0];
2349 return 0;
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 ac_hi=-1 ac_mid=-1
2354 while :; do
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2359 main ()
2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2362 test_array [0] = 0;
2363 return test_array [0];
2366 return 0;
2368 _ACEOF
2369 if ac_fn_cxx_try_compile "$LINENO"; then :
2370 ac_lo=$ac_mid; break
2371 else
2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373 if test $ac_mid -le $ac_hi; then
2374 ac_lo= ac_hi=
2375 break
2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 done
2381 else
2382 ac_lo= ac_hi=
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 # Binary search between lo and hi bounds.
2388 while test "x$ac_lo" != "x$ac_hi"; do
2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2394 main ()
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2397 test_array [0] = 0;
2398 return test_array [0];
2401 return 0;
2403 _ACEOF
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2405 ac_hi=$ac_mid
2406 else
2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 done
2411 case $ac_lo in #((
2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2413 '') ac_retval=1 ;;
2414 esac
2415 else
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 static long int longval () { return $2; }
2420 static unsigned long int ulongval () { return $2; }
2421 #include <stdio.h>
2422 #include <stdlib.h>
2424 main ()
2427 FILE *f = fopen ("conftest.val", "w");
2428 if (! f)
2429 return 1;
2430 if (($2) < 0)
2432 long int i = longval ();
2433 if (i != ($2))
2434 return 1;
2435 fprintf (f, "%ld", i);
2437 else
2439 unsigned long int i = ulongval ();
2440 if (i != ($2))
2441 return 1;
2442 fprintf (f, "%lu", i);
2444 /* Do not output a trailing newline, as this causes \r\n confusion
2445 on some platforms. */
2446 return ferror (f) || fclose (f) != 0;
2449 return 0;
2451 _ACEOF
2452 if ac_fn_cxx_try_run "$LINENO"; then :
2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2454 else
2455 ac_retval=1
2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458 conftest.$ac_objext conftest.beam conftest.$ac_ext
2459 rm -f conftest.val
2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_cxx_compute_int
2467 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2468 # ---------------------------------------------
2469 # Tests whether TYPE exists after having included INCLUDES, setting cache
2470 # variable VAR accordingly.
2471 ac_fn_cxx_check_type ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 eval "$3=no"
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2484 main ()
2486 if (sizeof ($2))
2487 return 0;
2489 return 0;
2491 _ACEOF
2492 if ac_fn_cxx_try_compile "$LINENO"; then :
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2497 main ()
2499 if (sizeof (($2)))
2500 return 0;
2502 return 0;
2504 _ACEOF
2505 if ac_fn_cxx_try_compile "$LINENO"; then :
2507 else
2508 eval "$3=yes"
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 eval ac_res=\$$3
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 } # ac_fn_cxx_check_type
2521 # ac_fn_c_find_intX_t LINENO BITS VAR
2522 # -----------------------------------
2523 # Finds a signed integer type with width BITS, setting cache variable VAR
2524 # accordingly.
2525 ac_fn_c_find_intX_t ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2529 $as_echo_n "checking for int$2_t... " >&6; }
2530 if eval \${$3+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 eval "$3=no"
2534 # Order is important - never check a type that is potentially smaller
2535 # than half of the expected target width.
2536 for ac_type in int$2_t 'int' 'long int' \
2537 'long long int' 'short int' 'signed char'; do
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 $ac_includes_default
2541 enum { N = $2 / 2 - 1 };
2543 main ()
2545 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2546 test_array [0] = 0;
2547 return test_array [0];
2550 return 0;
2552 _ACEOF
2553 if ac_fn_cxx_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $ac_includes_default
2557 enum { N = $2 / 2 - 1 };
2559 main ()
2561 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2562 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2563 test_array [0] = 0;
2564 return test_array [0];
2567 return 0;
2569 _ACEOF
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2572 else
2573 case $ac_type in #(
2574 int$2_t) :
2575 eval "$3=yes" ;; #(
2576 *) :
2577 eval "$3=\$ac_type" ;;
2578 esac
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 if eval test \"x\$"$3"\" = x"no"; then :
2585 else
2586 break
2588 done
2590 eval ac_res=\$$3
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595 } # ac_fn_c_find_intX_t
2597 # ac_fn_cxx_try_link LINENO
2598 # -------------------------
2599 # Try to link conftest.$ac_ext, and return whether this succeeded.
2600 ac_fn_cxx_try_link ()
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 rm -f conftest.$ac_objext conftest$ac_exeext
2604 if { { ac_try="$ac_link"
2605 case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608 esac
2609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610 $as_echo "$ac_try_echo"; } >&5
2611 (eval "$ac_link") 2>conftest.err
2612 ac_status=$?
2613 if test -s conftest.err; then
2614 grep -v '^ *+' conftest.err >conftest.er1
2615 cat conftest.er1 >&5
2616 mv -f conftest.er1 conftest.err
2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619 test $ac_status = 0; } && {
2620 test -z "$ac_cxx_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest$ac_exeext && {
2623 test "$cross_compiling" = yes ||
2624 test -x conftest$ac_exeext
2625 }; then :
2626 ac_retval=0
2627 else
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2631 ac_retval=1
2633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2635 # interfere with the next link command; also delete a directory that is
2636 # left behind by Apple's compiler. We do this before executing the actions.
2637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639 as_fn_set_status $ac_retval
2641 } # ac_fn_cxx_try_link
2643 # ac_fn_c_find_uintX_t LINENO BITS VAR
2644 # ------------------------------------
2645 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2646 # accordingly.
2647 ac_fn_c_find_uintX_t ()
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2651 $as_echo_n "checking for uint$2_t... " >&6; }
2652 if eval \${$3+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 eval "$3=no"
2656 # Order is important - never check a type that is potentially smaller
2657 # than half of the expected target width.
2658 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2659 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $ac_includes_default
2664 main ()
2666 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2667 test_array [0] = 0;
2668 return test_array [0];
2671 return 0;
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 case $ac_type in #(
2676 uint$2_t) :
2677 eval "$3=yes" ;; #(
2678 *) :
2679 eval "$3=\$ac_type" ;;
2680 esac
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 if eval test \"x\$"$3"\" = x"no"; then :
2685 else
2686 break
2688 done
2690 eval ac_res=\$$3
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_find_uintX_t
2697 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2698 # ------------------------------------------------
2699 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2700 ac_fn_cxx_check_header_preproc ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704 $as_echo_n "checking for $2... " >&6; }
2705 if eval \${$3+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2710 #include <$2>
2711 _ACEOF
2712 if ac_fn_cxx_try_cpp "$LINENO"; then :
2713 eval "$3=yes"
2714 else
2715 eval "$3=no"
2717 rm -f conftest.err conftest.i conftest.$ac_ext
2719 eval ac_res=\$$3
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724 } # ac_fn_cxx_check_header_preproc
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func ()
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \${$3+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2741 #define $2 innocuous_$2
2743 /* System header to define __stub macros and hopefully few prototypes,
2744 which can conflict with char $2 (); below.
2745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746 <limits.h> exists even on freestanding compilers. */
2748 #ifdef __STDC__
2749 # include <limits.h>
2750 #else
2751 # include <assert.h>
2752 #endif
2754 #undef $2
2756 /* Override any GCC internal prototype to avoid an error.
2757 Use char because int might match the return type of a GCC
2758 builtin and then its argument prototype would still apply. */
2759 #ifdef __cplusplus
2760 extern "C"
2761 #endif
2762 char $2 ();
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined __stub_$2 || defined __stub___$2
2767 choke me
2768 #endif
2771 main ()
2773 return $2 ();
2775 return 0;
2777 _ACEOF
2778 if ac_fn_cxx_try_link "$LINENO"; then :
2779 eval "$3=yes"
2780 else
2781 eval "$3=no"
2783 rm -f core conftest.err conftest.$ac_objext \
2784 conftest$ac_exeext conftest.$ac_ext
2786 eval ac_res=\$$3
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791 } # ac_fn_cxx_check_func
2793 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2794 # -----------------------------------------------
2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2796 # accordingly.
2797 ac_fn_cxx_check_decl ()
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 as_decl_name=`echo $2|sed 's/ *(.*//'`
2801 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804 if eval \${$3+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2811 main ()
2813 #ifndef $as_decl_name
2814 #ifdef __cplusplus
2815 (void) $as_decl_use;
2816 #else
2817 (void) $as_decl_name;
2818 #endif
2819 #endif
2822 return 0;
2824 _ACEOF
2825 if ac_fn_cxx_try_compile "$LINENO"; then :
2826 eval "$3=yes"
2827 else
2828 eval "$3=no"
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 eval ac_res=\$$3
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837 } # ac_fn_cxx_check_decl
2839 # ac_fn_c_try_link LINENO
2840 # -----------------------
2841 # Try to link conftest.$ac_ext, and return whether this succeeded.
2842 ac_fn_c_try_link ()
2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 rm -f conftest.$ac_objext conftest$ac_exeext
2846 if { { ac_try="$ac_link"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_link") 2>conftest.err
2854 ac_status=$?
2855 if test -s conftest.err; then
2856 grep -v '^ *+' conftest.err >conftest.er1
2857 cat conftest.er1 >&5
2858 mv -f conftest.er1 conftest.err
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest$ac_exeext && {
2865 test "$cross_compiling" = yes ||
2866 test -x conftest$ac_exeext
2867 }; then :
2868 ac_retval=0
2869 else
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 ac_retval=1
2875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2877 # interfere with the next link command; also delete a directory that is
2878 # left behind by Apple's compiler. We do this before executing the actions.
2879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881 as_fn_set_status $ac_retval
2883 } # ac_fn_c_try_link
2885 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2886 # ----------------------------------------------
2887 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2888 ac_fn_c_check_header_preproc ()
2890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892 $as_echo_n "checking for $2... " >&6; }
2893 if eval \${$3+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2898 #include <$2>
2899 _ACEOF
2900 if ac_fn_c_try_cpp "$LINENO"; then :
2901 eval "$3=yes"
2902 else
2903 eval "$3=no"
2905 rm -f conftest.err conftest.i conftest.$ac_ext
2907 eval ac_res=\$$3
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912 } # ac_fn_c_check_header_preproc
2914 # ac_fn_c_check_func LINENO FUNC VAR
2915 # ----------------------------------
2916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2917 ac_fn_c_check_func ()
2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2921 $as_echo_n "checking for $2... " >&6; }
2922 if eval \${$3+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2929 #define $2 innocuous_$2
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char $2 (); below.
2933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934 <limits.h> exists even on freestanding compilers. */
2936 #ifdef __STDC__
2937 # include <limits.h>
2938 #else
2939 # include <assert.h>
2940 #endif
2942 #undef $2
2944 /* Override any GCC internal prototype to avoid an error.
2945 Use char because int might match the return type of a GCC
2946 builtin and then its argument prototype would still apply. */
2947 #ifdef __cplusplus
2948 extern "C"
2949 #endif
2950 char $2 ();
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined __stub_$2 || defined __stub___$2
2955 choke me
2956 #endif
2959 main ()
2961 return $2 ();
2963 return 0;
2965 _ACEOF
2966 if ac_fn_c_try_link "$LINENO"; then :
2967 eval "$3=yes"
2968 else
2969 eval "$3=no"
2971 rm -f core conftest.err conftest.$ac_objext \
2972 conftest$ac_exeext conftest.$ac_ext
2974 eval ac_res=\$$3
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976 $as_echo "$ac_res" >&6; }
2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979 } # ac_fn_c_check_func
2980 cat >config.log <<_ACEOF
2981 This file contains any messages produced by compilers while
2982 running configure, to aid debugging if configure makes a mistake.
2984 It was created by $as_me, which was
2985 generated by GNU Autoconf 2.69. Invocation command line was
2987 $ $0 $@
2989 _ACEOF
2990 exec 5>>config.log
2992 cat <<_ASUNAME
2993 ## --------- ##
2994 ## Platform. ##
2995 ## --------- ##
2997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3014 _ASUNAME
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 $as_echo "PATH: $as_dir"
3022 done
3023 IFS=$as_save_IFS
3025 } >&5
3027 cat >&5 <<_ACEOF
3030 ## ----------- ##
3031 ## Core tests. ##
3032 ## ----------- ##
3034 _ACEOF
3037 # Keep a trace of the command line.
3038 # Strip out --no-create and --no-recursion so they do not pile up.
3039 # Strip out --silent because we don't want to record it for future runs.
3040 # Also quote any args containing shell meta-characters.
3041 # Make two passes to allow for proper duplicate-argument suppression.
3042 ac_configure_args=
3043 ac_configure_args0=
3044 ac_configure_args1=
3045 ac_must_keep_next=false
3046 for ac_pass in 1 2
3048 for ac_arg
3050 case $ac_arg in
3051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3053 | -silent | --silent | --silen | --sile | --sil)
3054 continue ;;
3055 *\'*)
3056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3057 esac
3058 case $ac_pass in
3059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3061 as_fn_append ac_configure_args1 " '$ac_arg'"
3062 if test $ac_must_keep_next = true; then
3063 ac_must_keep_next=false # Got value, back to normal.
3064 else
3065 case $ac_arg in
3066 *=* | --config-cache | -C | -disable-* | --disable-* \
3067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3069 | -with-* | --with-* | -without-* | --without-* | --x)
3070 case "$ac_configure_args0 " in
3071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3072 esac
3074 -* ) ac_must_keep_next=true ;;
3075 esac
3077 as_fn_append ac_configure_args " '$ac_arg'"
3079 esac
3080 done
3081 done
3082 { ac_configure_args0=; unset ac_configure_args0;}
3083 { ac_configure_args1=; unset ac_configure_args1;}
3085 # When interrupted or exit'd, cleanup temporary files, and complete
3086 # config.log. We remove comments because anyway the quotes in there
3087 # would cause problems or look ugly.
3088 # WARNING: Use '\'' to represent an apostrophe within the trap.
3089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3090 trap 'exit_status=$?
3091 # Save into config.log some information that might help in debugging.
3093 echo
3095 $as_echo "## ---------------- ##
3096 ## Cache variables. ##
3097 ## ---------------- ##"
3098 echo
3099 # The following way of writing the cache mishandles newlines in values,
3101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3102 eval ac_val=\$$ac_var
3103 case $ac_val in #(
3104 *${as_nl}*)
3105 case $ac_var in #(
3106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3108 esac
3109 case $ac_var in #(
3110 _ | IFS | as_nl) ;; #(
3111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3112 *) { eval $ac_var=; unset $ac_var;} ;;
3113 esac ;;
3114 esac
3115 done
3116 (set) 2>&1 |
3117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3118 *${as_nl}ac_space=\ *)
3119 sed -n \
3120 "s/'\''/'\''\\\\'\'''\''/g;
3121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3122 ;; #(
3124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3126 esac |
3127 sort
3129 echo
3131 $as_echo "## ----------------- ##
3132 ## Output variables. ##
3133 ## ----------------- ##"
3134 echo
3135 for ac_var in $ac_subst_vars
3137 eval ac_val=\$$ac_var
3138 case $ac_val in
3139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3140 esac
3141 $as_echo "$ac_var='\''$ac_val'\''"
3142 done | sort
3143 echo
3145 if test -n "$ac_subst_files"; then
3146 $as_echo "## ------------------- ##
3147 ## File substitutions. ##
3148 ## ------------------- ##"
3149 echo
3150 for ac_var in $ac_subst_files
3152 eval ac_val=\$$ac_var
3153 case $ac_val in
3154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3155 esac
3156 $as_echo "$ac_var='\''$ac_val'\''"
3157 done | sort
3158 echo
3161 if test -s confdefs.h; then
3162 $as_echo "## ----------- ##
3163 ## confdefs.h. ##
3164 ## ----------- ##"
3165 echo
3166 cat confdefs.h
3167 echo
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3172 } >&5
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3175 exit $exit_status
3177 for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3179 done
3180 ac_signal=0
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest* confdefs.h
3185 $as_echo "/* confdefs.h */" > confdefs.h
3187 # Predefined preprocessor variables.
3189 cat >>confdefs.h <<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3191 _ACEOF
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3195 _ACEOF
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3199 _ACEOF
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3203 _ACEOF
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3207 _ACEOF
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3211 _ACEOF
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3216 ac_site_file1=NONE
3217 ac_site_file2=NONE
3218 if test -n "$CONFIG_SITE"; then
3219 # We do not want a PATH search for config.site.
3220 case $CONFIG_SITE in #((
3221 -*) ac_site_file1=./$CONFIG_SITE;;
3222 */*) ac_site_file1=$CONFIG_SITE;;
3223 *) ac_site_file1=./$CONFIG_SITE;;
3224 esac
3225 elif test "x$prefix" != xNONE; then
3226 ac_site_file1=$prefix/share/config.site
3227 ac_site_file2=$prefix/etc/config.site
3228 else
3229 ac_site_file1=$ac_default_prefix/share/config.site
3230 ac_site_file2=$ac_default_prefix/etc/config.site
3232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3234 test "x$ac_site_file" = xNONE && continue
3235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3238 sed 's/^/| /' "$ac_site_file" >&5
3239 . "$ac_site_file" \
3240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "failed to load site script $ac_site_file
3243 See \`config.log' for more details" "$LINENO" 5; }
3245 done
3247 if test -r "$cache_file"; then
3248 # Some versions of bash will fail to source /dev/null (special files
3249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3252 $as_echo "$as_me: loading cache $cache_file" >&6;}
3253 case $cache_file in
3254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3255 *) . "./$cache_file";;
3256 esac
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3260 $as_echo "$as_me: creating cache $cache_file" >&6;}
3261 >$cache_file
3264 # Check that the precious variables saved in the cache have kept the same
3265 # value.
3266 ac_cache_corrupted=false
3267 for ac_var in $ac_precious_vars; do
3268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3269 eval ac_new_set=\$ac_env_${ac_var}_set
3270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3271 eval ac_new_val=\$ac_env_${ac_var}_value
3272 case $ac_old_set,$ac_new_set in
3273 set,)
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3276 ac_cache_corrupted=: ;;
3277 ,set)
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3281 ,);;
3283 if test "x$ac_old_val" != "x$ac_new_val"; then
3284 # differences in whitespace do not lead to failure.
3285 ac_old_val_w=`echo x $ac_old_val`
3286 ac_new_val_w=`echo x $ac_new_val`
3287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3290 ac_cache_corrupted=:
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3294 eval $ac_var=\$ac_old_val
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3300 fi;;
3301 esac
3302 # Pass precious variables to config.status.
3303 if test "$ac_new_set" = set; then
3304 case $ac_new_val in
3305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3306 *) ac_arg=$ac_var=$ac_new_val ;;
3307 esac
3308 case " $ac_configure_args " in
3309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3311 esac
3313 done
3314 if $ac_cache_corrupted; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3321 ## -------------------- ##
3322 ## Main body of script. ##
3323 ## -------------------- ##
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3339 gcc_version=`cat $srcdir/BASE-VER`
3341 # Determine the host, build, and target systems
3342 ac_aux_dir=
3343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3344 if test -f "$ac_dir/install-sh"; then
3345 ac_aux_dir=$ac_dir
3346 ac_install_sh="$ac_aux_dir/install-sh -c"
3347 break
3348 elif test -f "$ac_dir/install.sh"; then
3349 ac_aux_dir=$ac_dir
3350 ac_install_sh="$ac_aux_dir/install.sh -c"
3351 break
3352 elif test -f "$ac_dir/shtool"; then
3353 ac_aux_dir=$ac_dir
3354 ac_install_sh="$ac_aux_dir/shtool install -c"
3355 break
3357 done
3358 if test -z "$ac_aux_dir"; then
3359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3362 # These three variables are undocumented and unsupported,
3363 # and are intended to be withdrawn in a future Autoconf release.
3364 # They can cause serious problems if a builder's source tree is in a directory
3365 # whose full name contains unusual characters.
3366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3371 # Make sure we can run config.sub.
3372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if ${ac_cv_build+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3390 $as_echo "$ac_cv_build" >&6; }
3391 case $ac_cv_build in
3392 *-*-*) ;;
3393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3394 esac
3395 build=$ac_cv_build
3396 ac_save_IFS=$IFS; IFS='-'
3397 set x $ac_cv_build
3398 shift
3399 build_cpu=$1
3400 build_vendor=$2
3401 shift; shift
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3404 build_os=$*
3405 IFS=$ac_save_IFS
3406 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3410 $as_echo_n "checking host system type... " >&6; }
3411 if ${ac_cv_host+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test "x$host_alias" = x; then
3415 ac_cv_host=$ac_cv_build
3416 else
3417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3423 $as_echo "$ac_cv_host" >&6; }
3424 case $ac_cv_host in
3425 *-*-*) ;;
3426 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3427 esac
3428 host=$ac_cv_host
3429 ac_save_IFS=$IFS; IFS='-'
3430 set x $ac_cv_host
3431 shift
3432 host_cpu=$1
3433 host_vendor=$2
3434 shift; shift
3435 # Remember, the first character of IFS is used to create $*,
3436 # except with old shells:
3437 host_os=$*
3438 IFS=$ac_save_IFS
3439 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3443 $as_echo_n "checking target system type... " >&6; }
3444 if ${ac_cv_target+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 if test "x$target_alias" = x; then
3448 ac_cv_target=$ac_cv_host
3449 else
3450 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3456 $as_echo "$ac_cv_target" >&6; }
3457 case $ac_cv_target in
3458 *-*-*) ;;
3459 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3460 esac
3461 target=$ac_cv_target
3462 ac_save_IFS=$IFS; IFS='-'
3463 set x $ac_cv_target
3464 shift
3465 target_cpu=$1
3466 target_vendor=$2
3467 shift; shift
3468 # Remember, the first character of IFS is used to create $*,
3469 # except with old shells:
3470 target_os=$*
3471 IFS=$ac_save_IFS
3472 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3475 # The aliases save the names the user supplied, while $host etc.
3476 # will get canonicalized.
3477 test -n "$target_alias" &&
3478 test "$program_prefix$program_suffix$program_transform_name" = \
3479 NONENONEs,x,x, &&
3480 program_prefix=${target_alias}-
3482 # Determine the noncanonical host name, for Ada.
3483 case ${build_alias} in
3484 "") build_noncanonical=${build} ;;
3485 *) build_noncanonical=${build_alias} ;;
3486 esac
3488 case ${host_alias} in
3489 "") host_noncanonical=${build_noncanonical} ;;
3490 *) host_noncanonical=${host_alias} ;;
3491 esac
3496 # Determine the noncanonical target name, for directory use.
3497 case ${target_alias} in
3498 "") target_noncanonical=${host_noncanonical} ;;
3499 *) target_noncanonical=${target_alias} ;;
3500 esac
3505 # Used for constructing correct paths for offload compilers.
3506 real_target_noncanonical=${target_noncanonical}
3507 accel_dir_suffix=
3509 # Determine the target- and build-specific subdirectories
3511 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3512 # have matching libraries, they should use host libraries: Makefile.tpl
3513 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3514 # However, they still use the build modules, because the corresponding
3515 # host modules (e.g. bison) are only built for the host when bootstrap
3516 # finishes. So:
3517 # - build_subdir is where we find build modules, and never changes.
3518 # - build_libsubdir is where we find build libraries, and can be overridden.
3520 # Prefix 'build-' so this never conflicts with target_subdir.
3521 build_subdir="build-${build_noncanonical}"
3523 # Check whether --with-build-libsubdir was given.
3524 if test "${with_build_libsubdir+set}" = set; then :
3525 withval=$with_build_libsubdir; build_libsubdir="$withval"
3526 else
3527 build_libsubdir="$build_subdir"
3530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3531 if ( test $srcdir = . && test -d gcc ) \
3532 || test -d $srcdir/../host-${host_noncanonical}; then
3533 host_subdir="host-${host_noncanonical}"
3534 else
3535 host_subdir=.
3537 # No prefix.
3538 target_subdir=${target_noncanonical}
3541 # Set program_transform_name
3542 test "$program_prefix" != NONE &&
3543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3544 # Use a double $ so make ignores it.
3545 test "$program_suffix" != NONE &&
3546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3547 # Double any \ or $.
3548 # By default was `s,x,x', remove it if useless.
3549 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3553 # Check for bogus environment variables.
3554 # Test if LIBRARY_PATH contains the notation for the current directory
3555 # since this would lead to problems installing/building glibc.
3556 # LIBRARY_PATH contains the current directory if one of the following
3557 # is true:
3558 # - one of the terminals (":" and ";") is the first or last sign
3559 # - two terminals occur directly after each other
3560 # - the path contains an element with a dot in it
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3562 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3563 case ${LIBRARY_PATH} in
3564 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3565 library_path_setting="contains current directory"
3568 library_path_setting="ok"
3570 esac
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3572 $as_echo "$library_path_setting" >&6; }
3573 if test "$library_path_setting" != "ok"; then
3574 as_fn_error $? "
3575 *** LIBRARY_PATH shouldn't contain the current directory when
3576 *** building gcc. Please change the environment variable
3577 *** and run configure again." "$LINENO" 5
3580 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3581 # since this would lead to problems installing/building glibc.
3582 # GCC_EXEC_PREFIX contains the current directory if one of the following
3583 # is true:
3584 # - one of the terminals (":" and ";") is the first or last sign
3585 # - two terminals occur directly after each other
3586 # - the path contains an element with a dot in it
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3588 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3589 case ${GCC_EXEC_PREFIX} in
3590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3591 gcc_exec_prefix_setting="contains current directory"
3594 gcc_exec_prefix_setting="ok"
3596 esac
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3598 $as_echo "$gcc_exec_prefix_setting" >&6; }
3599 if test "$gcc_exec_prefix_setting" != "ok"; then
3600 as_fn_error $? "
3601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3602 *** building gcc. Please change the environment variable
3603 *** and run configure again." "$LINENO" 5
3606 # -----------
3607 # Directories
3608 # -----------
3610 # Specify the local prefix
3611 local_prefix=
3613 # Check whether --with-local-prefix was given.
3614 if test "${with_local_prefix+set}" = set; then :
3615 withval=$with_local_prefix; case "${withval}" in
3616 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3617 no) ;;
3618 *) local_prefix=$with_local_prefix ;;
3619 esac
3623 # Default local prefix if it is empty
3624 if test x$local_prefix = x; then
3625 local_prefix=/usr/local
3629 # Check whether --with-native-system-header-dir was given.
3630 if test "${with_native_system_header_dir+set}" = set; then :
3631 withval=$with_native_system_header_dir;
3632 case ${with_native_system_header_dir} in
3633 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3634 /* | [A-Za-z]:[\\/]*) ;;
3635 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3636 esac
3637 configured_native_system_header_dir="${withval}"
3639 else
3640 configured_native_system_header_dir=
3645 # Check whether --with-build-sysroot was given.
3646 if test "${with_build_sysroot+set}" = set; then :
3647 withval=$with_build_sysroot; if test x"$withval" != x ; then
3648 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3650 else
3651 SYSROOT_CFLAGS_FOR_TARGET=
3656 if test "x$prefix" = xNONE; then
3657 test_prefix=/usr/local
3658 else
3659 test_prefix=$prefix
3661 if test "x$exec_prefix" = xNONE; then
3662 test_exec_prefix=$test_prefix
3663 else
3664 test_exec_prefix=$exec_prefix
3668 # Check whether --with-sysroot was given.
3669 if test "${with_sysroot+set}" = set; then :
3670 withval=$with_sysroot;
3671 case ${with_sysroot} in
3672 /) ;;
3673 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3674 esac
3675 case ${with_sysroot} in
3676 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3677 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3678 esac
3680 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3681 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3683 case ${TARGET_SYSTEM_ROOT} in
3684 "${test_prefix}"|"${test_prefix}/"*|\
3685 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3686 '${prefix}'|'${prefix}/'*|\
3687 '${exec_prefix}'|'${exec_prefix}/'*)
3688 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3689 TARGET_SYSTEM_ROOT_DEFINE="$t"
3691 esac
3693 else
3695 TARGET_SYSTEM_ROOT=
3696 TARGET_SYSTEM_ROOT_DEFINE=
3697 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3705 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3706 # passed in by the toplevel make and thus we'd get different behavior
3707 # depending on where we built the sources.
3708 gcc_gxx_include_dir=
3709 # Specify the g++ header file directory
3711 # Check whether --with-gxx-include-dir was given.
3712 if test "${with_gxx_include_dir+set}" = set; then :
3713 withval=$with_gxx_include_dir; case "${withval}" in
3714 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3715 no) ;;
3716 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3717 esac
3721 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3722 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3723 # relative to the sysroot.
3724 gcc_gxx_include_dir_add_sysroot=0
3726 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3727 if test x${gcc_gxx_include_dir} = x; then
3728 if test x${enable_version_specific_runtime_libs} = xyes; then
3729 gcc_gxx_include_dir='${libsubdir}/include/c++'
3730 else
3731 libstdcxx_incdir='include/c++/$(version)'
3732 if test x$host != x$target; then
3733 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3735 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3737 elif test "${with_sysroot+set}" = set; then
3738 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3739 if test "${gcc_gxx_without_sysroot}"; then
3740 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3741 gcc_gxx_include_dir_add_sysroot=1
3745 # Configuration for an alternate set of C++ headers.
3746 gcc_gxx_libcxx_include_dir=
3747 # Specify the alternate g++ header file directory
3749 # Check whether --with-gxx-libcxx-include-dir was given.
3750 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3751 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3752 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3753 no) ;;
3754 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3755 esac
3759 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3760 # check to see if the latter starts with the former and, upon success, compute
3761 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3762 gcc_gxx_libcxx_include_dir_add_sysroot=0
3764 if test x${gcc_gxx_libcxx_include_dir} != x; then
3766 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3768 else
3769 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3772 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3773 if test x${gcc_gxx_libcxx_include_dir} = x; then
3774 if test x${enable_version_specific_runtime_libs} = xyes; then
3775 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3776 else
3777 libcxx_incdir='libc++_include/c++/$(version)/v1'
3778 if test x$host != x$target; then
3779 libcxx_incdir="$target_alias/$libcxx_incdir"
3781 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3783 elif test "${with_sysroot+set}" = set; then
3784 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3785 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3786 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3787 gcc_gxx_libcxx_include_dir_add_sysroot=1
3792 # Check whether --with-cpp_install_dir was given.
3793 if test "${with_cpp_install_dir+set}" = set; then :
3794 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3795 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3796 elif test x$withval != xno; then
3797 cpp_install_dir=$withval
3802 # We would like to our source tree to be readonly. However when releases or
3803 # pre-releases are generated, the flex/bison generated files as well as the
3804 # various formats of manuals need to be included along with the rest of the
3805 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3806 # just that.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3809 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3810 # Check whether --enable-generated-files-in-srcdir was given.
3811 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3812 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3813 else
3814 generated_files_in_srcdir=no
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3819 $as_echo "$generated_files_in_srcdir" >&6; }
3821 if test "$generated_files_in_srcdir" = "yes"; then
3822 GENINSRC=''
3823 else
3824 GENINSRC='#'
3828 # -------------------
3829 # Find default linker
3830 # -------------------
3832 # With GNU ld
3834 # Check whether --with-gnu-ld was given.
3835 if test "${with_gnu_ld+set}" = set; then :
3836 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3837 else
3838 gnu_ld_flag=no
3842 case $target in
3843 *darwin*)
3844 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3845 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3848 ld64_flag=no
3849 dsymutil_flag=no
3851 esac
3853 # With pre-defined ld
3855 # Check whether --with-ld was given.
3856 if test "${with_ld+set}" = set; then :
3857 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3860 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3861 if test ! -x "$DEFAULT_LINKER"; then
3862 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3863 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3864 gnu_ld_flag=yes
3865 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3866 ld64_flag=yes
3869 cat >>confdefs.h <<_ACEOF
3870 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3871 _ACEOF
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3876 $as_echo_n "checking whether a default linker was specified... " >&6; }
3877 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3878 if test x"$gnu_ld_flag" = x"no"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3880 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3881 else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3883 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3890 # With demangler in GNU ld
3892 # Check whether --with-demangler-in-ld was given.
3893 if test "${with_demangler_in_ld+set}" = set; then :
3894 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3895 else
3896 demangler_in_ld=yes
3900 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3902 # Check whether --with-dsymutil was given.
3903 if test "${with_dsymutil+set}" = set; then :
3904 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3908 dsymutil_vers=
3909 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3910 if test ! -x "$DEFAULT_DSYMUTIL"; then
3911 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3912 else
3913 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3914 dsymutil_flag=yes
3918 cat >>confdefs.h <<_ACEOF
3919 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3920 _ACEOF
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3925 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3926 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3928 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3929 else
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3934 # ----------------------
3935 # Find default assembler
3936 # ----------------------
3938 # With GNU as
3940 # Check whether --with-gnu-as was given.
3941 if test "${with_gnu_as+set}" = set; then :
3942 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3943 else
3944 gas_flag=no
3949 # Check whether --with-as was given.
3950 if test "${with_as+set}" = set; then :
3951 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3954 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3955 if test ! -x "$DEFAULT_ASSEMBLER"; then
3956 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3957 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3958 gas_flag=yes
3961 cat >>confdefs.h <<_ACEOF
3962 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3963 _ACEOF
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3968 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3969 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3970 if test x"$gas_flag" = x"no"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3972 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3975 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3982 # ---------------
3983 # Find C compiler
3984 # ---------------
3986 # If a non-executable a.out is present (e.g. created by GNU as above even if
3987 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3988 # file, even when creating an executable, so an execution test fails.
3989 # Remove possible default executable files to avoid this.
3991 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3992 # Autoconf includes it.
3993 rm -f a.out a.exe b.out
3995 # Find the native compiler
3996 ac_ext=c
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_CC+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 if test -n "$CC"; then
4010 ac_cv_prog_CC="$CC" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4023 done
4024 done
4025 IFS=$as_save_IFS
4029 CC=$ac_cv_prog_CC
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4033 else
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4040 if test -z "$ac_cv_prog_CC"; then
4041 ac_ct_CC=$CC
4042 # Extract the first word of "gcc", so it can be a program name with args.
4043 set dummy gcc; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 if test -n "$ac_ct_CC"; then
4050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_CC="gcc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4063 done
4064 done
4065 IFS=$as_save_IFS
4069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4070 if test -n "$ac_ct_CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4072 $as_echo "$ac_ct_CC" >&6; }
4073 else
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4078 if test "x$ac_ct_CC" = x; then
4079 CC=""
4080 else
4081 case $cross_compiling:$ac_tool_warned in
4082 yes:)
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085 ac_tool_warned=yes ;;
4086 esac
4087 CC=$ac_ct_CC
4089 else
4090 CC="$ac_cv_prog_CC"
4093 if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4096 set dummy ${ac_tool_prefix}cc; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CC+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 if test -n "$CC"; then
4103 ac_cv_prog_CC="$CC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_CC="${ac_tool_prefix}cc"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4116 done
4117 done
4118 IFS=$as_save_IFS
4122 CC=$ac_cv_prog_CC
4123 if test -n "$CC"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4125 $as_echo "$CC" >&6; }
4126 else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4134 if test -z "$CC"; then
4135 # Extract the first word of "cc", so it can be a program name with args.
4136 set dummy cc; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_CC+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 if test -n "$CC"; then
4143 ac_cv_prog_CC="$CC" # Let the user override the test.
4144 else
4145 ac_prog_rejected=no
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4154 ac_prog_rejected=yes
4155 continue
4157 ac_cv_prog_CC="cc"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4161 done
4162 done
4163 IFS=$as_save_IFS
4165 if test $ac_prog_rejected = yes; then
4166 # We found a bogon in the path, so make sure we never use it.
4167 set dummy $ac_cv_prog_CC
4168 shift
4169 if test $# != 0; then
4170 # We chose a different compiler from the bogus one.
4171 # However, it has the same basename, so the bogon will be chosen
4172 # first if we set CC to just the basename; use the full file name.
4173 shift
4174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4179 CC=$ac_cv_prog_CC
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4190 if test -z "$CC"; then
4191 if test -n "$ac_tool_prefix"; then
4192 for ac_prog in cl.exe
4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC="$CC" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4217 IFS=$as_save_IFS
4221 CC=$ac_cv_prog_CC
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4231 test -n "$CC" && break
4232 done
4234 if test -z "$CC"; then
4235 ac_ct_CC=$CC
4236 for ac_prog in cl.exe
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy $ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$ac_ct_CC"; then
4246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_ac_ct_CC="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4266 if test -n "$ac_ct_CC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4268 $as_echo "$ac_ct_CC" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$ac_ct_CC" && break
4276 done
4278 if test "x$ac_ct_CC" = x; then
4279 CC=""
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 CC=$ac_ct_CC
4294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296 as_fn_error $? "no acceptable C compiler found in \$PATH
4297 See \`config.log' for more details" "$LINENO" 5; }
4299 # Provide some information about the compiler.
4300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4301 set X $ac_compile
4302 ac_compiler=$2
4303 for ac_option in --version -v -V -qversion; do
4304 { { ac_try="$ac_compiler $ac_option >&5"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4312 ac_status=$?
4313 if test -s conftest.err; then
4314 sed '10a\
4315 ... rest of stderr output deleted ...
4316 10q' conftest.err >conftest.er1
4317 cat conftest.er1 >&5
4319 rm -f conftest.er1 conftest.err
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; }
4322 done
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4328 main ()
4332 return 0;
4334 _ACEOF
4335 ac_clean_files_save=$ac_clean_files
4336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4337 # Try to create an executable without -o first, disregard a.out.
4338 # It will help us diagnose broken compilers, and finding out an intuition
4339 # of exeext.
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4341 $as_echo_n "checking whether the C compiler works... " >&6; }
4342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4344 # The possible output files:
4345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4347 ac_rmfiles=
4348 for ac_file in $ac_files
4350 case $ac_file in
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4353 esac
4354 done
4355 rm -f $ac_rmfiles
4357 if { { ac_try="$ac_link_default"
4358 case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361 esac
4362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363 $as_echo "$ac_try_echo"; } >&5
4364 (eval "$ac_link_default") 2>&5
4365 ac_status=$?
4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367 test $ac_status = 0; }; then :
4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4372 # Autoconf.
4373 for ac_file in $ac_files ''
4375 test -f "$ac_file" || continue
4376 case $ac_file in
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4379 [ab].out )
4380 # We found the default executable, but exeext='' is most
4381 # certainly right.
4382 break;;
4383 *.* )
4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4385 then :; else
4386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 # We set ac_cv_exeext here because the later test for it is not
4389 # safe: cross compilers may not add the suffix if given an `-o'
4390 # argument, so we may need to know it at that point already.
4391 # Even if this section looks crufty: it has the advantage of
4392 # actually working.
4393 break;;
4395 break;;
4396 esac
4397 done
4398 test "$ac_cv_exeext" = no && ac_cv_exeext=
4400 else
4401 ac_file=''
4403 if test -z "$ac_file"; then :
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error 77 "C compiler cannot create executables
4412 See \`config.log' for more details" "$LINENO" 5; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415 $as_echo "yes" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4418 $as_echo_n "checking for C compiler default output file name... " >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4420 $as_echo "$ac_file" >&6; }
4421 ac_exeext=$ac_cv_exeext
4423 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4424 ac_clean_files=$ac_clean_files_save
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4426 $as_echo_n "checking for suffix of executables... " >&6; }
4427 if { { ac_try="$ac_link"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434 (eval "$ac_link") 2>&5
4435 ac_status=$?
4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; then :
4438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4440 # work properly (i.e., refer to `conftest.exe'), while it won't with
4441 # `rm'.
4442 for ac_file in conftest.exe conftest conftest.*; do
4443 test -f "$ac_file" || continue
4444 case $ac_file in
4445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4447 break;;
4448 * ) break;;
4449 esac
4450 done
4451 else
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4455 See \`config.log' for more details" "$LINENO" 5; }
4457 rm -f conftest conftest$ac_cv_exeext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4459 $as_echo "$ac_cv_exeext" >&6; }
4461 rm -f conftest.$ac_ext
4462 EXEEXT=$ac_cv_exeext
4463 ac_exeext=$EXEEXT
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 #include <stdio.h>
4468 main ()
4470 FILE *f = fopen ("conftest.out", "w");
4471 return ferror (f) || fclose (f) != 0;
4474 return 0;
4476 _ACEOF
4477 ac_clean_files="$ac_clean_files conftest.out"
4478 # Check that the compiler produces executables we can run. If not, either
4479 # the compiler is broken, or we cross compile.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4481 $as_echo_n "checking whether we are cross compiling... " >&6; }
4482 if test "$cross_compiling" != yes; then
4483 { { ac_try="$ac_link"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
4491 ac_status=$?
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }
4494 if { ac_try='./conftest$ac_cv_exeext'
4495 { { case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_try") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; }; then
4505 cross_compiling=no
4506 else
4507 if test "$cross_compiling" = maybe; then
4508 cross_compiling=yes
4509 else
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error $? "cannot run C compiled programs.
4513 If you meant to cross compile, use \`--host'.
4514 See \`config.log' for more details" "$LINENO" 5; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4519 $as_echo "$cross_compiling" >&6; }
4521 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4522 ac_clean_files=$ac_clean_files_save
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4524 $as_echo_n "checking for suffix of object files... " >&6; }
4525 if ${ac_cv_objext+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4532 main ()
4536 return 0;
4538 _ACEOF
4539 rm -f conftest.o conftest.obj
4540 if { { ac_try="$ac_compile"
4541 case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544 esac
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 $as_echo "$ac_try_echo"; } >&5
4547 (eval "$ac_compile") 2>&5
4548 ac_status=$?
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }; then :
4551 for ac_file in conftest.o conftest.obj conftest.*; do
4552 test -f "$ac_file" || continue;
4553 case $ac_file in
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4556 break;;
4557 esac
4558 done
4559 else
4560 $as_echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error $? "cannot compute suffix of object files: cannot compile
4566 See \`config.log' for more details" "$LINENO" 5; }
4568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4571 $as_echo "$ac_cv_objext" >&6; }
4572 OBJEXT=$ac_cv_objext
4573 ac_objext=$OBJEXT
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4576 if ${ac_cv_c_compiler_gnu+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4583 main ()
4585 #ifndef __GNUC__
4586 choke me
4587 #endif
4590 return 0;
4592 _ACEOF
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594 ac_compiler_gnu=yes
4595 else
4596 ac_compiler_gnu=no
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4604 if test $ac_compiler_gnu = yes; then
4605 GCC=yes
4606 else
4607 GCC=
4609 ac_test_CFLAGS=${CFLAGS+set}
4610 ac_save_CFLAGS=$CFLAGS
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4613 if ${ac_cv_prog_cc_g+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 ac_save_c_werror_flag=$ac_c_werror_flag
4617 ac_c_werror_flag=yes
4618 ac_cv_prog_cc_g=no
4619 CFLAGS="-g"
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4624 main ()
4628 return 0;
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_prog_cc_g=yes
4633 else
4634 CFLAGS=""
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4639 main ()
4643 return 0;
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"; then :
4648 else
4649 ac_c_werror_flag=$ac_save_c_werror_flag
4650 CFLAGS="-g"
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4655 main ()
4659 return 0;
4661 _ACEOF
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_cv_prog_cc_g=yes
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4673 $as_echo "$ac_cv_prog_cc_g" >&6; }
4674 if test "$ac_test_CFLAGS" = set; then
4675 CFLAGS=$ac_save_CFLAGS
4676 elif test $ac_cv_prog_cc_g = yes; then
4677 if test "$GCC" = yes; then
4678 CFLAGS="-g -O2"
4679 else
4680 CFLAGS="-g"
4682 else
4683 if test "$GCC" = yes; then
4684 CFLAGS="-O2"
4685 else
4686 CFLAGS=
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4691 if ${ac_cv_prog_cc_c89+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 ac_cv_prog_cc_c89=no
4695 ac_save_CC=$CC
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 #include <stdarg.h>
4699 #include <stdio.h>
4700 struct stat;
4701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702 struct buf { int x; };
4703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704 static char *e (p, i)
4705 char **p;
4706 int i;
4708 return p[i];
4710 static char *f (char * (*g) (char **, int), char **p, ...)
4712 char *s;
4713 va_list v;
4714 va_start (v,p);
4715 s = g (p, va_arg (v,int));
4716 va_end (v);
4717 return s;
4720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
4723 as 'x'. The following induces an error, until -std is added to get
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
4726 that's true only with -std. */
4727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4731 #define FOO(x) 'x'
4732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4734 int test (int i, double x);
4735 struct s1 {int (*f) (int a);};
4736 struct s2 {int (*f) (double a);};
4737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4738 int argc;
4739 char **argv;
4741 main ()
4743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4745 return 0;
4747 _ACEOF
4748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 CC="$ac_save_CC $ac_arg"
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
4755 rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
4757 done
4758 rm -f conftest.$ac_ext
4759 CC=$ac_save_CC
4762 # AC_CACHE_VAL
4763 case "x$ac_cv_prog_cc_c89" in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 $as_echo "none needed" >&6; } ;;
4767 xno)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769 $as_echo "unsupported" >&6; } ;;
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4774 esac
4775 if test "x$ac_cv_prog_cc_c89" != xno; then :
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785 ac_ext=cpp
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 if test -z "$CXX"; then
4791 if test -n "$CCC"; then
4792 CXX=$CCC
4793 else
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_CXX+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$CXX"; then
4805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4818 done
4819 done
4820 IFS=$as_save_IFS
4824 CXX=$ac_cv_prog_CXX
4825 if test -n "$CXX"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$CXX" && break
4835 done
4837 if test -z "$CXX"; then
4838 ac_ct_CXX=$CXX
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$ac_ct_CXX"; then
4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_CXX="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4862 done
4863 done
4864 IFS=$as_save_IFS
4868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869 if test -n "$ac_ct_CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871 $as_echo "$ac_ct_CXX" >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$ac_ct_CXX" && break
4879 done
4881 if test "x$ac_ct_CXX" = x; then
4882 CXX="g++"
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885 yes:)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4889 esac
4890 CXX=$ac_ct_CXX
4896 # Provide some information about the compiler.
4897 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4898 set X $ac_compile
4899 ac_compiler=$2
4900 for ac_option in --version -v -V -qversion; do
4901 { { ac_try="$ac_compiler $ac_option >&5"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907 $as_echo "$ac_try_echo"; } >&5
4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4909 ac_status=$?
4910 if test -s conftest.err; then
4911 sed '10a\
4912 ... rest of stderr output deleted ...
4913 10q' conftest.err >conftest.er1
4914 cat conftest.er1 >&5
4916 rm -f conftest.er1 conftest.err
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4919 done
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4930 main ()
4932 #ifndef __GNUC__
4933 choke me
4934 #endif
4937 return 0;
4939 _ACEOF
4940 if ac_fn_cxx_try_compile "$LINENO"; then :
4941 ac_compiler_gnu=yes
4942 else
4943 ac_compiler_gnu=no
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951 if test $ac_compiler_gnu = yes; then
4952 GXX=yes
4953 else
4954 GXX=
4956 ac_test_CXXFLAGS=${CXXFLAGS+set}
4957 ac_save_CXXFLAGS=$CXXFLAGS
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960 if ${ac_cv_prog_cxx_g+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4964 ac_cxx_werror_flag=yes
4965 ac_cv_prog_cxx_g=no
4966 CXXFLAGS="-g"
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4971 main ()
4975 return 0;
4977 _ACEOF
4978 if ac_fn_cxx_try_compile "$LINENO"; then :
4979 ac_cv_prog_cxx_g=yes
4980 else
4981 CXXFLAGS=""
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4986 main ()
4990 return 0;
4992 _ACEOF
4993 if ac_fn_cxx_try_compile "$LINENO"; then :
4995 else
4996 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4997 CXXFLAGS="-g"
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5002 main ()
5006 return 0;
5008 _ACEOF
5009 if ac_fn_cxx_try_compile "$LINENO"; then :
5010 ac_cv_prog_cxx_g=yes
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5021 if test "$ac_test_CXXFLAGS" = set; then
5022 CXXFLAGS=$ac_save_CXXFLAGS
5023 elif test $ac_cv_prog_cxx_g = yes; then
5024 if test "$GXX" = yes; then
5025 CXXFLAGS="-g -O2"
5026 else
5027 CXXFLAGS="-g"
5029 else
5030 if test "$GXX" = yes; then
5031 CXXFLAGS="-O2"
5032 else
5033 CXXFLAGS=
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5047 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_GNATBIND+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$GNATBIND"; then
5054 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5067 done
5068 done
5069 IFS=$as_save_IFS
5073 GNATBIND=$ac_cv_prog_GNATBIND
5074 if test -n "$GNATBIND"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5076 $as_echo "$GNATBIND" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5084 if test -z "$ac_cv_prog_GNATBIND"; then
5085 ac_ct_GNATBIND=$GNATBIND
5086 # Extract the first word of "gnatbind", so it can be a program name with args.
5087 set dummy gnatbind; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$ac_ct_GNATBIND"; then
5094 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5107 done
5108 done
5109 IFS=$as_save_IFS
5113 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5114 if test -n "$ac_ct_GNATBIND"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5116 $as_echo "$ac_ct_GNATBIND" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5122 if test "x$ac_ct_GNATBIND" = x; then
5123 GNATBIND="no"
5124 else
5125 case $cross_compiling:$ac_tool_warned in
5126 yes:)
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned=yes ;;
5130 esac
5131 GNATBIND=$ac_ct_GNATBIND
5133 else
5134 GNATBIND="$ac_cv_prog_GNATBIND"
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_GNATMAKE+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$GNATMAKE"; then
5146 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5159 done
5160 done
5161 IFS=$as_save_IFS
5165 GNATMAKE=$ac_cv_prog_GNATMAKE
5166 if test -n "$GNATMAKE"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5168 $as_echo "$GNATMAKE" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5176 if test -z "$ac_cv_prog_GNATMAKE"; then
5177 ac_ct_GNATMAKE=$GNATMAKE
5178 # Extract the first word of "gnatmake", so it can be a program name with args.
5179 set dummy gnatmake; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$ac_ct_GNATMAKE"; then
5186 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5206 if test -n "$ac_ct_GNATMAKE"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5208 $as_echo "$ac_ct_GNATMAKE" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5214 if test "x$ac_ct_GNATMAKE" = x; then
5215 GNATMAKE="no"
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218 yes:)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5222 esac
5223 GNATMAKE=$ac_ct_GNATMAKE
5225 else
5226 GNATMAKE="$ac_cv_prog_GNATMAKE"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5230 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5231 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 cat >conftest.adb <<EOF
5235 procedure conftest is begin null; end conftest;
5237 acx_cv_cc_gcc_supports_ada=no
5238 # There is a bug in old released versions of GCC which causes the
5239 # driver to exit successfully when the appropriate language module
5240 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5241 # Therefore we must check for the error message as well as an
5242 # unsuccessful exit.
5243 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5244 # given a .adb file, but produce no object file. So we must check
5245 # if an object file was really produced to guard against this.
5246 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5247 if test x"$errors" = x && test -f conftest.$ac_objext; then
5248 acx_cv_cc_gcc_supports_ada=yes
5250 rm -f conftest.*
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5253 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5255 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5256 have_gnat=yes
5257 else
5258 have_gnat=no
5262 # Do configure tests with the C++ compiler, since that's what we build with.
5263 ac_ext=cpp
5264 ac_cpp='$CXXCPP $CPPFLAGS'
5265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5270 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5271 # optimizations to be activated explicitly by the toplevel.
5272 case "$CC" in
5273 */prev-gcc/xgcc*) ;;
5274 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5275 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5276 esac
5280 # Determine PICFLAG for target gnatlib.
5285 case "${target}" in
5286 # PIC is the default on some targets or must not be used.
5287 *-*-darwin*)
5288 # For darwin, common symbols are not allowed in MH_DYLIB files
5289 case "${CFLAGS}" in
5290 # If we are using a compiler supporting mdynamic-no-pic
5291 # and the option has been tested as safe to add, then cancel
5292 # it here, since the code generated is incompatible with shared
5293 # libs.
5294 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5295 *) PICFLAG_FOR_TARGET=-fno-common ;;
5296 esac
5298 alpha*-dec-osf5*)
5299 # PIC is the default.
5301 hppa*64*-*-hpux*)
5302 # PIC is the default for 64-bit PA HP-UX.
5304 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5306 i[34567]86-*-mingw* | x86_64-*-mingw*)
5308 i[34567]86-*-interix[3-9]*)
5309 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5310 # Instead, we relocate shared libraries at runtime.
5312 i[34567]86-*-nto-qnx*)
5313 # QNX uses GNU C++, but need to define -shared option too, otherwise
5314 # it will coredump.
5315 PICFLAG_FOR_TARGET='-fPIC -shared'
5317 i[34567]86-pc-msdosdjgpp*)
5318 # DJGPP does not support shared libraries at all.
5320 ia64*-*-hpux*)
5321 # On IA64 HP-UX, PIC is the default but the pic flag
5322 # sets the default TLS model and affects inlining.
5323 PICFLAG_FOR_TARGET=-fPIC
5325 mips-sgi-irix6*)
5326 # PIC is the default.
5328 rs6000-ibm-aix* | powerpc-ibm-aix*)
5329 # All AIX code is PIC.
5332 # Some targets support both -fPIC and -fpic, but prefer the latter.
5333 # FIXME: Why?
5334 i[34567]86-*-* | x86_64-*-*)
5335 PICFLAG_FOR_TARGET=-fpic
5337 # FIXME: Override -fPIC default in libgcc only?
5338 sh-*-linux* | sh[2346lbe]*-*-linux*)
5339 PICFLAG_FOR_TARGET=-fpic
5341 # FIXME: Simplify to sh*-*-netbsd*?
5342 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5343 sh64-*-netbsd* | sh64l*-*-netbsd*)
5344 PICFLAG_FOR_TARGET=-fpic
5346 # Default to -fPIC unless specified otherwise.
5348 PICFLAG_FOR_TARGET=-fPIC
5350 esac
5352 # If the user explicitly uses -fpic/-fPIC, keep that.
5353 case "${CFLAGS_FOR_TARGET}" in
5354 *-fpic*)
5355 PICFLAG_FOR_TARGET=-fpic
5357 *-fPIC*)
5358 PICFLAG_FOR_TARGET=-fPIC
5360 esac
5364 # -------------------------
5365 # Check C compiler features
5366 # -------------------------
5369 ac_ext=cpp
5370 ac_cpp='$CXXCPP $CPPFLAGS'
5371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5375 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5376 if test -z "$CXXCPP"; then
5377 if ${ac_cv_prog_CXXCPP+:} false; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 # Double quotes because CXXCPP needs to be expanded
5381 for CXXCPP in "$CXX -E" "/lib/cpp"
5383 ac_preproc_ok=false
5384 for ac_cxx_preproc_warn_flag in '' yes
5386 # Use a header file that comes with gcc, so configuring glibc
5387 # with a fresh cross-compiler works.
5388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5389 # <limits.h> exists even on freestanding compilers.
5390 # On the NeXT, cc -E runs the code through the compiler's parser,
5391 # not just through cpp. "Syntax error" is here to catch this case.
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 #ifdef __STDC__
5395 # include <limits.h>
5396 #else
5397 # include <assert.h>
5398 #endif
5399 Syntax error
5400 _ACEOF
5401 if ac_fn_cxx_try_cpp "$LINENO"; then :
5403 else
5404 # Broken: fails on valid input.
5405 continue
5407 rm -f conftest.err conftest.i conftest.$ac_ext
5409 # OK, works on sane cases. Now check whether nonexistent headers
5410 # can be detected and how.
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <ac_nonexistent.h>
5414 _ACEOF
5415 if ac_fn_cxx_try_cpp "$LINENO"; then :
5416 # Broken: success on invalid input.
5417 continue
5418 else
5419 # Passes both tests.
5420 ac_preproc_ok=:
5421 break
5423 rm -f conftest.err conftest.i conftest.$ac_ext
5425 done
5426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5427 rm -f conftest.i conftest.err conftest.$ac_ext
5428 if $ac_preproc_ok; then :
5429 break
5432 done
5433 ac_cv_prog_CXXCPP=$CXXCPP
5436 CXXCPP=$ac_cv_prog_CXXCPP
5437 else
5438 ac_cv_prog_CXXCPP=$CXXCPP
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5441 $as_echo "$CXXCPP" >&6; }
5442 ac_preproc_ok=false
5443 for ac_cxx_preproc_warn_flag in '' yes
5445 # Use a header file that comes with gcc, so configuring glibc
5446 # with a fresh cross-compiler works.
5447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5448 # <limits.h> exists even on freestanding compilers.
5449 # On the NeXT, cc -E runs the code through the compiler's parser,
5450 # not just through cpp. "Syntax error" is here to catch this case.
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453 #ifdef __STDC__
5454 # include <limits.h>
5455 #else
5456 # include <assert.h>
5457 #endif
5458 Syntax error
5459 _ACEOF
5460 if ac_fn_cxx_try_cpp "$LINENO"; then :
5462 else
5463 # Broken: fails on valid input.
5464 continue
5466 rm -f conftest.err conftest.i conftest.$ac_ext
5468 # OK, works on sane cases. Now check whether nonexistent headers
5469 # can be detected and how.
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 #include <ac_nonexistent.h>
5473 _ACEOF
5474 if ac_fn_cxx_try_cpp "$LINENO"; then :
5475 # Broken: success on invalid input.
5476 continue
5477 else
5478 # Passes both tests.
5479 ac_preproc_ok=:
5480 break
5482 rm -f conftest.err conftest.i conftest.$ac_ext
5484 done
5485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5486 rm -f conftest.i conftest.err conftest.$ac_ext
5487 if $ac_preproc_ok; then :
5489 else
5490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5492 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5493 See \`config.log' for more details" "$LINENO" 5; }
5496 ac_ext=cpp
5497 ac_cpp='$CXXCPP $CPPFLAGS'
5498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5504 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5505 if ${ac_cv_path_GREP+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if test -z "$GREP"; then
5509 ac_path_GREP_found=false
5510 # Loop through the user's path and test for each of PROGNAME-LIST
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_prog in grep ggrep; do
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5519 as_fn_executable_p "$ac_path_GREP" || continue
5520 # Check for GNU ac_path_GREP and select it if it is found.
5521 # Check for GNU $ac_path_GREP
5522 case `"$ac_path_GREP" --version 2>&1` in
5523 *GNU*)
5524 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5526 ac_count=0
5527 $as_echo_n 0123456789 >"conftest.in"
5528 while :
5530 cat "conftest.in" "conftest.in" >"conftest.tmp"
5531 mv "conftest.tmp" "conftest.in"
5532 cp "conftest.in" "conftest.nl"
5533 $as_echo 'GREP' >> "conftest.nl"
5534 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5536 as_fn_arith $ac_count + 1 && ac_count=$as_val
5537 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5538 # Best one so far, save it but keep looking for a better one
5539 ac_cv_path_GREP="$ac_path_GREP"
5540 ac_path_GREP_max=$ac_count
5542 # 10*(2^10) chars as input seems more than enough
5543 test $ac_count -gt 10 && break
5544 done
5545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5546 esac
5548 $ac_path_GREP_found && break 3
5549 done
5550 done
5551 done
5552 IFS=$as_save_IFS
5553 if test -z "$ac_cv_path_GREP"; then
5554 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5556 else
5557 ac_cv_path_GREP=$GREP
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5562 $as_echo "$ac_cv_path_GREP" >&6; }
5563 GREP="$ac_cv_path_GREP"
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5567 $as_echo_n "checking for egrep... " >&6; }
5568 if ${ac_cv_path_EGREP+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5572 then ac_cv_path_EGREP="$GREP -E"
5573 else
5574 if test -z "$EGREP"; then
5575 ac_path_EGREP_found=false
5576 # Loop through the user's path and test for each of PROGNAME-LIST
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_prog in egrep; do
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5585 as_fn_executable_p "$ac_path_EGREP" || continue
5586 # Check for GNU ac_path_EGREP and select it if it is found.
5587 # Check for GNU $ac_path_EGREP
5588 case `"$ac_path_EGREP" --version 2>&1` in
5589 *GNU*)
5590 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5592 ac_count=0
5593 $as_echo_n 0123456789 >"conftest.in"
5594 while :
5596 cat "conftest.in" "conftest.in" >"conftest.tmp"
5597 mv "conftest.tmp" "conftest.in"
5598 cp "conftest.in" "conftest.nl"
5599 $as_echo 'EGREP' >> "conftest.nl"
5600 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5602 as_fn_arith $ac_count + 1 && ac_count=$as_val
5603 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5604 # Best one so far, save it but keep looking for a better one
5605 ac_cv_path_EGREP="$ac_path_EGREP"
5606 ac_path_EGREP_max=$ac_count
5608 # 10*(2^10) chars as input seems more than enough
5609 test $ac_count -gt 10 && break
5610 done
5611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5612 esac
5614 $ac_path_EGREP_found && break 3
5615 done
5616 done
5617 done
5618 IFS=$as_save_IFS
5619 if test -z "$ac_cv_path_EGREP"; then
5620 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5622 else
5623 ac_cv_path_EGREP=$EGREP
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5629 $as_echo "$ac_cv_path_EGREP" >&6; }
5630 EGREP="$ac_cv_path_EGREP"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5634 $as_echo_n "checking for ANSI C header files... " >&6; }
5635 if ${ac_cv_header_stdc+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 #include <stdlib.h>
5641 #include <stdarg.h>
5642 #include <string.h>
5643 #include <float.h>
5646 main ()
5650 return 0;
5652 _ACEOF
5653 if ac_fn_cxx_try_compile "$LINENO"; then :
5654 ac_cv_header_stdc=yes
5655 else
5656 ac_cv_header_stdc=no
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 if test $ac_cv_header_stdc = yes; then
5661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 #include <string.h>
5666 _ACEOF
5667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5668 $EGREP "memchr" >/dev/null 2>&1; then :
5670 else
5671 ac_cv_header_stdc=no
5673 rm -f conftest*
5677 if test $ac_cv_header_stdc = yes; then
5678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <stdlib.h>
5683 _ACEOF
5684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5685 $EGREP "free" >/dev/null 2>&1; then :
5687 else
5688 ac_cv_header_stdc=no
5690 rm -f conftest*
5694 if test $ac_cv_header_stdc = yes; then
5695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5696 if test "$cross_compiling" = yes; then :
5698 else
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #include <ctype.h>
5702 #include <stdlib.h>
5703 #if ((' ' & 0x0FF) == 0x020)
5704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5706 #else
5707 # define ISLOWER(c) \
5708 (('a' <= (c) && (c) <= 'i') \
5709 || ('j' <= (c) && (c) <= 'r') \
5710 || ('s' <= (c) && (c) <= 'z'))
5711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5712 #endif
5714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5716 main ()
5718 int i;
5719 for (i = 0; i < 256; i++)
5720 if (XOR (islower (i), ISLOWER (i))
5721 || toupper (i) != TOUPPER (i))
5722 return 2;
5723 return 0;
5725 _ACEOF
5726 if ac_fn_cxx_try_run "$LINENO"; then :
5728 else
5729 ac_cv_header_stdc=no
5731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5732 conftest.$ac_objext conftest.beam conftest.$ac_ext
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5738 $as_echo "$ac_cv_header_stdc" >&6; }
5739 if test $ac_cv_header_stdc = yes; then
5741 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5746 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5747 inttypes.h stdint.h unistd.h
5748 do :
5749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5750 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5752 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5753 cat >>confdefs.h <<_ACEOF
5754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5755 _ACEOF
5759 done
5763 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5764 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5765 MINIX=yes
5766 else
5767 MINIX=
5771 if test "$MINIX" = yes; then
5773 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5776 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5779 $as_echo "#define _MINIX 1" >>confdefs.h
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5785 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5786 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5792 # define __EXTENSIONS__ 1
5793 $ac_includes_default
5795 main ()
5799 return 0;
5801 _ACEOF
5802 if ac_fn_cxx_try_compile "$LINENO"; then :
5803 ac_cv_safe_to_define___extensions__=yes
5804 else
5805 ac_cv_safe_to_define___extensions__=no
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5810 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5811 test $ac_cv_safe_to_define___extensions__ = yes &&
5812 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5814 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5816 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5818 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5820 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5824 ac_ext=c
5825 ac_cpp='$CPP $CPPFLAGS'
5826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5830 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5831 # On Suns, sometimes $CPP names a directory.
5832 if test -n "$CPP" && test -d "$CPP"; then
5833 CPP=
5835 if test -z "$CPP"; then
5836 if ${ac_cv_prog_CPP+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 # Double quotes because CPP needs to be expanded
5840 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5842 ac_preproc_ok=false
5843 for ac_c_preproc_warn_flag in '' yes
5845 # Use a header file that comes with gcc, so configuring glibc
5846 # with a fresh cross-compiler works.
5847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5848 # <limits.h> exists even on freestanding compilers.
5849 # On the NeXT, cc -E runs the code through the compiler's parser,
5850 # not just through cpp. "Syntax error" is here to catch this case.
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #ifdef __STDC__
5854 # include <limits.h>
5855 #else
5856 # include <assert.h>
5857 #endif
5858 Syntax error
5859 _ACEOF
5860 if ac_fn_c_try_cpp "$LINENO"; then :
5862 else
5863 # Broken: fails on valid input.
5864 continue
5866 rm -f conftest.err conftest.i conftest.$ac_ext
5868 # OK, works on sane cases. Now check whether nonexistent headers
5869 # can be detected and how.
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872 #include <ac_nonexistent.h>
5873 _ACEOF
5874 if ac_fn_c_try_cpp "$LINENO"; then :
5875 # Broken: success on invalid input.
5876 continue
5877 else
5878 # Passes both tests.
5879 ac_preproc_ok=:
5880 break
5882 rm -f conftest.err conftest.i conftest.$ac_ext
5884 done
5885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5886 rm -f conftest.i conftest.err conftest.$ac_ext
5887 if $ac_preproc_ok; then :
5888 break
5891 done
5892 ac_cv_prog_CPP=$CPP
5895 CPP=$ac_cv_prog_CPP
5896 else
5897 ac_cv_prog_CPP=$CPP
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5900 $as_echo "$CPP" >&6; }
5901 ac_preproc_ok=false
5902 for ac_c_preproc_warn_flag in '' yes
5904 # Use a header file that comes with gcc, so configuring glibc
5905 # with a fresh cross-compiler works.
5906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5907 # <limits.h> exists even on freestanding compilers.
5908 # On the NeXT, cc -E runs the code through the compiler's parser,
5909 # not just through cpp. "Syntax error" is here to catch this case.
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5912 #ifdef __STDC__
5913 # include <limits.h>
5914 #else
5915 # include <assert.h>
5916 #endif
5917 Syntax error
5918 _ACEOF
5919 if ac_fn_c_try_cpp "$LINENO"; then :
5921 else
5922 # Broken: fails on valid input.
5923 continue
5925 rm -f conftest.err conftest.i conftest.$ac_ext
5927 # OK, works on sane cases. Now check whether nonexistent headers
5928 # can be detected and how.
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5931 #include <ac_nonexistent.h>
5932 _ACEOF
5933 if ac_fn_c_try_cpp "$LINENO"; then :
5934 # Broken: success on invalid input.
5935 continue
5936 else
5937 # Passes both tests.
5938 ac_preproc_ok=:
5939 break
5941 rm -f conftest.err conftest.i conftest.$ac_ext
5943 done
5944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5945 rm -f conftest.i conftest.err conftest.$ac_ext
5946 if $ac_preproc_ok; then :
5948 else
5949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5951 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5952 See \`config.log' for more details" "$LINENO" 5; }
5955 ac_ext=cpp
5956 ac_cpp='$CXXCPP $CPPFLAGS'
5957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5962 $as_echo_n "checking for inline... " >&6; }
5963 if ${ac_cv_c_inline+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 ac_cv_c_inline=no
5967 for ac_kw in inline __inline__ __inline; do
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 #ifndef __cplusplus
5971 typedef int foo_t;
5972 static $ac_kw foo_t static_foo () {return 0; }
5973 $ac_kw foo_t foo () {return 0; }
5974 #endif
5976 _ACEOF
5977 if ac_fn_cxx_try_compile "$LINENO"; then :
5978 ac_cv_c_inline=$ac_kw
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 test "$ac_cv_c_inline" != no && break
5982 done
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5986 $as_echo "$ac_cv_c_inline" >&6; }
5988 case $ac_cv_c_inline in
5989 inline | yes) ;;
5991 case $ac_cv_c_inline in
5992 no) ac_val=;;
5993 *) ac_val=$ac_cv_c_inline;;
5994 esac
5995 cat >>confdefs.h <<_ACEOF
5996 #ifndef __cplusplus
5997 #define inline $ac_val
5998 #endif
5999 _ACEOF
6001 esac
6004 # Check whether --enable-largefile was given.
6005 if test "${enable_largefile+set}" = set; then :
6006 enableval=$enable_largefile;
6009 if test "$enable_largefile" != no; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6012 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6013 if ${ac_cv_sys_largefile_CC+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 ac_cv_sys_largefile_CC=no
6017 if test "$GCC" != yes; then
6018 ac_save_CC=$CC
6019 while :; do
6020 # IRIX 6.2 and later do not support large files by default,
6021 # so use the C compiler's -n32 option if that helps.
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 #include <sys/types.h>
6025 /* Check that off_t can represent 2**63 - 1 correctly.
6026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6027 since some C++ compilers masquerading as C compilers
6028 incorrectly reject 9223372036854775807. */
6029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6031 && LARGE_OFF_T % 2147483647 == 1)
6032 ? 1 : -1];
6034 main ()
6038 return 0;
6040 _ACEOF
6041 if ac_fn_cxx_try_compile "$LINENO"; then :
6042 break
6044 rm -f core conftest.err conftest.$ac_objext
6045 CC="$CC -n32"
6046 if ac_fn_cxx_try_compile "$LINENO"; then :
6047 ac_cv_sys_largefile_CC=' -n32'; break
6049 rm -f core conftest.err conftest.$ac_objext
6050 break
6051 done
6052 CC=$ac_save_CC
6053 rm -f conftest.$ac_ext
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6057 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6058 if test "$ac_cv_sys_largefile_CC" != no; then
6059 CC=$CC$ac_cv_sys_largefile_CC
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6063 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6064 if ${ac_cv_sys_file_offset_bits+:} false; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 while :; do
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #include <sys/types.h>
6071 /* Check that off_t can represent 2**63 - 1 correctly.
6072 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6073 since some C++ compilers masquerading as C compilers
6074 incorrectly reject 9223372036854775807. */
6075 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6077 && LARGE_OFF_T % 2147483647 == 1)
6078 ? 1 : -1];
6080 main ()
6084 return 0;
6086 _ACEOF
6087 if ac_fn_cxx_try_compile "$LINENO"; then :
6088 ac_cv_sys_file_offset_bits=no; break
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 #define _FILE_OFFSET_BITS 64
6094 #include <sys/types.h>
6095 /* Check that off_t can represent 2**63 - 1 correctly.
6096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6097 since some C++ compilers masquerading as C compilers
6098 incorrectly reject 9223372036854775807. */
6099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6101 && LARGE_OFF_T % 2147483647 == 1)
6102 ? 1 : -1];
6104 main ()
6108 return 0;
6110 _ACEOF
6111 if ac_fn_cxx_try_compile "$LINENO"; then :
6112 ac_cv_sys_file_offset_bits=64; break
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 ac_cv_sys_file_offset_bits=unknown
6116 break
6117 done
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6120 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6121 case $ac_cv_sys_file_offset_bits in #(
6122 no | unknown) ;;
6124 cat >>confdefs.h <<_ACEOF
6125 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6126 _ACEOF
6128 esac
6129 rm -rf conftest*
6130 if test $ac_cv_sys_file_offset_bits = unknown; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6132 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6133 if ${ac_cv_sys_large_files+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 while :; do
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 #include <sys/types.h>
6140 /* Check that off_t can represent 2**63 - 1 correctly.
6141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6142 since some C++ compilers masquerading as C compilers
6143 incorrectly reject 9223372036854775807. */
6144 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6146 && LARGE_OFF_T % 2147483647 == 1)
6147 ? 1 : -1];
6149 main ()
6153 return 0;
6155 _ACEOF
6156 if ac_fn_cxx_try_compile "$LINENO"; then :
6157 ac_cv_sys_large_files=no; break
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162 #define _LARGE_FILES 1
6163 #include <sys/types.h>
6164 /* Check that off_t can represent 2**63 - 1 correctly.
6165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6166 since some C++ compilers masquerading as C compilers
6167 incorrectly reject 9223372036854775807. */
6168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6170 && LARGE_OFF_T % 2147483647 == 1)
6171 ? 1 : -1];
6173 main ()
6177 return 0;
6179 _ACEOF
6180 if ac_fn_cxx_try_compile "$LINENO"; then :
6181 ac_cv_sys_large_files=1; break
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 ac_cv_sys_large_files=unknown
6185 break
6186 done
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6189 $as_echo "$ac_cv_sys_large_files" >&6; }
6190 case $ac_cv_sys_large_files in #(
6191 no | unknown) ;;
6193 cat >>confdefs.h <<_ACEOF
6194 #define _LARGE_FILES $ac_cv_sys_large_files
6195 _ACEOF
6197 esac
6198 rm -rf conftest*
6205 # sizeof(char) is 1 by definition.
6206 # The cast to long int works around a bug in the HP C Compiler
6207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6209 # This bug is HP SR number 8606223364.
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6211 $as_echo_n "checking size of void *... " >&6; }
6212 if ${ac_cv_sizeof_void_p+:} false; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6217 else
6218 if test "$ac_cv_type_void_p" = yes; then
6219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6221 as_fn_error 77 "cannot compute sizeof (void *)
6222 See \`config.log' for more details" "$LINENO" 5; }
6223 else
6224 ac_cv_sizeof_void_p=0
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6230 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6234 cat >>confdefs.h <<_ACEOF
6235 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6236 _ACEOF
6239 # The cast to long int works around a bug in the HP C Compiler
6240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6242 # This bug is HP SR number 8606223364.
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6244 $as_echo_n "checking size of short... " >&6; }
6245 if ${ac_cv_sizeof_short+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6250 else
6251 if test "$ac_cv_type_short" = yes; then
6252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6254 as_fn_error 77 "cannot compute sizeof (short)
6255 See \`config.log' for more details" "$LINENO" 5; }
6256 else
6257 ac_cv_sizeof_short=0
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6263 $as_echo "$ac_cv_sizeof_short" >&6; }
6267 cat >>confdefs.h <<_ACEOF
6268 #define SIZEOF_SHORT $ac_cv_sizeof_short
6269 _ACEOF
6272 # The cast to long int works around a bug in the HP C Compiler
6273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6275 # This bug is HP SR number 8606223364.
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6277 $as_echo_n "checking size of int... " >&6; }
6278 if ${ac_cv_sizeof_int+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6283 else
6284 if test "$ac_cv_type_int" = yes; then
6285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6287 as_fn_error 77 "cannot compute sizeof (int)
6288 See \`config.log' for more details" "$LINENO" 5; }
6289 else
6290 ac_cv_sizeof_int=0
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6296 $as_echo "$ac_cv_sizeof_int" >&6; }
6300 cat >>confdefs.h <<_ACEOF
6301 #define SIZEOF_INT $ac_cv_sizeof_int
6302 _ACEOF
6305 # The cast to long int works around a bug in the HP C Compiler
6306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6308 # This bug is HP SR number 8606223364.
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6310 $as_echo_n "checking size of long... " >&6; }
6311 if ${ac_cv_sizeof_long+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6316 else
6317 if test "$ac_cv_type_long" = yes; then
6318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6320 as_fn_error 77 "cannot compute sizeof (long)
6321 See \`config.log' for more details" "$LINENO" 5; }
6322 else
6323 ac_cv_sizeof_long=0
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6329 $as_echo "$ac_cv_sizeof_long" >&6; }
6333 cat >>confdefs.h <<_ACEOF
6334 #define SIZEOF_LONG $ac_cv_sizeof_long
6335 _ACEOF
6338 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6339 if test "x$ac_cv_type_long_long" = xyes; then :
6341 cat >>confdefs.h <<_ACEOF
6342 #define HAVE_LONG_LONG 1
6343 _ACEOF
6345 # The cast to long int works around a bug in the HP C Compiler
6346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6348 # This bug is HP SR number 8606223364.
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6350 $as_echo_n "checking size of long long... " >&6; }
6351 if ${ac_cv_sizeof_long_long+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6356 else
6357 if test "$ac_cv_type_long_long" = yes; then
6358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6360 as_fn_error 77 "cannot compute sizeof (long long)
6361 See \`config.log' for more details" "$LINENO" 5; }
6362 else
6363 ac_cv_sizeof_long_long=0
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6369 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6373 cat >>confdefs.h <<_ACEOF
6374 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6375 _ACEOF
6380 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6381 case $ac_cv_c_int8_t in #(
6382 no|yes) ;; #(
6385 cat >>confdefs.h <<_ACEOF
6386 #define int8_t $ac_cv_c_int8_t
6387 _ACEOF
6389 esac
6391 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6392 case $ac_cv_c_int16_t in #(
6393 no|yes) ;; #(
6396 cat >>confdefs.h <<_ACEOF
6397 #define int16_t $ac_cv_c_int16_t
6398 _ACEOF
6400 esac
6402 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6403 case $ac_cv_c_int32_t in #(
6404 no|yes) ;; #(
6407 cat >>confdefs.h <<_ACEOF
6408 #define int32_t $ac_cv_c_int32_t
6409 _ACEOF
6411 esac
6413 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6414 case $ac_cv_c_int64_t in #(
6415 no|yes) ;; #(
6418 cat >>confdefs.h <<_ACEOF
6419 #define int64_t $ac_cv_c_int64_t
6420 _ACEOF
6422 esac
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6426 $as_echo_n "checking for unsigned long long int... " >&6; }
6427 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 ac_cv_type_unsigned_long_long_int=yes
6431 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6435 /* For now, do not test the preprocessor; as of 2007 there are too many
6436 implementations with broken preprocessors. Perhaps this can
6437 be revisited in 2012. In the meantime, code should not expect
6438 #if to work with literals wider than 32 bits. */
6439 /* Test literals. */
6440 long long int ll = 9223372036854775807ll;
6441 long long int nll = -9223372036854775807LL;
6442 unsigned long long int ull = 18446744073709551615ULL;
6443 /* Test constant expressions. */
6444 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6445 ? 1 : -1)];
6446 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6447 ? 1 : -1)];
6448 int i = 63;
6450 main ()
6452 /* Test availability of runtime routines for shift and division. */
6453 long long int llmax = 9223372036854775807ll;
6454 unsigned long long int ullmax = 18446744073709551615ull;
6455 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6456 | (llmax / ll) | (llmax % ll)
6457 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6458 | (ullmax / ull) | (ullmax % ull));
6460 return 0;
6463 _ACEOF
6464 if ac_fn_cxx_try_link "$LINENO"; then :
6466 else
6467 ac_cv_type_unsigned_long_long_int=no
6469 rm -f core conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext conftest.$ac_ext
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6474 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6475 if test $ac_cv_type_unsigned_long_long_int = yes; then
6477 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6484 $as_echo_n "checking for long long int... " >&6; }
6485 if ${ac_cv_type_long_long_int+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 ac_cv_type_long_long_int=yes
6489 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6490 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6491 if test $ac_cv_type_long_long_int = yes; then
6492 if test "$cross_compiling" = yes; then :
6494 else
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 #include <limits.h>
6498 #ifndef LLONG_MAX
6499 # define HALF \
6500 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6501 # define LLONG_MAX (HALF - 1 + HALF)
6502 #endif
6504 main ()
6506 long long int n = 1;
6507 int i;
6508 for (i = 0; ; i++)
6510 long long int m = n << i;
6511 if (m >> i != n)
6512 return 1;
6513 if (LLONG_MAX / 2 < m)
6514 break;
6516 return 0;
6518 return 0;
6520 _ACEOF
6521 if ac_fn_cxx_try_run "$LINENO"; then :
6523 else
6524 ac_cv_type_long_long_int=no
6526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6527 conftest.$ac_objext conftest.beam conftest.$ac_ext
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6534 $as_echo "$ac_cv_type_long_long_int" >&6; }
6535 if test $ac_cv_type_long_long_int = yes; then
6537 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6543 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6544 if test "x$ac_cv_type_intmax_t" = xyes; then :
6546 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6548 else
6549 test $ac_cv_type_long_long_int = yes \
6550 && ac_type='long long int' \
6551 || ac_type='long int'
6553 cat >>confdefs.h <<_ACEOF
6554 #define intmax_t $ac_type
6555 _ACEOF
6561 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6562 if test "x$ac_cv_type_intptr_t" = xyes; then :
6564 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6566 else
6567 for ac_type in 'int' 'long int' 'long long int'; do
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570 $ac_includes_default
6572 main ()
6574 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6575 test_array [0] = 0;
6576 return test_array [0];
6579 return 0;
6581 _ACEOF
6582 if ac_fn_cxx_try_compile "$LINENO"; then :
6584 cat >>confdefs.h <<_ACEOF
6585 #define intptr_t $ac_type
6586 _ACEOF
6588 ac_type=
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 test -z "$ac_type" && break
6592 done
6596 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6597 case $ac_cv_c_uint8_t in #(
6598 no|yes) ;; #(
6601 $as_echo "#define _UINT8_T 1" >>confdefs.h
6604 cat >>confdefs.h <<_ACEOF
6605 #define uint8_t $ac_cv_c_uint8_t
6606 _ACEOF
6608 esac
6610 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6611 case $ac_cv_c_uint16_t in #(
6612 no|yes) ;; #(
6616 cat >>confdefs.h <<_ACEOF
6617 #define uint16_t $ac_cv_c_uint16_t
6618 _ACEOF
6620 esac
6622 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6623 case $ac_cv_c_uint32_t in #(
6624 no|yes) ;; #(
6627 $as_echo "#define _UINT32_T 1" >>confdefs.h
6630 cat >>confdefs.h <<_ACEOF
6631 #define uint32_t $ac_cv_c_uint32_t
6632 _ACEOF
6634 esac
6636 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6637 case $ac_cv_c_uint64_t in #(
6638 no|yes) ;; #(
6641 $as_echo "#define _UINT64_T 1" >>confdefs.h
6644 cat >>confdefs.h <<_ACEOF
6645 #define uint64_t $ac_cv_c_uint64_t
6646 _ACEOF
6648 esac
6652 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6653 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6655 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6657 else
6658 test $ac_cv_type_unsigned_long_long_int = yes \
6659 && ac_type='unsigned long long int' \
6660 || ac_type='unsigned long int'
6662 cat >>confdefs.h <<_ACEOF
6663 #define uintmax_t $ac_type
6664 _ACEOF
6670 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6671 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6673 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6675 else
6676 for ac_type in 'unsigned int' 'unsigned long int' \
6677 'unsigned long long int'; do
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 $ac_includes_default
6682 main ()
6684 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6685 test_array [0] = 0;
6686 return test_array [0];
6689 return 0;
6691 _ACEOF
6692 if ac_fn_cxx_try_compile "$LINENO"; then :
6694 cat >>confdefs.h <<_ACEOF
6695 #define uintptr_t $ac_type
6696 _ACEOF
6698 ac_type=
6700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701 test -z "$ac_type" && break
6702 done
6718 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6719 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6722 # check what underlying integer type int64_t uses
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6724 $as_echo_n "checking for int64_t underlying type... " >&6; }
6725 if ${ac_cv_int64_t_type+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6732 #ifdef HAVE_STDINT_H
6733 #include <stdint.h>
6734 #endif
6735 template <typename T> struct X { };
6736 template <>
6737 struct X<long> { typedef long t; };
6740 main ()
6742 X<int64_t>::t x;
6744 return 0;
6746 _ACEOF
6747 if ac_fn_cxx_try_compile "$LINENO"; then :
6748 ac_cv_int64_t_type=long
6749 else
6750 ac_cv_int64_t_type="long long"
6752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6755 $as_echo "$ac_cv_int64_t_type" >&6; }
6756 if test "$ac_cv_int64_t_type" = "long"; then
6758 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6760 else
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6764 #ifdef HAVE_STDINT_H
6765 #include <stdint.h>
6766 #endif
6767 template <typename T> struct X { };
6768 template <>
6769 struct X<long long> { typedef long long t; };
6772 main ()
6774 X<int64_t>::t x;
6776 return 0;
6778 _ACEOF
6779 if ac_fn_cxx_try_compile "$LINENO"; then :
6781 else
6782 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6788 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6789 if ${ac_cv_std_swap_in_utility+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6796 #include <utility>
6799 main ()
6801 int a, b; std::swap(a,b);
6803 return 0;
6805 _ACEOF
6806 if ac_fn_cxx_try_compile "$LINENO"; then :
6807 ac_cv_std_swap_in_utility=yes
6808 else
6809 ac_cv_std_swap_in_utility=no
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6814 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6815 if test $ac_cv_std_swap_in_utility = yes; then
6817 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6821 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6822 # If the host compiler is affected by the bug, and we build with optimization
6823 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6824 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6825 # Since there is no reliable feature check for the presence of this bug,
6826 # we simply use a GCC version number check. (This should never trigger for
6827 # stages 2 or 3 of a native bootstrap.)
6828 aliasing_flags=
6829 if test "$GCC" = yes; then
6830 saved_CXXFLAGS="$CXXFLAGS"
6832 # The following test compilation will succeed if and only if $CXX accepts
6833 # -fno-strict-aliasing *and* is older than GCC 4.3.
6834 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6836 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6840 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6841 #error compiler not affected by placement new aliasing bug
6842 #endif
6844 _ACEOF
6845 if ac_fn_cxx_try_compile "$LINENO"; then :
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6847 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 CXXFLAGS="$saved_CXXFLAGS"
6860 # ---------------------
6861 # Warnings and checking
6862 # ---------------------
6864 # Check $CC warning features (if it's GCC).
6865 # We want to use -pedantic, but we don't want warnings about
6866 # * 'long long'
6867 # * variadic macros
6868 # * overlong strings
6869 # * C++11 narrowing conversions in { }
6870 # So, we only use -pedantic if we can disable those warnings.
6872 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6873 # Check whether --enable-build-format-warnings was given.
6874 if test "${enable_build_format_warnings+set}" = set; then :
6875 enableval=$enable_build_format_warnings;
6876 else
6877 enable_build_format_warnings=yes
6880 if test $enable_build_format_warnings = no; then :
6881 wf_opt=-Wno-format
6882 else
6883 wf_opt=
6885 ac_ext=cpp
6886 ac_cpp='$CXXCPP $CPPFLAGS'
6887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6891 loose_warn=
6892 save_CXXFLAGS="$CXXFLAGS"
6893 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6894 # Do the check with the no- prefix removed since gcc silently
6895 # accepts any -Wno-* option on purpose
6896 case $real_option in
6897 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6898 *) option=$real_option ;;
6899 esac
6900 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6903 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6904 if eval \${$as_acx_Woption+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 CXXFLAGS="$option"
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6912 main ()
6916 return 0;
6918 _ACEOF
6919 if ac_fn_cxx_try_compile "$LINENO"; then :
6920 eval "$as_acx_Woption=yes"
6921 else
6922 eval "$as_acx_Woption=no"
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 eval ac_res=\$$as_acx_Woption
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6929 $as_echo "$ac_res" >&6; }
6930 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6931 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6933 done
6934 CXXFLAGS="$save_CXXFLAGS"
6935 ac_ext=cpp
6936 ac_cpp='$CXXCPP $CPPFLAGS'
6937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6943 ac_ext=c
6944 ac_cpp='$CPP $CPPFLAGS'
6945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949 c_loose_warn=
6950 save_CFLAGS="$CFLAGS"
6951 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6952 # Do the check with the no- prefix removed since gcc silently
6953 # accepts any -Wno-* option on purpose
6954 case $real_option in
6955 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6956 *) option=$real_option ;;
6957 esac
6958 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6961 $as_echo_n "checking whether $CC supports $option... " >&6; }
6962 if eval \${$as_acx_Woption+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 CFLAGS="$option"
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6970 main ()
6974 return 0;
6976 _ACEOF
6977 if ac_fn_c_try_compile "$LINENO"; then :
6978 eval "$as_acx_Woption=yes"
6979 else
6980 eval "$as_acx_Woption=no"
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 eval ac_res=\$$as_acx_Woption
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6987 $as_echo "$ac_res" >&6; }
6988 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6989 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6991 done
6992 CFLAGS="$save_CFLAGS"
6993 ac_ext=cpp
6994 ac_cpp='$CXXCPP $CPPFLAGS'
6995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7000 ac_ext=cpp
7001 ac_cpp='$CXXCPP $CPPFLAGS'
7002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7006 strict_warn=
7007 save_CXXFLAGS="$CXXFLAGS"
7008 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
7009 # Do the check with the no- prefix removed since gcc silently
7010 # accepts any -Wno-* option on purpose
7011 case $real_option in
7012 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7013 *) option=$real_option ;;
7014 esac
7015 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7018 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7019 if eval \${$as_acx_Woption+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 CXXFLAGS="$option"
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7027 main ()
7031 return 0;
7033 _ACEOF
7034 if ac_fn_cxx_try_compile "$LINENO"; then :
7035 eval "$as_acx_Woption=yes"
7036 else
7037 eval "$as_acx_Woption=no"
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 eval ac_res=\$$as_acx_Woption
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7044 $as_echo "$ac_res" >&6; }
7045 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7046 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7048 done
7049 CXXFLAGS="$save_CXXFLAGS"
7050 ac_ext=cpp
7051 ac_cpp='$CXXCPP $CPPFLAGS'
7052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7057 ac_ext=c
7058 ac_cpp='$CPP $CPPFLAGS'
7059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7063 c_strict_warn=
7064 save_CFLAGS="$CFLAGS"
7065 for real_option in -Wold-style-definition -Wc++-compat; do
7066 # Do the check with the no- prefix removed since gcc silently
7067 # accepts any -Wno-* option on purpose
7068 case $real_option in
7069 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7070 *) option=$real_option ;;
7071 esac
7072 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7075 $as_echo_n "checking whether $CC supports $option... " >&6; }
7076 if eval \${$as_acx_Woption+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 CFLAGS="$option"
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7084 main ()
7088 return 0;
7090 _ACEOF
7091 if ac_fn_c_try_compile "$LINENO"; then :
7092 eval "$as_acx_Woption=yes"
7093 else
7094 eval "$as_acx_Woption=no"
7096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 eval ac_res=\$$as_acx_Woption
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7101 $as_echo "$ac_res" >&6; }
7102 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7103 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7105 done
7106 CFLAGS="$save_CFLAGS"
7107 ac_ext=cpp
7108 ac_cpp='$CXXCPP $CPPFLAGS'
7109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7114 ac_ext=cpp
7115 ac_cpp='$CXXCPP $CPPFLAGS'
7116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7120 # Do the check with the no- prefix removed from the warning options
7121 # since gcc silently accepts any -Wno-* option on purpose
7122 if test "$GXX" = yes; then :
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7124 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7125 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 save_CXXFLAGS="$CXXFLAGS"
7129 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7134 main ()
7138 return 0;
7140 _ACEOF
7141 if ac_fn_cxx_try_compile "$LINENO"; then :
7142 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7143 else
7144 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147 CXXFLAGS="$save_CXXFLAGS"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7150 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7151 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7152 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7156 ac_ext=cpp
7157 ac_cpp='$CXXCPP $CPPFLAGS'
7158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7163 ac_ext=cpp
7164 ac_cpp='$CXXCPP $CPPFLAGS'
7165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7169 # Check whether --enable-werror-always was given.
7170 if test "${enable_werror_always+set}" = set; then :
7171 enableval=$enable_werror_always;
7172 else
7173 enable_werror_always=no
7176 if test $enable_werror_always = yes; then :
7177 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7180 ac_ext=cpp
7181 ac_cpp='$CXXCPP $CPPFLAGS'
7182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7188 # The above macros do nothing if the compiler is not GCC. However, the
7189 # Makefile has more goo to add other flags, so these variables are used
7190 # to enable warnings only for GCC.
7191 warn_cflags=
7192 warn_cxxflags=
7193 if test "x$GCC" = "xyes"; then
7194 warn_cflags='$(GCC_WARN_CFLAGS)'
7195 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7200 # Disable exceptions and RTTI if building with g++
7201 ac_ext=c
7202 ac_cpp='$CPP $CPPFLAGS'
7203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7207 noexception_flags=
7208 save_CFLAGS="$CFLAGS"
7209 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7210 # Do the check with the no- prefix removed since gcc silently
7211 # accepts any -Wno-* option on purpose
7212 case $real_option in
7213 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7214 *) option=$real_option ;;
7215 esac
7216 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7219 $as_echo_n "checking whether $CC supports $option... " >&6; }
7220 if eval \${$as_acx_Woption+:} false; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 CFLAGS="$option"
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7228 main ()
7232 return 0;
7234 _ACEOF
7235 if ac_fn_c_try_compile "$LINENO"; then :
7236 eval "$as_acx_Woption=yes"
7237 else
7238 eval "$as_acx_Woption=no"
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 eval ac_res=\$$as_acx_Woption
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7245 $as_echo "$ac_res" >&6; }
7246 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7247 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7249 done
7250 CFLAGS="$save_CFLAGS"
7251 ac_ext=cpp
7252 ac_cpp='$CXXCPP $CPPFLAGS'
7253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7259 # Enable expensive internal checks
7260 is_release=
7261 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7262 is_release=yes
7265 # Check whether --enable-checking was given.
7266 if test "${enable_checking+set}" = set; then :
7267 enableval=$enable_checking; ac_checking_flags="${enableval}"
7268 else
7270 # Determine the default checks.
7271 if test x$is_release = x ; then
7272 ac_checking_flags=yes,extra
7273 else
7274 ac_checking_flags=release
7278 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7279 for check in release $ac_checking_flags
7281 case $check in
7282 # these set all the flags to specific states
7283 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7284 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7285 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7286 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7287 ac_tree_checking=1 ; ac_valgrind_checking= ;
7288 ac_types_checking=1 ;;
7289 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7290 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7291 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7292 ac_rtlflag_checking= ; ac_runtime_checking= ;
7293 ac_tree_checking= ; ac_valgrind_checking= ;
7294 ac_types_checking= ;;
7295 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7296 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7297 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7298 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7299 ac_tree_checking=1 ; ac_valgrind_checking= ;
7300 ac_types_checking=1 ;;
7301 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7302 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7303 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7304 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7305 ac_tree_checking= ; ac_valgrind_checking= ;
7306 ac_types_checking= ;;
7307 # these enable particular checks
7308 assert) ac_assert_checking=1 ;;
7309 df) ac_df_checking=1 ;;
7310 extra) ac_extra_checking=1 ;;
7311 fold) ac_fold_checking=1 ;;
7312 gc) ac_gc_checking=1 ;;
7313 gcac) ac_gc_always_collect=1 ;;
7314 gimple) ac_gimple_checking=1 ;;
7315 misc) ac_checking=1 ;;
7316 rtl) ac_rtl_checking=1 ;;
7317 rtlflag) ac_rtlflag_checking=1 ;;
7318 runtime) ac_runtime_checking=1 ;;
7319 tree) ac_tree_checking=1 ;;
7320 types) ac_types_checking=1 ;;
7321 valgrind) ac_valgrind_checking=1 ;;
7322 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7323 esac
7324 done
7325 IFS="$ac_save_IFS"
7327 nocommon_flag=""
7328 if test x$ac_checking != x ; then
7330 $as_echo "#define CHECKING_P 1" >>confdefs.h
7332 nocommon_flag=-fno-common
7333 else
7334 $as_echo "#define CHECKING_P 0" >>confdefs.h
7338 if test x$ac_extra_checking != x ; then
7340 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7342 else
7343 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7346 if test x$ac_df_checking != x ; then
7348 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7351 if test x$ac_assert_checking != x ; then
7353 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7356 if test x$ac_gimple_checking != x ; then
7358 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7362 if test x$ac_runtime_checking != x ; then
7364 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7367 if test x$ac_tree_checking != x ; then
7369 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7371 TREECHECKING=yes
7373 if test x$ac_types_checking != x ; then
7375 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7379 if test x$ac_rtl_checking != x ; then
7381 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7384 if test x$ac_rtlflag_checking != x ; then
7386 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7389 if test x$ac_gc_checking != x ; then
7391 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7394 if test x$ac_gc_always_collect != x ; then
7396 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7399 if test x$ac_fold_checking != x ; then
7401 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7404 valgrind_path_defines=
7405 valgrind_command=
7407 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7408 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7409 have_valgrind_h=yes
7410 else
7411 have_valgrind_h=no
7416 # It is certainly possible that there's valgrind but no valgrind.h.
7417 # GCC relies on making annotations so we must have both.
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7419 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #include <valgrind/memcheck.h>
7423 #ifndef VALGRIND_DISCARD
7424 #error VALGRIND_DISCARD not defined
7425 #endif
7426 _ACEOF
7427 if ac_fn_cxx_try_cpp "$LINENO"; then :
7428 gcc_cv_header_valgrind_memcheck_h=yes
7429 else
7430 gcc_cv_header_valgrind_memcheck_h=no
7432 rm -f conftest.err conftest.i conftest.$ac_ext
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7434 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7436 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7439 #include <memcheck.h>
7440 #ifndef VALGRIND_DISCARD
7441 #error VALGRIND_DISCARD not defined
7442 #endif
7443 _ACEOF
7444 if ac_fn_cxx_try_cpp "$LINENO"; then :
7445 gcc_cv_header_memcheck_h=yes
7446 else
7447 gcc_cv_header_memcheck_h=no
7449 rm -f conftest.err conftest.i conftest.$ac_ext
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7451 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7452 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7454 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7457 if test $gcc_cv_header_memcheck_h = yes; then
7459 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7463 if test x$ac_valgrind_checking != x ; then
7465 # Prepare PATH_SEPARATOR.
7466 # The user is always right.
7467 if test "${PATH_SEPARATOR+set}" != set; then
7468 echo "#! /bin/sh" >conf$$.sh
7469 echo "exit 0" >>conf$$.sh
7470 chmod +x conf$$.sh
7471 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7472 PATH_SEPARATOR=';'
7473 else
7474 PATH_SEPARATOR=:
7476 rm -f conf$$.sh
7479 # Find out how to test for executable files. Don't use a zero-byte file,
7480 # as systems may use methods other than mode bits to determine executability.
7481 cat >conf$$.file <<_ASEOF
7482 #! /bin/sh
7483 exit 0
7484 _ASEOF
7485 chmod +x conf$$.file
7486 if test -x conf$$.file >/dev/null 2>&1; then
7487 ac_executable_p="test -x"
7488 else
7489 ac_executable_p="test -f"
7491 rm -f conf$$.file
7493 # Extract the first word of "valgrind", so it can be a program name with args.
7494 set dummy valgrind; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_path_valgrind_path+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 case "$valgrind_path" in
7501 [\\/]* | ?:[\\/]*)
7502 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7505 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7506 for ac_dir in $PATH; do
7507 IFS="$ac_save_IFS"
7508 test -z "$ac_dir" && ac_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7511 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7512 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7513 break 2
7516 done
7517 done
7518 IFS="$ac_save_IFS"
7520 esac
7522 valgrind_path="$ac_cv_path_valgrind_path"
7523 if test -n "$valgrind_path"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7525 $as_echo "$valgrind_path" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7531 if test "x$valgrind_path" = "x" \
7532 || (test $have_valgrind_h = no \
7533 && test $gcc_cv_header_memcheck_h = no \
7534 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7535 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7537 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7538 valgrind_command="$valgrind_path -q"
7540 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7546 # Enable code coverage collection
7547 # Check whether --enable-coverage was given.
7548 if test "${enable_coverage+set}" = set; then :
7549 enableval=$enable_coverage; case "${enableval}" in
7550 yes|noopt)
7551 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7553 opt)
7554 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7557 # a.k.a. --disable-coverage
7558 coverage_flags=""
7561 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7563 esac
7564 else
7565 coverage_flags=""
7570 # Check whether --enable-gather-detailed-mem-stats was given.
7571 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7572 enableval=$enable_gather_detailed_mem_stats;
7573 else
7574 enable_gather_detailed_mem_stats=no
7577 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7579 cat >>confdefs.h <<_ACEOF
7580 #define GATHER_STATISTICS $gather_stats
7581 _ACEOF
7584 # Check whether --enable-valgrind-annotations was given.
7585 if test "${enable_valgrind_annotations+set}" = set; then :
7586 enableval=$enable_valgrind_annotations;
7587 else
7588 enable_valgrind_annotations=no
7591 if test x$enable_valgrind_annotations != xno \
7592 || test x$ac_valgrind_checking != x; then
7593 if (test $have_valgrind_h = no \
7594 && test $gcc_cv_header_memcheck_h = no \
7595 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7596 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7599 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7603 # -------------------------------
7604 # Miscenalleous configure options
7605 # -------------------------------
7607 # With stabs
7609 # Check whether --with-stabs was given.
7610 if test "${with_stabs+set}" = set; then :
7611 withval=$with_stabs; stabs="$with_stabs"
7612 else
7613 stabs=no
7617 # Determine whether or not multilibs are enabled.
7618 # Check whether --enable-multilib was given.
7619 if test "${enable_multilib+set}" = set; then :
7620 enableval=$enable_multilib;
7621 else
7622 enable_multilib=yes
7627 # Determine whether or not multiarch is enabled.
7628 # Check whether --enable-multiarch was given.
7629 if test "${enable_multiarch+set}" = set; then :
7630 enableval=$enable_multiarch; case "${enableval}" in
7631 yes|no|auto) enable_multiarch=$enableval;;
7632 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7633 esac
7634 else
7635 enable_multiarch=auto
7638 if test x${enable_multiarch} = xauto; then
7639 if test x${with_native_system_header_dir} != x; then
7640 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7641 enable_multiarch=no
7643 if test x$host != x$target && test "x$with_sysroot" = x; then
7644 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7645 enable_multiarch=no
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7649 $as_echo_n "checking for multiarch configuration... " >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7652 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7654 # needed for setting the multiarch name for soft-float/hard-float ABIs
7658 # default stack clash protection guard size as power of twos in bytes.
7659 # Please keep these in sync with params.def.
7660 stk_clash_min=12
7661 stk_clash_max=30
7663 # Keep the default value when the option is not used to 0, this allows us to
7664 # distinguish between the cases where the user specifially set a value via
7665 # configure and when the normal default value is used.
7667 # Check whether --with-stack-clash-protection-guard-size was given.
7668 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7669 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7670 else
7671 DEFAULT_STK_CLASH_GUARD_SIZE=0
7674 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7675 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7676 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7677 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
7681 cat >>confdefs.h <<_ACEOF
7682 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7683 _ACEOF
7686 # Enable __cxa_atexit for C++.
7687 # Check whether --enable-__cxa_atexit was given.
7688 if test "${enable___cxa_atexit+set}" = set; then :
7689 enableval=$enable___cxa_atexit;
7693 # Enable C extension for decimal float if target supports it.
7695 # Check whether --enable-decimal-float was given.
7696 if test "${enable_decimal_float+set}" = set; then :
7697 enableval=$enable_decimal_float;
7698 case $enable_decimal_float in
7699 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7700 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7701 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7702 esac
7704 else
7706 case $target in
7707 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7708 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7709 i?86*-*-mingw* | x86_64*-*-mingw* | \
7710 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7711 enable_decimal_float=yes
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7715 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7716 enable_decimal_float=no
7718 esac
7723 # x86's use BID format instead of DPD
7724 case x$enable_decimal_float in
7725 xyes)
7726 case $target in
7727 i?86*-*-* | x86_64*-*-*)
7728 enable_decimal_float=bid
7731 enable_decimal_float=dpd
7733 esac
7734 default_decimal_float=$enable_decimal_float
7736 xno)
7737 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7738 # dependency on libdecnumber.
7739 default_decimal_float=dpd
7741 esac
7746 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7748 cat >>confdefs.h <<_ACEOF
7749 #define ENABLE_DECIMAL_FLOAT $dfp
7750 _ACEOF
7753 # Use default_decimal_float for dependency.
7754 enable_decimal_float=$default_decimal_float
7756 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7758 cat >>confdefs.h <<_ACEOF
7759 #define ENABLE_DECIMAL_BID_FORMAT $bid
7760 _ACEOF
7763 # Enable C extension for fixed-point arithmetic.
7764 # Check whether --enable-fixed-point was given.
7765 if test "${enable_fixed_point+set}" = set; then :
7766 enableval=$enable_fixed_point;
7767 else
7769 case $target in
7770 arm*)
7771 enable_fixed_point=yes
7774 mips*-*-*)
7775 enable_fixed_point=yes
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7779 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7780 enable_fixed_point=no
7782 esac
7788 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7790 cat >>confdefs.h <<_ACEOF
7791 #define ENABLE_FIXED_POINT $fixedpoint
7792 _ACEOF
7795 # Enable threads
7796 # Pass with no value to take the default
7797 # Pass with a value to specify a thread package
7798 # Check whether --enable-threads was given.
7799 if test "${enable_threads+set}" = set; then :
7800 enableval=$enable_threads;
7801 else
7802 enable_threads=''
7806 # Check whether --enable-tls was given.
7807 if test "${enable_tls+set}" = set; then :
7808 enableval=$enable_tls;
7809 case $enable_tls in
7810 yes | no) ;;
7811 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7812 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7813 esac
7815 else
7816 enable_tls=''
7820 # Check whether --enable-vtable-verify was given.
7821 if test "${enable_vtable_verify+set}" = set; then :
7822 enableval=$enable_vtable_verify;
7823 else
7824 enable_vtable_verify=no
7827 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7829 cat >>confdefs.h <<_ACEOF
7830 #define ENABLE_VTABLE_VERIFY $vtable_verify
7831 _ACEOF
7834 # Check whether --enable-analyzer was given.
7835 if test "${enable_analyzer+set}" = set; then :
7836 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7837 analyzer=0
7838 else
7839 analyzer=1
7841 else
7842 analyzer=1
7846 cat >>confdefs.h <<_ACEOF
7847 #define ENABLE_ANALYZER $analyzer
7848 _ACEOF
7851 # Check whether --enable-objc-gc was given.
7852 if test "${enable_objc_gc+set}" = set; then :
7853 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7854 objc_boehm_gc=''
7855 else
7856 objc_boehm_gc=1
7858 else
7859 objc_boehm_gc=''
7864 # Check whether --with-dwarf2 was given.
7865 if test "${with_dwarf2+set}" = set; then :
7866 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7867 else
7868 dwarf2=no
7872 # Check whether --enable-shared was given.
7873 if test "${enable_shared+set}" = set; then :
7874 enableval=$enable_shared;
7875 case $enable_shared in
7876 yes | no) ;;
7878 enable_shared=no
7879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7880 for pkg in $enableval; do
7881 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7882 enable_shared=yes
7884 done
7885 IFS="$ac_save_ifs"
7887 esac
7889 else
7890 enable_shared=yes
7895 # Check whether --enable-gcov was given.
7896 if test "${enable_gcov+set}" = set; then :
7897 enableval=$enable_gcov;
7898 else
7899 enable_gcov=yes
7905 # Check whether --with-specs was given.
7906 if test "${with_specs+set}" = set; then :
7907 withval=$with_specs; CONFIGURE_SPECS=$withval
7908 else
7909 CONFIGURE_SPECS=
7917 # Check whether --with-pkgversion was given.
7918 if test "${with_pkgversion+set}" = set; then :
7919 withval=$with_pkgversion; case "$withval" in
7920 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7921 no) PKGVERSION= ;;
7922 *) PKGVERSION="($withval) " ;;
7923 esac
7924 else
7925 PKGVERSION="(GCC) "
7933 # Check whether --with-bugurl was given.
7934 if test "${with_bugurl+set}" = set; then :
7935 withval=$with_bugurl; case "$withval" in
7936 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7937 no) BUGURL=
7939 *) BUGURL="$withval"
7941 esac
7942 else
7943 BUGURL="https://gcc.gnu.org/bugs/"
7947 case ${BUGURL} in
7949 REPORT_BUGS_TO=
7950 REPORT_BUGS_TEXI=
7953 REPORT_BUGS_TO="<$BUGURL>"
7954 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7956 esac;
7961 # Allow overriding the default URL for documentation
7963 # Check whether --with-documentation-root-url was given.
7964 if test "${with_documentation_root_url+set}" = set; then :
7965 withval=$with_documentation_root_url; case "$withval" in
7966 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7967 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7968 */) DOCUMENTATION_ROOT_URL="$withval" ;;
7969 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
7970 esac
7971 else
7972 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7977 cat >>confdefs.h <<_ACEOF
7978 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7979 _ACEOF
7982 # Allow overriding the default URL for GCC changes
7984 # Check whether --with-changes-root-url was given.
7985 if test "${with_changes_root_url+set}" = set; then :
7986 withval=$with_changes_root_url; case "$withval" in
7987 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7988 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7989 */) CHANGES_ROOT_URL="$withval" ;;
7990 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
7991 esac
7992 else
7993 CHANGES_ROOT_URL="https://gcc.gnu.org/"
7998 cat >>confdefs.h <<_ACEOF
7999 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8000 _ACEOF
8003 # Sanity check enable_languages in case someone does not run the toplevel
8004 # configure # script.
8005 # Check whether --enable-languages was given.
8006 if test "${enable_languages+set}" = set; then :
8007 enableval=$enable_languages; case ,${enable_languages}, in
8008 ,,|,yes,)
8009 # go safe -- we cannot be much sure without the toplevel
8010 # configure's
8011 # analysis of which target libs are present and usable
8012 enable_languages=c
8014 *,all,*)
8015 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8017 *,c,*)
8020 enable_languages=c,${enable_languages}
8022 esac
8023 else
8024 enable_languages=c
8028 # If top-level libada has been disabled, then wire in install-gnatlib
8029 # invocation with `make install', so that one can build and install
8030 # the library manually with `make -C gcc all gnatlib gnattools install'.
8031 if test x"$enable_libada" = xno; then
8032 gnat_install_lib=gnat-install-lib
8033 else
8034 gnat_install_lib=
8038 if test x"$enable_as_accelerator_for" != x; then
8040 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8042 enable_as_accelerator=yes
8043 case "${target}" in
8044 *-intelmicemul-*)
8045 # In this case we expect offload compiler to be built as native, so we
8046 # need to rename the driver to avoid clashes with host's drivers.
8047 program_transform_name="s&^&${target}-&" ;;
8048 esac
8049 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8050 program_transform_name=`echo $program_transform_name | sed $sedscript`
8051 accel_dir_suffix=/accel/${target_noncanonical}
8052 real_target_noncanonical=${enable_as_accelerator_for}
8058 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8059 tgt=`echo $tgt | sed 's/=.*//'`
8061 enable_offloading=1
8062 case "$tgt" in
8063 *-intelmic-* | *-intelmicemul-*)
8064 omp_device_property=omp-device-properties-i386
8065 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8067 amdgcn*)
8068 omp_device_property=omp-device-properties-gcn
8069 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8071 nvptx*)
8072 omp_device_property=omp-device-properties-nvptx
8073 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8076 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8078 esac
8079 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8080 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8082 if test x"$offload_targets" = x; then
8083 offload_targets=$tgt
8084 else
8085 offload_targets="$offload_targets,$tgt"
8087 done
8092 cat >>confdefs.h <<_ACEOF
8093 #define OFFLOAD_TARGETS "$offload_targets"
8094 _ACEOF
8096 if test x"$enable_offloading" != x; then
8098 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8100 else
8102 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8106 if test "x$enable_offload_defaulted" = xyes; then
8108 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8113 # Check whether --with-multilib-list was given.
8114 if test "${with_multilib_list+set}" = set; then :
8115 withval=$with_multilib_list; :
8116 else
8117 with_multilib_list=default
8122 # Check whether --with-multilib-generator was given.
8123 if test "${with_multilib_generator+set}" = set; then :
8124 withval=$with_multilib_generator; :
8125 else
8126 with_multilib_generator=default
8130 # -------------------------
8131 # Checks for other programs
8132 # -------------------------
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8135 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8136 set x ${MAKE-make}
8137 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8138 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 cat >conftest.make <<\_ACEOF
8142 SHELL = /bin/sh
8143 all:
8144 @echo '@@@%%%=$(MAKE)=@@@%%%'
8145 _ACEOF
8146 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8147 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8148 *@@@%%%=?*=@@@%%%*)
8149 eval ac_cv_prog_make_${ac_make}_set=yes;;
8151 eval ac_cv_prog_make_${ac_make}_set=no;;
8152 esac
8153 rm -f conftest.make
8155 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8157 $as_echo "yes" >&6; }
8158 SET_MAKE=
8159 else
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8162 SET_MAKE="MAKE=${MAKE-make}"
8166 # Find some useful tools
8167 for ac_prog in gawk mawk nawk awk
8169 # Extract the first word of "$ac_prog", so it can be a program name with args.
8170 set dummy $ac_prog; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_prog_AWK+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$AWK"; then
8177 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_AWK="$ac_prog"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8190 done
8191 done
8192 IFS=$as_save_IFS
8196 AWK=$ac_cv_prog_AWK
8197 if test -n "$AWK"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8199 $as_echo "$AWK" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8206 test -n "$AWK" && break
8207 done
8209 # We need awk to create options.c and options.h.
8210 # Bail out if it's missing.
8211 case ${AWK} in
8212 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8213 esac
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8216 $as_echo_n "checking whether ln -s works... " >&6; }
8217 if ${gcc_cv_prog_LN_S+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 rm -f conftestdata_t
8221 echo >conftestdata_f
8222 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8223 then
8224 gcc_cv_prog_LN_S="ln -s"
8225 else
8226 if ln conftestdata_f conftestdata_t 2>/dev/null
8227 then
8228 gcc_cv_prog_LN_S=ln
8229 else
8230 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8231 then
8232 gcc_cv_prog_LN_S="cp -p"
8233 else
8234 gcc_cv_prog_LN_S=cp
8238 rm -f conftestdata_f conftestdata_t
8241 LN_S="$gcc_cv_prog_LN_S"
8242 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8244 $as_echo "yes" >&6; }
8245 else
8246 if test "$gcc_cv_prog_LN_S" = "ln"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8248 $as_echo "no, using ln" >&6; }
8249 else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8251 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8256 $as_echo_n "checking whether ln works... " >&6; }
8257 if ${acx_cv_prog_LN+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 rm -f conftestdata_t
8261 echo >conftestdata_f
8262 if ln conftestdata_f conftestdata_t 2>/dev/null
8263 then
8264 acx_cv_prog_LN=ln
8265 else
8266 acx_cv_prog_LN=no
8268 rm -f conftestdata_f conftestdata_t
8271 if test $acx_cv_prog_LN = no; then
8272 LN="$LN_S"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8274 $as_echo "no, using $LN" >&6; }
8275 else
8276 LN="$acx_cv_prog_LN"
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8278 $as_echo "yes" >&6; }
8281 if test -n "$ac_tool_prefix"; then
8282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if ${ac_cv_prog_RANLIB+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 if test -n "$RANLIB"; then
8290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8303 done
8304 done
8305 IFS=$as_save_IFS
8309 RANLIB=$ac_cv_prog_RANLIB
8310 if test -n "$RANLIB"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8312 $as_echo "$RANLIB" >&6; }
8313 else
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8320 if test -z "$ac_cv_prog_RANLIB"; then
8321 ac_ct_RANLIB=$RANLIB
8322 # Extract the first word of "ranlib", so it can be a program name with args.
8323 set dummy ranlib; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 if test -n "$ac_ct_RANLIB"; then
8330 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_ac_ct_RANLIB="ranlib"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 break 2
8343 done
8344 done
8345 IFS=$as_save_IFS
8349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8350 if test -n "$ac_ct_RANLIB"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8352 $as_echo "$ac_ct_RANLIB" >&6; }
8353 else
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8358 if test "x$ac_ct_RANLIB" = x; then
8359 RANLIB=":"
8360 else
8361 case $cross_compiling:$ac_tool_warned in
8362 yes:)
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8365 ac_tool_warned=yes ;;
8366 esac
8367 RANLIB=$ac_ct_RANLIB
8369 else
8370 RANLIB="$ac_cv_prog_RANLIB"
8373 ranlib_flags=""
8376 # Find a good install program. We prefer a C program (faster),
8377 # so one script is as good as another. But avoid the broken or
8378 # incompatible versions:
8379 # SysV /etc/install, /usr/sbin/install
8380 # SunOS /usr/etc/install
8381 # IRIX /sbin/install
8382 # AIX /bin/install
8383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8385 # ./install, which can be erroneously created by make from ./install.sh.
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8387 $as_echo_n "checking for a BSD compatible install... " >&6; }
8388 if test -z "$INSTALL"; then
8389 if ${ac_cv_path_install+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8393 for ac_dir in $PATH; do
8394 # Account for people who put trailing slashes in PATH elements.
8395 case "$ac_dir/" in
8396 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8398 # OSF1 and SCO ODT 3.0 have their own names for install.
8399 for ac_prog in ginstall scoinst install; do
8400 if test -f $ac_dir/$ac_prog; then
8401 if test $ac_prog = install &&
8402 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8403 # AIX install. It has an incompatible calling convention.
8404 # OSF/1 installbsd also uses dspmsg, but is usable.
8406 else
8407 ac_cv_path_install="$ac_dir/$ac_prog -c"
8408 break 2
8411 done
8413 esac
8414 done
8415 IFS="$ac_save_IFS"
8418 if test "${ac_cv_path_install+set}" = set; then
8419 INSTALL="$ac_cv_path_install"
8420 else
8421 # As a last resort, use the slow shell script. We don't cache a
8422 # path for INSTALL within a source directory, because that will
8423 # break other packages using the cache if that directory is
8424 # removed, or if the path is relative.
8425 INSTALL="$ac_install_sh"
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8429 $as_echo "$INSTALL" >&6; }
8431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8432 # It thinks the first close brace ends the variable substitution.
8433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8435 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8438 # See if cmp has --ignore-initial.
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8440 $as_echo_n "checking for cmp's capabilities... " >&6; }
8441 if ${gcc_cv_prog_cmp_skip+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 echo abfoo >t1
8445 echo cdfoo >t2
8446 gcc_cv_prog_cmp_skip=slowcompare
8447 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8448 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8450 else
8451 gcc_cv_prog_cmp_skip=gnucompare
8454 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8455 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8456 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8458 else
8459 gcc_cv_prog_cmp_skip=fastcompare
8463 rm t1 t2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8467 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8468 make_compare_target=$gcc_cv_prog_cmp_skip
8472 # See if we have the mktemp command.
8473 # Extract the first word of "mktemp", so it can be a program name with args.
8474 set dummy mktemp; ac_word=$2
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476 $as_echo_n "checking for $ac_word... " >&6; }
8477 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 if test -n "$have_mktemp_command"; then
8481 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8482 else
8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484 for as_dir in $PATH
8486 IFS=$as_save_IFS
8487 test -z "$as_dir" && as_dir=.
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8490 ac_cv_prog_have_mktemp_command="yes"
8491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 break 2
8494 done
8495 done
8496 IFS=$as_save_IFS
8498 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8501 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8502 if test -n "$have_mktemp_command"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8504 $as_echo "$have_mktemp_command" >&6; }
8505 else
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8512 # See if makeinfo has been installed and is modern enough
8513 # that we can use it.
8515 # Extract the first word of "makeinfo", so it can be a program name with args.
8516 set dummy makeinfo; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_MAKEINFO+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 if test -n "$MAKEINFO"; then
8523 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8524 else
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_MAKEINFO="makeinfo"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8536 done
8537 done
8538 IFS=$as_save_IFS
8542 MAKEINFO=$ac_cv_prog_MAKEINFO
8543 if test -n "$MAKEINFO"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8545 $as_echo "$MAKEINFO" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8552 if test -n "$MAKEINFO"; then
8553 # Found it, now check the version.
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8555 $as_echo_n "checking for modern makeinfo... " >&6; }
8556 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8560 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8562 case $ac_prog_version in
8563 '') gcc_cv_prog_makeinfo_modern=no;;
8564 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8565 *) gcc_cv_prog_makeinfo_modern=no;;
8566 esac
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8570 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8571 else
8572 gcc_cv_prog_makeinfo_modern=no
8574 if test $gcc_cv_prog_makeinfo_modern = no; then
8575 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8578 if test $gcc_cv_prog_makeinfo_modern = no; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8580 *** Makeinfo is missing or too old.
8581 *** Info documentation will not be built." >&5
8582 $as_echo "$as_me: WARNING:
8583 *** Makeinfo is missing or too old.
8584 *** Info documentation will not be built." >&2;}
8585 BUILD_INFO=
8586 else
8587 BUILD_INFO=info
8591 # Is pod2man recent enough to regenerate manpages?
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8593 $as_echo_n "checking for recent Pod::Man... " >&6; }
8594 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8596 $as_echo "yes" >&6; }
8597 GENERATED_MANPAGES=generated-manpages
8598 else
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600 $as_echo "no" >&6; }
8601 GENERATED_MANPAGES=
8605 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8607 # How about lex?
8608 for ac_prog in flex
8610 # Extract the first word of "$ac_prog", so it can be a program name with args.
8611 set dummy $ac_prog; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if ${ac_cv_prog_FLEX+:} false; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 if test -n "$FLEX"; then
8618 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627 ac_cv_prog_FLEX="$ac_prog"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8631 done
8632 done
8633 IFS=$as_save_IFS
8637 FLEX=$ac_cv_prog_FLEX
8638 if test -n "$FLEX"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8640 $as_echo "$FLEX" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8647 test -n "$FLEX" && break
8648 done
8649 test -n "$FLEX" || FLEX="$MISSING flex"
8652 # Bison?
8653 for ac_prog in bison
8655 # Extract the first word of "$ac_prog", so it can be a program name with args.
8656 set dummy $ac_prog; ac_word=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if ${ac_cv_prog_BISON+:} false; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 if test -n "$BISON"; then
8663 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8664 else
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672 ac_cv_prog_BISON="$ac_prog"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8676 done
8677 done
8678 IFS=$as_save_IFS
8682 BISON=$ac_cv_prog_BISON
8683 if test -n "$BISON"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8685 $as_echo "$BISON" >&6; }
8686 else
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8692 test -n "$BISON" && break
8693 done
8694 test -n "$BISON" || BISON="$MISSING bison"
8697 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8698 # check for build == host before using them.
8700 # NM
8701 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8702 && test -d ../binutils ; then
8703 NM='${objdir}/../binutils/nm-new'
8704 else
8705 # Extract the first word of "nm", so it can be a program name with args.
8706 set dummy nm; ac_word=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if ${ac_cv_prog_NM+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 if test -n "$NM"; then
8713 ac_cv_prog_NM="$NM" # Let the user override the test.
8714 else
8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 for as_dir in $PATH
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8722 ac_cv_prog_NM="nm"
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8726 done
8727 done
8728 IFS=$as_save_IFS
8730 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8733 NM=$ac_cv_prog_NM
8734 if test -n "$NM"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8736 $as_echo "$NM" >&6; }
8737 else
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8745 # AR
8746 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8747 && test -d ../binutils ; then
8748 AR='${objdir}/../binutils/ar'
8749 else
8750 # Extract the first word of "ar", so it can be a program name with args.
8751 set dummy ar; ac_word=$2
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8753 $as_echo_n "checking for $ac_word... " >&6; }
8754 if ${ac_cv_prog_AR+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 if test -n "$AR"; then
8758 ac_cv_prog_AR="$AR" # Let the user override the test.
8759 else
8760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 for as_dir in $PATH
8763 IFS=$as_save_IFS
8764 test -z "$as_dir" && as_dir=.
8765 for ac_exec_ext in '' $ac_executable_extensions; do
8766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8767 ac_cv_prog_AR="ar"
8768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8769 break 2
8771 done
8772 done
8773 IFS=$as_save_IFS
8775 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8778 AR=$ac_cv_prog_AR
8779 if test -n "$AR"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8781 $as_echo "$AR" >&6; }
8782 else
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8790 # The jit documentation looks better if built with sphinx, but can be
8791 # built with texinfo if sphinx is not available.
8792 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8793 # Extract the first word of "sphinx-build", so it can be a program name with args.
8794 set dummy sphinx-build; ac_word=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if ${ac_cv_prog_doc_build_sys+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 if test -n "$doc_build_sys"; then
8801 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8802 else
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8810 ac_cv_prog_doc_build_sys="sphinx"
8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 break 2
8814 done
8815 done
8816 IFS=$as_save_IFS
8818 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8821 doc_build_sys=$ac_cv_prog_doc_build_sys
8822 if test -n "$doc_build_sys"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8824 $as_echo "$doc_build_sys" >&6; }
8825 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8832 # --------------------
8833 # Checks for C headers
8834 # --------------------
8836 # Need to reject headers which give warnings, so that the -Werror bootstrap
8837 # works later. *sigh* This needs to come before all header checks.
8839 ac_c_preproc_warn_flag=yes
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8842 $as_echo_n "checking for ANSI C header files... " >&6; }
8843 if ${ac_cv_header_stdc+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 #include <stdlib.h>
8849 #include <stdarg.h>
8850 #include <string.h>
8851 #include <float.h>
8854 main ()
8858 return 0;
8860 _ACEOF
8861 if ac_fn_cxx_try_compile "$LINENO"; then :
8862 ac_cv_header_stdc=yes
8863 else
8864 ac_cv_header_stdc=no
8866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 if test $ac_cv_header_stdc = yes; then
8869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 #include <string.h>
8874 _ACEOF
8875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8876 $EGREP "memchr" >/dev/null 2>&1; then :
8878 else
8879 ac_cv_header_stdc=no
8881 rm -f conftest*
8885 if test $ac_cv_header_stdc = yes; then
8886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 #include <stdlib.h>
8891 _ACEOF
8892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8893 $EGREP "free" >/dev/null 2>&1; then :
8895 else
8896 ac_cv_header_stdc=no
8898 rm -f conftest*
8902 if test $ac_cv_header_stdc = yes; then
8903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8904 if test "$cross_compiling" = yes; then :
8906 else
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 #include <ctype.h>
8910 #include <stdlib.h>
8911 #if ((' ' & 0x0FF) == 0x020)
8912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8914 #else
8915 # define ISLOWER(c) \
8916 (('a' <= (c) && (c) <= 'i') \
8917 || ('j' <= (c) && (c) <= 'r') \
8918 || ('s' <= (c) && (c) <= 'z'))
8919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8920 #endif
8922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8924 main ()
8926 int i;
8927 for (i = 0; i < 256; i++)
8928 if (XOR (islower (i), ISLOWER (i))
8929 || toupper (i) != TOUPPER (i))
8930 return 2;
8931 return 0;
8933 _ACEOF
8934 if ac_fn_cxx_try_run "$LINENO"; then :
8936 else
8937 ac_cv_header_stdc=no
8939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8940 conftest.$ac_objext conftest.beam conftest.$ac_ext
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8946 $as_echo "$ac_cv_header_stdc" >&6; }
8947 if test $ac_cv_header_stdc = yes; then
8949 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8954 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8955 if ${ac_cv_header_time+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 #include <sys/types.h>
8961 #include <sys/time.h>
8962 #include <time.h>
8965 main ()
8967 if ((struct tm *) 0)
8968 return 0;
8970 return 0;
8972 _ACEOF
8973 if ac_fn_cxx_try_compile "$LINENO"; then :
8974 ac_cv_header_time=yes
8975 else
8976 ac_cv_header_time=no
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8981 $as_echo "$ac_cv_header_time" >&6; }
8982 if test $ac_cv_header_time = yes; then
8984 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8989 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8990 if ${gcc_cv_header_string+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995 #include <string.h>
8996 #include <strings.h>
8998 main ()
9002 return 0;
9004 _ACEOF
9005 if ac_fn_cxx_try_compile "$LINENO"; then :
9006 gcc_cv_header_string=yes
9007 else
9008 gcc_cv_header_string=no
9010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9013 $as_echo "$gcc_cv_header_string" >&6; }
9014 if test $gcc_cv_header_string = yes; then
9016 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9021 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9022 if ${ac_cv_header_sys_wait_h+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 #include <sys/types.h>
9028 #include <sys/wait.h>
9029 #ifndef WEXITSTATUS
9030 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9031 #endif
9032 #ifndef WIFEXITED
9033 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9034 #endif
9037 main ()
9039 int s;
9040 wait (&s);
9041 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9043 return 0;
9045 _ACEOF
9046 if ac_fn_cxx_try_compile "$LINENO"; then :
9047 ac_cv_header_sys_wait_h=yes
9048 else
9049 ac_cv_header_sys_wait_h=no
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9054 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9055 if test $ac_cv_header_sys_wait_h = yes; then
9057 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9062 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9063 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 #include <sys/types.h>
9069 #include <termios.h>
9070 #ifdef TIOCGWINSZ
9072 #endif
9074 _ACEOF
9075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9076 $EGREP "yes" >/dev/null 2>&1; then :
9077 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9078 else
9079 ac_cv_sys_tiocgwinsz_in_termios_h=no
9081 rm -f conftest*
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9085 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9087 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9089 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9090 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095 #include <sys/types.h>
9096 #include <sys/ioctl.h>
9097 #ifdef TIOCGWINSZ
9099 #endif
9101 _ACEOF
9102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9103 $EGREP "yes" >/dev/null 2>&1; then :
9104 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9105 else
9106 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9108 rm -f conftest*
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9112 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9114 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9116 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9121 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9122 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9123 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9124 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9125 do :
9126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9127 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9128 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9129 cat >>confdefs.h <<_ACEOF
9130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9131 _ACEOF
9134 done
9137 # Check for thread headers.
9138 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9139 if test "x$ac_cv_header_thread_h" = xyes; then :
9140 have_thread_h=yes
9141 else
9142 have_thread_h=
9145 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9146 if test "x$ac_cv_header_pthread_h" = xyes; then :
9147 have_pthread_h=yes
9148 else
9149 have_pthread_h=
9153 # These tests can't be done till we know if we have limits.h.
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9155 $as_echo_n "checking for CHAR_BIT... " >&6; }
9156 if ${gcc_cv_decl_char_bit+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161 #ifdef HAVE_LIMITS_H
9162 #include <limits.h>
9163 #endif
9164 #ifdef CHAR_BIT
9165 found
9166 #endif
9167 _ACEOF
9168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9169 $EGREP "found" >/dev/null 2>&1; then :
9170 gcc_cv_decl_char_bit=yes
9171 else
9172 gcc_cv_decl_char_bit=no
9174 rm -f conftest*
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9179 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9180 if test $gcc_cv_decl_char_bit = no; then
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9182 $as_echo_n "checking number of bits in a byte... " >&6; }
9183 if ${gcc_cv_c_nbby+:} false; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9187 gcc_cv_c_nbby=
9188 while test $i -lt 65; do
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9193 main ()
9195 switch(0) {
9196 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9197 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9200 return 0;
9202 _ACEOF
9203 if ac_fn_cxx_try_compile "$LINENO"; then :
9204 gcc_cv_c_nbby=$i; break
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 i=`expr $i + 1`
9208 done
9209 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9213 $as_echo "$gcc_cv_c_nbby" >&6; }
9214 if test $gcc_cv_c_nbby = failed; then
9215 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9216 else
9218 cat >>confdefs.h <<_ACEOF
9219 #define CHAR_BIT $gcc_cv_c_nbby
9220 _ACEOF
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9225 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9226 if ${ac_cv_c_bigendian+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 ac_cv_c_bigendian=unknown
9230 # See if we're dealing with a universal compiler.
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #ifndef __APPLE_CC__
9234 not a universal capable compiler
9235 #endif
9236 typedef int dummy;
9238 _ACEOF
9239 if ac_fn_cxx_try_compile "$LINENO"; then :
9241 # Check for potential -arch flags. It is not universal unless
9242 # there are at least two -arch flags with different values.
9243 ac_arch=
9244 ac_prev=
9245 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9246 if test -n "$ac_prev"; then
9247 case $ac_word in
9248 i?86 | x86_64 | ppc | ppc64)
9249 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9250 ac_arch=$ac_word
9251 else
9252 ac_cv_c_bigendian=universal
9253 break
9256 esac
9257 ac_prev=
9258 elif test "x$ac_word" = "x-arch"; then
9259 ac_prev=arch
9261 done
9263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264 if test $ac_cv_c_bigendian = unknown; then
9265 # See if sys/param.h defines the BYTE_ORDER macro.
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 #include <sys/types.h>
9269 #include <sys/param.h>
9272 main ()
9274 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9275 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9276 && LITTLE_ENDIAN)
9277 bogus endian macros
9278 #endif
9281 return 0;
9283 _ACEOF
9284 if ac_fn_cxx_try_compile "$LINENO"; then :
9285 # It does; now see whether it defined to BIG_ENDIAN or not.
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 #include <sys/types.h>
9289 #include <sys/param.h>
9292 main ()
9294 #if BYTE_ORDER != BIG_ENDIAN
9295 not big endian
9296 #endif
9299 return 0;
9301 _ACEOF
9302 if ac_fn_cxx_try_compile "$LINENO"; then :
9303 ac_cv_c_bigendian=yes
9304 else
9305 ac_cv_c_bigendian=no
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 if test $ac_cv_c_bigendian = unknown; then
9312 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 #include <limits.h>
9318 main ()
9320 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9321 bogus endian macros
9322 #endif
9325 return 0;
9327 _ACEOF
9328 if ac_fn_cxx_try_compile "$LINENO"; then :
9329 # It does; now see whether it defined to _BIG_ENDIAN or not.
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9332 #include <limits.h>
9335 main ()
9337 #ifndef _BIG_ENDIAN
9338 not big endian
9339 #endif
9342 return 0;
9344 _ACEOF
9345 if ac_fn_cxx_try_compile "$LINENO"; then :
9346 ac_cv_c_bigendian=yes
9347 else
9348 ac_cv_c_bigendian=no
9350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354 if test $ac_cv_c_bigendian = unknown; then
9355 # Compile a test program.
9356 if test "$cross_compiling" = yes; then :
9357 # Try to guess by grepping values from an object file.
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 short int ascii_mm[] =
9361 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9362 short int ascii_ii[] =
9363 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9364 int use_ascii (int i) {
9365 return ascii_mm[i] + ascii_ii[i];
9367 short int ebcdic_ii[] =
9368 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9369 short int ebcdic_mm[] =
9370 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9371 int use_ebcdic (int i) {
9372 return ebcdic_mm[i] + ebcdic_ii[i];
9374 extern int foo;
9377 main ()
9379 return use_ascii (foo) == use_ebcdic (foo);
9381 return 0;
9383 _ACEOF
9384 if ac_fn_cxx_try_compile "$LINENO"; then :
9385 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9386 ac_cv_c_bigendian=yes
9388 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9389 if test "$ac_cv_c_bigendian" = unknown; then
9390 ac_cv_c_bigendian=no
9391 else
9392 # finding both strings is unlikely to happen, but who knows?
9393 ac_cv_c_bigendian=unknown
9397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 else
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 $ac_includes_default
9403 main ()
9406 /* Are we little or big endian? From Harbison&Steele. */
9407 union
9409 long int l;
9410 char c[sizeof (long int)];
9411 } u;
9412 u.l = 1;
9413 return u.c[sizeof (long int) - 1] == 1;
9416 return 0;
9418 _ACEOF
9419 if ac_fn_cxx_try_run "$LINENO"; then :
9420 ac_cv_c_bigendian=no
9421 else
9422 ac_cv_c_bigendian=yes
9424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9425 conftest.$ac_objext conftest.beam conftest.$ac_ext
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9431 $as_echo "$ac_cv_c_bigendian" >&6; }
9432 case $ac_cv_c_bigendian in #(
9433 yes)
9434 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9435 ;; #(
9437 ;; #(
9438 universal)
9440 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9442 ;; #(
9444 as_fn_error $? "unknown endianness
9445 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9446 esac
9449 # ----------------------
9450 # Checks for C++ headers
9451 # ----------------------
9453 ac_ext=cpp
9454 ac_cpp='$CXXCPP $CPPFLAGS'
9455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9459 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9460 if test -z "$CXXCPP"; then
9461 if ${ac_cv_prog_CXXCPP+:} false; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 # Double quotes because CXXCPP needs to be expanded
9465 for CXXCPP in "$CXX -E" "/lib/cpp"
9467 ac_preproc_ok=false
9468 for ac_cxx_preproc_warn_flag in '' yes
9470 # Use a header file that comes with gcc, so configuring glibc
9471 # with a fresh cross-compiler works.
9472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9473 # <limits.h> exists even on freestanding compilers.
9474 # On the NeXT, cc -E runs the code through the compiler's parser,
9475 # not just through cpp. "Syntax error" is here to catch this case.
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 #ifdef __STDC__
9479 # include <limits.h>
9480 #else
9481 # include <assert.h>
9482 #endif
9483 Syntax error
9484 _ACEOF
9485 if ac_fn_cxx_try_cpp "$LINENO"; then :
9487 else
9488 # Broken: fails on valid input.
9489 continue
9491 rm -f conftest.err conftest.i conftest.$ac_ext
9493 # OK, works on sane cases. Now check whether nonexistent headers
9494 # can be detected and how.
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 #include <ac_nonexistent.h>
9498 _ACEOF
9499 if ac_fn_cxx_try_cpp "$LINENO"; then :
9500 # Broken: success on invalid input.
9501 continue
9502 else
9503 # Passes both tests.
9504 ac_preproc_ok=:
9505 break
9507 rm -f conftest.err conftest.i conftest.$ac_ext
9509 done
9510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9511 rm -f conftest.i conftest.err conftest.$ac_ext
9512 if $ac_preproc_ok; then :
9513 break
9516 done
9517 ac_cv_prog_CXXCPP=$CXXCPP
9520 CXXCPP=$ac_cv_prog_CXXCPP
9521 else
9522 ac_cv_prog_CXXCPP=$CXXCPP
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9525 $as_echo "$CXXCPP" >&6; }
9526 ac_preproc_ok=false
9527 for ac_cxx_preproc_warn_flag in '' yes
9529 # Use a header file that comes with gcc, so configuring glibc
9530 # with a fresh cross-compiler works.
9531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9532 # <limits.h> exists even on freestanding compilers.
9533 # On the NeXT, cc -E runs the code through the compiler's parser,
9534 # not just through cpp. "Syntax error" is here to catch this case.
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9537 #ifdef __STDC__
9538 # include <limits.h>
9539 #else
9540 # include <assert.h>
9541 #endif
9542 Syntax error
9543 _ACEOF
9544 if ac_fn_cxx_try_cpp "$LINENO"; then :
9546 else
9547 # Broken: fails on valid input.
9548 continue
9550 rm -f conftest.err conftest.i conftest.$ac_ext
9552 # OK, works on sane cases. Now check whether nonexistent headers
9553 # can be detected and how.
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556 #include <ac_nonexistent.h>
9557 _ACEOF
9558 if ac_fn_cxx_try_cpp "$LINENO"; then :
9559 # Broken: success on invalid input.
9560 continue
9561 else
9562 # Passes both tests.
9563 ac_preproc_ok=:
9564 break
9566 rm -f conftest.err conftest.i conftest.$ac_ext
9568 done
9569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9570 rm -f conftest.i conftest.err conftest.$ac_ext
9571 if $ac_preproc_ok; then :
9573 else
9574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9577 See \`config.log' for more details" >&5
9578 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9579 See \`config.log' for more details" >&2;}; }
9582 ac_ext=cpp
9583 ac_cpp='$CXXCPP $CPPFLAGS'
9584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9589 for ac_header in unordered_map
9590 do :
9591 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9592 if test "x$ac_cv_header_unordered_map" = xyes; then :
9593 cat >>confdefs.h <<_ACEOF
9594 #define HAVE_UNORDERED_MAP 1
9595 _ACEOF
9598 done
9600 for ac_header in tr1/unordered_map
9601 do :
9602 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9603 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9604 cat >>confdefs.h <<_ACEOF
9605 #define HAVE_TR1_UNORDERED_MAP 1
9606 _ACEOF
9609 done
9611 for ac_header in ext/hash_map
9612 do :
9613 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9614 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9615 cat >>confdefs.h <<_ACEOF
9616 #define HAVE_EXT_HASH_MAP 1
9617 _ACEOF
9620 done
9623 # --------
9624 # Dependency checking.
9625 # --------
9627 rm -rf .tst 2>/dev/null
9628 mkdir .tst 2>/dev/null
9629 if test -d .tst; then
9630 am__leading_dot=.
9631 else
9632 am__leading_dot=_
9634 rmdir .tst 2>/dev/null
9636 DEPDIR="${am__leading_dot}deps"
9638 ac_config_commands="$ac_config_commands depdir"
9641 ac_config_commands="$ac_config_commands gccdepdir"
9644 depcc="$CXX" am_compiler_list=
9646 am_depcomp=$ac_aux_dir/depcomp
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9648 $as_echo_n "checking dependency style of $depcc... " >&6; }
9649 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 if test -f "$am_depcomp"; then
9653 # We make a subdir and do the tests there. Otherwise we can end up
9654 # making bogus files that we don't know about and never remove. For
9655 # instance it was reported that on HP-UX the gcc test will end up
9656 # making a dummy file named `D' -- because `-MD' means `put the output
9657 # in D'.
9658 mkdir conftest.dir
9659 # Copy depcomp to subdir because otherwise we won't find it if we're
9660 # using a relative directory.
9661 cp "$am_depcomp" conftest.dir
9662 cd conftest.dir
9663 # We will build objects and dependencies in a subdirectory because
9664 # it helps to detect inapplicable dependency modes. For instance
9665 # both Tru64's cc and ICC support -MD to output dependencies as a
9666 # side effect of compilation, but ICC will put the dependencies in
9667 # the current directory while Tru64 will put them in the object
9668 # directory.
9669 mkdir sub
9671 am_cv_CXX_dependencies_compiler_type=none
9672 if test "$am_compiler_list" = ""; then
9673 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9675 for depmode in $am_compiler_list; do
9676 if test $depmode = none; then break; fi
9678 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9679 # Setup a source with many dependencies, because some compilers
9680 # like to wrap large dependency lists on column 80 (with \), and
9681 # we should not choose a depcomp mode which is confused by this.
9683 # We need to recreate these files for each test, as the compiler may
9684 # overwrite some of them when testing with obscure command lines.
9685 # This happens at least with the AIX C compiler.
9686 : > sub/conftest.c
9687 for i in 1 2 3 4 5 6; do
9688 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9689 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9690 # Solaris 8's {/usr,}/bin/sh.
9691 touch sub/conftst$i.h
9692 done
9693 echo "include sub/conftest.Po" > confmf
9695 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9696 # mode. It turns out that the SunPro C++ compiler does not properly
9697 # handle `-M -o', and we need to detect this.
9698 depcmd="depmode=$depmode \
9699 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9700 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9701 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9702 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9703 if env $depcmd > conftest.err 2>&1 &&
9704 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9705 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9706 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9707 # icc doesn't choke on unknown options, it will just issue warnings
9708 # or remarks (even with -Werror). So we grep stderr for any message
9709 # that says an option was ignored or not supported.
9710 # When given -MP, icc 7.0 and 7.1 complain thusly:
9711 # icc: Command line warning: ignoring option '-M'; no argument required
9712 # The diagnosis changed in icc 8.0:
9713 # icc: Command line remark: option '-MP' not supported
9714 if (grep 'ignoring option' conftest.err ||
9715 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9716 am_cv_CXX_dependencies_compiler_type=$depmode
9717 $as_echo "$as_me:$LINENO: success" >&5
9718 break
9721 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9722 sed -e 's/^/| /' < conftest.err >&5
9723 done
9725 cd ..
9726 rm -rf conftest.dir
9727 else
9728 am_cv_CXX_dependencies_compiler_type=none
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9733 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9734 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9735 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9736 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9741 # --------
9742 # UNSORTED
9743 # --------
9746 # These libraries may be used by collect2.
9747 # We may need a special search path to get them linked.
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9749 $as_echo_n "checking for collect2 libraries... " >&6; }
9750 if ${gcc_cv_collect2_libs+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 save_LIBS="$LIBS"
9754 for libs in '' -lld -lmld \
9755 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9756 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9758 LIBS="$libs"
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9762 /* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
9765 #ifdef __cplusplus
9766 extern "C"
9767 #endif
9768 char ldopen ();
9770 main ()
9772 return ldopen ();
9774 return 0;
9776 _ACEOF
9777 if ac_fn_cxx_try_link "$LINENO"; then :
9778 gcc_cv_collect2_libs="$libs"; break
9780 rm -f core conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9782 done
9783 LIBS="$save_LIBS"
9784 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9787 $as_echo "$gcc_cv_collect2_libs" >&6; }
9788 case $gcc_cv_collect2_libs in
9789 "none required") ;;
9790 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9791 esac
9794 # When building Ada code on Alpha, we need exc_resume which is usually in
9795 # -lexc. So test for it.
9796 save_LIBS="$LIBS"
9797 LIBS=
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9799 $as_echo_n "checking for library containing exc_resume... " >&6; }
9800 if ${ac_cv_search_exc_resume+:} false; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 ac_func_search_save_LIBS=$LIBS
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9807 /* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
9810 #ifdef __cplusplus
9811 extern "C"
9812 #endif
9813 char exc_resume ();
9815 main ()
9817 return exc_resume ();
9819 return 0;
9821 _ACEOF
9822 for ac_lib in '' exc; do
9823 if test -z "$ac_lib"; then
9824 ac_res="none required"
9825 else
9826 ac_res=-l$ac_lib
9827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9829 if ac_fn_cxx_try_link "$LINENO"; then :
9830 ac_cv_search_exc_resume=$ac_res
9832 rm -f core conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext
9834 if ${ac_cv_search_exc_resume+:} false; then :
9835 break
9837 done
9838 if ${ac_cv_search_exc_resume+:} false; then :
9840 else
9841 ac_cv_search_exc_resume=no
9843 rm conftest.$ac_ext
9844 LIBS=$ac_func_search_save_LIBS
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9847 $as_echo "$ac_cv_search_exc_resume" >&6; }
9848 ac_res=$ac_cv_search_exc_resume
9849 if test "$ac_res" != no; then :
9850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9854 GNAT_LIBEXC="$LIBS"
9855 LIBS="$save_LIBS"
9858 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9859 save_LIBS="$LIBS"
9860 LIBS=
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9862 $as_echo_n "checking for library containing kstat_open... " >&6; }
9863 if ${ac_cv_search_kstat_open+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 ac_func_search_save_LIBS=$LIBS
9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9870 /* Override any GCC internal prototype to avoid an error.
9871 Use char because int might match the return type of a GCC
9872 builtin and then its argument prototype would still apply. */
9873 #ifdef __cplusplus
9874 extern "C"
9875 #endif
9876 char kstat_open ();
9878 main ()
9880 return kstat_open ();
9882 return 0;
9884 _ACEOF
9885 for ac_lib in '' kstat; do
9886 if test -z "$ac_lib"; then
9887 ac_res="none required"
9888 else
9889 ac_res=-l$ac_lib
9890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9892 if ac_fn_cxx_try_link "$LINENO"; then :
9893 ac_cv_search_kstat_open=$ac_res
9895 rm -f core conftest.err conftest.$ac_objext \
9896 conftest$ac_exeext
9897 if ${ac_cv_search_kstat_open+:} false; then :
9898 break
9900 done
9901 if ${ac_cv_search_kstat_open+:} false; then :
9903 else
9904 ac_cv_search_kstat_open=no
9906 rm conftest.$ac_ext
9907 LIBS=$ac_func_search_save_LIBS
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9910 $as_echo "$ac_cv_search_kstat_open" >&6; }
9911 ac_res=$ac_cv_search_kstat_open
9912 if test "$ac_res" != no; then :
9913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9917 EXTRA_GCC_LIBS="$LIBS"
9918 LIBS="$save_LIBS"
9921 # Solaris needs libsocket and libnsl for socket functions before 11.4.
9922 # C++ needs those for libcody.
9923 save_LIBS="$LIBS"
9924 LIBS=
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9927 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9928 if ${ac_cv_search_gethostbyname+:} false; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931 ac_func_search_save_LIBS=$LIBS
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9935 /* Override any GCC internal prototype to avoid an error.
9936 Use char because int might match the return type of a GCC
9937 builtin and then its argument prototype would still apply. */
9938 #ifdef __cplusplus
9939 extern "C"
9940 #endif
9941 char gethostbyname ();
9943 main ()
9945 return gethostbyname ();
9947 return 0;
9949 _ACEOF
9950 for ac_lib in '' nsl; do
9951 if test -z "$ac_lib"; then
9952 ac_res="none required"
9953 else
9954 ac_res=-l$ac_lib
9955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9957 if ac_fn_cxx_try_link "$LINENO"; then :
9958 ac_cv_search_gethostbyname=$ac_res
9960 rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext
9962 if ${ac_cv_search_gethostbyname+:} false; then :
9963 break
9965 done
9966 if ${ac_cv_search_gethostbyname+:} false; then :
9968 else
9969 ac_cv_search_gethostbyname=no
9971 rm conftest.$ac_ext
9972 LIBS=$ac_func_search_save_LIBS
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9975 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9976 ac_res=$ac_cv_search_gethostbyname
9977 if test "$ac_res" != no; then :
9978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
9983 $as_echo_n "checking for library containing socket... " >&6; }
9984 if ${ac_cv_search_socket+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 ac_func_search_save_LIBS=$LIBS
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9991 /* Override any GCC internal prototype to avoid an error.
9992 Use char because int might match the return type of a GCC
9993 builtin and then its argument prototype would still apply. */
9994 #ifdef __cplusplus
9995 extern "C"
9996 #endif
9997 char socket ();
9999 main ()
10001 return socket ();
10003 return 0;
10005 _ACEOF
10006 for ac_lib in '' socket; do
10007 if test -z "$ac_lib"; then
10008 ac_res="none required"
10009 else
10010 ac_res=-l$ac_lib
10011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10013 if ac_fn_cxx_try_link "$LINENO"; then :
10014 ac_cv_search_socket=$ac_res
10016 rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext
10018 if ${ac_cv_search_socket+:} false; then :
10019 break
10021 done
10022 if ${ac_cv_search_socket+:} false; then :
10024 else
10025 ac_cv_search_socket=no
10027 rm conftest.$ac_ext
10028 LIBS=$ac_func_search_save_LIBS
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10031 $as_echo "$ac_cv_search_socket" >&6; }
10032 ac_res=$ac_cv_search_socket
10033 if test "$ac_res" != no; then :
10034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10036 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10039 $as_echo_n "checking for socket in -lsocket... " >&6; }
10040 if ${ac_cv_lib_socket_socket+:} false; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 ac_check_lib_save_LIBS=$LIBS
10044 LIBS="-lsocket -lnsl $LIBS"
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10048 /* Override any GCC internal prototype to avoid an error.
10049 Use char because int might match the return type of a GCC
10050 builtin and then its argument prototype would still apply. */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 char socket ();
10056 main ()
10058 return socket ();
10060 return 0;
10062 _ACEOF
10063 if ac_fn_cxx_try_link "$LINENO"; then :
10064 ac_cv_lib_socket_socket=yes
10065 else
10066 ac_cv_lib_socket_socket=no
10068 rm -f core conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070 LIBS=$ac_check_lib_save_LIBS
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10073 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10074 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10075 LIBS="-lsocket -lnsl $LIBS"
10081 NETLIBS="$LIBS"
10082 LIBS="$save_LIBS"
10085 # Some systems put ldexp and frexp in libm instead of libc; assume
10086 # they're both in the same place. jcf-dump needs them.
10087 save_LIBS="$LIBS"
10088 LIBS=
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10090 $as_echo_n "checking for library containing ldexp... " >&6; }
10091 if ${ac_cv_search_ldexp+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 ac_func_search_save_LIBS=$LIBS
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10101 #ifdef __cplusplus
10102 extern "C"
10103 #endif
10104 char ldexp ();
10106 main ()
10108 return ldexp ();
10110 return 0;
10112 _ACEOF
10113 for ac_lib in '' m; do
10114 if test -z "$ac_lib"; then
10115 ac_res="none required"
10116 else
10117 ac_res=-l$ac_lib
10118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10120 if ac_fn_cxx_try_link "$LINENO"; then :
10121 ac_cv_search_ldexp=$ac_res
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext
10125 if ${ac_cv_search_ldexp+:} false; then :
10126 break
10128 done
10129 if ${ac_cv_search_ldexp+:} false; then :
10131 else
10132 ac_cv_search_ldexp=no
10134 rm conftest.$ac_ext
10135 LIBS=$ac_func_search_save_LIBS
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10138 $as_echo "$ac_cv_search_ldexp" >&6; }
10139 ac_res=$ac_cv_search_ldexp
10140 if test "$ac_res" != no; then :
10141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10145 LDEXP_LIB="$LIBS"
10146 LIBS="$save_LIBS"
10149 # Some systems need dlopen
10150 save_LIBS="$LIBS"
10151 LIBS=
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10153 $as_echo_n "checking for library containing dlopen... " >&6; }
10154 if ${ac_cv_search_dlopen+:} false; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 ac_func_search_save_LIBS=$LIBS
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10161 /* Override any GCC internal prototype to avoid an error.
10162 Use char because int might match the return type of a GCC
10163 builtin and then its argument prototype would still apply. */
10164 #ifdef __cplusplus
10165 extern "C"
10166 #endif
10167 char dlopen ();
10169 main ()
10171 return dlopen ();
10173 return 0;
10175 _ACEOF
10176 for ac_lib in '' dl; do
10177 if test -z "$ac_lib"; then
10178 ac_res="none required"
10179 else
10180 ac_res=-l$ac_lib
10181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10183 if ac_fn_cxx_try_link "$LINENO"; then :
10184 ac_cv_search_dlopen=$ac_res
10186 rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext
10188 if ${ac_cv_search_dlopen+:} false; then :
10189 break
10191 done
10192 if ${ac_cv_search_dlopen+:} false; then :
10194 else
10195 ac_cv_search_dlopen=no
10197 rm conftest.$ac_ext
10198 LIBS=$ac_func_search_save_LIBS
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10201 $as_echo "$ac_cv_search_dlopen" >&6; }
10202 ac_res=$ac_cv_search_dlopen
10203 if test "$ac_res" != no; then :
10204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10208 DL_LIB="$LIBS"
10209 LIBS="$save_LIBS"
10212 # Use <inttypes.h> only if it exists,
10213 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10214 # PRId64
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10216 $as_echo_n "checking for inttypes.h... " >&6; }
10217 if ${gcc_cv_header_inttypes_h+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222 #define __STDC_FORMAT_MACROS
10223 #include <sys/types.h>
10224 #include <inttypes.h>
10226 main ()
10228 intmax_t i = -1;
10229 #ifndef PRId64
10230 choke me
10231 #endif
10233 return 0;
10235 _ACEOF
10236 if ac_fn_cxx_try_compile "$LINENO"; then :
10237 gcc_cv_header_inttypes_h=yes
10238 else
10239 gcc_cv_header_inttypes_h=no
10241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10245 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10246 if test $gcc_cv_header_inttypes_h = yes; then
10248 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10252 # Look for the ZSTD package.
10253 ZSTD_INCLUDE=
10254 ZSTD_LIB=
10257 ZSTD_CPPFLAGS=
10258 ZSTD_LDFLAGS=
10262 # Check whether --with-zstd was given.
10263 if test "${with_zstd+set}" = set; then :
10264 withval=$with_zstd;
10268 # Check whether --with-zstd-include was given.
10269 if test "${with_zstd_include+set}" = set; then :
10270 withval=$with_zstd_include;
10274 # Check whether --with-zstd-lib was given.
10275 if test "${with_zstd_lib+set}" = set; then :
10276 withval=$with_zstd_lib;
10279 case "x$with_zstd" in
10280 x) ;;
10281 xno)
10282 ZSTD_INCLUDE=
10283 ZSTD_LIB=
10285 *) ZSTD_INCLUDE=$with_zstd/include
10286 ZSTD_LIB=$with_zstd/lib
10288 esac
10290 if test "x$with_zstd" != xno; then
10291 if test "x$with_zstd_include" != x; then
10292 ZSTD_INCLUDE=$with_zstd_include
10294 if test "x$with_zstd_lib" != x; then
10295 ZSTD_LIB=$with_zstd_lib
10297 if test "x$ZSTD_INCLUDE" != x \
10298 && test "x$ZSTD_INCLUDE" != xno; then
10299 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10301 if test "x$ZSTD_LIB" != x \
10302 && test "x$ZSTD_LIB" != xno; then
10303 ZSTD_LDFLAGS=-L$ZSTD_LIB
10306 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10307 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10310 $as_echo_n "checking for zstd.h... " >&6; }
10311 if ${gcc_cv_header_zstd_h+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 # We require version 1.3.0 or later. This is the first version that has
10315 # ZSTD_getFrameContentSize.
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10318 #include <zstd.h>
10319 #if ZSTD_VERSION_NUMBER < 10300
10320 #error "need zstd 1.3.0 or better"
10321 #endif
10323 main ()
10327 return 0;
10329 _ACEOF
10330 if ac_fn_cxx_try_compile "$LINENO"; then :
10331 gcc_cv_header_zstd_h=yes
10332 else
10333 gcc_cv_header_zstd_h=no
10335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10339 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10340 if test $gcc_cv_header_zstd_h = yes; then
10342 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10344 elif test "x$with_zstd" != x; then
10345 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10348 # LTO can use zstd compression algorithm
10349 save_LIBS="$LIBS"
10350 LIBS=
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10352 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10353 if ${ac_cv_search_ZSTD_compress+:} false; then :
10354 $as_echo_n "(cached) " >&6
10355 else
10356 ac_func_search_save_LIBS=$LIBS
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char ZSTD_compress ();
10368 main ()
10370 return ZSTD_compress ();
10372 return 0;
10374 _ACEOF
10375 for ac_lib in '' zstd; do
10376 if test -z "$ac_lib"; then
10377 ac_res="none required"
10378 else
10379 ac_res=-l$ac_lib
10380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10382 if ac_fn_cxx_try_link "$LINENO"; then :
10383 ac_cv_search_ZSTD_compress=$ac_res
10385 rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext
10387 if ${ac_cv_search_ZSTD_compress+:} false; then :
10388 break
10390 done
10391 if ${ac_cv_search_ZSTD_compress+:} false; then :
10393 else
10394 ac_cv_search_ZSTD_compress=no
10396 rm conftest.$ac_ext
10397 LIBS=$ac_func_search_save_LIBS
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10400 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10401 ac_res=$ac_cv_search_ZSTD_compress
10402 if test "$ac_res" != no; then :
10403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10407 ZSTD_LIB="$LIBS"
10408 LIBS="$save_LIBS"
10414 for ac_func in times clock kill getrlimit setrlimit atoq \
10415 popen sysconf strsignal getrusage nl_langinfo \
10416 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10417 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
10418 do :
10419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10420 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10421 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10422 cat >>confdefs.h <<_ACEOF
10423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10424 _ACEOF
10427 done
10430 if test x$ac_cv_func_mbstowcs = xyes; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10432 $as_echo_n "checking whether mbstowcs works... " >&6; }
10433 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 if test "$cross_compiling" = yes; then :
10437 gcc_cv_func_mbstowcs_works=yes
10438 else
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10441 #include <stdlib.h>
10442 int main()
10444 mbstowcs(0, "", 0);
10445 return 0;
10447 _ACEOF
10448 if ac_fn_cxx_try_run "$LINENO"; then :
10449 gcc_cv_func_mbstowcs_works=yes
10450 else
10451 gcc_cv_func_mbstowcs_works=no
10453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10454 conftest.$ac_objext conftest.beam conftest.$ac_ext
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10459 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10460 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10462 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10467 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10468 if test "x$ac_cv_type_ssize_t" = xyes; then :
10470 else
10472 cat >>confdefs.h <<_ACEOF
10473 #define ssize_t int
10474 _ACEOF
10478 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10479 if test "x$ac_cv_type_caddr_t" = xyes; then :
10481 else
10483 cat >>confdefs.h <<_ACEOF
10484 #define caddr_t char *
10485 _ACEOF
10489 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10491 if test "x$ac_cv_type_sighander_t" = xyes; then :
10493 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10499 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10500 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10501 gcc_header_sys_mman_h=yes
10502 else
10503 gcc_header_sys_mman_h=no
10506 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10507 if test "x$ac_cv_func_mmap" = xyes; then :
10508 gcc_func_mmap=yes
10509 else
10510 gcc_func_mmap=no
10513 if test "$gcc_header_sys_mman_h" != yes \
10514 || test "$gcc_func_mmap" != yes; then
10515 gcc_cv_func_mmap_file=no
10516 gcc_cv_func_mmap_dev_zero=no
10517 gcc_cv_func_mmap_anon=no
10518 else
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10520 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10521 if ${gcc_cv_func_mmap_file+:} false; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 # Add a system to this blacklist if
10525 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10526 # memory area containing the same data that you'd get if you applied
10527 # read() to the same fd. The only system known to have a problem here
10528 # is VMS, where text files have record structure.
10529 case "$host_os" in
10530 *vms* | ultrix*)
10531 gcc_cv_func_mmap_file=no ;;
10533 gcc_cv_func_mmap_file=yes;;
10534 esac
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10537 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10539 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10540 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 # Add a system to this blacklist if it has mmap() but /dev/zero
10544 # does not exist, or if mmapping /dev/zero does not give anonymous
10545 # zeroed pages with both the following properties:
10546 # 1. If you map N consecutive pages in with one call, and then
10547 # unmap any subset of those pages, the pages that were not
10548 # explicitly unmapped remain accessible.
10549 # 2. If you map two adjacent blocks of memory and then unmap them
10550 # both at once, they must both go away.
10551 # Systems known to be in this category are Windows (all variants),
10552 # VMS, and Darwin.
10553 case "$host_os" in
10554 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10555 gcc_cv_func_mmap_dev_zero=no ;;
10557 gcc_cv_func_mmap_dev_zero=yes;;
10558 esac
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10561 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10563 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10565 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10566 if ${gcc_cv_decl_map_anon+:} false; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571 #include <sys/types.h>
10572 #include <sys/mman.h>
10573 #include <unistd.h>
10575 #ifndef MAP_ANONYMOUS
10576 #define MAP_ANONYMOUS MAP_ANON
10577 #endif
10580 main ()
10582 int n = MAP_ANONYMOUS;
10584 return 0;
10586 _ACEOF
10587 if ac_fn_cxx_try_compile "$LINENO"; then :
10588 gcc_cv_decl_map_anon=yes
10589 else
10590 gcc_cv_decl_map_anon=no
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10595 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10597 if test $gcc_cv_decl_map_anon = no; then
10598 gcc_cv_func_mmap_anon=no
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10601 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10602 if ${gcc_cv_func_mmap_anon+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10606 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10607 # doesn't give anonymous zeroed pages with the same properties listed
10608 # above for use of /dev/zero.
10609 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10610 case "$host_os" in
10611 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10612 gcc_cv_func_mmap_anon=no ;;
10614 gcc_cv_func_mmap_anon=yes;;
10615 esac
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10618 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10622 if test $gcc_cv_func_mmap_file = yes; then
10624 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10627 if test $gcc_cv_func_mmap_dev_zero = yes; then
10629 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10632 if test $gcc_cv_func_mmap_anon = yes; then
10634 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10639 case "${host}" in
10640 *-*-*vms*)
10641 # Under VMS, vfork works very differently than on Unix. The standard test
10642 # won't work, and it isn't easily adaptable. It makes more sense to
10643 # just force it.
10644 ac_cv_func_vfork_works=yes
10646 esac
10647 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10648 if test "x$ac_cv_type_pid_t" = xyes; then :
10650 else
10652 cat >>confdefs.h <<_ACEOF
10653 #define pid_t int
10654 _ACEOF
10658 for ac_header in vfork.h
10659 do :
10660 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10661 if test "x$ac_cv_header_vfork_h" = xyes; then :
10662 cat >>confdefs.h <<_ACEOF
10663 #define HAVE_VFORK_H 1
10664 _ACEOF
10667 done
10669 for ac_func in fork vfork
10670 do :
10671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10672 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10673 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10674 cat >>confdefs.h <<_ACEOF
10675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10676 _ACEOF
10679 done
10681 if test "x$ac_cv_func_fork" = xyes; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10683 $as_echo_n "checking for working fork... " >&6; }
10684 if ${ac_cv_func_fork_works+:} false; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 if test "$cross_compiling" = yes; then :
10688 ac_cv_func_fork_works=cross
10689 else
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 $ac_includes_default
10694 main ()
10697 /* By Ruediger Kuhlmann. */
10698 return fork () < 0;
10701 return 0;
10703 _ACEOF
10704 if ac_fn_cxx_try_run "$LINENO"; then :
10705 ac_cv_func_fork_works=yes
10706 else
10707 ac_cv_func_fork_works=no
10709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10710 conftest.$ac_objext conftest.beam conftest.$ac_ext
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10715 $as_echo "$ac_cv_func_fork_works" >&6; }
10717 else
10718 ac_cv_func_fork_works=$ac_cv_func_fork
10720 if test "x$ac_cv_func_fork_works" = xcross; then
10721 case $host in
10722 *-*-amigaos* | *-*-msdosdjgpp*)
10723 # Override, as these systems have only a dummy fork() stub
10724 ac_cv_func_fork_works=no
10727 ac_cv_func_fork_works=yes
10729 esac
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10731 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10733 ac_cv_func_vfork_works=$ac_cv_func_vfork
10734 if test "x$ac_cv_func_vfork" = xyes; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10736 $as_echo_n "checking for working vfork... " >&6; }
10737 if ${ac_cv_func_vfork_works+:} false; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 if test "$cross_compiling" = yes; then :
10741 ac_cv_func_vfork_works=cross
10742 else
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745 /* Thanks to Paul Eggert for this test. */
10746 $ac_includes_default
10747 #include <sys/wait.h>
10748 #ifdef HAVE_VFORK_H
10749 # include <vfork.h>
10750 #endif
10751 /* On some sparc systems, changes by the child to local and incoming
10752 argument registers are propagated back to the parent. The compiler
10753 is told about this with #include <vfork.h>, but some compilers
10754 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10755 static variable whose address is put into a register that is
10756 clobbered by the vfork. */
10757 static void
10758 #ifdef __cplusplus
10759 sparc_address_test (int arg)
10760 # else
10761 sparc_address_test (arg) int arg;
10762 #endif
10764 static pid_t child;
10765 if (!child) {
10766 child = vfork ();
10767 if (child < 0) {
10768 perror ("vfork");
10769 _exit(2);
10771 if (!child) {
10772 arg = getpid();
10773 write(-1, "", 0);
10774 _exit (arg);
10780 main ()
10782 pid_t parent = getpid ();
10783 pid_t child;
10785 sparc_address_test (0);
10787 child = vfork ();
10789 if (child == 0) {
10790 /* Here is another test for sparc vfork register problems. This
10791 test uses lots of local variables, at least as many local
10792 variables as main has allocated so far including compiler
10793 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10794 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10795 reuse the register of parent for one of the local variables,
10796 since it will think that parent can't possibly be used any more
10797 in this routine. Assigning to the local variable will thus
10798 munge parent in the parent process. */
10799 pid_t
10800 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10801 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10802 /* Convince the compiler that p..p7 are live; otherwise, it might
10803 use the same hardware register for all 8 local variables. */
10804 if (p != p1 || p != p2 || p != p3 || p != p4
10805 || p != p5 || p != p6 || p != p7)
10806 _exit(1);
10808 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10809 from child file descriptors. If the child closes a descriptor
10810 before it execs or exits, this munges the parent's descriptor
10811 as well. Test for this by closing stdout in the child. */
10812 _exit(close(fileno(stdout)) != 0);
10813 } else {
10814 int status;
10815 struct stat st;
10817 while (wait(&status) != child)
10819 return (
10820 /* Was there some problem with vforking? */
10821 child < 0
10823 /* Did the child fail? (This shouldn't happen.) */
10824 || status
10826 /* Did the vfork/compiler bug occur? */
10827 || parent != getpid()
10829 /* Did the file descriptor bug occur? */
10830 || fstat(fileno(stdout), &st) != 0
10834 _ACEOF
10835 if ac_fn_cxx_try_run "$LINENO"; then :
10836 ac_cv_func_vfork_works=yes
10837 else
10838 ac_cv_func_vfork_works=no
10840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10841 conftest.$ac_objext conftest.beam conftest.$ac_ext
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10846 $as_echo "$ac_cv_func_vfork_works" >&6; }
10849 if test "x$ac_cv_func_fork_works" = xcross; then
10850 ac_cv_func_vfork_works=$ac_cv_func_vfork
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10852 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10855 if test "x$ac_cv_func_vfork_works" = xyes; then
10857 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10859 else
10861 $as_echo "#define vfork fork" >>confdefs.h
10864 if test "x$ac_cv_func_fork_works" = xyes; then
10866 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10872 if test "X$prefix" = "XNONE"; then
10873 acl_final_prefix="$ac_default_prefix"
10874 else
10875 acl_final_prefix="$prefix"
10877 if test "X$exec_prefix" = "XNONE"; then
10878 acl_final_exec_prefix='${prefix}'
10879 else
10880 acl_final_exec_prefix="$exec_prefix"
10882 acl_save_prefix="$prefix"
10883 prefix="$acl_final_prefix"
10884 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10885 prefix="$acl_save_prefix"
10888 # Check whether --with-gnu-ld was given.
10889 if test "${with_gnu_ld+set}" = set; then :
10890 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10891 else
10892 with_gnu_ld=no
10895 # Prepare PATH_SEPARATOR.
10896 # The user is always right.
10897 if test "${PATH_SEPARATOR+set}" != set; then
10898 echo "#! /bin/sh" >conf$$.sh
10899 echo "exit 0" >>conf$$.sh
10900 chmod +x conf$$.sh
10901 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10902 PATH_SEPARATOR=';'
10903 else
10904 PATH_SEPARATOR=:
10906 rm -f conf$$.sh
10908 ac_prog=ld
10909 if test "$GCC" = yes; then
10910 # Check if gcc -print-prog-name=ld gives a path.
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10912 $as_echo_n "checking for ld used by GCC... " >&6; }
10913 case $host in
10914 *-*-mingw*)
10915 # gcc leaves a trailing carriage return which upsets mingw
10916 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10918 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10919 esac
10920 case $ac_prog in
10921 # Accept absolute paths.
10922 [\\/]* | [A-Za-z]:[\\/]*)
10923 re_direlt='/[^/][^/]*/\.\./'
10924 # Canonicalize the path of ld
10925 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10926 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10927 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10928 done
10929 test -z "$LD" && LD="$ac_prog"
10932 # If it fails, then pretend we aren't using GCC.
10933 ac_prog=ld
10936 # If it is relative, then search for the first ld in PATH.
10937 with_gnu_ld=unknown
10939 esac
10940 elif test "$with_gnu_ld" = yes; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10942 $as_echo_n "checking for GNU ld... " >&6; }
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10945 $as_echo_n "checking for non-GNU ld... " >&6; }
10947 if ${acl_cv_path_LD+:} false; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 if test -z "$LD"; then
10951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10952 for ac_dir in $PATH; do
10953 test -z "$ac_dir" && ac_dir=.
10954 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10955 acl_cv_path_LD="$ac_dir/$ac_prog"
10956 # Check to see if the program is GNU ld. I'd rather use --version,
10957 # but apparently some GNU ld's only accept -v.
10958 # Break only if it was the GNU/non-GNU ld that we prefer.
10959 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10960 test "$with_gnu_ld" != no && break
10961 else
10962 test "$with_gnu_ld" != yes && break
10965 done
10966 IFS="$ac_save_ifs"
10967 else
10968 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10972 LD="$acl_cv_path_LD"
10973 if test -n "$LD"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10975 $as_echo "$LD" >&6; }
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10980 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10982 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10983 if ${acl_cv_prog_gnu_ld+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10987 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10988 acl_cv_prog_gnu_ld=yes
10989 else
10990 acl_cv_prog_gnu_ld=no
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10994 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10995 with_gnu_ld=$acl_cv_prog_gnu_ld
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11000 $as_echo_n "checking for shared library run path origin... " >&6; }
11001 if ${acl_cv_rpath+:} false; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11005 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11006 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11007 . ./conftest.sh
11008 rm -f ./conftest.sh
11009 acl_cv_rpath=done
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11013 $as_echo "$acl_cv_rpath" >&6; }
11014 wl="$acl_cv_wl"
11015 libext="$acl_cv_libext"
11016 shlibext="$acl_cv_shlibext"
11017 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11018 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11019 hardcode_direct="$acl_cv_hardcode_direct"
11020 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11021 # Check whether --enable-rpath was given.
11022 if test "${enable_rpath+set}" = set; then :
11023 enableval=$enable_rpath; :
11024 else
11025 enable_rpath=yes
11035 use_additional=yes
11037 acl_save_prefix="$prefix"
11038 prefix="$acl_final_prefix"
11039 acl_save_exec_prefix="$exec_prefix"
11040 exec_prefix="$acl_final_exec_prefix"
11042 eval additional_includedir=\"$includedir\"
11043 eval additional_libdir=\"$libdir\"
11045 exec_prefix="$acl_save_exec_prefix"
11046 prefix="$acl_save_prefix"
11049 # Check whether --with-libiconv-prefix was given.
11050 if test "${with_libiconv_prefix+set}" = set; then :
11051 withval=$with_libiconv_prefix;
11052 if test "X$withval" = "Xno"; then
11053 use_additional=no
11054 else
11055 if test "X$withval" = "X"; then
11057 acl_save_prefix="$prefix"
11058 prefix="$acl_final_prefix"
11059 acl_save_exec_prefix="$exec_prefix"
11060 exec_prefix="$acl_final_exec_prefix"
11062 eval additional_includedir=\"$includedir\"
11063 eval additional_libdir=\"$libdir\"
11065 exec_prefix="$acl_save_exec_prefix"
11066 prefix="$acl_save_prefix"
11068 else
11069 additional_includedir="$withval/include"
11070 additional_libdir="$withval/lib"
11077 # Check whether --with-libiconv-type was given.
11078 if test "${with_libiconv_type+set}" = set; then :
11079 withval=$with_libiconv_type; with_libiconv_type=$withval
11080 else
11081 with_libiconv_type=auto
11084 lib_type=`eval echo \$with_libiconv_type`
11086 LIBICONV=
11087 LTLIBICONV=
11088 INCICONV=
11089 rpathdirs=
11090 ltrpathdirs=
11091 names_already_handled=
11092 names_next_round='iconv '
11093 while test -n "$names_next_round"; do
11094 names_this_round="$names_next_round"
11095 names_next_round=
11096 for name in $names_this_round; do
11097 already_handled=
11098 for n in $names_already_handled; do
11099 if test "$n" = "$name"; then
11100 already_handled=yes
11101 break
11103 done
11104 if test -z "$already_handled"; then
11105 names_already_handled="$names_already_handled $name"
11106 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11107 eval value=\"\$HAVE_LIB$uppername\"
11108 if test -n "$value"; then
11109 if test "$value" = yes; then
11110 eval value=\"\$LIB$uppername\"
11111 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11112 eval value=\"\$LTLIB$uppername\"
11113 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11114 else
11117 else
11118 found_dir=
11119 found_la=
11120 found_so=
11121 found_a=
11122 if test $use_additional = yes; then
11123 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11124 found_dir="$additional_libdir"
11125 found_so="$additional_libdir/lib$name.$shlibext"
11126 if test -f "$additional_libdir/lib$name.la"; then
11127 found_la="$additional_libdir/lib$name.la"
11129 elif test x$lib_type != xshared; then
11130 if test -f "$additional_libdir/lib$name.$libext"; then
11131 found_dir="$additional_libdir"
11132 found_a="$additional_libdir/lib$name.$libext"
11133 if test -f "$additional_libdir/lib$name.la"; then
11134 found_la="$additional_libdir/lib$name.la"
11139 if test "X$found_dir" = "X"; then
11140 for x in $LDFLAGS $LTLIBICONV; do
11142 acl_save_prefix="$prefix"
11143 prefix="$acl_final_prefix"
11144 acl_save_exec_prefix="$exec_prefix"
11145 exec_prefix="$acl_final_exec_prefix"
11146 eval x=\"$x\"
11147 exec_prefix="$acl_save_exec_prefix"
11148 prefix="$acl_save_prefix"
11150 case "$x" in
11151 -L*)
11152 dir=`echo "X$x" | sed -e 's/^X-L//'`
11153 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11154 found_dir="$dir"
11155 found_so="$dir/lib$name.$shlibext"
11156 if test -f "$dir/lib$name.la"; then
11157 found_la="$dir/lib$name.la"
11159 elif test x$lib_type != xshared; then
11160 if test -f "$dir/lib$name.$libext"; then
11161 found_dir="$dir"
11162 found_a="$dir/lib$name.$libext"
11163 if test -f "$dir/lib$name.la"; then
11164 found_la="$dir/lib$name.la"
11169 esac
11170 if test "X$found_dir" != "X"; then
11171 break
11173 done
11175 if test "X$found_dir" != "X"; then
11176 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11177 if test "X$found_so" != "X"; then
11178 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11179 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11180 else
11181 haveit=
11182 for x in $ltrpathdirs; do
11183 if test "X$x" = "X$found_dir"; then
11184 haveit=yes
11185 break
11187 done
11188 if test -z "$haveit"; then
11189 ltrpathdirs="$ltrpathdirs $found_dir"
11191 if test "$hardcode_direct" = yes; then
11192 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11193 else
11194 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11195 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11196 haveit=
11197 for x in $rpathdirs; do
11198 if test "X$x" = "X$found_dir"; then
11199 haveit=yes
11200 break
11202 done
11203 if test -z "$haveit"; then
11204 rpathdirs="$rpathdirs $found_dir"
11206 else
11207 haveit=
11208 for x in $LDFLAGS $LIBICONV; do
11210 acl_save_prefix="$prefix"
11211 prefix="$acl_final_prefix"
11212 acl_save_exec_prefix="$exec_prefix"
11213 exec_prefix="$acl_final_exec_prefix"
11214 eval x=\"$x\"
11215 exec_prefix="$acl_save_exec_prefix"
11216 prefix="$acl_save_prefix"
11218 if test "X$x" = "X-L$found_dir"; then
11219 haveit=yes
11220 break
11222 done
11223 if test -z "$haveit"; then
11224 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11226 if test "$hardcode_minus_L" != no; then
11227 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11228 else
11229 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11234 else
11235 if test "X$found_a" != "X"; then
11236 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11237 else
11238 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11241 additional_includedir=
11242 case "$found_dir" in
11243 */lib | */lib/)
11244 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11245 additional_includedir="$basedir/include"
11247 esac
11248 if test "X$additional_includedir" != "X"; then
11249 if test "X$additional_includedir" != "X/usr/include"; then
11250 haveit=
11251 if test "X$additional_includedir" = "X/usr/local/include"; then
11252 if test -n "$GCC"; then
11253 case $host_os in
11254 linux*) haveit=yes;;
11255 esac
11258 if test -z "$haveit"; then
11259 for x in $CPPFLAGS $INCICONV; do
11261 acl_save_prefix="$prefix"
11262 prefix="$acl_final_prefix"
11263 acl_save_exec_prefix="$exec_prefix"
11264 exec_prefix="$acl_final_exec_prefix"
11265 eval x=\"$x\"
11266 exec_prefix="$acl_save_exec_prefix"
11267 prefix="$acl_save_prefix"
11269 if test "X$x" = "X-I$additional_includedir"; then
11270 haveit=yes
11271 break
11273 done
11274 if test -z "$haveit"; then
11275 if test -d "$additional_includedir"; then
11276 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11282 if test -n "$found_la"; then
11283 save_libdir="$libdir"
11284 case "$found_la" in
11285 */* | *\\*) . "$found_la" ;;
11286 *) . "./$found_la" ;;
11287 esac
11288 libdir="$save_libdir"
11289 for dep in $dependency_libs; do
11290 case "$dep" in
11291 -L*)
11292 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11293 if test "X$additional_libdir" != "X/usr/lib"; then
11294 haveit=
11295 if test "X$additional_libdir" = "X/usr/local/lib"; then
11296 if test -n "$GCC"; then
11297 case $host_os in
11298 linux*) haveit=yes;;
11299 esac
11302 if test -z "$haveit"; then
11303 haveit=
11304 for x in $LDFLAGS $LIBICONV; do
11306 acl_save_prefix="$prefix"
11307 prefix="$acl_final_prefix"
11308 acl_save_exec_prefix="$exec_prefix"
11309 exec_prefix="$acl_final_exec_prefix"
11310 eval x=\"$x\"
11311 exec_prefix="$acl_save_exec_prefix"
11312 prefix="$acl_save_prefix"
11314 if test "X$x" = "X-L$additional_libdir"; then
11315 haveit=yes
11316 break
11318 done
11319 if test -z "$haveit"; then
11320 if test -d "$additional_libdir"; then
11321 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11324 haveit=
11325 for x in $LDFLAGS $LTLIBICONV; do
11327 acl_save_prefix="$prefix"
11328 prefix="$acl_final_prefix"
11329 acl_save_exec_prefix="$exec_prefix"
11330 exec_prefix="$acl_final_exec_prefix"
11331 eval x=\"$x\"
11332 exec_prefix="$acl_save_exec_prefix"
11333 prefix="$acl_save_prefix"
11335 if test "X$x" = "X-L$additional_libdir"; then
11336 haveit=yes
11337 break
11339 done
11340 if test -z "$haveit"; then
11341 if test -d "$additional_libdir"; then
11342 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11348 -R*)
11349 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11350 if test "$enable_rpath" != no; then
11351 haveit=
11352 for x in $rpathdirs; do
11353 if test "X$x" = "X$dir"; then
11354 haveit=yes
11355 break
11357 done
11358 if test -z "$haveit"; then
11359 rpathdirs="$rpathdirs $dir"
11361 haveit=
11362 for x in $ltrpathdirs; do
11363 if test "X$x" = "X$dir"; then
11364 haveit=yes
11365 break
11367 done
11368 if test -z "$haveit"; then
11369 ltrpathdirs="$ltrpathdirs $dir"
11373 -l*)
11374 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11376 *.la)
11377 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11380 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11381 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11383 esac
11384 done
11386 else
11387 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11388 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11389 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11390 else
11391 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11392 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11397 done
11398 done
11399 if test "X$rpathdirs" != "X"; then
11400 if test -n "$hardcode_libdir_separator"; then
11401 alldirs=
11402 for found_dir in $rpathdirs; do
11403 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11404 done
11405 acl_save_libdir="$libdir"
11406 libdir="$alldirs"
11407 eval flag=\"$hardcode_libdir_flag_spec\"
11408 libdir="$acl_save_libdir"
11409 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11410 else
11411 for found_dir in $rpathdirs; do
11412 acl_save_libdir="$libdir"
11413 libdir="$found_dir"
11414 eval flag=\"$hardcode_libdir_flag_spec\"
11415 libdir="$acl_save_libdir"
11416 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11417 done
11420 if test "X$ltrpathdirs" != "X"; then
11421 for found_dir in $ltrpathdirs; do
11422 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11423 done
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11433 $as_echo_n "checking for iconv... " >&6; }
11434 if ${am_cv_func_iconv+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11438 am_cv_func_iconv="no, consider installing GNU libiconv"
11439 am_cv_lib_iconv=no
11440 am_save_CPPFLAGS="$CPPFLAGS"
11441 CPPFLAGS="$CPPFLAGS $INCICONV"
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444 #include <stdlib.h>
11445 #include <iconv.h>
11447 main ()
11449 iconv_t cd = iconv_open("","");
11450 iconv(cd,NULL,NULL,NULL,NULL);
11451 iconv_close(cd);
11453 return 0;
11455 _ACEOF
11456 if ac_fn_cxx_try_link "$LINENO"; then :
11457 am_cv_func_iconv=yes
11459 rm -f core conftest.err conftest.$ac_objext \
11460 conftest$ac_exeext conftest.$ac_ext
11461 CPPFLAGS="$am_save_CPPFLAGS"
11463 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11464 for _libs in .libs _libs; do
11465 am_save_CPPFLAGS="$CPPFLAGS"
11466 am_save_LIBS="$LIBS"
11467 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11468 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11471 #include <stdlib.h>
11472 #include <iconv.h>
11474 main ()
11476 iconv_t cd = iconv_open("","");
11477 iconv(cd,NULL,NULL,NULL,NULL);
11478 iconv_close(cd);
11480 return 0;
11482 _ACEOF
11483 if ac_fn_cxx_try_link "$LINENO"; then :
11484 INCICONV="-I../libiconv/include"
11485 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11486 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11487 am_cv_lib_iconv=yes
11488 am_cv_func_iconv=yes
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 CPPFLAGS="$am_save_CPPFLAGS"
11493 LIBS="$am_save_LIBS"
11494 if test "$am_cv_func_iconv" = "yes"; then
11495 break
11497 done
11500 if test "$am_cv_func_iconv" != yes; then
11501 am_save_CPPFLAGS="$CPPFLAGS"
11502 am_save_LIBS="$LIBS"
11503 CPPFLAGS="$CPPFLAGS $INCICONV"
11504 LIBS="$LIBS $LIBICONV"
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h. */
11507 #include <stdlib.h>
11508 #include <iconv.h>
11510 main ()
11512 iconv_t cd = iconv_open("","");
11513 iconv(cd,NULL,NULL,NULL,NULL);
11514 iconv_close(cd);
11516 return 0;
11518 _ACEOF
11519 if ac_fn_cxx_try_link "$LINENO"; then :
11520 am_cv_lib_iconv=yes
11521 am_cv_func_iconv=yes
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 CPPFLAGS="$am_save_CPPFLAGS"
11526 LIBS="$am_save_LIBS"
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11531 $as_echo "$am_cv_func_iconv" >&6; }
11532 if test "$am_cv_func_iconv" = yes; then
11534 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11537 if test "$am_cv_lib_iconv" = yes; then
11539 for element in $INCICONV; do
11540 haveit=
11541 for x in $CPPFLAGS; do
11543 acl_save_prefix="$prefix"
11544 prefix="$acl_final_prefix"
11545 acl_save_exec_prefix="$exec_prefix"
11546 exec_prefix="$acl_final_exec_prefix"
11547 eval x=\"$x\"
11548 exec_prefix="$acl_save_exec_prefix"
11549 prefix="$acl_save_prefix"
11551 if test "X$x" = "X$element"; then
11552 haveit=yes
11553 break
11555 done
11556 if test -z "$haveit"; then
11557 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11559 done
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11562 $as_echo_n "checking how to link with libiconv... " >&6; }
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11564 $as_echo "$LIBICONV" >&6; }
11565 else
11566 LIBICONV=
11567 LTLIBICONV=
11572 if test "$am_cv_func_iconv" = yes; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11574 $as_echo_n "checking for iconv declaration... " >&6; }
11575 if ${am_cv_proto_iconv+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11582 #include <stdlib.h>
11583 #include <iconv.h>
11584 extern
11585 #ifdef __cplusplus
11587 #endif
11588 #if defined(__STDC__) || defined(__cplusplus)
11589 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11590 #else
11591 size_t iconv();
11592 #endif
11595 main ()
11599 return 0;
11601 _ACEOF
11602 if ac_fn_cxx_try_compile "$LINENO"; then :
11603 am_cv_proto_iconv_arg1=""
11604 else
11605 am_cv_proto_iconv_arg1="const"
11607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608 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);"
11611 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11613 }$am_cv_proto_iconv" >&5
11614 $as_echo "${ac_t:-
11615 }$am_cv_proto_iconv" >&6; }
11617 cat >>confdefs.h <<_ACEOF
11618 #define ICONV_CONST $am_cv_proto_iconv_arg1
11619 _ACEOF
11624 # Until we have in-tree GNU iconv:
11625 LIBICONV_DEP=
11626 if test -f "$LTLIBICONV"; then
11627 LIBICONV_DEP=$LTLIBICONV
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11633 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11634 if ${am_cv_val_LC_MESSAGES+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639 #include <locale.h>
11641 main ()
11643 return LC_MESSAGES
11645 return 0;
11647 _ACEOF
11648 if ac_fn_cxx_try_link "$LINENO"; then :
11649 am_cv_val_LC_MESSAGES=yes
11650 else
11651 am_cv_val_LC_MESSAGES=no
11653 rm -f core conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11657 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11658 if test $am_cv_val_LC_MESSAGES = yes; then
11660 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11667 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11668 if ${am_cv_langinfo_codeset+:} false; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11673 #include <langinfo.h>
11675 main ()
11677 char* cs = nl_langinfo(CODESET);
11679 return 0;
11681 _ACEOF
11682 if ac_fn_cxx_try_link "$LINENO"; then :
11683 am_cv_langinfo_codeset=yes
11684 else
11685 am_cv_langinfo_codeset=no
11687 rm -f core conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11692 $as_echo "$am_cv_langinfo_codeset" >&6; }
11693 if test $am_cv_langinfo_codeset = yes; then
11695 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11700 # We will need to find libiberty.h and ansidecl.h
11701 saved_CFLAGS="$CFLAGS"
11702 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11703 saved_CXXFLAGS="$CXXFLAGS"
11704 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11706 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11707 # normal autoconf function for these. But force definition of
11708 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11709 # basename handling in libiberty.h.
11710 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11711 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11712 #undef HAVE_DECL_BASENAME
11713 #define HAVE_DECL_BASENAME 1
11714 #include \"ansidecl.h\"
11715 #include \"system.h\"
11717 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11718 ac_have_decl=1
11719 else
11720 ac_have_decl=0
11723 cat >>confdefs.h <<_ACEOF
11724 #define HAVE_DECL_BASENAME $ac_have_decl
11725 _ACEOF
11726 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11727 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11728 #undef HAVE_DECL_BASENAME
11729 #define HAVE_DECL_BASENAME 1
11730 #include \"ansidecl.h\"
11731 #include \"system.h\"
11733 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11734 ac_have_decl=1
11735 else
11736 ac_have_decl=0
11739 cat >>confdefs.h <<_ACEOF
11740 #define HAVE_DECL_STRSTR $ac_have_decl
11741 _ACEOF
11744 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11745 madvise stpcpy strnlen strsignal strverscmp \
11746 strtol strtoul strtoll strtoull setenv unsetenv \
11747 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11748 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
11750 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11752 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11753 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11754 $as_echo_n "(cached) " >&6
11755 else
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11758 #undef $ac_tr_decl
11759 #define $ac_tr_decl 1
11761 #include "ansidecl.h"
11762 #include "system.h"
11765 main ()
11767 #ifndef $ac_func
11768 char *(*pfn) = (char *(*)) $ac_func ;
11769 #endif
11771 return 0;
11773 _ACEOF
11774 if ac_fn_cxx_try_compile "$LINENO"; then :
11775 eval "gcc_cv_have_decl_$ac_func=yes"
11776 else
11777 eval "gcc_cv_have_decl_$ac_func=no"
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11782 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11784 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11785 #define $ac_tr_decl 1
11786 _ACEOF
11788 else
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11791 #define $ac_tr_decl 0
11792 _ACEOF
11796 done
11799 for ac_func in getrlimit setrlimit getrusage
11801 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11803 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11804 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11809 #undef $ac_tr_decl
11810 #define $ac_tr_decl 1
11812 #include "ansidecl.h"
11813 #include "system.h"
11814 #ifdef HAVE_SYS_RESOURCE_H
11815 #include <sys/resource.h>
11816 #endif
11820 main ()
11822 #ifndef $ac_func
11823 char *(*pfn) = (char *(*)) $ac_func ;
11824 #endif
11826 return 0;
11828 _ACEOF
11829 if ac_fn_cxx_try_compile "$LINENO"; then :
11830 eval "gcc_cv_have_decl_$ac_func=yes"
11831 else
11832 eval "gcc_cv_have_decl_$ac_func=no"
11834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11839 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11840 #define $ac_tr_decl 1
11841 _ACEOF
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11846 #define $ac_tr_decl 0
11847 _ACEOF
11851 done
11854 for ac_func in mallinfo mallinfo2
11856 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11858 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11859 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11864 #undef $ac_tr_decl
11865 #define $ac_tr_decl 1
11867 #include "ansidecl.h"
11868 #include "system.h"
11869 #ifdef HAVE_MALLOC_H
11870 #include <malloc.h>
11871 #endif
11875 main ()
11877 #ifndef $ac_func
11878 char *(*pfn) = (char *(*)) $ac_func ;
11879 #endif
11881 return 0;
11883 _ACEOF
11884 if ac_fn_cxx_try_compile "$LINENO"; then :
11885 eval "gcc_cv_have_decl_$ac_func=yes"
11886 else
11887 eval "gcc_cv_have_decl_$ac_func=no"
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11892 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11895 #define $ac_tr_decl 1
11896 _ACEOF
11898 else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11901 #define $ac_tr_decl 0
11902 _ACEOF
11906 done
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11912 #include "ansidecl.h"
11913 #include "system.h"
11914 #ifdef HAVE_SYS_RESOURCE_H
11915 #include <sys/resource.h>
11916 #endif
11919 main ()
11921 rlim_t l = 0;
11923 return 0;
11925 _ACEOF
11926 if ac_fn_cxx_try_compile "$LINENO"; then :
11928 else
11930 $as_echo "#define rlim_t long" >>confdefs.h
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11936 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11937 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11938 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11939 for ac_func in ldgetname
11941 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11943 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11944 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949 #undef $ac_tr_decl
11950 #define $ac_tr_decl 1
11952 #include "ansidecl.h"
11953 #include "system.h"
11954 #ifdef HAVE_LDFCN_H
11955 #undef FREAD
11956 #undef FWRITE
11957 #include <ldfcn.h>
11958 #endif
11962 main ()
11964 #ifndef $ac_func
11965 char *(*pfn) = (char *(*)) $ac_func ;
11966 #endif
11968 return 0;
11970 _ACEOF
11971 if ac_fn_cxx_try_compile "$LINENO"; then :
11972 eval "gcc_cv_have_decl_$ac_func=yes"
11973 else
11974 eval "gcc_cv_have_decl_$ac_func=no"
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11981 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11982 #define $ac_tr_decl 1
11983 _ACEOF
11985 else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11988 #define $ac_tr_decl 0
11989 _ACEOF
11993 done
11996 for ac_func in times
11998 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12000 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12001 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12006 #undef $ac_tr_decl
12007 #define $ac_tr_decl 1
12009 #include "ansidecl.h"
12010 #include "system.h"
12011 #ifdef HAVE_SYS_TIMES_H
12012 #include <sys/times.h>
12013 #endif
12017 main ()
12019 #ifndef $ac_func
12020 char *(*pfn) = (char *(*)) $ac_func ;
12021 #endif
12023 return 0;
12025 _ACEOF
12026 if ac_fn_cxx_try_compile "$LINENO"; then :
12027 eval "gcc_cv_have_decl_$ac_func=yes"
12028 else
12029 eval "gcc_cv_have_decl_$ac_func=no"
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12037 #define $ac_tr_decl 1
12038 _ACEOF
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12043 #define $ac_tr_decl 0
12044 _ACEOF
12048 done
12051 for ac_func in sigaltstack
12053 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12055 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12056 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #undef $ac_tr_decl
12062 #define $ac_tr_decl 1
12064 #include "ansidecl.h"
12065 #include "system.h"
12066 #include <signal.h>
12070 main ()
12072 #ifndef $ac_func
12073 char *(*pfn) = (char *(*)) $ac_func ;
12074 #endif
12076 return 0;
12078 _ACEOF
12079 if ac_fn_cxx_try_compile "$LINENO"; then :
12080 eval "gcc_cv_have_decl_$ac_func=yes"
12081 else
12082 eval "gcc_cv_have_decl_$ac_func=no"
12084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12089 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12090 #define $ac_tr_decl 1
12091 _ACEOF
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12096 #define $ac_tr_decl 0
12097 _ACEOF
12101 done
12104 # More time-related stuff.
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12106 $as_echo_n "checking for struct tms... " >&6; }
12107 if ${ac_cv_struct_tms+:} false; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12114 #include "ansidecl.h"
12115 #include "system.h"
12116 #ifdef HAVE_SYS_TIMES_H
12117 #include <sys/times.h>
12118 #endif
12121 main ()
12123 struct tms tms;
12125 return 0;
12127 _ACEOF
12128 if ac_fn_cxx_try_compile "$LINENO"; then :
12129 ac_cv_struct_tms=yes
12130 else
12131 ac_cv_struct_tms=no
12133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12136 $as_echo "$ac_cv_struct_tms" >&6; }
12137 if test $ac_cv_struct_tms = yes; then
12139 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12143 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12144 # revisit after autoconf 2.50.
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12146 $as_echo_n "checking for clock_t... " >&6; }
12147 if ${gcc_cv_type_clock_t+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12154 #include "ansidecl.h"
12155 #include "system.h"
12158 main ()
12160 clock_t x;
12162 return 0;
12164 _ACEOF
12165 if ac_fn_cxx_try_compile "$LINENO"; then :
12166 gcc_cv_type_clock_t=yes
12167 else
12168 gcc_cv_type_clock_t=no
12170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12173 $as_echo "$gcc_cv_type_clock_t" >&6; }
12174 if test $gcc_cv_type_clock_t = yes; then
12176 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12180 # Check if F_SETLKW is supported by fcntl.
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12182 $as_echo_n "checking for F_SETLKW... " >&6; }
12183 if ${ac_cv_f_setlkw+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12190 #include <fcntl.h>
12192 main ()
12195 struct flock fl;
12196 fl.l_whence = 0;
12197 fl.l_start = 0;
12198 fl.l_len = 0;
12199 fl.l_pid = 0;
12200 return fcntl (1, F_SETLKW, &fl);
12202 return 0;
12204 _ACEOF
12205 if ac_fn_cxx_try_compile "$LINENO"; then :
12206 ac_cv_f_setlkw=yes
12207 else
12208 ac_cv_f_setlkw=no
12210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12213 $as_echo "$ac_cv_f_setlkw" >&6; }
12214 if test $ac_cv_f_setlkw = yes; then
12216 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12220 # Check if O_CLOEXEC is defined by fcntl
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12222 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12223 if ${ac_cv_o_cloexec+:} false; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12230 #include <fcntl.h>
12232 main ()
12235 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12237 return 0;
12239 _ACEOF
12240 if ac_fn_cxx_try_compile "$LINENO"; then :
12241 ac_cv_o_cloexec=yes
12242 else
12243 ac_cv_o_cloexec=no
12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12248 $as_echo "$ac_cv_o_cloexec" >&6; }
12249 if test $ac_cv_o_cloexec = yes; then
12251 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12255 # C++ Modules would like some networking features to provide the mapping
12256 # server. You can still use modules without them though.
12257 # The following network-related checks could probably do with some
12258 # Windows and other non-linux defenses and checking.
12260 # Local socket connectivity wants AF_UNIX networking
12261 # Check for AF_UNIX networking
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12263 $as_echo_n "checking for AF_UNIX... " >&6; }
12264 if ${ac_cv_af_unix+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12271 #include <sys/types.h>
12272 #include <sys/socket.h>
12273 #include <sys/un.h>
12274 #include <netinet/in.h>
12276 main ()
12279 sockaddr_un un;
12280 un.sun_family = AF_UNSPEC;
12281 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12282 connect (fd, (sockaddr *)&un, sizeof (un));
12284 return 0;
12286 _ACEOF
12287 if ac_fn_cxx_try_compile "$LINENO"; then :
12288 ac_cv_af_unix=yes
12289 else
12290 ac_cv_af_unix=no
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12295 $as_echo "$ac_cv_af_unix" >&6; }
12296 if test $ac_cv_af_unix = yes; then
12298 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12302 # Remote socket connectivity wants AF_INET6 networking
12303 # Check for AF_INET6 networking
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12305 $as_echo_n "checking for AF_INET6... " >&6; }
12306 if ${ac_cv_af_inet6+:} false; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12313 #include <sys/types.h>
12314 #include <sys/socket.h>
12315 #include <netinet/in.h>
12316 #include <netdb.h>
12318 main ()
12321 sockaddr_in6 in6;
12322 in6.sin6_family = AF_UNSPEC;
12323 struct addrinfo *addrs = 0;
12324 struct addrinfo hints;
12325 hints.ai_flags = 0;
12326 hints.ai_family = AF_INET6;
12327 hints.ai_socktype = SOCK_STREAM;
12328 hints.ai_protocol = 0;
12329 hints.ai_canonname = 0;
12330 hints.ai_addr = 0;
12331 hints.ai_next = 0;
12332 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12333 const char *str = gai_strerror (e);
12334 freeaddrinfo (addrs);
12335 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12336 connect (fd, (sockaddr *)&in6, sizeof (in6));
12338 return 0;
12340 _ACEOF
12341 if ac_fn_cxx_try_compile "$LINENO"; then :
12342 ac_cv_af_inet6=yes
12343 else
12344 ac_cv_af_inet6=no
12346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12349 $as_echo "$ac_cv_af_inet6" >&6; }
12350 if test $ac_cv_af_inet6 = yes; then
12352 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12356 # Check if _LK_LOCK is supported by _locking
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12358 $as_echo_n "checking for _LK_LOCK... " >&6; }
12359 if ${ac_cv_lk_lock+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12366 #include <io.h>
12367 #include <sys/locking.h>
12369 main ()
12372 int fd;
12373 return _locking (fd, _LK_LOCK, 0);
12375 return 0;
12377 _ACEOF
12378 if ac_fn_cxx_try_compile "$LINENO"; then :
12379 ac_cv_lk_lock=yes
12380 else
12381 ac_cv_lk_lock=no
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12386 $as_echo "$ac_cv_lk_lock" >&6; }
12387 if test $ac_cv_lk_lock = yes; then
12389 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12393 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12394 CFLAGS="$saved_CFLAGS"
12395 CXXFLAGS="$saved_CXXFLAGS"
12397 # mkdir takes a single argument on some systems.
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12399 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12400 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12406 #include <sys/types.h>
12407 #ifdef HAVE_SYS_STAT_H
12408 # include <sys/stat.h>
12409 #endif
12410 #ifdef HAVE_UNISTD_H
12411 # include <unistd.h>
12412 #endif
12413 #ifdef HAVE_DIRECT_H
12414 # include <direct.h>
12415 #endif
12417 main ()
12419 mkdir ("foo", 0);
12421 return 0;
12423 _ACEOF
12424 if ac_fn_cxx_try_compile "$LINENO"; then :
12425 gcc_cv_mkdir_takes_one_arg=no
12426 else
12427 gcc_cv_mkdir_takes_one_arg=yes
12429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12432 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12433 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12435 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12440 # File extensions
12441 manext='.1'
12442 objext='.o'
12446 # With Setjmp/Longjmp based exception handling.
12447 # Check whether --enable-sjlj-exceptions was given.
12448 if test "${enable_sjlj_exceptions+set}" = set; then :
12449 enableval=$enable_sjlj_exceptions; case $target in
12450 *-*-hpux10*)
12451 if test $enableval != yes; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12453 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12454 enableval=yes
12457 esac
12458 force_sjlj_exceptions=yes
12459 else
12460 case $target in
12461 *-*-hpux10*)
12462 force_sjlj_exceptions=yes
12463 enableval=yes
12465 lm32*-*-*)
12466 force_sjlj_exceptions=yes
12467 enableval=yes
12470 force_sjlj_exceptions=no
12472 esac
12475 if test $force_sjlj_exceptions = yes; then
12476 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12478 cat >>confdefs.h <<_ACEOF
12479 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12480 _ACEOF
12484 # --------------------------------------------------------
12485 # Build, host, and target specific configuration fragments
12486 # --------------------------------------------------------
12488 # Collect build-machine-specific information.
12489 . ${srcdir}/config.build || exit 1
12491 # Collect host-machine-specific information.
12492 . ${srcdir}/config.host || exit 1
12494 target_gtfiles=
12496 # Collect target-machine-specific information.
12497 . ${srcdir}/config.gcc || exit 1
12499 extra_objs="${host_extra_objs} ${extra_objs}"
12500 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12502 # Default the target-machine variables that were not explicitly set.
12503 if test x"$tm_file" = x
12504 then tm_file=$cpu_type/$cpu_type.h; fi
12506 if test x"$extra_headers" = x
12507 then extra_headers=; fi
12509 if test x$md_file = x
12510 then md_file=$cpu_type/$cpu_type.md; fi
12512 if test x$out_file = x
12513 then out_file=$cpu_type/$cpu_type.c; fi
12515 if test x"$tmake_file" = x
12516 then tmake_file=$cpu_type/t-$cpu_type
12519 # Support --enable-initfini-array.
12520 if test x$enable_initfini_array != xno; then
12521 tm_file="${tm_file} initfini-array.h"
12524 if test x"$dwarf2" = xyes
12525 then tm_file="$tm_file tm-dwarf2.h"
12528 # Say what files are being used for the output code and MD file.
12529 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12530 echo "Using \`$srcdir/config/$md_file' as machine description file."
12532 # If any of the xm_file variables contain nonexistent files, warn
12533 # about them and drop them.
12536 for x in $build_xm_file; do
12537 if test -f $srcdir/config/$x
12538 then bx="$bx $x"
12539 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12540 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12542 done
12543 build_xm_file="$bx"
12546 for x in $host_xm_file; do
12547 if test -f $srcdir/config/$x
12548 then hx="$hx $x"
12549 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12550 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12552 done
12553 host_xm_file="$hx"
12556 for x in $xm_file; do
12557 if test -f $srcdir/config/$x
12558 then tx="$tx $x"
12559 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12560 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12562 done
12563 xm_file="$tx"
12565 count=a
12566 for f in $tm_file; do
12567 count=${count}x
12568 done
12569 if test $count = ax; then
12570 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12571 else
12572 echo "Using the following target machine macro files:"
12573 for f in $tm_file; do
12574 echo " $srcdir/config/$f"
12575 done
12578 if test x$use_long_long_for_widest_fast_int = xyes; then
12580 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12584 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12586 cat >>confdefs.h <<_ACEOF
12587 #define HAVE_GNU_LD $gnu_ld_bool
12588 _ACEOF
12591 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12593 cat >>confdefs.h <<_ACEOF
12594 #define HAVE_GNU_AS $gnu_as_bool
12595 _ACEOF
12598 count=a
12599 for f in $host_xm_file; do
12600 count=${count}x
12601 done
12602 if test $count = a; then
12604 elif test $count = ax; then
12605 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12606 else
12607 echo "Using the following host machine macro files:"
12608 for f in $host_xm_file; do
12609 echo " $srcdir/config/$f"
12610 done
12612 echo "Using ${out_host_hook_obj} for host machine hooks."
12614 if test "$host_xm_file" != "$build_xm_file"; then
12615 count=a
12616 for f in $build_xm_file; do
12617 count=${count}x
12618 done
12619 if test $count = a; then
12621 elif test $count = ax; then
12622 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12623 else
12624 echo "Using the following build machine macro files:"
12625 for f in $build_xm_file; do
12626 echo " $srcdir/config/$f"
12627 done
12631 if test -n "$configured_native_system_header_dir"; then
12632 native_system_header_dir=$configured_native_system_header_dir
12634 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12637 case ${host} in
12638 powerpc*-*-darwin*)
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12640 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12641 if ${gcc_cv_mcontext_underscores+:} false; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12647 #include <sys/cdefs.h>
12648 #include <sys/signal.h>
12649 #include <ucontext.h>
12650 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12652 _ACEOF
12653 if ac_fn_cxx_try_compile "$LINENO"; then :
12654 gcc_cv_mcontext_underscores=no
12655 else
12656 gcc_cv_mcontext_underscores=yes
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12661 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12662 if test $gcc_cv_mcontext_underscores = yes; then
12664 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12668 esac
12670 # ---------
12671 # Threading
12672 # ---------
12674 # Check if a valid thread package
12675 case ${enable_threads} in
12676 "" | no)
12677 # No threads
12678 target_thread_file='single'
12680 yes)
12681 # default
12682 target_thread_file='single'
12684 aix | dce | lynx | mipssde | posix | rtems | \
12685 single | tpf | vxworks | win32)
12686 target_thread_file=${enable_threads}
12689 echo "${enable_threads} is an unknown thread package" 1>&2
12690 exit 1
12692 esac
12694 if test x${thread_file} = x; then
12695 # No thread file set by target-specific clauses in config.gcc,
12696 # so use file chosen by default logic above
12697 thread_file=${target_thread_file}
12700 # --------
12701 # UNSORTED
12702 # --------
12704 use_cxa_atexit=no
12705 if test x$enable___cxa_atexit = xyes || \
12706 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12707 if test x$host = x$target; then
12708 case $host in
12709 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12710 # keyed to flag_use_cxa_atexit
12711 *-*-mingw32*)
12712 use_cxa_atexit=yes
12714 powerpc-ibm-aix*)
12715 use_cxa_atexit=yes
12718 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12719 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12720 use_cxa_atexit=yes
12721 else
12722 echo "__cxa_atexit can't be enabled on this target"
12726 esac
12727 else
12728 # We can't check for __cxa_atexit when building a cross, so assume
12729 # it is available
12730 use_cxa_atexit=yes
12732 if test x$use_cxa_atexit = xyes; then
12734 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12739 # Look for a file containing extra machine modes.
12740 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12741 extra_modes_file='$(srcdir)'/config/${extra_modes}
12744 cat >>confdefs.h <<_ACEOF
12745 #define EXTRA_MODES_FILE "config/$extra_modes"
12746 _ACEOF
12750 # Convert extra_options into a form suitable for Makefile use.
12751 extra_opt_files=
12752 all_opt_files=
12753 for f in $extra_options; do
12754 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12755 all_opt_files="$all_opt_files $srcdir/config/$f"
12756 done
12759 # auto-host.h is the file containing items generated by autoconf and is
12760 # the first file included by config.h.
12761 # If host=build, it is correct to have bconfig include auto-host.h
12762 # as well. If host!=build, we are in error and need to do more
12763 # work to find out the build config parameters.
12764 if test x$host = x$build
12765 then
12766 build_auto=auto-host.h
12767 HAVE_AUTO_BUILD='# '
12768 else
12769 # We create a subdir, then run autoconf in the subdir.
12770 # To prevent recursion we set host and build for the new
12771 # invocation of configure to the build for this invocation
12772 # of configure.
12773 tempdir=build.$$
12774 rm -rf $tempdir
12775 mkdir $tempdir
12776 cd $tempdir
12777 case ${srcdir} in
12778 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12779 *) realsrcdir=../${srcdir};;
12780 esac
12781 # Clearing GMPINC is necessary to prevent host headers being
12782 # used by the build compiler. Defining GENERATOR_FILE stops
12783 # system.h from including gmp.h.
12784 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12785 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12786 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12787 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12788 ${realsrcdir}/configure \
12789 --enable-languages=${enable_languages-all} \
12790 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12791 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12792 --target=$target_alias --host=$build_alias \
12793 --build=$build_alias || exit # retaining $tempdir
12795 # We just finished tests for the build machine, so rename
12796 # the file auto-build.h in the gcc directory.
12797 mv auto-host.h ../auto-build.h
12798 cd ..
12799 rm -rf $tempdir
12800 build_auto=auto-build.h
12801 HAVE_AUTO_BUILD=
12806 tm_file="${tm_file} defaults.h"
12807 tm_p_file="${tm_p_file} tm-preds.h"
12808 tm_d_file="${tm_d_file} defaults.h"
12809 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12810 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12811 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12812 # put this back in temporarily.
12813 xm_file="auto-host.h ansidecl.h ${xm_file}"
12815 # --------
12816 # UNSORTED
12817 # --------
12819 # Compile in configure arguments.
12820 if test -f configargs.h ; then
12821 # Being re-configured.
12822 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12823 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12824 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12825 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12827 else
12828 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12831 # Double all backslashes and backslash all quotes to turn
12832 # gcc_config_arguments into a C string.
12833 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12834 $gcc_config_arguments
12836 gcc_config_arguments_str=`cat conftest.out`
12837 rm -f conftest.out
12839 cat > configargs.h <<EOF
12840 /* Generated automatically. */
12841 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12842 static const char thread_model[] = "$thread_file";
12844 static const struct {
12845 const char *name, *value;
12846 } configure_default_options[] = $configure_default_options;
12849 gcc_BASEVER=`cat $srcdir/BASE-VER`
12850 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12851 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12852 if test -f $srcdir/REVISION ; then
12853 gcc_REVISION=`cat $srcdir/REVISION`
12854 else
12855 gcc_REVISION=""
12857 cat > plugin-version.h <<EOF
12858 #include "configargs.h"
12860 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12861 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12862 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12863 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12865 static char basever[] = "$gcc_BASEVER";
12866 static char datestamp[] = "$gcc_DATESTAMP";
12867 static char devphase[] = "$gcc_DEVPHASE";
12868 static char revision[] = "$gcc_REVISION";
12870 /* FIXME plugins: We should make the version information more precise.
12871 One way to do is to add a checksum. */
12873 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12874 devphase, revision,
12875 configuration_arguments};
12878 # Determine what GCC version number to use in filesystem paths.
12880 get_gcc_base_ver="cat"
12882 # Check whether --with-gcc-major-version-only was given.
12883 if test "${with_gcc_major_version_only+set}" = set; then :
12884 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12885 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12893 # Internationalization
12894 # If we haven't got the data from the intl directory,
12895 # assume NLS is disabled.
12896 USE_NLS=no
12897 LIBINTL=
12898 LIBINTL_DEP=
12899 INCINTL=
12900 XGETTEXT=
12901 GMSGFMT=
12902 POSUB=
12904 if test -f ../intl/config.intl; then
12905 . ../intl/config.intl
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12908 $as_echo_n "checking whether NLS is requested... " >&6; }
12909 if test x"$USE_NLS" != xyes; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12912 else
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12914 $as_echo "yes" >&6; }
12916 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12920 $as_echo_n "checking for catalogs to be installed... " >&6; }
12921 # Look for .po and .gmo files in the source directory.
12922 CATALOGS=
12923 XLINGUAS=
12924 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12925 # If there aren't any .gmo files the shell will give us the
12926 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12927 # weeded out.
12928 case "$cat" in *\**)
12929 continue;;
12930 esac
12931 # The quadruple backslash is collapsed to a double backslash
12932 # by the backticks, then collapsed again by the double quotes,
12933 # leaving us with one backslash in the sed expression (right
12934 # before the dot that mustn't act as a wildcard).
12935 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12936 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12937 # The user is allowed to set LINGUAS to a list of languages to
12938 # install catalogs for. If it's empty that means "all of them."
12939 if test "x$LINGUAS" = x; then
12940 CATALOGS="$CATALOGS $cat"
12941 XLINGUAS="$XLINGUAS $lang"
12942 else
12943 case "$LINGUAS" in *$lang*)
12944 CATALOGS="$CATALOGS $cat"
12945 XLINGUAS="$XLINGUAS $lang"
12947 esac
12949 done
12950 LINGUAS="$XLINGUAS"
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12952 $as_echo "$LINGUAS" >&6; }
12955 DATADIRNAME=share
12957 INSTOBJEXT=.mo
12959 GENCAT=gencat
12961 CATOBJEXT=.gmo
12965 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12966 # -liconv on the link line twice.
12967 case "$LIBINTL" in *$LIBICONV*)
12968 LIBICONV= ;;
12969 esac
12971 # Check whether --enable-secureplt was given.
12972 if test "${enable_secureplt+set}" = set; then :
12973 enableval=$enable_secureplt;
12977 # Check whether --enable-mingw-wildcard was given.
12978 if test "${enable_mingw_wildcard+set}" = set; then :
12979 enableval=$enable_mingw_wildcard;
12980 else
12981 enable_mingw_wildcard=platform
12984 if test x"$enable_mingw_wildcard" != xplatform ; then :
12986 cat >>confdefs.h <<_ACEOF
12987 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12988 _ACEOF
12992 # Check whether --enable-large-address-aware was given.
12993 if test "${enable_large_address_aware+set}" = set; then :
12994 enableval=$enable_large_address_aware;
12997 if test x"$enable_large_address_aware" = xyes; then :
12999 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13003 # Check whether --enable-leading-mingw64-underscores was given.
13004 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13005 enableval=$enable_leading_mingw64_underscores;
13008 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13010 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13014 # Check whether --enable-cld was given.
13015 if test "${enable_cld+set}" = set; then :
13016 enableval=$enable_cld;
13017 else
13018 enable_cld=no
13022 # Check whether --enable-frame-pointer was given.
13023 if test "${enable_frame_pointer+set}" = set; then :
13024 enableval=$enable_frame_pointer;
13025 else
13027 case $target_os in
13028 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13029 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13030 enable_frame_pointer=no
13033 enable_frame_pointer=yes
13035 esac
13040 case $target in
13041 i[34567]86-*-* | x86_64-*-*)
13042 if test "x$enable_cld" = xyes; then
13043 tm_defines="${tm_defines} USE_IX86_CLD=1"
13045 if test "x$enable_frame_pointer" = xyes; then
13046 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13049 esac
13051 # Windows32 Registry support for specifying GCC installation paths.
13052 # Check whether --enable-win32-registry was given.
13053 if test "${enable_win32_registry+set}" = set; then :
13054 enableval=$enable_win32_registry;
13058 case $host_os in
13059 win32 | pe | cygwin* | mingw32*)
13060 if test "x$enable_win32_registry" != xno; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13062 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13063 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066 ac_func_search_save_LIBS=$LIBS
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13070 /* Override any GCC internal prototype to avoid an error.
13071 Use char because int might match the return type of a GCC
13072 builtin and then its argument prototype would still apply. */
13073 #ifdef __cplusplus
13074 extern "C"
13075 #endif
13076 char RegOpenKeyExA ();
13078 main ()
13080 return RegOpenKeyExA ();
13082 return 0;
13084 _ACEOF
13085 for ac_lib in '' advapi32; do
13086 if test -z "$ac_lib"; then
13087 ac_res="none required"
13088 else
13089 ac_res=-l$ac_lib
13090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13092 if ac_fn_cxx_try_link "$LINENO"; then :
13093 ac_cv_search_RegOpenKeyExA=$ac_res
13095 rm -f core conftest.err conftest.$ac_objext \
13096 conftest$ac_exeext
13097 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13098 break
13100 done
13101 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13103 else
13104 ac_cv_search_RegOpenKeyExA=no
13106 rm conftest.$ac_ext
13107 LIBS=$ac_func_search_save_LIBS
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13110 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13111 ac_res=$ac_cv_search_RegOpenKeyExA
13112 if test "$ac_res" != no; then :
13113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13115 else
13116 enable_win32_registry=no
13121 if test "x$enable_win32_registry" != xno; then
13123 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13126 if test "x$enable_win32_registry" != xyes \
13127 && test "x$enable_win32_registry" != x; then
13129 cat >>confdefs.h <<_ACEOF
13130 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13131 _ACEOF
13136 esac
13138 # Get an absolute path to the GCC top-level source directory
13139 holddir=`${PWDCMD-pwd}`
13140 cd $srcdir
13141 topdir=`${PWDCMD-pwd}`
13142 cd $holddir
13144 # Conditionalize the makefile for this host machine.
13145 xmake_file=
13146 for f in ${host_xmake_file}
13148 if test -f ${srcdir}/config/$f
13149 then
13150 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13152 done
13154 # Conditionalize the makefile for this target machine.
13155 tmake_file_=
13156 for f in ${tmake_file}
13158 if test -f ${srcdir}/config/$f
13159 then
13160 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13162 done
13163 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13165 out_object_file=`basename $out_file .c`.o
13166 common_out_object_file=`basename $common_out_file .c`.o
13168 tm_file_list="options.h"
13169 tm_include_list="options.h insn-constants.h"
13170 for f in $tm_file; do
13171 case $f in
13172 ./* )
13173 f=`echo $f | sed 's/^..//'`
13174 tm_file_list="${tm_file_list} $f"
13175 tm_include_list="${tm_include_list} $f"
13177 defaults.h )
13178 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13179 tm_include_list="${tm_include_list} $f"
13182 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13183 tm_include_list="${tm_include_list} config/$f"
13185 esac
13186 done
13188 tm_p_file_list=
13189 tm_p_include_list=
13190 for f in $tm_p_file; do
13191 case $f in
13192 tm-preds.h )
13193 tm_p_file_list="${tm_p_file_list} $f"
13194 tm_p_include_list="${tm_p_include_list} $f"
13197 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13198 tm_p_include_list="${tm_p_include_list} config/$f"
13199 esac
13200 done
13202 tm_d_file_list=
13203 tm_d_include_list="options.h insn-constants.h"
13204 for f in $tm_d_file; do
13205 case $f in
13206 defaults.h )
13207 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
13208 tm_d_include_list="${tm_d_include_list} $f"
13211 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13212 tm_d_include_list="${tm_d_include_list} config/$f"
13214 esac
13215 done
13217 xm_file_list=
13218 xm_include_list=
13219 for f in $xm_file; do
13220 case $f in
13221 ansidecl.h )
13222 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13223 xm_include_list="${xm_include_list} $f"
13225 auto-host.h )
13226 xm_file_list="${xm_file_list} $f"
13227 xm_include_list="${xm_include_list} $f"
13230 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13231 xm_include_list="${xm_include_list} config/$f"
13233 esac
13234 done
13236 host_xm_file_list=
13237 host_xm_include_list=
13238 for f in $host_xm_file; do
13239 case $f in
13240 ansidecl.h )
13241 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13242 host_xm_include_list="${host_xm_include_list} $f"
13244 auto-host.h )
13245 host_xm_file_list="${host_xm_file_list} $f"
13246 host_xm_include_list="${host_xm_include_list} $f"
13249 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13250 host_xm_include_list="${host_xm_include_list} config/$f"
13252 esac
13253 done
13255 build_xm_file_list=
13256 for f in $build_xm_file; do
13257 case $f in
13258 ansidecl.h )
13259 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13260 build_xm_include_list="${build_xm_include_list} $f"
13262 auto-build.h | auto-host.h )
13263 build_xm_file_list="${build_xm_file_list} $f"
13264 build_xm_include_list="${build_xm_include_list} $f"
13267 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13268 build_xm_include_list="${build_xm_include_list} config/$f"
13270 esac
13271 done
13273 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13274 # cross-compiler which does not use the native headers and libraries.
13275 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13276 CROSS=
13277 ALL=all.internal
13278 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13279 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13281 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13282 test x$build != x$host || test "x$with_build_sysroot" != x; then
13283 if test "x$with_build_sysroot" != x; then
13284 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13285 else
13286 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13289 if test x$host != x$target
13290 then
13291 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13292 ALL=all.cross
13293 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13294 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13295 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13298 if test "x$with_build_sysroot" != "x"; then
13299 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13300 elif test "x$with_sysroot" = x; then
13301 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13302 elif test "x$with_sysroot" = xyes; then
13303 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13304 else
13305 target_header_dir="${with_sysroot}${native_system_header_dir}"
13307 else
13308 target_header_dir=${native_system_header_dir}
13311 # If this is a cross-compiler that does not
13312 # have its own set of headers then define
13313 # inhibit_libc
13315 # If this is using newlib, without having the headers available now,
13316 # then define inhibit_libc in LIBGCC2_CFLAGS.
13317 # This prevents libgcc2 from containing any code which requires libc
13318 # support.
13319 : ${inhibit_libc=false}
13320 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13321 test x$with_newlib = xyes ; } &&
13322 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13323 inhibit_libc=true
13327 # When building gcc with a cross-compiler, we need to adjust things so
13328 # that the generator programs are still built with the native compiler.
13329 # Also, we cannot run fixincludes.
13331 # These are the normal (build=host) settings:
13332 CC_FOR_BUILD='$(CC)'
13333 CXX_FOR_BUILD='$(CXX)'
13334 BUILD_CFLAGS='$(ALL_CFLAGS)'
13335 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13336 BUILD_LDFLAGS='$(LDFLAGS)'
13337 STMP_FIXINC=stmp-fixinc
13339 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
13340 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
13342 # And these apply if build != host, or we are generating coverage data
13343 if test x$build != x$host || test "x$coverage_flags" != x
13344 then
13345 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13346 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13347 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13349 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
13350 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
13351 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
13352 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
13357 # Expand extra_headers to include complete path.
13358 # This substitutes for lots of t-* files.
13359 extra_headers_list=
13360 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13361 for file in ${extra_headers} ; do
13362 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13363 done
13365 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13366 if test x"$use_gcc_tgmath" = xyes
13367 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13370 # Define collect2 in Makefile.
13371 case $host_can_use_collect2 in
13372 no) collect2= ;;
13373 *) collect2='collect2$(exeext)' ;;
13374 esac
13377 # Add a definition of USE_COLLECT2 if system wants one.
13378 case $use_collect2 in
13379 no) use_collect2= ;;
13380 "") ;;
13382 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13383 xm_defines="${xm_defines} USE_COLLECT2"
13384 case $host_can_use_collect2 in
13386 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13388 esac
13390 esac
13393 cat >>confdefs.h <<_ACEOF
13394 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13395 _ACEOF
13398 # ---------------------------
13399 # Assembler & linker features
13400 # ---------------------------
13402 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13403 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13404 # However when ld-new is first executed from the build tree, libtool will
13405 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13406 # to the build tree. While doing this we need to use the previous-stage
13407 # linker, or we have an infinite loop. The presence of a shell script as
13408 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13409 # the gcc/collect-ld script. So we need to know how libtool works, or
13410 # exec-tool will fail.
13413 case `pwd` in
13414 *\ * | *\ *)
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13416 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13417 esac
13421 macro_version='2.2.7a'
13422 macro_revision='1.3134'
13436 ltmain="$ac_aux_dir/ltmain.sh"
13438 # Backslashify metacharacters that are still active within
13439 # double-quoted strings.
13440 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13442 # Same as above, but do not quote variable references.
13443 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13445 # Sed substitution to delay expansion of an escaped shell variable in a
13446 # double_quote_subst'ed string.
13447 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13449 # Sed substitution to delay expansion of an escaped single quote.
13450 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13452 # Sed substitution to avoid accidental globbing in evaled expressions
13453 no_glob_subst='s/\*/\\\*/g'
13455 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13456 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13457 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13460 $as_echo_n "checking how to print strings... " >&6; }
13461 # Test print first, because it will be a builtin if present.
13462 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13463 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13464 ECHO='print -r --'
13465 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13466 ECHO='printf %s\n'
13467 else
13468 # Use this function as a fallback that always works.
13469 func_fallback_echo ()
13471 eval 'cat <<_LTECHO_EOF
13473 _LTECHO_EOF'
13475 ECHO='func_fallback_echo'
13478 # func_echo_all arg...
13479 # Invoke $ECHO with all args, space-separated.
13480 func_echo_all ()
13482 $ECHO ""
13485 case "$ECHO" in
13486 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13487 $as_echo "printf" >&6; } ;;
13488 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13489 $as_echo "print -r" >&6; } ;;
13490 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13491 $as_echo "cat" >&6; } ;;
13492 esac
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13508 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13509 if ${ac_cv_path_SED+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13513 for ac_i in 1 2 3 4 5 6 7; do
13514 ac_script="$ac_script$as_nl$ac_script"
13515 done
13516 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13517 { ac_script=; unset ac_script;}
13518 if test -z "$SED"; then
13519 ac_path_SED_found=false
13520 # Loop through the user's path and test for each of PROGNAME-LIST
13521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522 for as_dir in $PATH
13524 IFS=$as_save_IFS
13525 test -z "$as_dir" && as_dir=.
13526 for ac_prog in sed gsed; do
13527 for ac_exec_ext in '' $ac_executable_extensions; do
13528 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13529 as_fn_executable_p "$ac_path_SED" || continue
13530 # Check for GNU ac_path_SED and select it if it is found.
13531 # Check for GNU $ac_path_SED
13532 case `"$ac_path_SED" --version 2>&1` in
13533 *GNU*)
13534 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13536 ac_count=0
13537 $as_echo_n 0123456789 >"conftest.in"
13538 while :
13540 cat "conftest.in" "conftest.in" >"conftest.tmp"
13541 mv "conftest.tmp" "conftest.in"
13542 cp "conftest.in" "conftest.nl"
13543 $as_echo '' >> "conftest.nl"
13544 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13546 as_fn_arith $ac_count + 1 && ac_count=$as_val
13547 if test $ac_count -gt ${ac_path_SED_max-0}; then
13548 # Best one so far, save it but keep looking for a better one
13549 ac_cv_path_SED="$ac_path_SED"
13550 ac_path_SED_max=$ac_count
13552 # 10*(2^10) chars as input seems more than enough
13553 test $ac_count -gt 10 && break
13554 done
13555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13556 esac
13558 $ac_path_SED_found && break 3
13559 done
13560 done
13561 done
13562 IFS=$as_save_IFS
13563 if test -z "$ac_cv_path_SED"; then
13564 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13566 else
13567 ac_cv_path_SED=$SED
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13572 $as_echo "$ac_cv_path_SED" >&6; }
13573 SED="$ac_cv_path_SED"
13574 rm -f conftest.sed
13576 test -z "$SED" && SED=sed
13577 Xsed="$SED -e 1s/^X//"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13590 $as_echo_n "checking for fgrep... " >&6; }
13591 if ${ac_cv_path_FGREP+:} false; then :
13592 $as_echo_n "(cached) " >&6
13593 else
13594 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13595 then ac_cv_path_FGREP="$GREP -F"
13596 else
13597 if test -z "$FGREP"; then
13598 ac_path_FGREP_found=false
13599 # Loop through the user's path and test for each of PROGNAME-LIST
13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13603 IFS=$as_save_IFS
13604 test -z "$as_dir" && as_dir=.
13605 for ac_prog in fgrep; do
13606 for ac_exec_ext in '' $ac_executable_extensions; do
13607 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13608 as_fn_executable_p "$ac_path_FGREP" || continue
13609 # Check for GNU ac_path_FGREP and select it if it is found.
13610 # Check for GNU $ac_path_FGREP
13611 case `"$ac_path_FGREP" --version 2>&1` in
13612 *GNU*)
13613 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13615 ac_count=0
13616 $as_echo_n 0123456789 >"conftest.in"
13617 while :
13619 cat "conftest.in" "conftest.in" >"conftest.tmp"
13620 mv "conftest.tmp" "conftest.in"
13621 cp "conftest.in" "conftest.nl"
13622 $as_echo 'FGREP' >> "conftest.nl"
13623 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13625 as_fn_arith $ac_count + 1 && ac_count=$as_val
13626 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13627 # Best one so far, save it but keep looking for a better one
13628 ac_cv_path_FGREP="$ac_path_FGREP"
13629 ac_path_FGREP_max=$ac_count
13631 # 10*(2^10) chars as input seems more than enough
13632 test $ac_count -gt 10 && break
13633 done
13634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13635 esac
13637 $ac_path_FGREP_found && break 3
13638 done
13639 done
13640 done
13641 IFS=$as_save_IFS
13642 if test -z "$ac_cv_path_FGREP"; then
13643 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13645 else
13646 ac_cv_path_FGREP=$FGREP
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13652 $as_echo "$ac_cv_path_FGREP" >&6; }
13653 FGREP="$ac_cv_path_FGREP"
13656 test -z "$GREP" && GREP=grep
13676 # Check whether --with-gnu-ld was given.
13677 if test "${with_gnu_ld+set}" = set; then :
13678 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13679 else
13680 with_gnu_ld=no
13683 ac_prog=ld
13684 if test "$GCC" = yes; then
13685 # Check if gcc -print-prog-name=ld gives a path.
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13687 $as_echo_n "checking for ld used by $CC... " >&6; }
13688 case $host in
13689 *-*-mingw*)
13690 # gcc leaves a trailing carriage return which upsets mingw
13691 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13693 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13694 esac
13695 case $ac_prog in
13696 # Accept absolute paths.
13697 [\\/]* | ?:[\\/]*)
13698 re_direlt='/[^/][^/]*/\.\./'
13699 # Canonicalize the pathname of ld
13700 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13701 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13702 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13703 done
13704 test -z "$LD" && LD="$ac_prog"
13707 # If it fails, then pretend we aren't using GCC.
13708 ac_prog=ld
13711 # If it is relative, then search for the first ld in PATH.
13712 with_gnu_ld=unknown
13714 esac
13715 elif test "$with_gnu_ld" = yes; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13717 $as_echo_n "checking for GNU ld... " >&6; }
13718 else
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13720 $as_echo_n "checking for non-GNU ld... " >&6; }
13722 if ${lt_cv_path_LD+:} false; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725 if test -z "$LD"; then
13726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13727 for ac_dir in $PATH; do
13728 IFS="$lt_save_ifs"
13729 test -z "$ac_dir" && ac_dir=.
13730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13731 lt_cv_path_LD="$ac_dir/$ac_prog"
13732 # Check to see if the program is GNU ld. I'd rather use --version,
13733 # but apparently some variants of GNU ld only accept -v.
13734 # Break only if it was the GNU/non-GNU ld that we prefer.
13735 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13736 *GNU* | *'with BFD'*)
13737 test "$with_gnu_ld" != no && break
13740 test "$with_gnu_ld" != yes && break
13742 esac
13744 done
13745 IFS="$lt_save_ifs"
13746 else
13747 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13751 LD="$lt_cv_path_LD"
13752 if test -n "$LD"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13754 $as_echo "$LD" >&6; }
13755 else
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13759 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13761 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13762 if ${lt_cv_prog_gnu_ld+:} false; then :
13763 $as_echo_n "(cached) " >&6
13764 else
13765 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13766 case `$LD -v 2>&1 </dev/null` in
13767 *GNU* | *'with BFD'*)
13768 lt_cv_prog_gnu_ld=yes
13771 lt_cv_prog_gnu_ld=no
13773 esac
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13776 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13777 with_gnu_ld=$lt_cv_prog_gnu_ld
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13788 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13789 if ${lt_cv_path_NM+:} false; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 if test -n "$NM"; then
13793 # Let the user override the test.
13794 lt_cv_path_NM="$NM"
13795 else
13796 lt_nm_to_check="${ac_tool_prefix}nm"
13797 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13798 lt_nm_to_check="$lt_nm_to_check nm"
13800 for lt_tmp_nm in $lt_nm_to_check; do
13801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13802 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13803 IFS="$lt_save_ifs"
13804 test -z "$ac_dir" && ac_dir=.
13805 tmp_nm="$ac_dir/$lt_tmp_nm"
13806 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13807 # Check to see if the nm accepts a BSD-compat flag.
13808 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13809 # nm: unknown option "B" ignored
13810 # Tru64's nm complains that /dev/null is an invalid object file
13811 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13812 */dev/null* | *'Invalid file or object type'*)
13813 lt_cv_path_NM="$tmp_nm -B"
13814 break
13817 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13818 */dev/null*)
13819 lt_cv_path_NM="$tmp_nm -p"
13820 break
13823 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13824 continue # so that we can try to find one that supports BSD flags
13826 esac
13828 esac
13830 done
13831 IFS="$lt_save_ifs"
13832 done
13833 : ${lt_cv_path_NM=no}
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13837 $as_echo "$lt_cv_path_NM" >&6; }
13838 if test "$lt_cv_path_NM" != "no"; then
13839 NM="$lt_cv_path_NM"
13840 else
13841 # Didn't find any BSD compatible name lister, look for dumpbin.
13842 if test -n "$DUMPBIN"; then :
13843 # Let the user override the test.
13844 else
13845 if test -n "$ac_tool_prefix"; then
13846 for ac_prog in dumpbin "link -dump"
13848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851 $as_echo_n "checking for $ac_word... " >&6; }
13852 if ${ac_cv_prog_DUMPBIN+:} false; then :
13853 $as_echo_n "(cached) " >&6
13854 else
13855 if test -n "$DUMPBIN"; then
13856 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13857 else
13858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859 for as_dir in $PATH
13861 IFS=$as_save_IFS
13862 test -z "$as_dir" && as_dir=.
13863 for ac_exec_ext in '' $ac_executable_extensions; do
13864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13865 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13867 break 2
13869 done
13870 done
13871 IFS=$as_save_IFS
13875 DUMPBIN=$ac_cv_prog_DUMPBIN
13876 if test -n "$DUMPBIN"; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13878 $as_echo "$DUMPBIN" >&6; }
13879 else
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13881 $as_echo "no" >&6; }
13885 test -n "$DUMPBIN" && break
13886 done
13888 if test -z "$DUMPBIN"; then
13889 ac_ct_DUMPBIN=$DUMPBIN
13890 for ac_prog in dumpbin "link -dump"
13892 # Extract the first word of "$ac_prog", so it can be a program name with args.
13893 set dummy $ac_prog; ac_word=$2
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13895 $as_echo_n "checking for $ac_word... " >&6; }
13896 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13897 $as_echo_n "(cached) " >&6
13898 else
13899 if test -n "$ac_ct_DUMPBIN"; then
13900 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13901 else
13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13905 IFS=$as_save_IFS
13906 test -z "$as_dir" && as_dir=.
13907 for ac_exec_ext in '' $ac_executable_extensions; do
13908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13909 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13911 break 2
13913 done
13914 done
13915 IFS=$as_save_IFS
13919 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13920 if test -n "$ac_ct_DUMPBIN"; then
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13922 $as_echo "$ac_ct_DUMPBIN" >&6; }
13923 else
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13925 $as_echo "no" >&6; }
13929 test -n "$ac_ct_DUMPBIN" && break
13930 done
13932 if test "x$ac_ct_DUMPBIN" = x; then
13933 DUMPBIN=":"
13934 else
13935 case $cross_compiling:$ac_tool_warned in
13936 yes:)
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13939 ac_tool_warned=yes ;;
13940 esac
13941 DUMPBIN=$ac_ct_DUMPBIN
13945 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13946 *COFF*)
13947 DUMPBIN="$DUMPBIN -symbols"
13950 DUMPBIN=:
13952 esac
13955 if test "$DUMPBIN" != ":"; then
13956 NM="$DUMPBIN"
13959 test -z "$NM" && NM=nm
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13967 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13968 if ${lt_cv_nm_interface+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 lt_cv_nm_interface="BSD nm"
13972 echo "int some_variable = 0;" > conftest.$ac_ext
13973 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13974 (eval "$ac_compile" 2>conftest.err)
13975 cat conftest.err >&5
13976 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13977 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13978 cat conftest.err >&5
13979 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13980 cat conftest.out >&5
13981 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13982 lt_cv_nm_interface="MS dumpbin"
13984 rm -f conftest*
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13987 $as_echo "$lt_cv_nm_interface" >&6; }
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13990 $as_echo_n "checking whether ln -s works... " >&6; }
13991 LN_S=$as_ln_s
13992 if test "$LN_S" = "ln -s"; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13994 $as_echo "yes" >&6; }
13995 else
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13997 $as_echo "no, using $LN_S" >&6; }
14000 # find the maximum length of command line arguments
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14002 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14003 if ${lt_cv_sys_max_cmd_len+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14007 teststring="ABCD"
14009 case $build_os in
14010 msdosdjgpp*)
14011 # On DJGPP, this test can blow up pretty badly due to problems in libc
14012 # (any single argument exceeding 2000 bytes causes a buffer overrun
14013 # during glob expansion). Even if it were fixed, the result of this
14014 # check would be larger than it should be.
14015 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14018 gnu*)
14019 # Under GNU Hurd, this test is not required because there is
14020 # no limit to the length of command line arguments.
14021 # Libtool will interpret -1 as no limit whatsoever
14022 lt_cv_sys_max_cmd_len=-1;
14025 cygwin* | mingw* | cegcc*)
14026 # On Win9x/ME, this test blows up -- it succeeds, but takes
14027 # about 5 minutes as the teststring grows exponentially.
14028 # Worse, since 9x/ME are not pre-emptively multitasking,
14029 # you end up with a "frozen" computer, even though with patience
14030 # the test eventually succeeds (with a max line length of 256k).
14031 # Instead, let's just punt: use the minimum linelength reported by
14032 # all of the supported platforms: 8192 (on NT/2K/XP).
14033 lt_cv_sys_max_cmd_len=8192;
14036 mint*)
14037 # On MiNT this can take a long time and run out of memory.
14038 lt_cv_sys_max_cmd_len=8192;
14041 amigaos*)
14042 # On AmigaOS with pdksh, this test takes hours, literally.
14043 # So we just punt and use a minimum line length of 8192.
14044 lt_cv_sys_max_cmd_len=8192;
14047 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14048 # This has been around since 386BSD, at least. Likely further.
14049 if test -x /sbin/sysctl; then
14050 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14051 elif test -x /usr/sbin/sysctl; then
14052 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14053 else
14054 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14056 # And add a safety zone
14057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14061 interix*)
14062 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14063 lt_cv_sys_max_cmd_len=196608
14066 osf*)
14067 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14068 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14069 # nice to cause kernel panics so lets avoid the loop below.
14070 # First set a reasonable default.
14071 lt_cv_sys_max_cmd_len=16384
14073 if test -x /sbin/sysconfig; then
14074 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14075 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14076 esac
14079 sco3.2v5*)
14080 lt_cv_sys_max_cmd_len=102400
14082 sysv5* | sco5v6* | sysv4.2uw2*)
14083 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14084 if test -n "$kargmax"; then
14085 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14086 else
14087 lt_cv_sys_max_cmd_len=32768
14091 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14092 if test -n "$lt_cv_sys_max_cmd_len"; then
14093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14095 else
14096 # Make teststring a little bigger before we do anything with it.
14097 # a 1K string should be a reasonable start.
14098 for i in 1 2 3 4 5 6 7 8 ; do
14099 teststring=$teststring$teststring
14100 done
14101 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14102 # If test is not a shell built-in, we'll probably end up computing a
14103 # maximum length that is only half of the actual maximum length, but
14104 # we can't tell.
14105 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14106 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14107 test $i != 17 # 1/2 MB should be enough
14109 i=`expr $i + 1`
14110 teststring=$teststring$teststring
14111 done
14112 # Only check the string length outside the loop.
14113 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14114 teststring=
14115 # Add a significant safety factor because C++ compilers can tack on
14116 # massive amounts of additional arguments before passing them to the
14117 # linker. It appears as though 1/2 is a usable value.
14118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14121 esac
14125 if test -n $lt_cv_sys_max_cmd_len ; then
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14127 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14128 else
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14130 $as_echo "none" >&6; }
14132 max_cmd_len=$lt_cv_sys_max_cmd_len
14139 : ${CP="cp -f"}
14140 : ${MV="mv -f"}
14141 : ${RM="rm -f"}
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14144 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14145 # Try some XSI features
14146 xsi_shell=no
14147 ( _lt_dummy="a/b/c"
14148 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14149 = c,a/b,, \
14150 && eval 'test $(( 1 + 1 )) -eq 2 \
14151 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14152 && xsi_shell=yes
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14154 $as_echo "$xsi_shell" >&6; }
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14158 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14159 lt_shell_append=no
14160 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14161 >/dev/null 2>&1 \
14162 && lt_shell_append=yes
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14164 $as_echo "$lt_shell_append" >&6; }
14167 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14168 lt_unset=unset
14169 else
14170 lt_unset=false
14177 # test EBCDIC or ASCII
14178 case `echo X|tr X '\101'` in
14179 A) # ASCII based system
14180 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14181 lt_SP2NL='tr \040 \012'
14182 lt_NL2SP='tr \015\012 \040\040'
14184 *) # EBCDIC based system
14185 lt_SP2NL='tr \100 \n'
14186 lt_NL2SP='tr \r\n \100\100'
14188 esac
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14199 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14200 if ${lt_cv_ld_reload_flag+:} false; then :
14201 $as_echo_n "(cached) " >&6
14202 else
14203 lt_cv_ld_reload_flag='-r'
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14206 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14207 reload_flag=$lt_cv_ld_reload_flag
14208 case $reload_flag in
14209 "" | " "*) ;;
14210 *) reload_flag=" $reload_flag" ;;
14211 esac
14212 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14213 case $host_os in
14214 darwin*)
14215 if test "$GCC" = yes; then
14216 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14217 else
14218 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14221 esac
14231 if test -n "$ac_tool_prefix"; then
14232 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14233 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14235 $as_echo_n "checking for $ac_word... " >&6; }
14236 if ${ac_cv_prog_OBJDUMP+:} false; then :
14237 $as_echo_n "(cached) " >&6
14238 else
14239 if test -n "$OBJDUMP"; then
14240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14241 else
14242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14243 for as_dir in $PATH
14245 IFS=$as_save_IFS
14246 test -z "$as_dir" && as_dir=.
14247 for ac_exec_ext in '' $ac_executable_extensions; do
14248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14249 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14251 break 2
14253 done
14254 done
14255 IFS=$as_save_IFS
14259 OBJDUMP=$ac_cv_prog_OBJDUMP
14260 if test -n "$OBJDUMP"; then
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14262 $as_echo "$OBJDUMP" >&6; }
14263 else
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265 $as_echo "no" >&6; }
14270 if test -z "$ac_cv_prog_OBJDUMP"; then
14271 ac_ct_OBJDUMP=$OBJDUMP
14272 # Extract the first word of "objdump", so it can be a program name with args.
14273 set dummy objdump; ac_word=$2
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14275 $as_echo_n "checking for $ac_word... " >&6; }
14276 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 if test -n "$ac_ct_OBJDUMP"; then
14280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14281 else
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in $PATH
14285 IFS=$as_save_IFS
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
14288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14289 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14291 break 2
14293 done
14294 done
14295 IFS=$as_save_IFS
14299 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14300 if test -n "$ac_ct_OBJDUMP"; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14302 $as_echo "$ac_ct_OBJDUMP" >&6; }
14303 else
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305 $as_echo "no" >&6; }
14308 if test "x$ac_ct_OBJDUMP" = x; then
14309 OBJDUMP="false"
14310 else
14311 case $cross_compiling:$ac_tool_warned in
14312 yes:)
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14315 ac_tool_warned=yes ;;
14316 esac
14317 OBJDUMP=$ac_ct_OBJDUMP
14319 else
14320 OBJDUMP="$ac_cv_prog_OBJDUMP"
14323 test -z "$OBJDUMP" && OBJDUMP=objdump
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14334 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14335 if ${lt_cv_deplibs_check_method+:} false; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14338 lt_cv_file_magic_cmd='$MAGIC_CMD'
14339 lt_cv_file_magic_test_file=
14340 lt_cv_deplibs_check_method='unknown'
14341 # Need to set the preceding variable on all platforms that support
14342 # interlibrary dependencies.
14343 # 'none' -- dependencies not supported.
14344 # `unknown' -- same as none, but documents that we really don't know.
14345 # 'pass_all' -- all dependencies passed with no checks.
14346 # 'test_compile' -- check by making test program.
14347 # 'file_magic [[regex]]' -- check by looking for files in library path
14348 # which responds to the $file_magic_cmd with a given extended regex.
14349 # If you have `file' or equivalent on your system and you're not sure
14350 # whether `pass_all' will *always* work, you probably want this one.
14352 case $host_os in
14353 aix[4-9]*)
14354 lt_cv_deplibs_check_method=pass_all
14357 beos*)
14358 lt_cv_deplibs_check_method=pass_all
14361 bsdi[45]*)
14362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14363 lt_cv_file_magic_cmd='/usr/bin/file -L'
14364 lt_cv_file_magic_test_file=/shlib/libc.so
14367 cygwin*)
14368 # func_win32_libid is a shell function defined in ltmain.sh
14369 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14370 lt_cv_file_magic_cmd='func_win32_libid'
14373 mingw* | pw32*)
14374 # Base MSYS/MinGW do not provide the 'file' command needed by
14375 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14376 # unless we find 'file', for example because we are cross-compiling.
14377 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14378 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14380 lt_cv_file_magic_cmd='func_win32_libid'
14381 else
14382 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14383 lt_cv_file_magic_cmd='$OBJDUMP -f'
14387 cegcc*)
14388 # use the weaker test based on 'objdump'. See mingw*.
14389 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14390 lt_cv_file_magic_cmd='$OBJDUMP -f'
14393 darwin* | rhapsody*)
14394 lt_cv_deplibs_check_method=pass_all
14397 freebsd* | dragonfly*)
14398 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14399 case $host_cpu in
14400 i*86 )
14401 # Not sure whether the presence of OpenBSD here was a mistake.
14402 # Let's accept both of them until this is cleared up.
14403 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14404 lt_cv_file_magic_cmd=/usr/bin/file
14405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14407 esac
14408 else
14409 lt_cv_deplibs_check_method=pass_all
14413 gnu*)
14414 lt_cv_deplibs_check_method=pass_all
14417 haiku*)
14418 lt_cv_deplibs_check_method=pass_all
14421 hpux10.20* | hpux11*)
14422 lt_cv_file_magic_cmd=/usr/bin/file
14423 case $host_cpu in
14424 ia64*)
14425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14426 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14428 hppa*64*)
14429 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]'
14430 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14434 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14436 esac
14439 interix[3-9]*)
14440 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14444 irix5* | irix6* | nonstopux*)
14445 case $LD in
14446 *-32|*"-32 ") libmagic=32-bit;;
14447 *-n32|*"-n32 ") libmagic=N32;;
14448 *-64|*"-64 ") libmagic=64-bit;;
14449 *) libmagic=never-match;;
14450 esac
14451 lt_cv_deplibs_check_method=pass_all
14454 # This must be Linux ELF.
14455 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14456 lt_cv_deplibs_check_method=pass_all
14459 netbsd*)
14460 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14462 else
14463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14467 newos6*)
14468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14469 lt_cv_file_magic_cmd=/usr/bin/file
14470 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14473 *nto* | *qnx*)
14474 lt_cv_deplibs_check_method=pass_all
14477 openbsd*)
14478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14480 else
14481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14485 osf3* | osf4* | osf5*)
14486 lt_cv_deplibs_check_method=pass_all
14489 rdos*)
14490 lt_cv_deplibs_check_method=pass_all
14493 solaris*)
14494 lt_cv_deplibs_check_method=pass_all
14497 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14498 lt_cv_deplibs_check_method=pass_all
14501 sysv4 | sysv4.3*)
14502 case $host_vendor in
14503 motorola)
14504 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]'
14505 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14507 ncr)
14508 lt_cv_deplibs_check_method=pass_all
14510 sequent)
14511 lt_cv_file_magic_cmd='/bin/file'
14512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14514 sni)
14515 lt_cv_file_magic_cmd='/bin/file'
14516 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14517 lt_cv_file_magic_test_file=/lib/libc.so
14519 siemens)
14520 lt_cv_deplibs_check_method=pass_all
14523 lt_cv_deplibs_check_method=pass_all
14525 esac
14528 tpf*)
14529 lt_cv_deplibs_check_method=pass_all
14531 esac
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14535 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14536 file_magic_cmd=$lt_cv_file_magic_cmd
14537 deplibs_check_method=$lt_cv_deplibs_check_method
14538 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14551 if test -n "$ac_tool_prefix"; then
14552 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14553 set dummy ${ac_tool_prefix}ar; ac_word=$2
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14555 $as_echo_n "checking for $ac_word... " >&6; }
14556 if ${ac_cv_prog_AR+:} false; then :
14557 $as_echo_n "(cached) " >&6
14558 else
14559 if test -n "$AR"; then
14560 ac_cv_prog_AR="$AR" # Let the user override the test.
14561 else
14562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14563 for as_dir in $PATH
14565 IFS=$as_save_IFS
14566 test -z "$as_dir" && as_dir=.
14567 for ac_exec_ext in '' $ac_executable_extensions; do
14568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14569 ac_cv_prog_AR="${ac_tool_prefix}ar"
14570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14571 break 2
14573 done
14574 done
14575 IFS=$as_save_IFS
14579 AR=$ac_cv_prog_AR
14580 if test -n "$AR"; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14582 $as_echo "$AR" >&6; }
14583 else
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14585 $as_echo "no" >&6; }
14590 if test -z "$ac_cv_prog_AR"; then
14591 ac_ct_AR=$AR
14592 # Extract the first word of "ar", so it can be a program name with args.
14593 set dummy ar; ac_word=$2
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14595 $as_echo_n "checking for $ac_word... " >&6; }
14596 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 if test -n "$ac_ct_AR"; then
14600 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14601 else
14602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14603 for as_dir in $PATH
14605 IFS=$as_save_IFS
14606 test -z "$as_dir" && as_dir=.
14607 for ac_exec_ext in '' $ac_executable_extensions; do
14608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14609 ac_cv_prog_ac_ct_AR="ar"
14610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14611 break 2
14613 done
14614 done
14615 IFS=$as_save_IFS
14619 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14620 if test -n "$ac_ct_AR"; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14622 $as_echo "$ac_ct_AR" >&6; }
14623 else
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14625 $as_echo "no" >&6; }
14628 if test "x$ac_ct_AR" = x; then
14629 AR="false"
14630 else
14631 case $cross_compiling:$ac_tool_warned in
14632 yes:)
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14635 ac_tool_warned=yes ;;
14636 esac
14637 AR=$ac_ct_AR
14639 else
14640 AR="$ac_cv_prog_AR"
14643 test -z "$AR" && AR=ar
14644 test -z "$AR_FLAGS" && AR_FLAGS=cru
14656 if test -n "$ac_tool_prefix"; then
14657 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14658 set dummy ${ac_tool_prefix}strip; ac_word=$2
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14660 $as_echo_n "checking for $ac_word... " >&6; }
14661 if ${ac_cv_prog_STRIP+:} false; then :
14662 $as_echo_n "(cached) " >&6
14663 else
14664 if test -n "$STRIP"; then
14665 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14666 else
14667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14668 for as_dir in $PATH
14670 IFS=$as_save_IFS
14671 test -z "$as_dir" && as_dir=.
14672 for ac_exec_ext in '' $ac_executable_extensions; do
14673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14674 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14676 break 2
14678 done
14679 done
14680 IFS=$as_save_IFS
14684 STRIP=$ac_cv_prog_STRIP
14685 if test -n "$STRIP"; then
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14687 $as_echo "$STRIP" >&6; }
14688 else
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690 $as_echo "no" >&6; }
14695 if test -z "$ac_cv_prog_STRIP"; then
14696 ac_ct_STRIP=$STRIP
14697 # Extract the first word of "strip", so it can be a program name with args.
14698 set dummy strip; ac_word=$2
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14700 $as_echo_n "checking for $ac_word... " >&6; }
14701 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14702 $as_echo_n "(cached) " >&6
14703 else
14704 if test -n "$ac_ct_STRIP"; then
14705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14706 else
14707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708 for as_dir in $PATH
14710 IFS=$as_save_IFS
14711 test -z "$as_dir" && as_dir=.
14712 for ac_exec_ext in '' $ac_executable_extensions; do
14713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14714 ac_cv_prog_ac_ct_STRIP="strip"
14715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14716 break 2
14718 done
14719 done
14720 IFS=$as_save_IFS
14724 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14725 if test -n "$ac_ct_STRIP"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14727 $as_echo "$ac_ct_STRIP" >&6; }
14728 else
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14733 if test "x$ac_ct_STRIP" = x; then
14734 STRIP=":"
14735 else
14736 case $cross_compiling:$ac_tool_warned in
14737 yes:)
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14740 ac_tool_warned=yes ;;
14741 esac
14742 STRIP=$ac_ct_STRIP
14744 else
14745 STRIP="$ac_cv_prog_STRIP"
14748 test -z "$STRIP" && STRIP=:
14755 if test -n "$ac_tool_prefix"; then
14756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14759 $as_echo_n "checking for $ac_word... " >&6; }
14760 if ${ac_cv_prog_RANLIB+:} false; then :
14761 $as_echo_n "(cached) " >&6
14762 else
14763 if test -n "$RANLIB"; then
14764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14765 else
14766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767 for as_dir in $PATH
14769 IFS=$as_save_IFS
14770 test -z "$as_dir" && as_dir=.
14771 for ac_exec_ext in '' $ac_executable_extensions; do
14772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14773 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14775 break 2
14777 done
14778 done
14779 IFS=$as_save_IFS
14783 RANLIB=$ac_cv_prog_RANLIB
14784 if test -n "$RANLIB"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14786 $as_echo "$RANLIB" >&6; }
14787 else
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 $as_echo "no" >&6; }
14794 if test -z "$ac_cv_prog_RANLIB"; then
14795 ac_ct_RANLIB=$RANLIB
14796 # Extract the first word of "ranlib", so it can be a program name with args.
14797 set dummy ranlib; ac_word=$2
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14799 $as_echo_n "checking for $ac_word... " >&6; }
14800 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14801 $as_echo_n "(cached) " >&6
14802 else
14803 if test -n "$ac_ct_RANLIB"; then
14804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14805 else
14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $PATH
14809 IFS=$as_save_IFS
14810 test -z "$as_dir" && as_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813 ac_cv_prog_ac_ct_RANLIB="ranlib"
14814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14815 break 2
14817 done
14818 done
14819 IFS=$as_save_IFS
14823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14824 if test -n "$ac_ct_RANLIB"; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14826 $as_echo "$ac_ct_RANLIB" >&6; }
14827 else
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829 $as_echo "no" >&6; }
14832 if test "x$ac_ct_RANLIB" = x; then
14833 RANLIB=":"
14834 else
14835 case $cross_compiling:$ac_tool_warned in
14836 yes:)
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14839 ac_tool_warned=yes ;;
14840 esac
14841 RANLIB=$ac_ct_RANLIB
14843 else
14844 RANLIB="$ac_cv_prog_RANLIB"
14847 test -z "$RANLIB" && RANLIB=:
14854 # Determine commands to create old-style static archives.
14855 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14856 old_postinstall_cmds='chmod 644 $oldlib'
14857 old_postuninstall_cmds=
14859 if test -n "$RANLIB"; then
14860 case $host_os in
14861 openbsd*)
14862 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14865 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14867 esac
14868 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14871 case $host_os in
14872 darwin*)
14873 lock_old_archive_extraction=yes ;;
14875 lock_old_archive_extraction=no ;;
14876 esac
14916 # If no C compiler was specified, use CC.
14917 LTCC=${LTCC-"$CC"}
14919 # If no C compiler flags were specified, use CFLAGS.
14920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14922 # Allow CC to be a program name with arguments.
14923 compiler=$CC
14926 # Check for command to grab the raw symbol name followed by C symbol from nm.
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14928 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14929 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14933 # These are sane defaults that work on at least a few old systems.
14934 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14936 # Character class describing NM global symbol codes.
14937 symcode='[BCDEGRST]'
14939 # Regexp to match symbols that can be accessed directly from C.
14940 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14942 # Define system-specific variables.
14943 case $host_os in
14944 aix*)
14945 symcode='[BCDT]'
14947 cygwin* | mingw* | pw32* | cegcc*)
14948 symcode='[ABCDGISTW]'
14950 hpux*)
14951 if test "$host_cpu" = ia64; then
14952 symcode='[ABCDEGRST]'
14955 irix* | nonstopux*)
14956 symcode='[BCDEGRST]'
14958 osf*)
14959 symcode='[BCDEGQRST]'
14961 solaris*)
14962 symcode='[BDRT]'
14964 sco3.2v5*)
14965 symcode='[DT]'
14967 sysv4.2uw2*)
14968 symcode='[DT]'
14970 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14971 symcode='[ABDT]'
14973 sysv4)
14974 symcode='[DFNSTU]'
14976 esac
14978 # If we're using GNU nm, then use its standard symbol codes.
14979 case `$NM -V 2>&1` in
14980 *GNU* | *'with BFD'*)
14981 symcode='[ABCDGIRSTW]' ;;
14982 esac
14984 # Transform an extracted symbol line into a proper C declaration.
14985 # Some systems (esp. on ia64) link data and code symbols differently,
14986 # so use this general approach.
14987 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14989 # Transform an extracted symbol line into symbol name and symbol address
14990 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14991 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'"
14993 # Handle CRLF in mingw tool chain
14994 opt_cr=
14995 case $build_os in
14996 mingw*)
14997 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14999 esac
15001 # Try without a prefix underscore, then with it.
15002 for ac_symprfx in "" "_"; do
15004 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15005 symxfrm="\\1 $ac_symprfx\\2 \\2"
15007 # Write the raw and C identifiers.
15008 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15009 # Fake it for dumpbin and say T for any non-static function
15010 # and D for any global variable.
15011 # Also find C++ and __fastcall symbols from MSVC++,
15012 # which start with @ or ?.
15013 lt_cv_sys_global_symbol_pipe="$AWK '"\
15014 " {last_section=section; section=\$ 3};"\
15015 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15016 " \$ 0!~/External *\|/{next};"\
15017 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15018 " {if(hide[section]) next};"\
15019 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15020 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15021 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15022 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15023 " ' prfx=^$ac_symprfx"
15024 else
15025 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15028 # Check to see that the pipe works correctly.
15029 pipe_works=no
15031 rm -f conftest*
15032 cat > conftest.$ac_ext <<_LT_EOF
15033 #ifdef __cplusplus
15034 extern "C" {
15035 #endif
15036 char nm_test_var;
15037 void nm_test_func(void);
15038 void nm_test_func(void){}
15039 #ifdef __cplusplus
15041 #endif
15042 int main(){nm_test_var='a';nm_test_func();return(0);}
15043 _LT_EOF
15045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15046 (eval $ac_compile) 2>&5
15047 ac_status=$?
15048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15049 test $ac_status = 0; }; then
15050 # Now try to grab the symbols.
15051 nlist=conftest.nm
15052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15053 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15054 ac_status=$?
15055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15056 test $ac_status = 0; } && test -s "$nlist"; then
15057 # Try sorting and uniquifying the output.
15058 if sort "$nlist" | uniq > "$nlist"T; then
15059 mv -f "$nlist"T "$nlist"
15060 else
15061 rm -f "$nlist"T
15064 # Make sure that we snagged all the symbols we need.
15065 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15066 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15067 cat <<_LT_EOF > conftest.$ac_ext
15068 #ifdef __cplusplus
15069 extern "C" {
15070 #endif
15072 _LT_EOF
15073 # Now generate the symbol file.
15074 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15076 cat <<_LT_EOF >> conftest.$ac_ext
15078 /* The mapping between symbol names and symbols. */
15079 const struct {
15080 const char *name;
15081 void *address;
15083 lt__PROGRAM__LTX_preloaded_symbols[] =
15085 { "@PROGRAM@", (void *) 0 },
15086 _LT_EOF
15087 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15088 cat <<\_LT_EOF >> conftest.$ac_ext
15089 {0, (void *) 0}
15092 /* This works around a problem in FreeBSD linker */
15093 #ifdef FREEBSD_WORKAROUND
15094 static const void *lt_preloaded_setup() {
15095 return lt__PROGRAM__LTX_preloaded_symbols;
15097 #endif
15099 #ifdef __cplusplus
15101 #endif
15102 _LT_EOF
15103 # Now try linking the two files.
15104 mv conftest.$ac_objext conftstm.$ac_objext
15105 lt_save_LIBS="$LIBS"
15106 lt_save_CFLAGS="$CFLAGS"
15107 LIBS="conftstm.$ac_objext"
15108 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15110 (eval $ac_link) 2>&5
15111 ac_status=$?
15112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15113 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15114 pipe_works=yes
15116 LIBS="$lt_save_LIBS"
15117 CFLAGS="$lt_save_CFLAGS"
15118 else
15119 echo "cannot find nm_test_func in $nlist" >&5
15121 else
15122 echo "cannot find nm_test_var in $nlist" >&5
15124 else
15125 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15127 else
15128 echo "$progname: failed program was:" >&5
15129 cat conftest.$ac_ext >&5
15131 rm -rf conftest* conftst*
15133 # Do not use the global_symbol_pipe unless it works.
15134 if test "$pipe_works" = yes; then
15135 break
15136 else
15137 lt_cv_sys_global_symbol_pipe=
15139 done
15143 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15144 lt_cv_sys_global_symbol_to_cdecl=
15146 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15148 $as_echo "failed" >&6; }
15149 else
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15151 $as_echo "ok" >&6; }
15175 # Check whether --enable-libtool-lock was given.
15176 if test "${enable_libtool_lock+set}" = set; then :
15177 enableval=$enable_libtool_lock;
15180 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15182 # Some flags need to be propagated to the compiler or linker for good
15183 # libtool support.
15184 case $host in
15185 ia64-*-hpux*)
15186 # Find out which ABI we are using.
15187 echo 'int i;' > conftest.$ac_ext
15188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15189 (eval $ac_compile) 2>&5
15190 ac_status=$?
15191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15192 test $ac_status = 0; }; then
15193 case `/usr/bin/file conftest.$ac_objext` in
15194 *ELF-32*)
15195 HPUX_IA64_MODE="32"
15197 *ELF-64*)
15198 HPUX_IA64_MODE="64"
15200 esac
15202 rm -rf conftest*
15204 *-*-irix6*)
15205 # Find out which ABI we are using.
15206 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15208 (eval $ac_compile) 2>&5
15209 ac_status=$?
15210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15211 test $ac_status = 0; }; then
15212 if test "$lt_cv_prog_gnu_ld" = yes; then
15213 case `/usr/bin/file conftest.$ac_objext` in
15214 *32-bit*)
15215 LD="${LD-ld} -melf32bsmip"
15217 *N32*)
15218 LD="${LD-ld} -melf32bmipn32"
15220 *64-bit*)
15221 LD="${LD-ld} -melf64bmip"
15223 esac
15224 else
15225 case `/usr/bin/file conftest.$ac_objext` in
15226 *32-bit*)
15227 LD="${LD-ld} -32"
15229 *N32*)
15230 LD="${LD-ld} -n32"
15232 *64-bit*)
15233 LD="${LD-ld} -64"
15235 esac
15238 rm -rf conftest*
15241 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15242 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15243 # Find out which ABI we are using.
15244 echo 'int i;' > conftest.$ac_ext
15245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15246 (eval $ac_compile) 2>&5
15247 ac_status=$?
15248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15249 test $ac_status = 0; }; then
15250 case `/usr/bin/file conftest.o` in
15251 *32-bit*)
15252 case $host in
15253 x86_64-*kfreebsd*-gnu)
15254 LD="${LD-ld} -m elf_i386_fbsd"
15256 x86_64-*linux*)
15257 case `/usr/bin/file conftest.o` in
15258 *x86-64*)
15259 LD="${LD-ld} -m elf32_x86_64"
15262 LD="${LD-ld} -m elf_i386"
15264 esac
15266 powerpc64le-*linux*)
15267 LD="${LD-ld} -m elf32lppclinux"
15269 powerpc64-*linux*)
15270 LD="${LD-ld} -m elf32ppclinux"
15272 s390x-*linux*)
15273 LD="${LD-ld} -m elf_s390"
15275 sparc64-*linux*)
15276 LD="${LD-ld} -m elf32_sparc"
15278 esac
15280 *64-bit*)
15281 case $host in
15282 x86_64-*kfreebsd*-gnu)
15283 LD="${LD-ld} -m elf_x86_64_fbsd"
15285 x86_64-*linux*)
15286 LD="${LD-ld} -m elf_x86_64"
15288 powerpcle-*linux*)
15289 LD="${LD-ld} -m elf64lppc"
15291 powerpc-*linux*)
15292 LD="${LD-ld} -m elf64ppc"
15294 s390*-*linux*|s390*-*tpf*)
15295 LD="${LD-ld} -m elf64_s390"
15297 sparc*-*linux*)
15298 LD="${LD-ld} -m elf64_sparc"
15300 esac
15302 esac
15304 rm -rf conftest*
15307 *-*-sco3.2v5*)
15308 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15309 SAVE_CFLAGS="$CFLAGS"
15310 CFLAGS="$CFLAGS -belf"
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15312 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15313 if ${lt_cv_cc_needs_belf+:} false; then :
15314 $as_echo_n "(cached) " >&6
15315 else
15316 ac_ext=c
15317 ac_cpp='$CPP $CPPFLAGS'
15318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h. */
15326 main ()
15330 return 0;
15332 _ACEOF
15333 if ac_fn_c_try_link "$LINENO"; then :
15334 lt_cv_cc_needs_belf=yes
15335 else
15336 lt_cv_cc_needs_belf=no
15338 rm -f core conftest.err conftest.$ac_objext \
15339 conftest$ac_exeext conftest.$ac_ext
15340 ac_ext=c
15341 ac_cpp='$CPP $CPPFLAGS'
15342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15348 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15349 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15350 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15351 CFLAGS="$SAVE_CFLAGS"
15354 sparc*-*solaris*)
15355 # Find out which ABI we are using.
15356 echo 'int i;' > conftest.$ac_ext
15357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15358 (eval $ac_compile) 2>&5
15359 ac_status=$?
15360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15361 test $ac_status = 0; }; then
15362 case `/usr/bin/file conftest.o` in
15363 *64-bit*)
15364 case $lt_cv_prog_gnu_ld in
15365 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15367 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15368 LD="${LD-ld} -64"
15371 esac
15373 esac
15375 rm -rf conftest*
15377 esac
15379 need_locks="$enable_libtool_lock"
15382 case $host_os in
15383 rhapsody* | darwin*)
15384 if test -n "$ac_tool_prefix"; then
15385 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15386 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15388 $as_echo_n "checking for $ac_word... " >&6; }
15389 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15390 $as_echo_n "(cached) " >&6
15391 else
15392 if test -n "$DSYMUTIL"; then
15393 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15394 else
15395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396 for as_dir in $PATH
15398 IFS=$as_save_IFS
15399 test -z "$as_dir" && as_dir=.
15400 for ac_exec_ext in '' $ac_executable_extensions; do
15401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15402 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15404 break 2
15406 done
15407 done
15408 IFS=$as_save_IFS
15412 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15413 if test -n "$DSYMUTIL"; then
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15415 $as_echo "$DSYMUTIL" >&6; }
15416 else
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15418 $as_echo "no" >&6; }
15423 if test -z "$ac_cv_prog_DSYMUTIL"; then
15424 ac_ct_DSYMUTIL=$DSYMUTIL
15425 # Extract the first word of "dsymutil", so it can be a program name with args.
15426 set dummy dsymutil; ac_word=$2
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15428 $as_echo_n "checking for $ac_word... " >&6; }
15429 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15430 $as_echo_n "(cached) " >&6
15431 else
15432 if test -n "$ac_ct_DSYMUTIL"; then
15433 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15434 else
15435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15436 for as_dir in $PATH
15438 IFS=$as_save_IFS
15439 test -z "$as_dir" && as_dir=.
15440 for ac_exec_ext in '' $ac_executable_extensions; do
15441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15442 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15444 break 2
15446 done
15447 done
15448 IFS=$as_save_IFS
15452 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15453 if test -n "$ac_ct_DSYMUTIL"; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15455 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15456 else
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15458 $as_echo "no" >&6; }
15461 if test "x$ac_ct_DSYMUTIL" = x; then
15462 DSYMUTIL=":"
15463 else
15464 case $cross_compiling:$ac_tool_warned in
15465 yes:)
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15468 ac_tool_warned=yes ;;
15469 esac
15470 DSYMUTIL=$ac_ct_DSYMUTIL
15472 else
15473 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15476 if test -n "$ac_tool_prefix"; then
15477 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15478 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15480 $as_echo_n "checking for $ac_word... " >&6; }
15481 if ${ac_cv_prog_NMEDIT+:} false; then :
15482 $as_echo_n "(cached) " >&6
15483 else
15484 if test -n "$NMEDIT"; then
15485 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15486 else
15487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15488 for as_dir in $PATH
15490 IFS=$as_save_IFS
15491 test -z "$as_dir" && as_dir=.
15492 for ac_exec_ext in '' $ac_executable_extensions; do
15493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15494 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15496 break 2
15498 done
15499 done
15500 IFS=$as_save_IFS
15504 NMEDIT=$ac_cv_prog_NMEDIT
15505 if test -n "$NMEDIT"; then
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15507 $as_echo "$NMEDIT" >&6; }
15508 else
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15510 $as_echo "no" >&6; }
15515 if test -z "$ac_cv_prog_NMEDIT"; then
15516 ac_ct_NMEDIT=$NMEDIT
15517 # Extract the first word of "nmedit", so it can be a program name with args.
15518 set dummy nmedit; ac_word=$2
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15520 $as_echo_n "checking for $ac_word... " >&6; }
15521 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15522 $as_echo_n "(cached) " >&6
15523 else
15524 if test -n "$ac_ct_NMEDIT"; then
15525 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15526 else
15527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15528 for as_dir in $PATH
15530 IFS=$as_save_IFS
15531 test -z "$as_dir" && as_dir=.
15532 for ac_exec_ext in '' $ac_executable_extensions; do
15533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15534 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15536 break 2
15538 done
15539 done
15540 IFS=$as_save_IFS
15544 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15545 if test -n "$ac_ct_NMEDIT"; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15547 $as_echo "$ac_ct_NMEDIT" >&6; }
15548 else
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15550 $as_echo "no" >&6; }
15553 if test "x$ac_ct_NMEDIT" = x; then
15554 NMEDIT=":"
15555 else
15556 case $cross_compiling:$ac_tool_warned in
15557 yes:)
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15560 ac_tool_warned=yes ;;
15561 esac
15562 NMEDIT=$ac_ct_NMEDIT
15564 else
15565 NMEDIT="$ac_cv_prog_NMEDIT"
15568 if test -n "$ac_tool_prefix"; then
15569 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15570 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15572 $as_echo_n "checking for $ac_word... " >&6; }
15573 if ${ac_cv_prog_LIPO+:} false; then :
15574 $as_echo_n "(cached) " >&6
15575 else
15576 if test -n "$LIPO"; then
15577 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15578 else
15579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15580 for as_dir in $PATH
15582 IFS=$as_save_IFS
15583 test -z "$as_dir" && as_dir=.
15584 for ac_exec_ext in '' $ac_executable_extensions; do
15585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15586 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15588 break 2
15590 done
15591 done
15592 IFS=$as_save_IFS
15596 LIPO=$ac_cv_prog_LIPO
15597 if test -n "$LIPO"; then
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15599 $as_echo "$LIPO" >&6; }
15600 else
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15602 $as_echo "no" >&6; }
15607 if test -z "$ac_cv_prog_LIPO"; then
15608 ac_ct_LIPO=$LIPO
15609 # Extract the first word of "lipo", so it can be a program name with args.
15610 set dummy lipo; ac_word=$2
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15612 $as_echo_n "checking for $ac_word... " >&6; }
15613 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15614 $as_echo_n "(cached) " >&6
15615 else
15616 if test -n "$ac_ct_LIPO"; then
15617 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15618 else
15619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15620 for as_dir in $PATH
15622 IFS=$as_save_IFS
15623 test -z "$as_dir" && as_dir=.
15624 for ac_exec_ext in '' $ac_executable_extensions; do
15625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15626 ac_cv_prog_ac_ct_LIPO="lipo"
15627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15628 break 2
15630 done
15631 done
15632 IFS=$as_save_IFS
15636 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15637 if test -n "$ac_ct_LIPO"; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15639 $as_echo "$ac_ct_LIPO" >&6; }
15640 else
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 $as_echo "no" >&6; }
15645 if test "x$ac_ct_LIPO" = x; then
15646 LIPO=":"
15647 else
15648 case $cross_compiling:$ac_tool_warned in
15649 yes:)
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15652 ac_tool_warned=yes ;;
15653 esac
15654 LIPO=$ac_ct_LIPO
15656 else
15657 LIPO="$ac_cv_prog_LIPO"
15660 if test -n "$ac_tool_prefix"; then
15661 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15662 set dummy ${ac_tool_prefix}otool; ac_word=$2
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15664 $as_echo_n "checking for $ac_word... " >&6; }
15665 if ${ac_cv_prog_OTOOL+:} false; then :
15666 $as_echo_n "(cached) " >&6
15667 else
15668 if test -n "$OTOOL"; then
15669 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15670 else
15671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15672 for as_dir in $PATH
15674 IFS=$as_save_IFS
15675 test -z "$as_dir" && as_dir=.
15676 for ac_exec_ext in '' $ac_executable_extensions; do
15677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15678 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15680 break 2
15682 done
15683 done
15684 IFS=$as_save_IFS
15688 OTOOL=$ac_cv_prog_OTOOL
15689 if test -n "$OTOOL"; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15691 $as_echo "$OTOOL" >&6; }
15692 else
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15694 $as_echo "no" >&6; }
15699 if test -z "$ac_cv_prog_OTOOL"; then
15700 ac_ct_OTOOL=$OTOOL
15701 # Extract the first word of "otool", so it can be a program name with args.
15702 set dummy otool; ac_word=$2
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15704 $as_echo_n "checking for $ac_word... " >&6; }
15705 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 if test -n "$ac_ct_OTOOL"; then
15709 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15710 else
15711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15712 for as_dir in $PATH
15714 IFS=$as_save_IFS
15715 test -z "$as_dir" && as_dir=.
15716 for ac_exec_ext in '' $ac_executable_extensions; do
15717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15718 ac_cv_prog_ac_ct_OTOOL="otool"
15719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15720 break 2
15722 done
15723 done
15724 IFS=$as_save_IFS
15728 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15729 if test -n "$ac_ct_OTOOL"; then
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15731 $as_echo "$ac_ct_OTOOL" >&6; }
15732 else
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15734 $as_echo "no" >&6; }
15737 if test "x$ac_ct_OTOOL" = x; then
15738 OTOOL=":"
15739 else
15740 case $cross_compiling:$ac_tool_warned in
15741 yes:)
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15744 ac_tool_warned=yes ;;
15745 esac
15746 OTOOL=$ac_ct_OTOOL
15748 else
15749 OTOOL="$ac_cv_prog_OTOOL"
15752 if test -n "$ac_tool_prefix"; then
15753 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15754 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15756 $as_echo_n "checking for $ac_word... " >&6; }
15757 if ${ac_cv_prog_OTOOL64+:} false; then :
15758 $as_echo_n "(cached) " >&6
15759 else
15760 if test -n "$OTOOL64"; then
15761 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15762 else
15763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15764 for as_dir in $PATH
15766 IFS=$as_save_IFS
15767 test -z "$as_dir" && as_dir=.
15768 for ac_exec_ext in '' $ac_executable_extensions; do
15769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15770 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15772 break 2
15774 done
15775 done
15776 IFS=$as_save_IFS
15780 OTOOL64=$ac_cv_prog_OTOOL64
15781 if test -n "$OTOOL64"; then
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15783 $as_echo "$OTOOL64" >&6; }
15784 else
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15786 $as_echo "no" >&6; }
15791 if test -z "$ac_cv_prog_OTOOL64"; then
15792 ac_ct_OTOOL64=$OTOOL64
15793 # Extract the first word of "otool64", so it can be a program name with args.
15794 set dummy otool64; ac_word=$2
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15796 $as_echo_n "checking for $ac_word... " >&6; }
15797 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15798 $as_echo_n "(cached) " >&6
15799 else
15800 if test -n "$ac_ct_OTOOL64"; then
15801 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15802 else
15803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15804 for as_dir in $PATH
15806 IFS=$as_save_IFS
15807 test -z "$as_dir" && as_dir=.
15808 for ac_exec_ext in '' $ac_executable_extensions; do
15809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15810 ac_cv_prog_ac_ct_OTOOL64="otool64"
15811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15812 break 2
15814 done
15815 done
15816 IFS=$as_save_IFS
15820 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15821 if test -n "$ac_ct_OTOOL64"; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15823 $as_echo "$ac_ct_OTOOL64" >&6; }
15824 else
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826 $as_echo "no" >&6; }
15829 if test "x$ac_ct_OTOOL64" = x; then
15830 OTOOL64=":"
15831 else
15832 case $cross_compiling:$ac_tool_warned in
15833 yes:)
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15836 ac_tool_warned=yes ;;
15837 esac
15838 OTOOL64=$ac_ct_OTOOL64
15840 else
15841 OTOOL64="$ac_cv_prog_OTOOL64"
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15871 $as_echo_n "checking for -single_module linker flag... " >&6; }
15872 if ${lt_cv_apple_cc_single_mod+:} false; then :
15873 $as_echo_n "(cached) " >&6
15874 else
15875 lt_cv_apple_cc_single_mod=no
15876 if test -z "${LT_MULTI_MODULE}"; then
15877 # By default we will add the -single_module flag. You can override
15878 # by either setting the environment variable LT_MULTI_MODULE
15879 # non-empty at configure time, or by adding -multi_module to the
15880 # link flags.
15881 rm -rf libconftest.dylib*
15882 echo "int foo(void){return 1;}" > conftest.c
15883 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15884 -dynamiclib -Wl,-single_module conftest.c" >&5
15885 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15886 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15887 _lt_result=$?
15888 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15889 lt_cv_apple_cc_single_mod=yes
15890 else
15891 cat conftest.err >&5
15893 rm -rf libconftest.dylib*
15894 rm -f conftest.*
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15898 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15900 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15901 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15902 $as_echo_n "(cached) " >&6
15903 else
15904 lt_cv_ld_exported_symbols_list=no
15905 save_LDFLAGS=$LDFLAGS
15906 echo "_main" > conftest.sym
15907 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15912 main ()
15916 return 0;
15918 _ACEOF
15919 if ac_fn_c_try_link "$LINENO"; then :
15920 lt_cv_ld_exported_symbols_list=yes
15921 else
15922 lt_cv_ld_exported_symbols_list=no
15924 rm -f core conftest.err conftest.$ac_objext \
15925 conftest$ac_exeext conftest.$ac_ext
15926 LDFLAGS="$save_LDFLAGS"
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15930 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15932 $as_echo_n "checking for -force_load linker flag... " >&6; }
15933 if ${lt_cv_ld_force_load+:} false; then :
15934 $as_echo_n "(cached) " >&6
15935 else
15936 lt_cv_ld_force_load=no
15937 cat > conftest.c << _LT_EOF
15938 int forced_loaded() { return 2;}
15939 _LT_EOF
15940 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15941 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15942 echo "$AR cru libconftest.a conftest.o" >&5
15943 $AR cru libconftest.a conftest.o 2>&5
15944 cat > conftest.c << _LT_EOF
15945 int main() { return 0;}
15946 _LT_EOF
15947 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15948 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15949 _lt_result=$?
15950 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15951 lt_cv_ld_force_load=yes
15952 else
15953 cat conftest.err >&5
15955 rm -f conftest.err libconftest.a conftest conftest.c
15956 rm -rf conftest.dSYM
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15960 $as_echo "$lt_cv_ld_force_load" >&6; }
15961 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
15962 # build without first building modern cctools / linker.
15963 case $host_cpu-$host_os in
15964 *-rhapsody* | *-darwin1.[012])
15965 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15966 *-darwin1.*)
15967 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15968 *-darwin*)
15969 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
15970 # deployment target is forced to an earlier version.
15971 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
15972 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
15974 10.[012][,.]*)
15975 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15979 esac
15981 esac
15982 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15983 _lt_dar_single_mod='$single_module'
15985 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15986 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15987 else
15988 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15990 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15991 _lt_dsymutil='~$DSYMUTIL $lib || :'
15992 else
15993 _lt_dsymutil=
15996 esac
15999 for ac_header in dlfcn.h
16000 do :
16001 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16002 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16003 cat >>confdefs.h <<_ACEOF
16004 #define HAVE_DLFCN_H 1
16005 _ACEOF
16008 done
16014 # Set options
16018 enable_dlopen=no
16021 enable_win32_dll=no
16024 # Check whether --enable-shared was given.
16025 if test "${enable_shared+set}" = set; then :
16026 enableval=$enable_shared; p=${PACKAGE-default}
16027 case $enableval in
16028 yes) enable_shared=yes ;;
16029 no) enable_shared=no ;;
16031 enable_shared=no
16032 # Look at the argument we got. We use all the common list separators.
16033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16034 for pkg in $enableval; do
16035 IFS="$lt_save_ifs"
16036 if test "X$pkg" = "X$p"; then
16037 enable_shared=yes
16039 done
16040 IFS="$lt_save_ifs"
16042 esac
16043 else
16044 enable_shared=yes
16055 # Check whether --enable-static was given.
16056 if test "${enable_static+set}" = set; then :
16057 enableval=$enable_static; p=${PACKAGE-default}
16058 case $enableval in
16059 yes) enable_static=yes ;;
16060 no) enable_static=no ;;
16062 enable_static=no
16063 # Look at the argument we got. We use all the common list separators.
16064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16065 for pkg in $enableval; do
16066 IFS="$lt_save_ifs"
16067 if test "X$pkg" = "X$p"; then
16068 enable_static=yes
16070 done
16071 IFS="$lt_save_ifs"
16073 esac
16074 else
16075 enable_static=yes
16087 # Check whether --with-pic was given.
16088 if test "${with_pic+set}" = set; then :
16089 withval=$with_pic; pic_mode="$withval"
16090 else
16091 pic_mode=default
16095 test -z "$pic_mode" && pic_mode=default
16103 # Check whether --enable-fast-install was given.
16104 if test "${enable_fast_install+set}" = set; then :
16105 enableval=$enable_fast_install; p=${PACKAGE-default}
16106 case $enableval in
16107 yes) enable_fast_install=yes ;;
16108 no) enable_fast_install=no ;;
16110 enable_fast_install=no
16111 # Look at the argument we got. We use all the common list separators.
16112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16113 for pkg in $enableval; do
16114 IFS="$lt_save_ifs"
16115 if test "X$pkg" = "X$p"; then
16116 enable_fast_install=yes
16118 done
16119 IFS="$lt_save_ifs"
16121 esac
16122 else
16123 enable_fast_install=yes
16136 # This can be used to rebuild libtool when needed
16137 LIBTOOL_DEPS="$ltmain"
16139 # Always use our own libtool.
16140 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16167 test -z "$LN_S" && LN_S="ln -s"
16182 if test -n "${ZSH_VERSION+set}" ; then
16183 setopt NO_GLOB_SUBST
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16187 $as_echo_n "checking for objdir... " >&6; }
16188 if ${lt_cv_objdir+:} false; then :
16189 $as_echo_n "(cached) " >&6
16190 else
16191 rm -f .libs 2>/dev/null
16192 mkdir .libs 2>/dev/null
16193 if test -d .libs; then
16194 lt_cv_objdir=.libs
16195 else
16196 # MS-DOS does not allow filenames that begin with a dot.
16197 lt_cv_objdir=_libs
16199 rmdir .libs 2>/dev/null
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16202 $as_echo "$lt_cv_objdir" >&6; }
16203 objdir=$lt_cv_objdir
16209 cat >>confdefs.h <<_ACEOF
16210 #define LT_OBJDIR "$lt_cv_objdir/"
16211 _ACEOF
16216 case $host_os in
16217 aix3*)
16218 # AIX sometimes has problems with the GCC collect2 program. For some
16219 # reason, if we set the COLLECT_NAMES environment variable, the problems
16220 # vanish in a puff of smoke.
16221 if test "X${COLLECT_NAMES+set}" != Xset; then
16222 COLLECT_NAMES=
16223 export COLLECT_NAMES
16226 esac
16228 # Global variables:
16229 ofile=libtool
16230 can_build_shared=yes
16232 # All known linkers require a `.a' archive for static linking (except MSVC,
16233 # which needs '.lib').
16234 libext=a
16236 with_gnu_ld="$lt_cv_prog_gnu_ld"
16238 old_CC="$CC"
16239 old_CFLAGS="$CFLAGS"
16241 # Set sane defaults for various variables
16242 test -z "$CC" && CC=cc
16243 test -z "$LTCC" && LTCC=$CC
16244 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16245 test -z "$LD" && LD=ld
16246 test -z "$ac_objext" && ac_objext=o
16248 for cc_temp in $compiler""; do
16249 case $cc_temp in
16250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16252 \-*) ;;
16253 *) break;;
16254 esac
16255 done
16256 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16259 # Only perform the check for file, if the check method requires it
16260 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16261 case $deplibs_check_method in
16262 file_magic*)
16263 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16265 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16266 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16267 $as_echo_n "(cached) " >&6
16268 else
16269 case $MAGIC_CMD in
16270 [\\/*] | ?:[\\/]*)
16271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16274 lt_save_MAGIC_CMD="$MAGIC_CMD"
16275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16276 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16277 for ac_dir in $ac_dummy; do
16278 IFS="$lt_save_ifs"
16279 test -z "$ac_dir" && ac_dir=.
16280 if test -f $ac_dir/${ac_tool_prefix}file; then
16281 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16282 if test -n "$file_magic_test_file"; then
16283 case $deplibs_check_method in
16284 "file_magic "*)
16285 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16287 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16288 $EGREP "$file_magic_regex" > /dev/null; then
16290 else
16291 cat <<_LT_EOF 1>&2
16293 *** Warning: the command libtool uses to detect shared libraries,
16294 *** $file_magic_cmd, produces output that libtool cannot recognize.
16295 *** The result is that libtool may fail to recognize shared libraries
16296 *** as such. This will affect the creation of libtool libraries that
16297 *** depend on shared libraries, but programs linked with such libtool
16298 *** libraries will work regardless of this problem. Nevertheless, you
16299 *** may want to report the problem to your system manager and/or to
16300 *** bug-libtool@gnu.org
16302 _LT_EOF
16303 fi ;;
16304 esac
16306 break
16308 done
16309 IFS="$lt_save_ifs"
16310 MAGIC_CMD="$lt_save_MAGIC_CMD"
16312 esac
16315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16316 if test -n "$MAGIC_CMD"; then
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16318 $as_echo "$MAGIC_CMD" >&6; }
16319 else
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16321 $as_echo "no" >&6; }
16328 if test -z "$lt_cv_path_MAGIC_CMD"; then
16329 if test -n "$ac_tool_prefix"; then
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16331 $as_echo_n "checking for file... " >&6; }
16332 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16333 $as_echo_n "(cached) " >&6
16334 else
16335 case $MAGIC_CMD in
16336 [\\/*] | ?:[\\/]*)
16337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16340 lt_save_MAGIC_CMD="$MAGIC_CMD"
16341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16343 for ac_dir in $ac_dummy; do
16344 IFS="$lt_save_ifs"
16345 test -z "$ac_dir" && ac_dir=.
16346 if test -f $ac_dir/file; then
16347 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16348 if test -n "$file_magic_test_file"; then
16349 case $deplibs_check_method in
16350 "file_magic "*)
16351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16354 $EGREP "$file_magic_regex" > /dev/null; then
16356 else
16357 cat <<_LT_EOF 1>&2
16359 *** Warning: the command libtool uses to detect shared libraries,
16360 *** $file_magic_cmd, produces output that libtool cannot recognize.
16361 *** The result is that libtool may fail to recognize shared libraries
16362 *** as such. This will affect the creation of libtool libraries that
16363 *** depend on shared libraries, but programs linked with such libtool
16364 *** libraries will work regardless of this problem. Nevertheless, you
16365 *** may want to report the problem to your system manager and/or to
16366 *** bug-libtool@gnu.org
16368 _LT_EOF
16369 fi ;;
16370 esac
16372 break
16374 done
16375 IFS="$lt_save_ifs"
16376 MAGIC_CMD="$lt_save_MAGIC_CMD"
16378 esac
16381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16382 if test -n "$MAGIC_CMD"; then
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16384 $as_echo "$MAGIC_CMD" >&6; }
16385 else
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16387 $as_echo "no" >&6; }
16391 else
16392 MAGIC_CMD=:
16398 esac
16400 # Use C for the default configuration in the libtool script
16402 lt_save_CC="$CC"
16403 ac_ext=c
16404 ac_cpp='$CPP $CPPFLAGS'
16405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16410 # Source file extension for C test sources.
16411 ac_ext=c
16413 # Object file extension for compiled C test sources.
16414 objext=o
16415 objext=$objext
16417 # Code to be used in simple compile tests
16418 lt_simple_compile_test_code="int some_variable = 0;"
16420 # Code to be used in simple link tests
16421 lt_simple_link_test_code='int main(){return(0);}'
16429 # If no C compiler was specified, use CC.
16430 LTCC=${LTCC-"$CC"}
16432 # If no C compiler flags were specified, use CFLAGS.
16433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16435 # Allow CC to be a program name with arguments.
16436 compiler=$CC
16438 # Save the default compiler, since it gets overwritten when the other
16439 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16440 compiler_DEFAULT=$CC
16442 # save warnings/boilerplate of simple test code
16443 ac_outfile=conftest.$ac_objext
16444 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16445 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16446 _lt_compiler_boilerplate=`cat conftest.err`
16447 $RM conftest*
16449 ac_outfile=conftest.$ac_objext
16450 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16451 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16452 _lt_linker_boilerplate=`cat conftest.err`
16453 $RM -r conftest*
16456 ## CAVEAT EMPTOR:
16457 ## There is no encapsulation within the following macros, do not change
16458 ## the running order or otherwise move them around unless you know exactly
16459 ## what you are doing...
16460 if test -n "$compiler"; then
16462 lt_prog_compiler_no_builtin_flag=
16464 if test "$GCC" = yes; then
16465 case $cc_basename in
16466 nvcc*)
16467 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16469 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16470 esac
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16473 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16474 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16475 $as_echo_n "(cached) " >&6
16476 else
16477 lt_cv_prog_compiler_rtti_exceptions=no
16478 ac_outfile=conftest.$ac_objext
16479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16480 lt_compiler_flag="-fno-rtti -fno-exceptions"
16481 # Insert the option either (1) after the last *FLAGS variable, or
16482 # (2) before a word containing "conftest.", or (3) at the end.
16483 # Note that $ac_compile itself does not contain backslashes and begins
16484 # with a dollar sign (not a hyphen), so the echo should work correctly.
16485 # The option is referenced via a variable to avoid confusing sed.
16486 lt_compile=`echo "$ac_compile" | $SED \
16487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16489 -e 's:$: $lt_compiler_flag:'`
16490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16491 (eval "$lt_compile" 2>conftest.err)
16492 ac_status=$?
16493 cat conftest.err >&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 if (exit $ac_status) && test -s "$ac_outfile"; then
16496 # The compiler can only warn and ignore the option if not recognized
16497 # So say no if there are warnings other than the usual output.
16498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16501 lt_cv_prog_compiler_rtti_exceptions=yes
16504 $RM conftest*
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16508 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16510 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16511 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16512 else
16523 lt_prog_compiler_wl=
16524 lt_prog_compiler_pic=
16525 lt_prog_compiler_static=
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16528 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16530 if test "$GCC" = yes; then
16531 lt_prog_compiler_wl='-Wl,'
16532 lt_prog_compiler_static='-static'
16534 case $host_os in
16535 aix*)
16536 # All AIX code is PIC.
16537 if test "$host_cpu" = ia64; then
16538 # AIX 5 now supports IA64 processor
16539 lt_prog_compiler_static='-Bstatic'
16541 lt_prog_compiler_pic='-fPIC'
16544 amigaos*)
16545 case $host_cpu in
16546 powerpc)
16547 # see comment about AmigaOS4 .so support
16548 lt_prog_compiler_pic='-fPIC'
16550 m68k)
16551 # FIXME: we need at least 68020 code to build shared libraries, but
16552 # adding the `-m68020' flag to GCC prevents building anything better,
16553 # like `-m68040'.
16554 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16556 esac
16559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16560 # PIC is the default for these OSes.
16563 mingw* | cygwin* | pw32* | os2* | cegcc*)
16564 # This hack is so that the source file can tell whether it is being
16565 # built for inclusion in a dll (and should export symbols for example).
16566 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16567 # (--disable-auto-import) libraries
16568 lt_prog_compiler_pic='-DDLL_EXPORT'
16571 darwin* | rhapsody*)
16572 # PIC is the default on this platform
16573 # Common symbols not allowed in MH_DYLIB files
16574 lt_prog_compiler_pic='-fno-common'
16577 haiku*)
16578 # PIC is the default for Haiku.
16579 # The "-static" flag exists, but is broken.
16580 lt_prog_compiler_static=
16583 hpux*)
16584 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16585 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16586 # sets the default TLS model and affects inlining.
16587 case $host_cpu in
16588 hppa*64*)
16589 # +Z the default
16592 lt_prog_compiler_pic='-fPIC'
16594 esac
16597 interix[3-9]*)
16598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16599 # Instead, we relocate shared libraries at runtime.
16602 msdosdjgpp*)
16603 # Just because we use GCC doesn't mean we suddenly get shared libraries
16604 # on systems that don't support them.
16605 lt_prog_compiler_can_build_shared=no
16606 enable_shared=no
16609 *nto* | *qnx*)
16610 # QNX uses GNU C++, but need to define -shared option too, otherwise
16611 # it will coredump.
16612 lt_prog_compiler_pic='-fPIC -shared'
16615 sysv4*MP*)
16616 if test -d /usr/nec; then
16617 lt_prog_compiler_pic=-Kconform_pic
16622 lt_prog_compiler_pic='-fPIC'
16624 esac
16626 case $cc_basename in
16627 nvcc*) # Cuda Compiler Driver 2.2
16628 lt_prog_compiler_wl='-Xlinker '
16629 lt_prog_compiler_pic='-Xcompiler -fPIC'
16631 esac
16632 else
16633 # PORTME Check for flag to pass linker flags through the system compiler.
16634 case $host_os in
16635 aix*)
16636 lt_prog_compiler_wl='-Wl,'
16637 if test "$host_cpu" = ia64; then
16638 # AIX 5 now supports IA64 processor
16639 lt_prog_compiler_static='-Bstatic'
16640 else
16641 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16645 mingw* | cygwin* | pw32* | os2* | cegcc*)
16646 # This hack is so that the source file can tell whether it is being
16647 # built for inclusion in a dll (and should export symbols for example).
16648 lt_prog_compiler_pic='-DDLL_EXPORT'
16651 hpux9* | hpux10* | hpux11*)
16652 lt_prog_compiler_wl='-Wl,'
16653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16654 # not for PA HP-UX.
16655 case $host_cpu in
16656 hppa*64*|ia64*)
16657 # +Z the default
16660 lt_prog_compiler_pic='+Z'
16662 esac
16663 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16664 lt_prog_compiler_static='${wl}-a ${wl}archive'
16667 irix5* | irix6* | nonstopux*)
16668 lt_prog_compiler_wl='-Wl,'
16669 # PIC (with -KPIC) is the default.
16670 lt_prog_compiler_static='-non_shared'
16673 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16674 case $cc_basename in
16675 # old Intel for x86_64 which still supported -KPIC.
16676 ecc*)
16677 lt_prog_compiler_wl='-Wl,'
16678 lt_prog_compiler_pic='-KPIC'
16679 lt_prog_compiler_static='-static'
16681 # icc used to be incompatible with GCC.
16682 # ICC 10 doesn't accept -KPIC any more.
16683 icc* | ifort*)
16684 lt_prog_compiler_wl='-Wl,'
16685 lt_prog_compiler_pic='-fPIC'
16686 lt_prog_compiler_static='-static'
16688 # Lahey Fortran 8.1.
16689 lf95*)
16690 lt_prog_compiler_wl='-Wl,'
16691 lt_prog_compiler_pic='--shared'
16692 lt_prog_compiler_static='--static'
16694 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16695 # Portland Group compilers (*not* the Pentium gcc compiler,
16696 # which looks to be a dead project)
16697 lt_prog_compiler_wl='-Wl,'
16698 lt_prog_compiler_pic='-fpic'
16699 lt_prog_compiler_static='-Bstatic'
16701 ccc*)
16702 lt_prog_compiler_wl='-Wl,'
16703 # All Alpha code is PIC.
16704 lt_prog_compiler_static='-non_shared'
16706 xl* | bgxl* | bgf* | mpixl*)
16707 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16708 lt_prog_compiler_wl='-Wl,'
16709 lt_prog_compiler_pic='-qpic'
16710 lt_prog_compiler_static='-qstaticlink'
16713 case `$CC -V 2>&1 | sed 5q` in
16714 *Sun\ F* | *Sun*Fortran*)
16715 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16716 lt_prog_compiler_pic='-KPIC'
16717 lt_prog_compiler_static='-Bstatic'
16718 lt_prog_compiler_wl=''
16720 *Sun\ C*)
16721 # Sun C 5.9
16722 lt_prog_compiler_pic='-KPIC'
16723 lt_prog_compiler_static='-Bstatic'
16724 lt_prog_compiler_wl='-Wl,'
16726 esac
16728 esac
16731 newsos6)
16732 lt_prog_compiler_pic='-KPIC'
16733 lt_prog_compiler_static='-Bstatic'
16736 *nto* | *qnx*)
16737 # QNX uses GNU C++, but need to define -shared option too, otherwise
16738 # it will coredump.
16739 lt_prog_compiler_pic='-fPIC -shared'
16742 osf3* | osf4* | osf5*)
16743 lt_prog_compiler_wl='-Wl,'
16744 # All OSF/1 code is PIC.
16745 lt_prog_compiler_static='-non_shared'
16748 rdos*)
16749 lt_prog_compiler_static='-non_shared'
16752 solaris*)
16753 lt_prog_compiler_pic='-KPIC'
16754 lt_prog_compiler_static='-Bstatic'
16755 case $cc_basename in
16756 f77* | f90* | f95*)
16757 lt_prog_compiler_wl='-Qoption ld ';;
16759 lt_prog_compiler_wl='-Wl,';;
16760 esac
16763 sunos4*)
16764 lt_prog_compiler_wl='-Qoption ld '
16765 lt_prog_compiler_pic='-PIC'
16766 lt_prog_compiler_static='-Bstatic'
16769 sysv4 | sysv4.2uw2* | sysv4.3*)
16770 lt_prog_compiler_wl='-Wl,'
16771 lt_prog_compiler_pic='-KPIC'
16772 lt_prog_compiler_static='-Bstatic'
16775 sysv4*MP*)
16776 if test -d /usr/nec ;then
16777 lt_prog_compiler_pic='-Kconform_pic'
16778 lt_prog_compiler_static='-Bstatic'
16782 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16783 lt_prog_compiler_wl='-Wl,'
16784 lt_prog_compiler_pic='-KPIC'
16785 lt_prog_compiler_static='-Bstatic'
16788 unicos*)
16789 lt_prog_compiler_wl='-Wl,'
16790 lt_prog_compiler_can_build_shared=no
16793 uts4*)
16794 lt_prog_compiler_pic='-pic'
16795 lt_prog_compiler_static='-Bstatic'
16799 lt_prog_compiler_can_build_shared=no
16801 esac
16804 case $host_os in
16805 # For platforms which do not support PIC, -DPIC is meaningless:
16806 *djgpp*)
16807 lt_prog_compiler_pic=
16810 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16812 esac
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16814 $as_echo "$lt_prog_compiler_pic" >&6; }
16822 # Check to make sure the PIC flag actually works.
16824 if test -n "$lt_prog_compiler_pic"; then
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16826 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16827 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16828 $as_echo_n "(cached) " >&6
16829 else
16830 lt_cv_prog_compiler_pic_works=no
16831 ac_outfile=conftest.$ac_objext
16832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16833 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16834 # Insert the option either (1) after the last *FLAGS variable, or
16835 # (2) before a word containing "conftest.", or (3) at the end.
16836 # Note that $ac_compile itself does not contain backslashes and begins
16837 # with a dollar sign (not a hyphen), so the echo should work correctly.
16838 # The option is referenced via a variable to avoid confusing sed.
16839 lt_compile=`echo "$ac_compile" | $SED \
16840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16842 -e 's:$: $lt_compiler_flag:'`
16843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16844 (eval "$lt_compile" 2>conftest.err)
16845 ac_status=$?
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 if (exit $ac_status) && test -s "$ac_outfile"; then
16849 # The compiler can only warn and ignore the option if not recognized
16850 # So say no if there are warnings other than the usual output.
16851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16854 lt_cv_prog_compiler_pic_works=yes
16857 $RM conftest*
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16861 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16863 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16864 case $lt_prog_compiler_pic in
16865 "" | " "*) ;;
16866 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16867 esac
16868 else
16869 lt_prog_compiler_pic=
16870 lt_prog_compiler_can_build_shared=no
16881 # Check to make sure the static flag actually works.
16883 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16885 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16886 if ${lt_cv_prog_compiler_static_works+:} false; then :
16887 $as_echo_n "(cached) " >&6
16888 else
16889 lt_cv_prog_compiler_static_works=no
16890 save_LDFLAGS="$LDFLAGS"
16891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16894 # The linker can only warn and ignore the option if not recognized
16895 # So say no if there are warnings
16896 if test -s conftest.err; then
16897 # Append any errors to the config.log.
16898 cat conftest.err 1>&5
16899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16901 if diff conftest.exp conftest.er2 >/dev/null; then
16902 lt_cv_prog_compiler_static_works=yes
16904 else
16905 lt_cv_prog_compiler_static_works=yes
16908 $RM -r conftest*
16909 LDFLAGS="$save_LDFLAGS"
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16913 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16915 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16917 else
16918 lt_prog_compiler_static=
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16929 if ${lt_cv_prog_compiler_c_o+:} false; then :
16930 $as_echo_n "(cached) " >&6
16931 else
16932 lt_cv_prog_compiler_c_o=no
16933 $RM -r conftest 2>/dev/null
16934 mkdir conftest
16935 cd conftest
16936 mkdir out
16937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16939 lt_compiler_flag="-o out/conftest2.$ac_objext"
16940 # Insert the option either (1) after the last *FLAGS variable, or
16941 # (2) before a word containing "conftest.", or (3) at the end.
16942 # Note that $ac_compile itself does not contain backslashes and begins
16943 # with a dollar sign (not a hyphen), so the echo should work correctly.
16944 lt_compile=`echo "$ac_compile" | $SED \
16945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16947 -e 's:$: $lt_compiler_flag:'`
16948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16949 (eval "$lt_compile" 2>out/conftest.err)
16950 ac_status=$?
16951 cat out/conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16954 then
16955 # The compiler can only warn and ignore the option if not recognized
16956 # So say no if there are warnings
16957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16960 lt_cv_prog_compiler_c_o=yes
16963 chmod u+w . 2>&5
16964 $RM conftest*
16965 # SGI C++ compiler will create directory out/ii_files/ for
16966 # template instantiation
16967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16968 $RM out/* && rmdir out
16969 cd ..
16970 $RM -r conftest
16971 $RM conftest*
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16983 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16984 if ${lt_cv_prog_compiler_c_o+:} false; then :
16985 $as_echo_n "(cached) " >&6
16986 else
16987 lt_cv_prog_compiler_c_o=no
16988 $RM -r conftest 2>/dev/null
16989 mkdir conftest
16990 cd conftest
16991 mkdir out
16992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16994 lt_compiler_flag="-o out/conftest2.$ac_objext"
16995 # Insert the option either (1) after the last *FLAGS variable, or
16996 # (2) before a word containing "conftest.", or (3) at the end.
16997 # Note that $ac_compile itself does not contain backslashes and begins
16998 # with a dollar sign (not a hyphen), so the echo should work correctly.
16999 lt_compile=`echo "$ac_compile" | $SED \
17000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17002 -e 's:$: $lt_compiler_flag:'`
17003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17004 (eval "$lt_compile" 2>out/conftest.err)
17005 ac_status=$?
17006 cat out/conftest.err >&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17009 then
17010 # The compiler can only warn and ignore the option if not recognized
17011 # So say no if there are warnings
17012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17015 lt_cv_prog_compiler_c_o=yes
17018 chmod u+w . 2>&5
17019 $RM conftest*
17020 # SGI C++ compiler will create directory out/ii_files/ for
17021 # template instantiation
17022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17023 $RM out/* && rmdir out
17024 cd ..
17025 $RM -r conftest
17026 $RM conftest*
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17030 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17035 hard_links="nottested"
17036 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17037 # do not overwrite the value of need_locks provided by the user
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17039 $as_echo_n "checking if we can lock with hard links... " >&6; }
17040 hard_links=yes
17041 $RM conftest*
17042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17043 touch conftest.a
17044 ln conftest.a conftest.b 2>&5 || hard_links=no
17045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17047 $as_echo "$hard_links" >&6; }
17048 if test "$hard_links" = no; then
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17050 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17051 need_locks=warn
17053 else
17054 need_locks=no
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17063 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17065 runpath_var=
17066 allow_undefined_flag=
17067 always_export_symbols=no
17068 archive_cmds=
17069 archive_expsym_cmds=
17070 compiler_needs_object=no
17071 enable_shared_with_static_runtimes=no
17072 export_dynamic_flag_spec=
17073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17074 hardcode_automatic=no
17075 hardcode_direct=no
17076 hardcode_direct_absolute=no
17077 hardcode_libdir_flag_spec=
17078 hardcode_libdir_flag_spec_ld=
17079 hardcode_libdir_separator=
17080 hardcode_minus_L=no
17081 hardcode_shlibpath_var=unsupported
17082 inherit_rpath=no
17083 link_all_deplibs=unknown
17084 module_cmds=
17085 module_expsym_cmds=
17086 old_archive_from_new_cmds=
17087 old_archive_from_expsyms_cmds=
17088 thread_safe_flag_spec=
17089 whole_archive_flag_spec=
17090 # include_expsyms should be a list of space-separated symbols to be *always*
17091 # included in the symbol list
17092 include_expsyms=
17093 # exclude_expsyms can be an extended regexp of symbols to exclude
17094 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17095 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17096 # as well as any symbol that contains `d'.
17097 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17098 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17099 # platforms (ab)use it in PIC code, but their linkers get confused if
17100 # the symbol is explicitly referenced. Since portable code cannot
17101 # rely on this symbol name, it's probably fine to never include it in
17102 # preloaded symbol tables.
17103 # Exclude shared library initialization/finalization symbols.
17104 extract_expsyms_cmds=
17106 case $host_os in
17107 cygwin* | mingw* | pw32* | cegcc*)
17108 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17109 # When not using gcc, we currently assume that we are using
17110 # Microsoft Visual C++.
17111 if test "$GCC" != yes; then
17112 with_gnu_ld=no
17115 interix*)
17116 # we just hope/assume this is gcc and not c89 (= MSVC++)
17117 with_gnu_ld=yes
17119 openbsd*)
17120 with_gnu_ld=no
17122 esac
17124 ld_shlibs=yes
17126 # On some targets, GNU ld is compatible enough with the native linker
17127 # that we're better off using the native interface for both.
17128 lt_use_gnu_ld_interface=no
17129 if test "$with_gnu_ld" = yes; then
17130 case $host_os in
17131 aix*)
17132 # The AIX port of GNU ld has always aspired to compatibility
17133 # with the native linker. However, as the warning in the GNU ld
17134 # block says, versions before 2.19.5* couldn't really create working
17135 # shared libraries, regardless of the interface used.
17136 case `$LD -v 2>&1` in
17137 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17138 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17139 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17141 lt_use_gnu_ld_interface=yes
17143 esac
17146 lt_use_gnu_ld_interface=yes
17148 esac
17151 if test "$lt_use_gnu_ld_interface" = yes; then
17152 # If archive_cmds runs LD, not CC, wlarc should be empty
17153 wlarc='${wl}'
17155 # Set some defaults for GNU ld with shared library support. These
17156 # are reset later if shared libraries are not supported. Putting them
17157 # here allows them to be overridden if necessary.
17158 runpath_var=LD_RUN_PATH
17159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17160 export_dynamic_flag_spec='${wl}--export-dynamic'
17161 # ancient GNU ld didn't support --whole-archive et. al.
17162 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17163 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17164 else
17165 whole_archive_flag_spec=
17167 supports_anon_versioning=no
17168 case `$LD -v 2>&1` in
17169 *GNU\ gold*) supports_anon_versioning=yes ;;
17170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17173 *\ 2.11.*) ;; # other 2.11 versions
17174 *) supports_anon_versioning=yes ;;
17175 esac
17177 # See if GNU ld supports shared libraries.
17178 case $host_os in
17179 aix[3-9]*)
17180 # On AIX/PPC, the GNU linker is very broken
17181 if test "$host_cpu" != ia64; then
17182 ld_shlibs=no
17183 cat <<_LT_EOF 1>&2
17185 *** Warning: the GNU linker, at least up to release 2.19, is reported
17186 *** to be unable to reliably create shared libraries on AIX.
17187 *** Therefore, libtool is disabling shared libraries support. If you
17188 *** really care for shared libraries, you may want to install binutils
17189 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17190 *** You will then need to restart the configuration process.
17192 _LT_EOF
17196 amigaos*)
17197 case $host_cpu in
17198 powerpc)
17199 # see comment about AmigaOS4 .so support
17200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17201 archive_expsym_cmds=''
17203 m68k)
17204 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)'
17205 hardcode_libdir_flag_spec='-L$libdir'
17206 hardcode_minus_L=yes
17208 esac
17211 beos*)
17212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17213 allow_undefined_flag=unsupported
17214 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17215 # support --undefined. This deserves some investigation. FIXME
17216 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17217 else
17218 ld_shlibs=no
17222 cygwin* | mingw* | pw32* | cegcc*)
17223 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17224 # as there is no search path for DLLs.
17225 hardcode_libdir_flag_spec='-L$libdir'
17226 export_dynamic_flag_spec='${wl}--export-all-symbols'
17227 allow_undefined_flag=unsupported
17228 always_export_symbols=no
17229 enable_shared_with_static_runtimes=yes
17230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17232 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17234 # If the export-symbols file already is a .def file (1st line
17235 # is EXPORTS), use it as is; otherwise, prepend...
17236 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17237 cp $export_symbols $output_objdir/$soname.def;
17238 else
17239 echo EXPORTS > $output_objdir/$soname.def;
17240 cat $export_symbols >> $output_objdir/$soname.def;
17242 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17243 else
17244 ld_shlibs=no
17248 haiku*)
17249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17250 link_all_deplibs=yes
17253 interix[3-9]*)
17254 hardcode_direct=no
17255 hardcode_shlibpath_var=no
17256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17257 export_dynamic_flag_spec='${wl}-E'
17258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17259 # Instead, shared libraries are loaded at an image base (0x10000000 by
17260 # default) and relocated if they conflict, which is a slow very memory
17261 # consuming and fragmenting process. To avoid this, we pick a random,
17262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17265 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'
17268 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17269 tmp_diet=no
17270 if test "$host_os" = linux-dietlibc; then
17271 case $cc_basename in
17272 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17273 esac
17275 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17276 && test "$tmp_diet" = no
17277 then
17278 tmp_addflag=' $pic_flag'
17279 tmp_sharedflag='-shared'
17280 case $cc_basename,$host_cpu in
17281 pgcc*) # Portland Group C compiler
17282 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'
17283 tmp_addflag=' $pic_flag'
17285 pgf77* | pgf90* | pgf95* | pgfortran*)
17286 # Portland Group f77 and f90 compilers
17287 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'
17288 tmp_addflag=' $pic_flag -Mnomain' ;;
17289 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17290 tmp_addflag=' -i_dynamic' ;;
17291 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17292 tmp_addflag=' -i_dynamic -nofor_main' ;;
17293 ifc* | ifort*) # Intel Fortran compiler
17294 tmp_addflag=' -nofor_main' ;;
17295 lf95*) # Lahey Fortran 8.1
17296 whole_archive_flag_spec=
17297 tmp_sharedflag='--shared' ;;
17298 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17299 tmp_sharedflag='-qmkshrobj'
17300 tmp_addflag= ;;
17301 nvcc*) # Cuda Compiler Driver 2.2
17302 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'
17303 compiler_needs_object=yes
17305 esac
17306 case `$CC -V 2>&1 | sed 5q` in
17307 *Sun\ C*) # Sun C 5.9
17308 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'
17309 compiler_needs_object=yes
17310 tmp_sharedflag='-G' ;;
17311 *Sun\ F*) # Sun Fortran 8.3
17312 tmp_sharedflag='-G' ;;
17313 esac
17314 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17316 if test "x$supports_anon_versioning" = xyes; then
17317 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17318 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17319 echo "local: *; };" >> $output_objdir/$libname.ver~
17320 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17323 case $cc_basename in
17324 xlf* | bgf* | bgxlf* | mpixlf*)
17325 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17326 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17327 hardcode_libdir_flag_spec=
17328 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17329 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17330 if test "x$supports_anon_versioning" = xyes; then
17331 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17333 echo "local: *; };" >> $output_objdir/$libname.ver~
17334 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17337 esac
17338 else
17339 ld_shlibs=no
17343 netbsd*)
17344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17345 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17346 wlarc=
17347 else
17348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17353 solaris*)
17354 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17355 ld_shlibs=no
17356 cat <<_LT_EOF 1>&2
17358 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17359 *** create shared libraries on Solaris systems. Therefore, libtool
17360 *** is disabling shared libraries support. We urge you to upgrade GNU
17361 *** binutils to release 2.9.1 or newer. Another option is to modify
17362 *** your PATH or compiler configuration so that the native linker is
17363 *** used, and then restart.
17365 _LT_EOF
17366 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17369 else
17370 ld_shlibs=no
17374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17375 case `$LD -v 2>&1` in
17376 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17377 ld_shlibs=no
17378 cat <<_LT_EOF 1>&2
17380 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17381 *** reliably create shared libraries on SCO systems. Therefore, libtool
17382 *** is disabling shared libraries support. We urge you to upgrade GNU
17383 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17384 *** your PATH or compiler configuration so that the native linker is
17385 *** used, and then restart.
17387 _LT_EOF
17390 # For security reasons, it is highly recommended that you always
17391 # use absolute paths for naming shared libraries, and exclude the
17392 # DT_RUNPATH tag from executables and libraries. But doing so
17393 # requires that you compile everything twice, which is a pain.
17394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17398 else
17399 ld_shlibs=no
17402 esac
17405 sunos4*)
17406 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17407 wlarc=
17408 hardcode_direct=yes
17409 hardcode_shlibpath_var=no
17413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17416 else
17417 ld_shlibs=no
17420 esac
17422 if test "$ld_shlibs" = no; then
17423 runpath_var=
17424 hardcode_libdir_flag_spec=
17425 export_dynamic_flag_spec=
17426 whole_archive_flag_spec=
17428 else
17429 # PORTME fill in a description of your system's linker (not GNU ld)
17430 case $host_os in
17431 aix3*)
17432 allow_undefined_flag=unsupported
17433 always_export_symbols=yes
17434 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'
17435 # Note: this linker hardcodes the directories in LIBPATH if there
17436 # are no directories specified by -L.
17437 hardcode_minus_L=yes
17438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17439 # Neither direct hardcoding nor static linking is supported with a
17440 # broken collect2.
17441 hardcode_direct=unsupported
17445 aix[4-9]*)
17446 if test "$host_cpu" = ia64; then
17447 # On IA64, the linker does run time linking by default, so we don't
17448 # have to do anything special.
17449 aix_use_runtimelinking=no
17450 exp_sym_flag='-Bexport'
17451 no_entry_flag=""
17452 else
17453 # If we're using GNU nm, then we don't want the "-C" option.
17454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17455 # Also, AIX nm treats weak defined symbols like other global
17456 # defined symbols, whereas GNU nm marks them as "W".
17457 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17458 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'
17459 else
17460 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'
17462 aix_use_runtimelinking=no
17464 # Test if we are trying to use run time linking or normal
17465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17466 # need to do runtime linking.
17467 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17468 for ld_flag in $LDFLAGS; do
17469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17470 aix_use_runtimelinking=yes
17471 break
17473 done
17475 esac
17477 exp_sym_flag='-bexport'
17478 no_entry_flag='-bnoentry'
17481 # When large executables or shared objects are built, AIX ld can
17482 # have problems creating the table of contents. If linking a library
17483 # or program results in "error TOC overflow" add -mminimal-toc to
17484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17487 archive_cmds=''
17488 hardcode_direct=yes
17489 hardcode_direct_absolute=yes
17490 hardcode_libdir_separator=':'
17491 link_all_deplibs=yes
17492 file_list_spec='${wl}-f,'
17494 if test "$GCC" = yes; then
17495 case $host_os in aix4.[012]|aix4.[012].*)
17496 # We only want to do this on AIX 4.2 and lower, the check
17497 # below for broken collect2 doesn't work under 4.3+
17498 collect2name=`${CC} -print-prog-name=collect2`
17499 if test -f "$collect2name" &&
17500 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17501 then
17502 # We have reworked collect2
17504 else
17505 # We have old collect2
17506 hardcode_direct=unsupported
17507 # It fails to find uninstalled libraries when the uninstalled
17508 # path is not listed in the libpath. Setting hardcode_minus_L
17509 # to unsupported forces relinking
17510 hardcode_minus_L=yes
17511 hardcode_libdir_flag_spec='-L$libdir'
17512 hardcode_libdir_separator=
17515 esac
17516 shared_flag='-shared'
17517 if test "$aix_use_runtimelinking" = yes; then
17518 shared_flag="$shared_flag "'${wl}-G'
17520 else
17521 # not using gcc
17522 if test "$host_cpu" = ia64; then
17523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17524 # chokes on -Wl,-G. The following line is correct:
17525 shared_flag='-G'
17526 else
17527 if test "$aix_use_runtimelinking" = yes; then
17528 shared_flag='${wl}-G'
17529 else
17530 shared_flag='${wl}-bM:SRE'
17535 export_dynamic_flag_spec='${wl}-bexpall'
17536 # It seems that -bexpall does not export symbols beginning with
17537 # underscore (_), so it is better to generate a list of symbols to export.
17538 always_export_symbols=yes
17539 if test "$aix_use_runtimelinking" = yes; then
17540 # Warning - without using the other runtime loading flags (-brtl),
17541 # -berok will link without error, but may produce a broken library.
17542 allow_undefined_flag='-berok'
17543 # Determine the default libpath from the value encoded in an
17544 # empty executable.
17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17549 main ()
17553 return 0;
17555 _ACEOF
17556 if ac_fn_c_try_link "$LINENO"; then :
17558 lt_aix_libpath_sed='
17559 /Import File Strings/,/^$/ {
17560 /^0/ {
17561 s/^0 *\(.*\)$/\1/
17565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17566 # Check for a 64-bit object if we didn't find anything.
17567 if test -z "$aix_libpath"; then
17568 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17571 rm -f core conftest.err conftest.$ac_objext \
17572 conftest$ac_exeext conftest.$ac_ext
17573 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17575 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17576 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"
17577 else
17578 if test "$host_cpu" = ia64; then
17579 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17580 allow_undefined_flag="-z nodefs"
17581 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"
17582 else
17583 # Determine the default libpath from the value encoded in an
17584 # empty executable.
17585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17586 /* end confdefs.h. */
17589 main ()
17593 return 0;
17595 _ACEOF
17596 if ac_fn_c_try_link "$LINENO"; then :
17598 lt_aix_libpath_sed='
17599 /Import File Strings/,/^$/ {
17600 /^0/ {
17601 s/^0 *\(.*\)$/\1/
17605 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17606 # Check for a 64-bit object if we didn't find anything.
17607 if test -z "$aix_libpath"; then
17608 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17611 rm -f core conftest.err conftest.$ac_objext \
17612 conftest$ac_exeext conftest.$ac_ext
17613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17615 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17616 # Warning - without using the other run time loading flags,
17617 # -berok will link without error, but may produce a broken library.
17618 no_undefined_flag=' ${wl}-bernotok'
17619 allow_undefined_flag=' ${wl}-berok'
17620 if test "$with_gnu_ld" = yes; then
17621 # We only use this code for GNU lds that support --whole-archive.
17622 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17623 else
17624 # Exported symbols can be pulled into shared objects from archives
17625 whole_archive_flag_spec='$convenience'
17627 archive_cmds_need_lc=yes
17628 # This is similar to how AIX traditionally builds its shared libraries.
17629 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'
17634 amigaos*)
17635 case $host_cpu in
17636 powerpc)
17637 # see comment about AmigaOS4 .so support
17638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17639 archive_expsym_cmds=''
17641 m68k)
17642 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)'
17643 hardcode_libdir_flag_spec='-L$libdir'
17644 hardcode_minus_L=yes
17646 esac
17649 bsdi[45]*)
17650 export_dynamic_flag_spec=-rdynamic
17653 cygwin* | mingw* | pw32* | cegcc*)
17654 # When not using gcc, we currently assume that we are using
17655 # Microsoft Visual C++.
17656 # hardcode_libdir_flag_spec is actually meaningless, as there is
17657 # no search path for DLLs.
17658 hardcode_libdir_flag_spec=' '
17659 allow_undefined_flag=unsupported
17660 # Tell ltmain to make .lib files, not .a files.
17661 libext=lib
17662 # Tell ltmain to make .dll files, not .so files.
17663 shrext_cmds=".dll"
17664 # FIXME: Setting linknames here is a bad hack.
17665 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17666 # The linker will automatically build a .lib file if we build a DLL.
17667 old_archive_from_new_cmds='true'
17668 # FIXME: Should let the user specify the lib program.
17669 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17670 fix_srcfile_path='`cygpath -w "$srcfile"`'
17671 enable_shared_with_static_runtimes=yes
17674 darwin* | rhapsody*)
17677 archive_cmds_need_lc=no
17678 hardcode_direct=no
17679 hardcode_automatic=yes
17680 hardcode_shlibpath_var=unsupported
17681 if test "$lt_cv_ld_force_load" = "yes"; then
17682 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\"`'
17683 else
17684 whole_archive_flag_spec=''
17686 link_all_deplibs=yes
17687 allow_undefined_flag="$_lt_dar_allow_undefined"
17688 case $cc_basename in
17689 ifort*) _lt_dar_can_shared=yes ;;
17690 *) _lt_dar_can_shared=$GCC ;;
17691 esac
17692 if test "$_lt_dar_can_shared" = "yes"; then
17693 output_verbose_link_cmd=func_echo_all
17694 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17695 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17696 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}"
17697 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}"
17699 else
17700 ld_shlibs=no
17705 dgux*)
17706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17707 hardcode_libdir_flag_spec='-L$libdir'
17708 hardcode_shlibpath_var=no
17711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17712 # support. Future versions do this automatically, but an explicit c++rt0.o
17713 # does not break anything, and helps significantly (at the cost of a little
17714 # extra space).
17715 freebsd2.2*)
17716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17717 hardcode_libdir_flag_spec='-R$libdir'
17718 hardcode_direct=yes
17719 hardcode_shlibpath_var=no
17722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17723 freebsd2.*)
17724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17725 hardcode_direct=yes
17726 hardcode_minus_L=yes
17727 hardcode_shlibpath_var=no
17730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17731 freebsd* | dragonfly*)
17732 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17733 hardcode_libdir_flag_spec='-R$libdir'
17734 hardcode_direct=yes
17735 hardcode_shlibpath_var=no
17738 hpux9*)
17739 if test "$GCC" = yes; then
17740 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'
17741 else
17742 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'
17744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17745 hardcode_libdir_separator=:
17746 hardcode_direct=yes
17748 # hardcode_minus_L: Not really in the search PATH,
17749 # but as the default location of the library.
17750 hardcode_minus_L=yes
17751 export_dynamic_flag_spec='${wl}-E'
17754 hpux10*)
17755 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17756 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17757 else
17758 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17760 if test "$with_gnu_ld" = no; then
17761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17762 hardcode_libdir_flag_spec_ld='+b $libdir'
17763 hardcode_libdir_separator=:
17764 hardcode_direct=yes
17765 hardcode_direct_absolute=yes
17766 export_dynamic_flag_spec='${wl}-E'
17767 # hardcode_minus_L: Not really in the search PATH,
17768 # but as the default location of the library.
17769 hardcode_minus_L=yes
17773 hpux11*)
17774 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17775 case $host_cpu in
17776 hppa*64*)
17777 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17779 ia64*)
17780 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17783 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17785 esac
17786 else
17787 case $host_cpu in
17788 hppa*64*)
17789 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17791 ia64*)
17792 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17796 # Older versions of the 11.00 compiler do not understand -b yet
17797 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17799 $as_echo_n "checking if $CC understands -b... " >&6; }
17800 if ${lt_cv_prog_compiler__b+:} false; then :
17801 $as_echo_n "(cached) " >&6
17802 else
17803 lt_cv_prog_compiler__b=no
17804 save_LDFLAGS="$LDFLAGS"
17805 LDFLAGS="$LDFLAGS -b"
17806 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17807 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17808 # The linker can only warn and ignore the option if not recognized
17809 # So say no if there are warnings
17810 if test -s conftest.err; then
17811 # Append any errors to the config.log.
17812 cat conftest.err 1>&5
17813 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17815 if diff conftest.exp conftest.er2 >/dev/null; then
17816 lt_cv_prog_compiler__b=yes
17818 else
17819 lt_cv_prog_compiler__b=yes
17822 $RM -r conftest*
17823 LDFLAGS="$save_LDFLAGS"
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17827 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17829 if test x"$lt_cv_prog_compiler__b" = xyes; then
17830 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17831 else
17832 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17836 esac
17838 if test "$with_gnu_ld" = no; then
17839 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17840 hardcode_libdir_separator=:
17842 case $host_cpu in
17843 hppa*64*|ia64*)
17844 hardcode_direct=no
17845 hardcode_shlibpath_var=no
17848 hardcode_direct=yes
17849 hardcode_direct_absolute=yes
17850 export_dynamic_flag_spec='${wl}-E'
17852 # hardcode_minus_L: Not really in the search PATH,
17853 # but as the default location of the library.
17854 hardcode_minus_L=yes
17856 esac
17860 irix5* | irix6* | nonstopux*)
17861 if test "$GCC" = yes; then
17862 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'
17863 # Try to use the -exported_symbol ld option, if it does not
17864 # work, assume that -exports_file does not work either and
17865 # implicitly export all symbols.
17866 save_LDFLAGS="$LDFLAGS"
17867 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17870 int foo(void) {}
17871 _ACEOF
17872 if ac_fn_c_try_link "$LINENO"; then :
17873 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'
17876 rm -f core conftest.err conftest.$ac_objext \
17877 conftest$ac_exeext conftest.$ac_ext
17878 LDFLAGS="$save_LDFLAGS"
17879 else
17880 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'
17881 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'
17883 archive_cmds_need_lc='no'
17884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17885 hardcode_libdir_separator=:
17886 inherit_rpath=yes
17887 link_all_deplibs=yes
17890 netbsd*)
17891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17893 else
17894 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17896 hardcode_libdir_flag_spec='-R$libdir'
17897 hardcode_direct=yes
17898 hardcode_shlibpath_var=no
17901 newsos6)
17902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17903 hardcode_direct=yes
17904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17905 hardcode_libdir_separator=:
17906 hardcode_shlibpath_var=no
17909 *nto* | *qnx*)
17912 openbsd*)
17913 if test -f /usr/libexec/ld.so; then
17914 hardcode_direct=yes
17915 hardcode_shlibpath_var=no
17916 hardcode_direct_absolute=yes
17917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17918 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17919 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17920 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17921 export_dynamic_flag_spec='${wl}-E'
17922 else
17923 case $host_os in
17924 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17926 hardcode_libdir_flag_spec='-R$libdir'
17929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17932 esac
17934 else
17935 ld_shlibs=no
17939 os2*)
17940 hardcode_libdir_flag_spec='-L$libdir'
17941 hardcode_minus_L=yes
17942 allow_undefined_flag=unsupported
17943 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'
17944 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17947 osf3*)
17948 if test "$GCC" = yes; then
17949 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17950 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'
17951 else
17952 allow_undefined_flag=' -expect_unresolved \*'
17953 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'
17955 archive_cmds_need_lc='no'
17956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17957 hardcode_libdir_separator=:
17960 osf4* | osf5*) # as osf3* with the addition of -msym flag
17961 if test "$GCC" = yes; then
17962 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17963 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'
17964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17965 else
17966 allow_undefined_flag=' -expect_unresolved \*'
17967 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'
17968 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~
17969 $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'
17971 # Both c and cxx compiler support -rpath directly
17972 hardcode_libdir_flag_spec='-rpath $libdir'
17974 archive_cmds_need_lc='no'
17975 hardcode_libdir_separator=:
17978 solaris*)
17979 no_undefined_flag=' -z defs'
17980 if test "$GCC" = yes; then
17981 wlarc='${wl}'
17982 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17983 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17984 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17985 else
17986 case `$CC -V 2>&1` in
17987 *"Compilers 5.0"*)
17988 wlarc=''
17989 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17990 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17991 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17994 wlarc='${wl}'
17995 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17996 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17997 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17999 esac
18001 hardcode_libdir_flag_spec='-R$libdir'
18002 hardcode_shlibpath_var=no
18003 case $host_os in
18004 solaris2.[0-5] | solaris2.[0-5].*) ;;
18006 # The compiler driver will combine and reorder linker options,
18007 # but understands `-z linker_flag'. GCC discards it without `$wl',
18008 # but is careful enough not to reorder.
18009 # Supported since Solaris 2.6 (maybe 2.5.1?)
18010 if test "$GCC" = yes; then
18011 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18012 else
18013 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18016 esac
18017 link_all_deplibs=yes
18020 sunos4*)
18021 if test "x$host_vendor" = xsequent; then
18022 # Use $CC to link under sequent, because it throws in some extra .o
18023 # files that make .init and .fini sections work.
18024 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18025 else
18026 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18028 hardcode_libdir_flag_spec='-L$libdir'
18029 hardcode_direct=yes
18030 hardcode_minus_L=yes
18031 hardcode_shlibpath_var=no
18034 sysv4)
18035 case $host_vendor in
18036 sni)
18037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18038 hardcode_direct=yes # is this really true???
18040 siemens)
18041 ## LD is ld it makes a PLAMLIB
18042 ## CC just makes a GrossModule.
18043 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18044 reload_cmds='$CC -r -o $output$reload_objs'
18045 hardcode_direct=no
18047 motorola)
18048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18049 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18051 esac
18052 runpath_var='LD_RUN_PATH'
18053 hardcode_shlibpath_var=no
18056 sysv4.3*)
18057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058 hardcode_shlibpath_var=no
18059 export_dynamic_flag_spec='-Bexport'
18062 sysv4*MP*)
18063 if test -d /usr/nec; then
18064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18065 hardcode_shlibpath_var=no
18066 runpath_var=LD_RUN_PATH
18067 hardcode_runpath_var=yes
18068 ld_shlibs=yes
18072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18073 no_undefined_flag='${wl}-z,text'
18074 archive_cmds_need_lc=no
18075 hardcode_shlibpath_var=no
18076 runpath_var='LD_RUN_PATH'
18078 if test "$GCC" = yes; then
18079 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18081 else
18082 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18087 sysv5* | sco3.2v5* | sco5v6*)
18088 # Note: We can NOT use -z defs as we might desire, because we do not
18089 # link with -lc, and that would cause any symbols used from libc to
18090 # always be unresolved, which means just about no library would
18091 # ever link correctly. If we're not using GNU ld we use -z text
18092 # though, which does catch some bad symbols but isn't as heavy-handed
18093 # as -z defs.
18094 no_undefined_flag='${wl}-z,text'
18095 allow_undefined_flag='${wl}-z,nodefs'
18096 archive_cmds_need_lc=no
18097 hardcode_shlibpath_var=no
18098 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18099 hardcode_libdir_separator=':'
18100 link_all_deplibs=yes
18101 export_dynamic_flag_spec='${wl}-Bexport'
18102 runpath_var='LD_RUN_PATH'
18104 if test "$GCC" = yes; then
18105 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18106 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18107 else
18108 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18109 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18113 uts4*)
18114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18115 hardcode_libdir_flag_spec='-L$libdir'
18116 hardcode_shlibpath_var=no
18120 ld_shlibs=no
18122 esac
18124 if test x$host_vendor = xsni; then
18125 case $host in
18126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18127 export_dynamic_flag_spec='${wl}-Blargedynsym'
18129 esac
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18134 $as_echo "$ld_shlibs" >&6; }
18135 test "$ld_shlibs" = no && can_build_shared=no
18137 with_gnu_ld=$with_gnu_ld
18154 # Do we need to explicitly link libc?
18156 case "x$archive_cmds_need_lc" in
18157 x|xyes)
18158 # Assume -lc should be added
18159 archive_cmds_need_lc=yes
18161 if test "$enable_shared" = yes && test "$GCC" = yes; then
18162 case $archive_cmds in
18163 *'~'*)
18164 # FIXME: we may have to deal with multi-command sequences.
18166 '$CC '*)
18167 # Test whether the compiler implicitly links with -lc since on some
18168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18169 # to ld, don't add -lc before -lgcc.
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18171 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18172 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18173 $as_echo_n "(cached) " >&6
18174 else
18175 $RM conftest*
18176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18179 (eval $ac_compile) 2>&5
18180 ac_status=$?
18181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182 test $ac_status = 0; } 2>conftest.err; then
18183 soname=conftest
18184 lib=conftest
18185 libobjs=conftest.$ac_objext
18186 deplibs=
18187 wl=$lt_prog_compiler_wl
18188 pic_flag=$lt_prog_compiler_pic
18189 compiler_flags=-v
18190 linker_flags=-v
18191 verstring=
18192 output_objdir=.
18193 libname=conftest
18194 lt_save_allow_undefined_flag=$allow_undefined_flag
18195 allow_undefined_flag=
18196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18197 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18198 ac_status=$?
18199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18200 test $ac_status = 0; }
18201 then
18202 lt_cv_archive_cmds_need_lc=no
18203 else
18204 lt_cv_archive_cmds_need_lc=yes
18206 allow_undefined_flag=$lt_save_allow_undefined_flag
18207 else
18208 cat conftest.err 1>&5
18210 $RM conftest*
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18214 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18215 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18217 esac
18220 esac
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18379 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18381 if test "$GCC" = yes; then
18382 case $host_os in
18383 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18384 *) lt_awk_arg="/^libraries:/" ;;
18385 esac
18386 case $host_os in
18387 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18388 *) lt_sed_strip_eq="s,=/,/,g" ;;
18389 esac
18390 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18391 case $lt_search_path_spec in
18392 *\;*)
18393 # if the path contains ";" then we assume it to be the separator
18394 # otherwise default to the standard path separator (i.e. ":") - it is
18395 # assumed that no part of a normal pathname contains ";" but that should
18396 # okay in the real world where ";" in dirpaths is itself problematic.
18397 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18400 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18402 esac
18403 # Ok, now we have the path, separated by spaces, we can step through it
18404 # and add multilib dir if necessary.
18405 lt_tmp_lt_search_path_spec=
18406 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18407 for lt_sys_path in $lt_search_path_spec; do
18408 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18409 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18410 else
18411 test -d "$lt_sys_path" && \
18412 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18414 done
18415 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18416 BEGIN {RS=" "; FS="/|\n";} {
18417 lt_foo="";
18418 lt_count=0;
18419 for (lt_i = NF; lt_i > 0; lt_i--) {
18420 if ($lt_i != "" && $lt_i != ".") {
18421 if ($lt_i == "..") {
18422 lt_count++;
18423 } else {
18424 if (lt_count == 0) {
18425 lt_foo="/" $lt_i lt_foo;
18426 } else {
18427 lt_count--;
18432 if (lt_foo != "") { lt_freq[lt_foo]++; }
18433 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18435 # AWK program above erroneously prepends '/' to C:/dos/paths
18436 # for these hosts.
18437 case $host_os in
18438 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18439 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18440 esac
18441 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18442 else
18443 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18445 library_names_spec=
18446 libname_spec='lib$name'
18447 soname_spec=
18448 shrext_cmds=".so"
18449 postinstall_cmds=
18450 postuninstall_cmds=
18451 finish_cmds=
18452 finish_eval=
18453 shlibpath_var=
18454 shlibpath_overrides_runpath=unknown
18455 version_type=none
18456 dynamic_linker="$host_os ld.so"
18457 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18458 need_lib_prefix=unknown
18459 hardcode_into_libs=no
18461 # when you set need_version to no, make sure it does not cause -set_version
18462 # flags to be left without arguments
18463 need_version=unknown
18465 case $host_os in
18466 aix3*)
18467 version_type=linux
18468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18469 shlibpath_var=LIBPATH
18471 # AIX 3 has no versioning support, so we append a major version to the name.
18472 soname_spec='${libname}${release}${shared_ext}$major'
18475 aix[4-9]*)
18476 version_type=linux
18477 need_lib_prefix=no
18478 need_version=no
18479 hardcode_into_libs=yes
18480 if test "$host_cpu" = ia64; then
18481 # AIX 5 supports IA64
18482 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18483 shlibpath_var=LD_LIBRARY_PATH
18484 else
18485 # With GCC up to 2.95.x, collect2 would create an import file
18486 # for dependence libraries. The import file would start with
18487 # the line `#! .'. This would cause the generated library to
18488 # depend on `.', always an invalid library. This was fixed in
18489 # development snapshots of GCC prior to 3.0.
18490 case $host_os in
18491 aix4 | aix4.[01] | aix4.[01].*)
18492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18493 echo ' yes '
18494 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18496 else
18497 can_build_shared=no
18500 esac
18501 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18502 # soname into executable. Probably we can add versioning support to
18503 # collect2, so additional links can be useful in future.
18504 if test "$aix_use_runtimelinking" = yes; then
18505 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18506 # instead of lib<name>.a to let people know that these are not
18507 # typical AIX shared libraries.
18508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18509 else
18510 # We preserve .a as extension for shared libraries through AIX4.2
18511 # and later when we are not doing run time linking.
18512 library_names_spec='${libname}${release}.a $libname.a'
18513 soname_spec='${libname}${release}${shared_ext}$major'
18515 shlibpath_var=LIBPATH
18519 amigaos*)
18520 case $host_cpu in
18521 powerpc)
18522 # Since July 2007 AmigaOS4 officially supports .so libraries.
18523 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18526 m68k)
18527 library_names_spec='$libname.ixlibrary $libname.a'
18528 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18529 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'
18531 esac
18534 beos*)
18535 library_names_spec='${libname}${shared_ext}'
18536 dynamic_linker="$host_os ld.so"
18537 shlibpath_var=LIBRARY_PATH
18540 bsdi[45]*)
18541 version_type=linux
18542 need_version=no
18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544 soname_spec='${libname}${release}${shared_ext}$major'
18545 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18546 shlibpath_var=LD_LIBRARY_PATH
18547 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18548 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18549 # the default ld.so.conf also contains /usr/contrib/lib and
18550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18551 # libtool to hard-code these into programs
18554 cygwin* | mingw* | pw32* | cegcc*)
18555 version_type=windows
18556 shrext_cmds=".dll"
18557 need_version=no
18558 need_lib_prefix=no
18560 case $GCC,$host_os in
18561 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18562 library_names_spec='$libname.dll.a'
18563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18564 postinstall_cmds='base_file=`basename \${file}`~
18565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18566 dldir=$destdir/`dirname \$dlpath`~
18567 test -d \$dldir || mkdir -p \$dldir~
18568 $install_prog $dir/$dlname \$dldir/$dlname~
18569 chmod a+x \$dldir/$dlname~
18570 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18571 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18574 dlpath=$dir/\$dldll~
18575 $RM \$dlpath'
18576 shlibpath_overrides_runpath=yes
18578 case $host_os in
18579 cygwin*)
18580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18581 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18583 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18585 mingw* | cegcc*)
18586 # MinGW DLLs use traditional 'lib' prefix
18587 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18589 pw32*)
18590 # pw32 DLLs use 'pw' prefix rather than 'lib'
18591 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18593 esac
18597 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18599 esac
18600 dynamic_linker='Win32 ld.exe'
18601 # FIXME: first we should search . and the directory the executable is in
18602 shlibpath_var=PATH
18605 darwin* | rhapsody*)
18606 dynamic_linker="$host_os dyld"
18607 version_type=darwin
18608 need_lib_prefix=no
18609 need_version=no
18610 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18611 soname_spec='${libname}${release}${major}$shared_ext'
18612 shlibpath_overrides_runpath=yes
18613 shlibpath_var=DYLD_LIBRARY_PATH
18614 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18616 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18617 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18620 dgux*)
18621 version_type=linux
18622 need_lib_prefix=no
18623 need_version=no
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 shlibpath_var=LD_LIBRARY_PATH
18629 freebsd* | dragonfly*)
18630 # DragonFly does not have aout. When/if they implement a new
18631 # versioning mechanism, adjust this.
18632 if test -x /usr/bin/objformat; then
18633 objformat=`/usr/bin/objformat`
18634 else
18635 case $host_os in
18636 freebsd[23].*) objformat=aout ;;
18637 *) objformat=elf ;;
18638 esac
18640 version_type=freebsd-$objformat
18641 case $version_type in
18642 freebsd-elf*)
18643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18644 need_version=no
18645 need_lib_prefix=no
18647 freebsd-*)
18648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18649 need_version=yes
18651 esac
18652 shlibpath_var=LD_LIBRARY_PATH
18653 case $host_os in
18654 freebsd2.*)
18655 shlibpath_overrides_runpath=yes
18657 freebsd3.[01]* | freebsdelf3.[01]*)
18658 shlibpath_overrides_runpath=yes
18659 hardcode_into_libs=yes
18661 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18662 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18663 shlibpath_overrides_runpath=no
18664 hardcode_into_libs=yes
18666 *) # from 4.6 on, and DragonFly
18667 shlibpath_overrides_runpath=yes
18668 hardcode_into_libs=yes
18670 esac
18673 haiku*)
18674 version_type=linux
18675 need_lib_prefix=no
18676 need_version=no
18677 dynamic_linker="$host_os runtime_loader"
18678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18679 soname_spec='${libname}${release}${shared_ext}$major'
18680 shlibpath_var=LIBRARY_PATH
18681 shlibpath_overrides_runpath=yes
18682 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18683 hardcode_into_libs=yes
18686 hpux9* | hpux10* | hpux11*)
18687 # Give a soname corresponding to the major version so that dld.sl refuses to
18688 # link against other versions.
18689 version_type=sunos
18690 need_lib_prefix=no
18691 need_version=no
18692 case $host_cpu in
18693 ia64*)
18694 shrext_cmds='.so'
18695 hardcode_into_libs=yes
18696 dynamic_linker="$host_os dld.so"
18697 shlibpath_var=LD_LIBRARY_PATH
18698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
18701 if test "X$HPUX_IA64_MODE" = X32; then
18702 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18703 else
18704 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18706 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18708 hppa*64*)
18709 shrext_cmds='.sl'
18710 hardcode_into_libs=yes
18711 dynamic_linker="$host_os dld.sl"
18712 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18715 soname_spec='${libname}${release}${shared_ext}$major'
18716 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18720 shrext_cmds='.sl'
18721 dynamic_linker="$host_os dld.sl"
18722 shlibpath_var=SHLIB_PATH
18723 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725 soname_spec='${libname}${release}${shared_ext}$major'
18727 esac
18728 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18729 postinstall_cmds='chmod 555 $lib'
18730 # or fails outright, so override atomically:
18731 install_override_mode=555
18734 interix[3-9]*)
18735 version_type=linux
18736 need_lib_prefix=no
18737 need_version=no
18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18739 soname_spec='${libname}${release}${shared_ext}$major'
18740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18741 shlibpath_var=LD_LIBRARY_PATH
18742 shlibpath_overrides_runpath=no
18743 hardcode_into_libs=yes
18746 irix5* | irix6* | nonstopux*)
18747 case $host_os in
18748 nonstopux*) version_type=nonstopux ;;
18750 if test "$lt_cv_prog_gnu_ld" = yes; then
18751 version_type=linux
18752 else
18753 version_type=irix
18754 fi ;;
18755 esac
18756 need_lib_prefix=no
18757 need_version=no
18758 soname_spec='${libname}${release}${shared_ext}$major'
18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18760 case $host_os in
18761 irix5* | nonstopux*)
18762 libsuff= shlibsuff=
18765 case $LD in # libtool.m4 will add one of these switches to LD
18766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18767 libsuff= shlibsuff= libmagic=32-bit;;
18768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18769 libsuff=32 shlibsuff=N32 libmagic=N32;;
18770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18772 *) libsuff= shlibsuff= libmagic=never-match;;
18773 esac
18775 esac
18776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18777 shlibpath_overrides_runpath=no
18778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18780 hardcode_into_libs=yes
18783 # No shared lib support for Linux oldld, aout, or coff.
18784 linux*oldld* | linux*aout* | linux*coff*)
18785 dynamic_linker=no
18788 # This must be Linux ELF.
18790 # uclinux* changes (here and below) have been submitted to the libtool
18791 # project, but have not yet been accepted: they are GCC-local changes
18792 # for the time being. (See
18793 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18794 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
18795 version_type=linux
18796 need_lib_prefix=no
18797 need_version=no
18798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18799 soname_spec='${libname}${release}${shared_ext}$major'
18800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18801 shlibpath_var=LD_LIBRARY_PATH
18802 shlibpath_overrides_runpath=no
18804 # Some binutils ld are patched to set DT_RUNPATH
18805 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18806 $as_echo_n "(cached) " >&6
18807 else
18808 lt_cv_shlibpath_overrides_runpath=no
18809 save_LDFLAGS=$LDFLAGS
18810 save_libdir=$libdir
18811 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18812 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18817 main ()
18821 return 0;
18823 _ACEOF
18824 if ac_fn_c_try_link "$LINENO"; then :
18825 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18826 lt_cv_shlibpath_overrides_runpath=yes
18829 rm -f core conftest.err conftest.$ac_objext \
18830 conftest$ac_exeext conftest.$ac_ext
18831 LDFLAGS=$save_LDFLAGS
18832 libdir=$save_libdir
18836 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18838 # This implies no fast_install, which is unacceptable.
18839 # Some rework will be needed to allow for fast_install
18840 # before this can be enabled.
18841 hardcode_into_libs=yes
18843 # Append ld.so.conf contents to the search path
18844 if test -f /etc/ld.so.conf; then
18845 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' ' '`
18846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18849 # We used to test for /lib/ld.so.1 and disable shared libraries on
18850 # powerpc, because MkLinux only supported shared libraries with the
18851 # GNU dynamic linker. Since this was broken with cross compilers,
18852 # most powerpc-linux boxes support dynamic linking these days and
18853 # people can always --disable-shared, the test was removed, and we
18854 # assume the GNU/Linux dynamic linker is in use.
18855 dynamic_linker='GNU/Linux ld.so'
18858 netbsd*)
18859 version_type=sunos
18860 need_lib_prefix=no
18861 need_version=no
18862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18865 dynamic_linker='NetBSD (a.out) ld.so'
18866 else
18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18868 soname_spec='${libname}${release}${shared_ext}$major'
18869 dynamic_linker='NetBSD ld.elf_so'
18871 shlibpath_var=LD_LIBRARY_PATH
18872 shlibpath_overrides_runpath=yes
18873 hardcode_into_libs=yes
18876 newsos6)
18877 version_type=linux
18878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879 shlibpath_var=LD_LIBRARY_PATH
18880 shlibpath_overrides_runpath=yes
18883 *nto* | *qnx*)
18884 version_type=qnx
18885 need_lib_prefix=no
18886 need_version=no
18887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18888 soname_spec='${libname}${release}${shared_ext}$major'
18889 shlibpath_var=LD_LIBRARY_PATH
18890 shlibpath_overrides_runpath=no
18891 hardcode_into_libs=yes
18892 dynamic_linker='ldqnx.so'
18895 openbsd*)
18896 version_type=sunos
18897 sys_lib_dlsearch_path_spec="/usr/lib"
18898 need_lib_prefix=no
18899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18900 case $host_os in
18901 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18902 *) need_version=no ;;
18903 esac
18904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18906 shlibpath_var=LD_LIBRARY_PATH
18907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18908 case $host_os in
18909 openbsd2.[89] | openbsd2.[89].*)
18910 shlibpath_overrides_runpath=no
18913 shlibpath_overrides_runpath=yes
18915 esac
18916 else
18917 shlibpath_overrides_runpath=yes
18921 os2*)
18922 libname_spec='$name'
18923 shrext_cmds=".dll"
18924 need_lib_prefix=no
18925 library_names_spec='$libname${shared_ext} $libname.a'
18926 dynamic_linker='OS/2 ld.exe'
18927 shlibpath_var=LIBPATH
18930 osf3* | osf4* | osf5*)
18931 version_type=osf
18932 need_lib_prefix=no
18933 need_version=no
18934 soname_spec='${libname}${release}${shared_ext}$major'
18935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18936 shlibpath_var=LD_LIBRARY_PATH
18937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18938 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18941 rdos*)
18942 dynamic_linker=no
18945 solaris*)
18946 version_type=linux
18947 need_lib_prefix=no
18948 need_version=no
18949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950 soname_spec='${libname}${release}${shared_ext}$major'
18951 shlibpath_var=LD_LIBRARY_PATH
18952 shlibpath_overrides_runpath=yes
18953 hardcode_into_libs=yes
18954 # ldd complains unless libraries are executable
18955 postinstall_cmds='chmod +x $lib'
18958 sunos4*)
18959 version_type=sunos
18960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18962 shlibpath_var=LD_LIBRARY_PATH
18963 shlibpath_overrides_runpath=yes
18964 if test "$with_gnu_ld" = yes; then
18965 need_lib_prefix=no
18967 need_version=yes
18970 sysv4 | sysv4.3*)
18971 version_type=linux
18972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18973 soname_spec='${libname}${release}${shared_ext}$major'
18974 shlibpath_var=LD_LIBRARY_PATH
18975 case $host_vendor in
18976 sni)
18977 shlibpath_overrides_runpath=no
18978 need_lib_prefix=no
18979 runpath_var=LD_RUN_PATH
18981 siemens)
18982 need_lib_prefix=no
18984 motorola)
18985 need_lib_prefix=no
18986 need_version=no
18987 shlibpath_overrides_runpath=no
18988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18990 esac
18993 sysv4*MP*)
18994 if test -d /usr/nec ;then
18995 version_type=linux
18996 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18997 soname_spec='$libname${shared_ext}.$major'
18998 shlibpath_var=LD_LIBRARY_PATH
19002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19003 version_type=freebsd-elf
19004 need_lib_prefix=no
19005 need_version=no
19006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19007 soname_spec='${libname}${release}${shared_ext}$major'
19008 shlibpath_var=LD_LIBRARY_PATH
19009 shlibpath_overrides_runpath=yes
19010 hardcode_into_libs=yes
19011 if test "$with_gnu_ld" = yes; then
19012 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19013 else
19014 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19015 case $host_os in
19016 sco3.2v5*)
19017 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19019 esac
19021 sys_lib_dlsearch_path_spec='/usr/lib'
19024 tpf*)
19025 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19026 version_type=linux
19027 need_lib_prefix=no
19028 need_version=no
19029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19030 shlibpath_var=LD_LIBRARY_PATH
19031 shlibpath_overrides_runpath=no
19032 hardcode_into_libs=yes
19035 uts4*)
19036 version_type=linux
19037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19038 soname_spec='${libname}${release}${shared_ext}$major'
19039 shlibpath_var=LD_LIBRARY_PATH
19043 dynamic_linker=no
19045 esac
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19047 $as_echo "$dynamic_linker" >&6; }
19048 test "$dynamic_linker" = no && can_build_shared=no
19050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19051 if test "$GCC" = yes; then
19052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19055 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19056 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19058 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19059 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19154 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19155 hardcode_action=
19156 if test -n "$hardcode_libdir_flag_spec" ||
19157 test -n "$runpath_var" ||
19158 test "X$hardcode_automatic" = "Xyes" ; then
19160 # We can hardcode non-existent directories.
19161 if test "$hardcode_direct" != no &&
19162 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19163 # have to relink, otherwise we might link with an installed library
19164 # when we should be linking with a yet-to-be-installed one
19165 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19166 test "$hardcode_minus_L" != no; then
19167 # Linking always hardcodes the temporary library directory.
19168 hardcode_action=relink
19169 else
19170 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19171 hardcode_action=immediate
19173 else
19174 # We cannot hardcode anything, or else we can only hardcode existing
19175 # directories.
19176 hardcode_action=unsupported
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19179 $as_echo "$hardcode_action" >&6; }
19181 if test "$hardcode_action" = relink ||
19182 test "$inherit_rpath" = yes; then
19183 # Fast installation is not supported
19184 enable_fast_install=no
19185 elif test "$shlibpath_overrides_runpath" = yes ||
19186 test "$enable_shared" = no; then
19187 # Fast installation is not necessary
19188 enable_fast_install=needless
19196 if test "x$enable_dlopen" != xyes; then
19197 enable_dlopen=unknown
19198 enable_dlopen_self=unknown
19199 enable_dlopen_self_static=unknown
19200 else
19201 lt_cv_dlopen=no
19202 lt_cv_dlopen_libs=
19204 case $host_os in
19205 beos*)
19206 lt_cv_dlopen="load_add_on"
19207 lt_cv_dlopen_libs=
19208 lt_cv_dlopen_self=yes
19211 mingw* | pw32* | cegcc*)
19212 lt_cv_dlopen="LoadLibrary"
19213 lt_cv_dlopen_libs=
19216 cygwin*)
19217 lt_cv_dlopen="dlopen"
19218 lt_cv_dlopen_libs=
19221 darwin*)
19222 # if libdl is installed we need to link against it
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19224 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19225 if ${ac_cv_lib_dl_dlopen+:} false; then :
19226 $as_echo_n "(cached) " >&6
19227 else
19228 ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-ldl $LIBS"
19230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19233 /* Override any GCC internal prototype to avoid an error.
19234 Use char because int might match the return type of a GCC
19235 builtin and then its argument prototype would still apply. */
19236 #ifdef __cplusplus
19237 extern "C"
19238 #endif
19239 char dlopen ();
19241 main ()
19243 return dlopen ();
19245 return 0;
19247 _ACEOF
19248 if ac_fn_c_try_link "$LINENO"; then :
19249 ac_cv_lib_dl_dlopen=yes
19250 else
19251 ac_cv_lib_dl_dlopen=no
19253 rm -f core conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
19255 LIBS=$ac_check_lib_save_LIBS
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19258 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19259 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19261 else
19263 lt_cv_dlopen="dyld"
19264 lt_cv_dlopen_libs=
19265 lt_cv_dlopen_self=yes
19272 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19273 if test "x$ac_cv_func_shl_load" = xyes; then :
19274 lt_cv_dlopen="shl_load"
19275 else
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19277 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19278 if ${ac_cv_lib_dld_shl_load+:} false; then :
19279 $as_echo_n "(cached) " >&6
19280 else
19281 ac_check_lib_save_LIBS=$LIBS
19282 LIBS="-ldld $LIBS"
19283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284 /* end confdefs.h. */
19286 /* Override any GCC internal prototype to avoid an error.
19287 Use char because int might match the return type of a GCC
19288 builtin and then its argument prototype would still apply. */
19289 #ifdef __cplusplus
19290 extern "C"
19291 #endif
19292 char shl_load ();
19294 main ()
19296 return shl_load ();
19298 return 0;
19300 _ACEOF
19301 if ac_fn_c_try_link "$LINENO"; then :
19302 ac_cv_lib_dld_shl_load=yes
19303 else
19304 ac_cv_lib_dld_shl_load=no
19306 rm -f core conftest.err conftest.$ac_objext \
19307 conftest$ac_exeext conftest.$ac_ext
19308 LIBS=$ac_check_lib_save_LIBS
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19311 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19312 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19313 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19314 else
19315 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19316 if test "x$ac_cv_func_dlopen" = xyes; then :
19317 lt_cv_dlopen="dlopen"
19318 else
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19320 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19321 if ${ac_cv_lib_dl_dlopen+:} false; then :
19322 $as_echo_n "(cached) " >&6
19323 else
19324 ac_check_lib_save_LIBS=$LIBS
19325 LIBS="-ldl $LIBS"
19326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19329 /* Override any GCC internal prototype to avoid an error.
19330 Use char because int might match the return type of a GCC
19331 builtin and then its argument prototype would still apply. */
19332 #ifdef __cplusplus
19333 extern "C"
19334 #endif
19335 char dlopen ();
19337 main ()
19339 return dlopen ();
19341 return 0;
19343 _ACEOF
19344 if ac_fn_c_try_link "$LINENO"; then :
19345 ac_cv_lib_dl_dlopen=yes
19346 else
19347 ac_cv_lib_dl_dlopen=no
19349 rm -f core conftest.err conftest.$ac_objext \
19350 conftest$ac_exeext conftest.$ac_ext
19351 LIBS=$ac_check_lib_save_LIBS
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19354 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19355 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19357 else
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19359 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19360 if ${ac_cv_lib_svld_dlopen+:} false; then :
19361 $as_echo_n "(cached) " >&6
19362 else
19363 ac_check_lib_save_LIBS=$LIBS
19364 LIBS="-lsvld $LIBS"
19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19368 /* Override any GCC internal prototype to avoid an error.
19369 Use char because int might match the return type of a GCC
19370 builtin and then its argument prototype would still apply. */
19371 #ifdef __cplusplus
19372 extern "C"
19373 #endif
19374 char dlopen ();
19376 main ()
19378 return dlopen ();
19380 return 0;
19382 _ACEOF
19383 if ac_fn_c_try_link "$LINENO"; then :
19384 ac_cv_lib_svld_dlopen=yes
19385 else
19386 ac_cv_lib_svld_dlopen=no
19388 rm -f core conftest.err conftest.$ac_objext \
19389 conftest$ac_exeext conftest.$ac_ext
19390 LIBS=$ac_check_lib_save_LIBS
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19393 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19394 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19396 else
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19398 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19399 if ${ac_cv_lib_dld_dld_link+:} false; then :
19400 $as_echo_n "(cached) " >&6
19401 else
19402 ac_check_lib_save_LIBS=$LIBS
19403 LIBS="-ldld $LIBS"
19404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19405 /* end confdefs.h. */
19407 /* Override any GCC internal prototype to avoid an error.
19408 Use char because int might match the return type of a GCC
19409 builtin and then its argument prototype would still apply. */
19410 #ifdef __cplusplus
19411 extern "C"
19412 #endif
19413 char dld_link ();
19415 main ()
19417 return dld_link ();
19419 return 0;
19421 _ACEOF
19422 if ac_fn_c_try_link "$LINENO"; then :
19423 ac_cv_lib_dld_dld_link=yes
19424 else
19425 ac_cv_lib_dld_dld_link=no
19427 rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext conftest.$ac_ext
19429 LIBS=$ac_check_lib_save_LIBS
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19432 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19433 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19434 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19453 esac
19455 if test "x$lt_cv_dlopen" != xno; then
19456 enable_dlopen=yes
19457 else
19458 enable_dlopen=no
19461 case $lt_cv_dlopen in
19462 dlopen)
19463 save_CPPFLAGS="$CPPFLAGS"
19464 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19466 save_LDFLAGS="$LDFLAGS"
19467 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19469 save_LIBS="$LIBS"
19470 LIBS="$lt_cv_dlopen_libs $LIBS"
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19473 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19474 if ${lt_cv_dlopen_self+:} false; then :
19475 $as_echo_n "(cached) " >&6
19476 else
19477 if test "$cross_compiling" = yes; then :
19478 lt_cv_dlopen_self=cross
19479 else
19480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19481 lt_status=$lt_dlunknown
19482 cat > conftest.$ac_ext <<_LT_EOF
19483 #line 19483 "configure"
19484 #include "confdefs.h"
19486 #if HAVE_DLFCN_H
19487 #include <dlfcn.h>
19488 #endif
19490 #include <stdio.h>
19492 #ifdef RTLD_GLOBAL
19493 # define LT_DLGLOBAL RTLD_GLOBAL
19494 #else
19495 # ifdef DL_GLOBAL
19496 # define LT_DLGLOBAL DL_GLOBAL
19497 # else
19498 # define LT_DLGLOBAL 0
19499 # endif
19500 #endif
19502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19503 find out it does not work in some platform. */
19504 #ifndef LT_DLLAZY_OR_NOW
19505 # ifdef RTLD_LAZY
19506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19507 # else
19508 # ifdef DL_LAZY
19509 # define LT_DLLAZY_OR_NOW DL_LAZY
19510 # else
19511 # ifdef RTLD_NOW
19512 # define LT_DLLAZY_OR_NOW RTLD_NOW
19513 # else
19514 # ifdef DL_NOW
19515 # define LT_DLLAZY_OR_NOW DL_NOW
19516 # else
19517 # define LT_DLLAZY_OR_NOW 0
19518 # endif
19519 # endif
19520 # endif
19521 # endif
19522 #endif
19524 /* When -fvisbility=hidden is used, assume the code has been annotated
19525 correspondingly for the symbols needed. */
19526 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19527 void fnord () __attribute__((visibility("default")));
19528 #endif
19530 void fnord () { int i=42; }
19531 int main ()
19533 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19534 int status = $lt_dlunknown;
19536 if (self)
19538 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19539 else
19541 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19542 else puts (dlerror ());
19544 /* dlclose (self); */
19546 else
19547 puts (dlerror ());
19549 return status;
19551 _LT_EOF
19552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19553 (eval $ac_link) 2>&5
19554 ac_status=$?
19555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19556 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19557 (./conftest; exit; ) >&5 2>/dev/null
19558 lt_status=$?
19559 case x$lt_status in
19560 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19561 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19562 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19563 esac
19564 else :
19565 # compilation failed
19566 lt_cv_dlopen_self=no
19569 rm -fr conftest*
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19574 $as_echo "$lt_cv_dlopen_self" >&6; }
19576 if test "x$lt_cv_dlopen_self" = xyes; then
19577 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19579 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19580 if ${lt_cv_dlopen_self_static+:} false; then :
19581 $as_echo_n "(cached) " >&6
19582 else
19583 if test "$cross_compiling" = yes; then :
19584 lt_cv_dlopen_self_static=cross
19585 else
19586 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19587 lt_status=$lt_dlunknown
19588 cat > conftest.$ac_ext <<_LT_EOF
19589 #line 19589 "configure"
19590 #include "confdefs.h"
19592 #if HAVE_DLFCN_H
19593 #include <dlfcn.h>
19594 #endif
19596 #include <stdio.h>
19598 #ifdef RTLD_GLOBAL
19599 # define LT_DLGLOBAL RTLD_GLOBAL
19600 #else
19601 # ifdef DL_GLOBAL
19602 # define LT_DLGLOBAL DL_GLOBAL
19603 # else
19604 # define LT_DLGLOBAL 0
19605 # endif
19606 #endif
19608 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19609 find out it does not work in some platform. */
19610 #ifndef LT_DLLAZY_OR_NOW
19611 # ifdef RTLD_LAZY
19612 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19613 # else
19614 # ifdef DL_LAZY
19615 # define LT_DLLAZY_OR_NOW DL_LAZY
19616 # else
19617 # ifdef RTLD_NOW
19618 # define LT_DLLAZY_OR_NOW RTLD_NOW
19619 # else
19620 # ifdef DL_NOW
19621 # define LT_DLLAZY_OR_NOW DL_NOW
19622 # else
19623 # define LT_DLLAZY_OR_NOW 0
19624 # endif
19625 # endif
19626 # endif
19627 # endif
19628 #endif
19630 /* When -fvisbility=hidden is used, assume the code has been annotated
19631 correspondingly for the symbols needed. */
19632 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19633 void fnord () __attribute__((visibility("default")));
19634 #endif
19636 void fnord () { int i=42; }
19637 int main ()
19639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19640 int status = $lt_dlunknown;
19642 if (self)
19644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19645 else
19647 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19648 else puts (dlerror ());
19650 /* dlclose (self); */
19652 else
19653 puts (dlerror ());
19655 return status;
19657 _LT_EOF
19658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19659 (eval $ac_link) 2>&5
19660 ac_status=$?
19661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19662 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19663 (./conftest; exit; ) >&5 2>/dev/null
19664 lt_status=$?
19665 case x$lt_status in
19666 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19667 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19668 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19669 esac
19670 else :
19671 # compilation failed
19672 lt_cv_dlopen_self_static=no
19675 rm -fr conftest*
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19680 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19683 CPPFLAGS="$save_CPPFLAGS"
19684 LDFLAGS="$save_LDFLAGS"
19685 LIBS="$save_LIBS"
19687 esac
19689 case $lt_cv_dlopen_self in
19690 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19691 *) enable_dlopen_self=unknown ;;
19692 esac
19694 case $lt_cv_dlopen_self_static in
19695 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19696 *) enable_dlopen_self_static=unknown ;;
19697 esac
19716 striplib=
19717 old_striplib=
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19719 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19720 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19721 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19722 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19724 $as_echo "yes" >&6; }
19725 else
19726 # FIXME - insert some real tests, host_os isn't really good enough
19727 case $host_os in
19728 darwin*)
19729 if test -n "$STRIP" ; then
19730 striplib="$STRIP -x"
19731 old_striplib="$STRIP -S"
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19733 $as_echo "yes" >&6; }
19734 else
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19736 $as_echo "no" >&6; }
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19741 $as_echo "no" >&6; }
19743 esac
19757 # Report which library types will actually be built
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19759 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19761 $as_echo "$can_build_shared" >&6; }
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19764 $as_echo_n "checking whether to build shared libraries... " >&6; }
19765 test "$can_build_shared" = "no" && enable_shared=no
19767 # On AIX, shared libraries and static libraries use the same namespace, and
19768 # are all built from PIC.
19769 case $host_os in
19770 aix3*)
19771 test "$enable_shared" = yes && enable_static=no
19772 if test -n "$RANLIB"; then
19773 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19774 postinstall_cmds='$RANLIB $lib'
19778 aix[4-9]*)
19779 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19780 test "$enable_shared" = yes && enable_static=no
19783 esac
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19785 $as_echo "$enable_shared" >&6; }
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19788 $as_echo_n "checking whether to build static libraries... " >&6; }
19789 # Make sure either enable_shared or enable_static is yes.
19790 test "$enable_shared" = yes || enable_static=yes
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19792 $as_echo "$enable_static" >&6; }
19798 ac_ext=cpp
19799 ac_cpp='$CXXCPP $CPPFLAGS'
19800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19804 CC="$lt_save_CC"
19806 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19807 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19808 (test "X$CXX" != "Xg++"))) ; then
19809 ac_ext=cpp
19810 ac_cpp='$CXXCPP $CPPFLAGS'
19811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19815 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19816 if test -z "$CXXCPP"; then
19817 if ${ac_cv_prog_CXXCPP+:} false; then :
19818 $as_echo_n "(cached) " >&6
19819 else
19820 # Double quotes because CXXCPP needs to be expanded
19821 for CXXCPP in "$CXX -E" "/lib/cpp"
19823 ac_preproc_ok=false
19824 for ac_cxx_preproc_warn_flag in '' yes
19826 # Use a header file that comes with gcc, so configuring glibc
19827 # with a fresh cross-compiler works.
19828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19829 # <limits.h> exists even on freestanding compilers.
19830 # On the NeXT, cc -E runs the code through the compiler's parser,
19831 # not just through cpp. "Syntax error" is here to catch this case.
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19834 #ifdef __STDC__
19835 # include <limits.h>
19836 #else
19837 # include <assert.h>
19838 #endif
19839 Syntax error
19840 _ACEOF
19841 if ac_fn_cxx_try_cpp "$LINENO"; then :
19843 else
19844 # Broken: fails on valid input.
19845 continue
19847 rm -f conftest.err conftest.i conftest.$ac_ext
19849 # OK, works on sane cases. Now check whether nonexistent headers
19850 # can be detected and how.
19851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852 /* end confdefs.h. */
19853 #include <ac_nonexistent.h>
19854 _ACEOF
19855 if ac_fn_cxx_try_cpp "$LINENO"; then :
19856 # Broken: success on invalid input.
19857 continue
19858 else
19859 # Passes both tests.
19860 ac_preproc_ok=:
19861 break
19863 rm -f conftest.err conftest.i conftest.$ac_ext
19865 done
19866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19867 rm -f conftest.i conftest.err conftest.$ac_ext
19868 if $ac_preproc_ok; then :
19869 break
19872 done
19873 ac_cv_prog_CXXCPP=$CXXCPP
19876 CXXCPP=$ac_cv_prog_CXXCPP
19877 else
19878 ac_cv_prog_CXXCPP=$CXXCPP
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19881 $as_echo "$CXXCPP" >&6; }
19882 ac_preproc_ok=false
19883 for ac_cxx_preproc_warn_flag in '' yes
19885 # Use a header file that comes with gcc, so configuring glibc
19886 # with a fresh cross-compiler works.
19887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19888 # <limits.h> exists even on freestanding compilers.
19889 # On the NeXT, cc -E runs the code through the compiler's parser,
19890 # not just through cpp. "Syntax error" is here to catch this case.
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19893 #ifdef __STDC__
19894 # include <limits.h>
19895 #else
19896 # include <assert.h>
19897 #endif
19898 Syntax error
19899 _ACEOF
19900 if ac_fn_cxx_try_cpp "$LINENO"; then :
19902 else
19903 # Broken: fails on valid input.
19904 continue
19906 rm -f conftest.err conftest.i conftest.$ac_ext
19908 # OK, works on sane cases. Now check whether nonexistent headers
19909 # can be detected and how.
19910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h. */
19912 #include <ac_nonexistent.h>
19913 _ACEOF
19914 if ac_fn_cxx_try_cpp "$LINENO"; then :
19915 # Broken: success on invalid input.
19916 continue
19917 else
19918 # Passes both tests.
19919 ac_preproc_ok=:
19920 break
19922 rm -f conftest.err conftest.i conftest.$ac_ext
19924 done
19925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19926 rm -f conftest.i conftest.err conftest.$ac_ext
19927 if $ac_preproc_ok; then :
19929 else
19930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19932 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19933 See \`config.log' for more details" "$LINENO" 5; }
19936 ac_ext=cpp
19937 ac_cpp='$CXXCPP $CPPFLAGS'
19938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19942 else
19943 _lt_caught_CXX_error=yes
19946 ac_ext=cpp
19947 ac_cpp='$CXXCPP $CPPFLAGS'
19948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19952 archive_cmds_need_lc_CXX=no
19953 allow_undefined_flag_CXX=
19954 always_export_symbols_CXX=no
19955 archive_expsym_cmds_CXX=
19956 compiler_needs_object_CXX=no
19957 export_dynamic_flag_spec_CXX=
19958 hardcode_direct_CXX=no
19959 hardcode_direct_absolute_CXX=no
19960 hardcode_libdir_flag_spec_CXX=
19961 hardcode_libdir_flag_spec_ld_CXX=
19962 hardcode_libdir_separator_CXX=
19963 hardcode_minus_L_CXX=no
19964 hardcode_shlibpath_var_CXX=unsupported
19965 hardcode_automatic_CXX=no
19966 inherit_rpath_CXX=no
19967 module_cmds_CXX=
19968 module_expsym_cmds_CXX=
19969 link_all_deplibs_CXX=unknown
19970 old_archive_cmds_CXX=$old_archive_cmds
19971 reload_flag_CXX=$reload_flag
19972 reload_cmds_CXX=$reload_cmds
19973 no_undefined_flag_CXX=
19974 whole_archive_flag_spec_CXX=
19975 enable_shared_with_static_runtimes_CXX=no
19977 # Source file extension for C++ test sources.
19978 ac_ext=cpp
19980 # Object file extension for compiled C++ test sources.
19981 objext=o
19982 objext_CXX=$objext
19984 # No sense in running all these tests if we already determined that
19985 # the CXX compiler isn't working. Some variables (like enable_shared)
19986 # are currently assumed to apply to all compilers on this platform,
19987 # and will be corrupted by setting them based on a non-working compiler.
19988 if test "$_lt_caught_CXX_error" != yes; then
19989 # Code to be used in simple compile tests
19990 lt_simple_compile_test_code="int some_variable = 0;"
19992 # Code to be used in simple link tests
19993 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19995 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20002 # If no C compiler was specified, use CC.
20003 LTCC=${LTCC-"$CC"}
20005 # If no C compiler flags were specified, use CFLAGS.
20006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20008 # Allow CC to be a program name with arguments.
20009 compiler=$CC
20012 # save warnings/boilerplate of simple test code
20013 ac_outfile=conftest.$ac_objext
20014 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20016 _lt_compiler_boilerplate=`cat conftest.err`
20017 $RM conftest*
20019 ac_outfile=conftest.$ac_objext
20020 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20022 _lt_linker_boilerplate=`cat conftest.err`
20023 $RM -r conftest*
20026 # Allow CC to be a program name with arguments.
20027 lt_save_CC=$CC
20028 lt_save_LD=$LD
20029 lt_save_GCC=$GCC
20030 GCC=$GXX
20031 lt_save_with_gnu_ld=$with_gnu_ld
20032 lt_save_path_LD=$lt_cv_path_LD
20033 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20034 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20035 else
20036 $as_unset lt_cv_prog_gnu_ld
20038 if test -n "${lt_cv_path_LDCXX+set}"; then
20039 lt_cv_path_LD=$lt_cv_path_LDCXX
20040 else
20041 $as_unset lt_cv_path_LD
20043 test -z "${LDCXX+set}" || LD=$LDCXX
20044 CC=${CXX-"c++"}
20045 compiler=$CC
20046 compiler_CXX=$CC
20047 for cc_temp in $compiler""; do
20048 case $cc_temp in
20049 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20050 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20051 \-*) ;;
20052 *) break;;
20053 esac
20054 done
20055 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20058 if test -n "$compiler"; then
20059 # We don't want -fno-exception when compiling C++ code, so set the
20060 # no_builtin_flag separately
20061 if test "$GXX" = yes; then
20062 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20063 else
20064 lt_prog_compiler_no_builtin_flag_CXX=
20067 if test "$GXX" = yes; then
20068 # Set up default GNU C++ configuration
20072 # Check whether --with-gnu-ld was given.
20073 if test "${with_gnu_ld+set}" = set; then :
20074 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20075 else
20076 with_gnu_ld=no
20079 ac_prog=ld
20080 if test "$GCC" = yes; then
20081 # Check if gcc -print-prog-name=ld gives a path.
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20083 $as_echo_n "checking for ld used by $CC... " >&6; }
20084 case $host in
20085 *-*-mingw*)
20086 # gcc leaves a trailing carriage return which upsets mingw
20087 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20089 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20090 esac
20091 case $ac_prog in
20092 # Accept absolute paths.
20093 [\\/]* | ?:[\\/]*)
20094 re_direlt='/[^/][^/]*/\.\./'
20095 # Canonicalize the pathname of ld
20096 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20097 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20098 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20099 done
20100 test -z "$LD" && LD="$ac_prog"
20103 # If it fails, then pretend we aren't using GCC.
20104 ac_prog=ld
20107 # If it is relative, then search for the first ld in PATH.
20108 with_gnu_ld=unknown
20110 esac
20111 elif test "$with_gnu_ld" = yes; then
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20113 $as_echo_n "checking for GNU ld... " >&6; }
20114 else
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20116 $as_echo_n "checking for non-GNU ld... " >&6; }
20118 if ${lt_cv_path_LD+:} false; then :
20119 $as_echo_n "(cached) " >&6
20120 else
20121 if test -z "$LD"; then
20122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20123 for ac_dir in $PATH; do
20124 IFS="$lt_save_ifs"
20125 test -z "$ac_dir" && ac_dir=.
20126 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20127 lt_cv_path_LD="$ac_dir/$ac_prog"
20128 # Check to see if the program is GNU ld. I'd rather use --version,
20129 # but apparently some variants of GNU ld only accept -v.
20130 # Break only if it was the GNU/non-GNU ld that we prefer.
20131 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20132 *GNU* | *'with BFD'*)
20133 test "$with_gnu_ld" != no && break
20136 test "$with_gnu_ld" != yes && break
20138 esac
20140 done
20141 IFS="$lt_save_ifs"
20142 else
20143 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20147 LD="$lt_cv_path_LD"
20148 if test -n "$LD"; then
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20150 $as_echo "$LD" >&6; }
20151 else
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20153 $as_echo "no" >&6; }
20155 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20157 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20158 if ${lt_cv_prog_gnu_ld+:} false; then :
20159 $as_echo_n "(cached) " >&6
20160 else
20161 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20162 case `$LD -v 2>&1 </dev/null` in
20163 *GNU* | *'with BFD'*)
20164 lt_cv_prog_gnu_ld=yes
20167 lt_cv_prog_gnu_ld=no
20169 esac
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20172 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20173 with_gnu_ld=$lt_cv_prog_gnu_ld
20181 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20182 # archiving commands below assume that GNU ld is being used.
20183 if test "$with_gnu_ld" = yes; then
20184 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20185 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'
20187 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20188 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20190 # If archive_cmds runs LD, not CC, wlarc should be empty
20191 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20192 # investigate it a little bit more. (MM)
20193 wlarc='${wl}'
20195 # ancient GNU ld didn't support --whole-archive et. al.
20196 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20197 $GREP 'no-whole-archive' > /dev/null; then
20198 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20199 else
20200 whole_archive_flag_spec_CXX=
20202 else
20203 with_gnu_ld=no
20204 wlarc=
20206 # A generic and very simple default shared library creation
20207 # command for GNU C++ for the case where it uses the native
20208 # linker, instead of GNU ld. If possible, this setting should
20209 # overridden to take advantage of the native linker features on
20210 # the platform it is being used on.
20211 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20214 # Commands to make compiler produce verbose output that lists
20215 # what "hidden" libraries, object files and flags are used when
20216 # linking a shared library.
20217 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20219 else
20220 GXX=no
20221 with_gnu_ld=no
20222 wlarc=
20225 # PORTME: fill in a description of your system's C++ link characteristics
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20227 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20228 ld_shlibs_CXX=yes
20229 case $host_os in
20230 aix3*)
20231 # FIXME: insert proper C++ library support
20232 ld_shlibs_CXX=no
20234 aix[4-9]*)
20235 if test "$host_cpu" = ia64; then
20236 # On IA64, the linker does run time linking by default, so we don't
20237 # have to do anything special.
20238 aix_use_runtimelinking=no
20239 exp_sym_flag='-Bexport'
20240 no_entry_flag=""
20241 else
20242 aix_use_runtimelinking=no
20244 # Test if we are trying to use run time linking or normal
20245 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20246 # need to do runtime linking.
20247 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20248 for ld_flag in $LDFLAGS; do
20249 case $ld_flag in
20250 *-brtl*)
20251 aix_use_runtimelinking=yes
20252 break
20254 esac
20255 done
20257 esac
20259 exp_sym_flag='-bexport'
20260 no_entry_flag='-bnoentry'
20263 # When large executables or shared objects are built, AIX ld can
20264 # have problems creating the table of contents. If linking a library
20265 # or program results in "error TOC overflow" add -mminimal-toc to
20266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20269 archive_cmds_CXX=''
20270 hardcode_direct_CXX=yes
20271 hardcode_direct_absolute_CXX=yes
20272 hardcode_libdir_separator_CXX=':'
20273 link_all_deplibs_CXX=yes
20274 file_list_spec_CXX='${wl}-f,'
20276 if test "$GXX" = yes; then
20277 case $host_os in aix4.[012]|aix4.[012].*)
20278 # We only want to do this on AIX 4.2 and lower, the check
20279 # below for broken collect2 doesn't work under 4.3+
20280 collect2name=`${CC} -print-prog-name=collect2`
20281 if test -f "$collect2name" &&
20282 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20283 then
20284 # We have reworked collect2
20286 else
20287 # We have old collect2
20288 hardcode_direct_CXX=unsupported
20289 # It fails to find uninstalled libraries when the uninstalled
20290 # path is not listed in the libpath. Setting hardcode_minus_L
20291 # to unsupported forces relinking
20292 hardcode_minus_L_CXX=yes
20293 hardcode_libdir_flag_spec_CXX='-L$libdir'
20294 hardcode_libdir_separator_CXX=
20296 esac
20297 shared_flag='-shared'
20298 if test "$aix_use_runtimelinking" = yes; then
20299 shared_flag="$shared_flag "'${wl}-G'
20301 else
20302 # not using gcc
20303 if test "$host_cpu" = ia64; then
20304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20305 # chokes on -Wl,-G. The following line is correct:
20306 shared_flag='-G'
20307 else
20308 if test "$aix_use_runtimelinking" = yes; then
20309 shared_flag='${wl}-G'
20310 else
20311 shared_flag='${wl}-bM:SRE'
20316 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20317 # It seems that -bexpall does not export symbols beginning with
20318 # underscore (_), so it is better to generate a list of symbols to
20319 # export.
20320 always_export_symbols_CXX=yes
20321 if test "$aix_use_runtimelinking" = yes; then
20322 # Warning - without using the other runtime loading flags (-brtl),
20323 # -berok will link without error, but may produce a broken library.
20324 allow_undefined_flag_CXX='-berok'
20325 # Determine the default libpath from the value encoded in an empty
20326 # executable.
20327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20331 main ()
20335 return 0;
20337 _ACEOF
20338 if ac_fn_cxx_try_link "$LINENO"; then :
20340 lt_aix_libpath_sed='
20341 /Import File Strings/,/^$/ {
20342 /^0/ {
20343 s/^0 *\(.*\)$/\1/
20347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20348 # Check for a 64-bit object if we didn't find anything.
20349 if test -z "$aix_libpath"; then
20350 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20353 rm -f core conftest.err conftest.$ac_objext \
20354 conftest$ac_exeext conftest.$ac_ext
20355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20357 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20359 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"
20360 else
20361 if test "$host_cpu" = ia64; then
20362 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20363 allow_undefined_flag_CXX="-z nodefs"
20364 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"
20365 else
20366 # Determine the default libpath from the value encoded in an
20367 # empty executable.
20368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h. */
20372 main ()
20376 return 0;
20378 _ACEOF
20379 if ac_fn_cxx_try_link "$LINENO"; then :
20381 lt_aix_libpath_sed='
20382 /Import File Strings/,/^$/ {
20383 /^0/ {
20384 s/^0 *\(.*\)$/\1/
20388 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20389 # Check for a 64-bit object if we didn't find anything.
20390 if test -z "$aix_libpath"; then
20391 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20394 rm -f core conftest.err conftest.$ac_objext \
20395 conftest$ac_exeext conftest.$ac_ext
20396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20398 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20399 # Warning - without using the other run time loading flags,
20400 # -berok will link without error, but may produce a broken library.
20401 no_undefined_flag_CXX=' ${wl}-bernotok'
20402 allow_undefined_flag_CXX=' ${wl}-berok'
20403 if test "$with_gnu_ld" = yes; then
20404 # We only use this code for GNU lds that support --whole-archive.
20405 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20406 else
20407 # Exported symbols can be pulled into shared objects from archives
20408 whole_archive_flag_spec_CXX='$convenience'
20410 archive_cmds_need_lc_CXX=yes
20411 # This is similar to how AIX traditionally builds its shared
20412 # libraries.
20413 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'
20418 beos*)
20419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20420 allow_undefined_flag_CXX=unsupported
20421 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20422 # support --undefined. This deserves some investigation. FIXME
20423 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20424 else
20425 ld_shlibs_CXX=no
20429 chorus*)
20430 case $cc_basename in
20432 # FIXME: insert proper C++ library support
20433 ld_shlibs_CXX=no
20435 esac
20438 cygwin* | mingw* | pw32* | cegcc*)
20439 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20440 # as there is no search path for DLLs.
20441 hardcode_libdir_flag_spec_CXX='-L$libdir'
20442 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20443 allow_undefined_flag_CXX=unsupported
20444 always_export_symbols_CXX=no
20445 enable_shared_with_static_runtimes_CXX=yes
20447 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20448 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'
20449 # If the export-symbols file already is a .def file (1st line
20450 # is EXPORTS), use it as is; otherwise, prepend...
20451 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20452 cp $export_symbols $output_objdir/$soname.def;
20453 else
20454 echo EXPORTS > $output_objdir/$soname.def;
20455 cat $export_symbols >> $output_objdir/$soname.def;
20457 $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'
20458 else
20459 ld_shlibs_CXX=no
20462 darwin* | rhapsody*)
20465 archive_cmds_need_lc_CXX=no
20466 hardcode_direct_CXX=no
20467 hardcode_automatic_CXX=yes
20468 hardcode_shlibpath_var_CXX=unsupported
20469 if test "$lt_cv_ld_force_load" = "yes"; then
20470 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\"`'
20471 else
20472 whole_archive_flag_spec_CXX=''
20474 link_all_deplibs_CXX=yes
20475 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20476 case $cc_basename in
20477 ifort*) _lt_dar_can_shared=yes ;;
20478 *) _lt_dar_can_shared=$GCC ;;
20479 esac
20480 if test "$_lt_dar_can_shared" = "yes"; then
20481 output_verbose_link_cmd=func_echo_all
20482 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}"
20483 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20484 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}"
20485 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}"
20486 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20487 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}"
20488 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}"
20491 else
20492 ld_shlibs_CXX=no
20497 dgux*)
20498 case $cc_basename in
20499 ec++*)
20500 # FIXME: insert proper C++ library support
20501 ld_shlibs_CXX=no
20503 ghcx*)
20504 # Green Hills C++ Compiler
20505 # FIXME: insert proper C++ library support
20506 ld_shlibs_CXX=no
20509 # FIXME: insert proper C++ library support
20510 ld_shlibs_CXX=no
20512 esac
20515 freebsd2.*)
20516 # C++ shared libraries reported to be fairly broken before
20517 # switch to ELF
20518 ld_shlibs_CXX=no
20521 freebsd-elf*)
20522 archive_cmds_need_lc_CXX=no
20525 freebsd* | dragonfly*)
20526 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20527 # conventions
20528 ld_shlibs_CXX=yes
20531 gnu*)
20534 haiku*)
20535 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20536 link_all_deplibs_CXX=yes
20539 hpux9*)
20540 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20541 hardcode_libdir_separator_CXX=:
20542 export_dynamic_flag_spec_CXX='${wl}-E'
20543 hardcode_direct_CXX=yes
20544 hardcode_minus_L_CXX=yes # Not in the search PATH,
20545 # but as the default
20546 # location of the library.
20548 case $cc_basename in
20549 CC*)
20550 # FIXME: insert proper C++ library support
20551 ld_shlibs_CXX=no
20553 aCC*)
20554 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'
20555 # Commands to make compiler produce verbose output that lists
20556 # what "hidden" libraries, object files and flags are used when
20557 # linking a shared library.
20559 # There doesn't appear to be a way to prevent this compiler from
20560 # explicitly linking system object files so we need to strip them
20561 # from the output so that they don't get included in the library
20562 # dependencies.
20563 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"'
20566 if test "$GXX" = yes; then
20567 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'
20568 else
20569 # FIXME: insert proper C++ library support
20570 ld_shlibs_CXX=no
20573 esac
20576 hpux10*|hpux11*)
20577 if test $with_gnu_ld = no; then
20578 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20579 hardcode_libdir_separator_CXX=:
20581 case $host_cpu in
20582 hppa*64*|ia64*)
20585 export_dynamic_flag_spec_CXX='${wl}-E'
20587 esac
20589 case $host_cpu in
20590 hppa*64*|ia64*)
20591 hardcode_direct_CXX=no
20592 hardcode_shlibpath_var_CXX=no
20595 hardcode_direct_CXX=yes
20596 hardcode_direct_absolute_CXX=yes
20597 hardcode_minus_L_CXX=yes # Not in the search PATH,
20598 # but as the default
20599 # location of the library.
20601 esac
20603 case $cc_basename in
20604 CC*)
20605 # FIXME: insert proper C++ library support
20606 ld_shlibs_CXX=no
20608 aCC*)
20609 case $host_cpu in
20610 hppa*64*)
20611 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20613 ia64*)
20614 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20617 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20619 esac
20620 # Commands to make compiler produce verbose output that lists
20621 # what "hidden" libraries, object files and flags are used when
20622 # linking a shared library.
20624 # There doesn't appear to be a way to prevent this compiler from
20625 # explicitly linking system object files so we need to strip them
20626 # from the output so that they don't get included in the library
20627 # dependencies.
20628 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"'
20631 if test "$GXX" = yes; then
20632 if test $with_gnu_ld = no; then
20633 case $host_cpu in
20634 hppa*64*)
20635 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20637 ia64*)
20638 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20641 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'
20643 esac
20645 else
20646 # FIXME: insert proper C++ library support
20647 ld_shlibs_CXX=no
20650 esac
20653 interix[3-9]*)
20654 hardcode_direct_CXX=no
20655 hardcode_shlibpath_var_CXX=no
20656 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20657 export_dynamic_flag_spec_CXX='${wl}-E'
20658 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20659 # Instead, shared libraries are loaded at an image base (0x10000000 by
20660 # default) and relocated if they conflict, which is a slow very memory
20661 # consuming and fragmenting process. To avoid this, we pick a random,
20662 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20663 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20664 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'
20665 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'
20667 irix5* | irix6*)
20668 case $cc_basename in
20669 CC*)
20670 # SGI C++
20671 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'
20673 # Archives containing C++ object files must be created using
20674 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20675 # necessary to make sure instantiated templates are included
20676 # in the archive.
20677 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20680 if test "$GXX" = yes; then
20681 if test "$with_gnu_ld" = no; then
20682 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'
20683 else
20684 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'
20687 link_all_deplibs_CXX=yes
20689 esac
20690 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20691 hardcode_libdir_separator_CXX=:
20692 inherit_rpath_CXX=yes
20695 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20696 case $cc_basename in
20697 KCC*)
20698 # Kuck and Associates, Inc. (KAI) C++ Compiler
20700 # KCC will only create a shared library if the output file
20701 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20702 # to its proper name (with version) after linking.
20703 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'
20704 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'
20705 # Commands to make compiler produce verbose output that lists
20706 # what "hidden" libraries, object files and flags are used when
20707 # linking a shared library.
20709 # There doesn't appear to be a way to prevent this compiler from
20710 # explicitly linking system object files so we need to strip them
20711 # from the output so that they don't get included in the library
20712 # dependencies.
20713 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"'
20715 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20718 # Archives containing C++ object files must be created using
20719 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20720 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20722 icpc* | ecpc* )
20723 # Intel C++
20724 with_gnu_ld=yes
20725 # version 8.0 and above of icpc choke on multiply defined symbols
20726 # if we add $predep_objects and $postdep_objects, however 7.1 and
20727 # earlier do not add the objects themselves.
20728 case `$CC -V 2>&1` in
20729 *"Version 7."*)
20730 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20731 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'
20733 *) # Version 8.0 or newer
20734 tmp_idyn=
20735 case $host_cpu in
20736 ia64*) tmp_idyn=' -i_dynamic';;
20737 esac
20738 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20739 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'
20741 esac
20742 archive_cmds_need_lc_CXX=no
20743 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20744 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20745 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20747 pgCC* | pgcpp*)
20748 # Portland Group C++ compiler
20749 case `$CC -V` in
20750 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20751 prelink_cmds_CXX='tpldir=Template.dir~
20752 rm -rf $tpldir~
20753 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20754 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20755 old_archive_cmds_CXX='tpldir=Template.dir~
20756 rm -rf $tpldir~
20757 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20758 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20759 $RANLIB $oldlib'
20760 archive_cmds_CXX='tpldir=Template.dir~
20761 rm -rf $tpldir~
20762 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20763 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20764 archive_expsym_cmds_CXX='tpldir=Template.dir~
20765 rm -rf $tpldir~
20766 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20767 $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'
20769 *) # Version 6 and above use weak symbols
20770 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20771 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'
20773 esac
20775 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20777 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'
20779 cxx*)
20780 # Compaq C++
20781 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20782 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'
20784 runpath_var=LD_RUN_PATH
20785 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20786 hardcode_libdir_separator_CXX=:
20788 # Commands to make compiler produce verbose output that lists
20789 # what "hidden" libraries, object files and flags are used when
20790 # linking a shared library.
20792 # There doesn't appear to be a way to prevent this compiler from
20793 # explicitly linking system object files so we need to strip them
20794 # from the output so that they don't get included in the library
20795 # dependencies.
20796 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'
20798 xl* | mpixl* | bgxl*)
20799 # IBM XL 8.0 on PPC, with GNU ld
20800 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20802 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20803 if test "x$supports_anon_versioning" = xyes; then
20804 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20806 echo "local: *; };" >> $output_objdir/$libname.ver~
20807 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20811 case `$CC -V 2>&1 | sed 5q` in
20812 *Sun\ C*)
20813 # Sun C++ 5.9
20814 no_undefined_flag_CXX=' -zdefs'
20815 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20816 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'
20817 hardcode_libdir_flag_spec_CXX='-R$libdir'
20818 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'
20819 compiler_needs_object_CXX=yes
20821 # Not sure whether something based on
20822 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20823 # would be better.
20824 output_verbose_link_cmd='func_echo_all'
20826 # Archives containing C++ object files must be created using
20827 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20828 # necessary to make sure instantiated templates are included
20829 # in the archive.
20830 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20832 esac
20834 esac
20837 lynxos*)
20838 # FIXME: insert proper C++ library support
20839 ld_shlibs_CXX=no
20842 m88k*)
20843 # FIXME: insert proper C++ library support
20844 ld_shlibs_CXX=no
20847 mvs*)
20848 case $cc_basename in
20849 cxx*)
20850 # FIXME: insert proper C++ library support
20851 ld_shlibs_CXX=no
20854 # FIXME: insert proper C++ library support
20855 ld_shlibs_CXX=no
20857 esac
20860 netbsd*)
20861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20862 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20863 wlarc=
20864 hardcode_libdir_flag_spec_CXX='-R$libdir'
20865 hardcode_direct_CXX=yes
20866 hardcode_shlibpath_var_CXX=no
20868 # Workaround some broken pre-1.5 toolchains
20869 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20872 *nto* | *qnx*)
20873 ld_shlibs_CXX=yes
20876 openbsd2*)
20877 # C++ shared libraries are fairly broken
20878 ld_shlibs_CXX=no
20881 openbsd*)
20882 if test -f /usr/libexec/ld.so; then
20883 hardcode_direct_CXX=yes
20884 hardcode_shlibpath_var_CXX=no
20885 hardcode_direct_absolute_CXX=yes
20886 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20887 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20888 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20889 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20890 export_dynamic_flag_spec_CXX='${wl}-E'
20891 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20893 output_verbose_link_cmd=func_echo_all
20894 else
20895 ld_shlibs_CXX=no
20899 osf3* | osf4* | osf5*)
20900 case $cc_basename in
20901 KCC*)
20902 # Kuck and Associates, Inc. (KAI) C++ Compiler
20904 # KCC will only create a shared library if the output file
20905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20906 # to its proper name (with version) after linking.
20907 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'
20909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20910 hardcode_libdir_separator_CXX=:
20912 # Archives containing C++ object files must be created using
20913 # the KAI C++ compiler.
20914 case $host in
20915 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20916 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20917 esac
20919 RCC*)
20920 # Rational C++ 2.4.1
20921 # FIXME: insert proper C++ library support
20922 ld_shlibs_CXX=no
20924 cxx*)
20925 case $host in
20926 osf3*)
20927 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20928 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'
20929 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20932 allow_undefined_flag_CXX=' -expect_unresolved \*'
20933 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'
20934 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20935 echo "-hidden">> $lib.exp~
20936 $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~
20937 $RM $lib.exp'
20938 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20940 esac
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.
20948 # There doesn't appear to be a way to prevent this compiler from
20949 # explicitly linking system object files so we need to strip them
20950 # from the output so that they don't get included in the library
20951 # dependencies.
20952 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"'
20955 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20956 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20957 case $host in
20958 osf3*)
20959 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'
20962 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'
20964 esac
20966 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20967 hardcode_libdir_separator_CXX=:
20969 # Commands to make compiler produce verbose output that lists
20970 # what "hidden" libraries, object files and flags are used when
20971 # linking a shared library.
20972 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20974 else
20975 # FIXME: insert proper C++ library support
20976 ld_shlibs_CXX=no
20979 esac
20982 psos*)
20983 # FIXME: insert proper C++ library support
20984 ld_shlibs_CXX=no
20987 sunos4*)
20988 case $cc_basename in
20989 CC*)
20990 # Sun C++ 4.x
20991 # FIXME: insert proper C++ library support
20992 ld_shlibs_CXX=no
20994 lcc*)
20995 # Lucid
20996 # FIXME: insert proper C++ library support
20997 ld_shlibs_CXX=no
21000 # FIXME: insert proper C++ library support
21001 ld_shlibs_CXX=no
21003 esac
21006 solaris*)
21007 case $cc_basename in
21008 CC*)
21009 # Sun C++ 4.2, 5.x and Centerline C++
21010 archive_cmds_need_lc_CXX=yes
21011 no_undefined_flag_CXX=' -zdefs'
21012 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21013 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21014 $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'
21016 hardcode_libdir_flag_spec_CXX='-R$libdir'
21017 hardcode_shlibpath_var_CXX=no
21018 case $host_os in
21019 solaris2.[0-5] | solaris2.[0-5].*) ;;
21021 # The compiler driver will combine and reorder linker options,
21022 # but understands `-z linker_flag'.
21023 # Supported since Solaris 2.6 (maybe 2.5.1?)
21024 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21026 esac
21027 link_all_deplibs_CXX=yes
21029 output_verbose_link_cmd='func_echo_all'
21031 # Archives containing C++ object files must be created using
21032 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21033 # necessary to make sure instantiated templates are included
21034 # in the archive.
21035 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21037 gcx*)
21038 # Green Hills C++ Compiler
21039 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21041 # The C++ compiler must be used to create the archive.
21042 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21045 # GNU C++ compiler with Solaris linker
21046 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21047 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21048 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21049 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21050 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21051 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21053 # Commands to make compiler produce verbose output that lists
21054 # what "hidden" libraries, object files and flags are used when
21055 # linking a shared library.
21056 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21057 else
21058 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21059 # platform.
21060 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21061 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21062 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21064 # Commands to make compiler produce verbose output that lists
21065 # what "hidden" libraries, object files and flags are used when
21066 # linking a shared library.
21067 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21070 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21071 case $host_os in
21072 solaris2.[0-5] | solaris2.[0-5].*) ;;
21074 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21076 esac
21079 esac
21082 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21083 no_undefined_flag_CXX='${wl}-z,text'
21084 archive_cmds_need_lc_CXX=no
21085 hardcode_shlibpath_var_CXX=no
21086 runpath_var='LD_RUN_PATH'
21088 case $cc_basename in
21089 CC*)
21090 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21091 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21094 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21095 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21097 esac
21100 sysv5* | sco3.2v5* | sco5v6*)
21101 # Note: We can NOT use -z defs as we might desire, because we do not
21102 # link with -lc, and that would cause any symbols used from libc to
21103 # always be unresolved, which means just about no library would
21104 # ever link correctly. If we're not using GNU ld we use -z text
21105 # though, which does catch some bad symbols but isn't as heavy-handed
21106 # as -z defs.
21107 no_undefined_flag_CXX='${wl}-z,text'
21108 allow_undefined_flag_CXX='${wl}-z,nodefs'
21109 archive_cmds_need_lc_CXX=no
21110 hardcode_shlibpath_var_CXX=no
21111 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21112 hardcode_libdir_separator_CXX=':'
21113 link_all_deplibs_CXX=yes
21114 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21115 runpath_var='LD_RUN_PATH'
21117 case $cc_basename in
21118 CC*)
21119 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21120 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21121 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21122 '"$old_archive_cmds_CXX"
21123 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21124 '"$reload_cmds_CXX"
21127 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21128 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21130 esac
21133 tandem*)
21134 case $cc_basename in
21135 NCC*)
21136 # NonStop-UX NCC 3.20
21137 # FIXME: insert proper C++ library support
21138 ld_shlibs_CXX=no
21141 # FIXME: insert proper C++ library support
21142 ld_shlibs_CXX=no
21144 esac
21147 vxworks*)
21148 # FIXME: insert proper C++ library support
21149 ld_shlibs_CXX=no
21153 # FIXME: insert proper C++ library support
21154 ld_shlibs_CXX=no
21156 esac
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21159 $as_echo "$ld_shlibs_CXX" >&6; }
21160 test "$ld_shlibs_CXX" = no && can_build_shared=no
21162 GCC_CXX="$GXX"
21163 LD_CXX="$LD"
21165 ## CAVEAT EMPTOR:
21166 ## There is no encapsulation within the following macros, do not change
21167 ## the running order or otherwise move them around unless you know exactly
21168 ## what you are doing...
21169 # Dependencies to place before and after the object being linked:
21170 predep_objects_CXX=
21171 postdep_objects_CXX=
21172 predeps_CXX=
21173 postdeps_CXX=
21174 compiler_lib_search_path_CXX=
21176 cat > conftest.$ac_ext <<_LT_EOF
21177 class Foo
21179 public:
21180 Foo (void) { a = 0; }
21181 private:
21182 int a;
21184 _LT_EOF
21186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21187 (eval $ac_compile) 2>&5
21188 ac_status=$?
21189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21190 test $ac_status = 0; }; then
21191 # Parse the compiler output and extract the necessary
21192 # objects, libraries and library flags.
21194 # Sentinel used to keep track of whether or not we are before
21195 # the conftest object file.
21196 pre_test_object_deps_done=no
21198 for p in `eval "$output_verbose_link_cmd"`; do
21199 case $p in
21201 -L* | -R* | -l*)
21202 # Some compilers place space between "-{L,R}" and the path.
21203 # Remove the space.
21204 if test $p = "-L" ||
21205 test $p = "-R"; then
21206 prev=$p
21207 continue
21208 else
21209 prev=
21212 if test "$pre_test_object_deps_done" = no; then
21213 case $p in
21214 -L* | -R*)
21215 # Internal compiler library paths should come after those
21216 # provided the user. The postdeps already come after the
21217 # user supplied libs so there is no need to process them.
21218 if test -z "$compiler_lib_search_path_CXX"; then
21219 compiler_lib_search_path_CXX="${prev}${p}"
21220 else
21221 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21224 # The "-l" case would never come before the object being
21225 # linked, so don't bother handling this case.
21226 esac
21227 else
21228 if test -z "$postdeps_CXX"; then
21229 postdeps_CXX="${prev}${p}"
21230 else
21231 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21236 *.$objext)
21237 # This assumes that the test object file only shows up
21238 # once in the compiler output.
21239 if test "$p" = "conftest.$objext"; then
21240 pre_test_object_deps_done=yes
21241 continue
21244 if test "$pre_test_object_deps_done" = no; then
21245 if test -z "$predep_objects_CXX"; then
21246 predep_objects_CXX="$p"
21247 else
21248 predep_objects_CXX="$predep_objects_CXX $p"
21250 else
21251 if test -z "$postdep_objects_CXX"; then
21252 postdep_objects_CXX="$p"
21253 else
21254 postdep_objects_CXX="$postdep_objects_CXX $p"
21259 *) ;; # Ignore the rest.
21261 esac
21262 done
21264 # Clean up.
21265 rm -f a.out a.exe
21266 else
21267 echo "libtool.m4: error: problem compiling CXX test program"
21270 $RM -f confest.$objext
21272 # PORTME: override above test on systems where it is broken
21273 case $host_os in
21274 interix[3-9]*)
21275 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21276 # hack all around it, let's just trust "g++" to DTRT.
21277 predep_objects_CXX=
21278 postdep_objects_CXX=
21279 postdeps_CXX=
21282 linux*)
21283 case `$CC -V 2>&1 | sed 5q` in
21284 *Sun\ C*)
21285 # Sun C++ 5.9
21287 # The more standards-conforming stlport4 library is
21288 # incompatible with the Cstd library. Avoid specifying
21289 # it if it's in CXXFLAGS. Ignore libCrun as
21290 # -library=stlport4 depends on it.
21291 case " $CXX $CXXFLAGS " in
21292 *" -library=stlport4 "*)
21293 solaris_use_stlport4=yes
21295 esac
21297 if test "$solaris_use_stlport4" != yes; then
21298 postdeps_CXX='-library=Cstd -library=Crun'
21301 esac
21304 solaris*)
21305 case $cc_basename in
21306 CC*)
21307 # The more standards-conforming stlport4 library is
21308 # incompatible with the Cstd library. Avoid specifying
21309 # it if it's in CXXFLAGS. Ignore libCrun as
21310 # -library=stlport4 depends on it.
21311 case " $CXX $CXXFLAGS " in
21312 *" -library=stlport4 "*)
21313 solaris_use_stlport4=yes
21315 esac
21317 # Adding this requires a known-good setup of shared libraries for
21318 # Sun compiler versions before 5.6, else PIC objects from an old
21319 # archive will be linked into the output, leading to subtle bugs.
21320 if test "$solaris_use_stlport4" != yes; then
21321 postdeps_CXX='-library=Cstd -library=Crun'
21324 esac
21326 esac
21329 case " $postdeps_CXX " in
21330 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21331 esac
21332 compiler_lib_search_dirs_CXX=
21333 if test -n "${compiler_lib_search_path_CXX}"; then
21334 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21367 lt_prog_compiler_wl_CXX=
21368 lt_prog_compiler_pic_CXX=
21369 lt_prog_compiler_static_CXX=
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21372 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21374 # C++ specific cases for pic, static, wl, etc.
21375 if test "$GXX" = yes; then
21376 lt_prog_compiler_wl_CXX='-Wl,'
21377 lt_prog_compiler_static_CXX='-static'
21379 case $host_os in
21380 aix*)
21381 # All AIX code is PIC.
21382 if test "$host_cpu" = ia64; then
21383 # AIX 5 now supports IA64 processor
21384 lt_prog_compiler_static_CXX='-Bstatic'
21386 lt_prog_compiler_pic_CXX='-fPIC'
21389 amigaos*)
21390 case $host_cpu in
21391 powerpc)
21392 # see comment about AmigaOS4 .so support
21393 lt_prog_compiler_pic_CXX='-fPIC'
21395 m68k)
21396 # FIXME: we need at least 68020 code to build shared libraries, but
21397 # adding the `-m68020' flag to GCC prevents building anything better,
21398 # like `-m68040'.
21399 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21401 esac
21404 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21405 # PIC is the default for these OSes.
21407 mingw* | cygwin* | os2* | pw32* | cegcc*)
21408 # This hack is so that the source file can tell whether it is being
21409 # built for inclusion in a dll (and should export symbols for example).
21410 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21411 # (--disable-auto-import) libraries
21412 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21414 darwin* | rhapsody*)
21415 # PIC is the default on this platform
21416 # Common symbols not allowed in MH_DYLIB files
21417 lt_prog_compiler_pic_CXX='-fno-common'
21419 *djgpp*)
21420 # DJGPP does not support shared libraries at all
21421 lt_prog_compiler_pic_CXX=
21423 haiku*)
21424 # PIC is the default for Haiku.
21425 # The "-static" flag exists, but is broken.
21426 lt_prog_compiler_static_CXX=
21428 interix[3-9]*)
21429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21430 # Instead, we relocate shared libraries at runtime.
21432 sysv4*MP*)
21433 if test -d /usr/nec; then
21434 lt_prog_compiler_pic_CXX=-Kconform_pic
21437 hpux*)
21438 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21439 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21440 # sets the default TLS model and affects inlining.
21441 case $host_cpu in
21442 hppa*64*)
21445 lt_prog_compiler_pic_CXX='-fPIC'
21447 esac
21449 *qnx* | *nto*)
21450 # QNX uses GNU C++, but need to define -shared option too, otherwise
21451 # it will coredump.
21452 lt_prog_compiler_pic_CXX='-fPIC -shared'
21455 lt_prog_compiler_pic_CXX='-fPIC'
21457 esac
21458 else
21459 case $host_os in
21460 aix[4-9]*)
21461 # All AIX code is PIC.
21462 if test "$host_cpu" = ia64; then
21463 # AIX 5 now supports IA64 processor
21464 lt_prog_compiler_static_CXX='-Bstatic'
21465 else
21466 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21469 chorus*)
21470 case $cc_basename in
21471 cxch68*)
21472 # Green Hills C++ Compiler
21473 # _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"
21475 esac
21477 dgux*)
21478 case $cc_basename in
21479 ec++*)
21480 lt_prog_compiler_pic_CXX='-KPIC'
21482 ghcx*)
21483 # Green Hills C++ Compiler
21484 lt_prog_compiler_pic_CXX='-pic'
21488 esac
21490 freebsd* | dragonfly*)
21491 # FreeBSD uses GNU C++
21493 hpux9* | hpux10* | hpux11*)
21494 case $cc_basename in
21495 CC*)
21496 lt_prog_compiler_wl_CXX='-Wl,'
21497 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21498 if test "$host_cpu" != ia64; then
21499 lt_prog_compiler_pic_CXX='+Z'
21502 aCC*)
21503 lt_prog_compiler_wl_CXX='-Wl,'
21504 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21505 case $host_cpu in
21506 hppa*64*|ia64*)
21507 # +Z the default
21510 lt_prog_compiler_pic_CXX='+Z'
21512 esac
21516 esac
21518 interix*)
21519 # This is c89, which is MS Visual C++ (no shared libs)
21520 # Anyone wants to do a port?
21522 irix5* | irix6* | nonstopux*)
21523 case $cc_basename in
21524 CC*)
21525 lt_prog_compiler_wl_CXX='-Wl,'
21526 lt_prog_compiler_static_CXX='-non_shared'
21527 # CC pic flag -KPIC is the default.
21531 esac
21533 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21534 case $cc_basename in
21535 KCC*)
21536 # KAI C++ Compiler
21537 lt_prog_compiler_wl_CXX='--backend -Wl,'
21538 lt_prog_compiler_pic_CXX='-fPIC'
21540 ecpc* )
21541 # old Intel C++ for x86_64 which still supported -KPIC.
21542 lt_prog_compiler_wl_CXX='-Wl,'
21543 lt_prog_compiler_pic_CXX='-KPIC'
21544 lt_prog_compiler_static_CXX='-static'
21546 icpc* )
21547 # Intel C++, used to be incompatible with GCC.
21548 # ICC 10 doesn't accept -KPIC any more.
21549 lt_prog_compiler_wl_CXX='-Wl,'
21550 lt_prog_compiler_pic_CXX='-fPIC'
21551 lt_prog_compiler_static_CXX='-static'
21553 pgCC* | pgcpp*)
21554 # Portland Group C++ compiler
21555 lt_prog_compiler_wl_CXX='-Wl,'
21556 lt_prog_compiler_pic_CXX='-fpic'
21557 lt_prog_compiler_static_CXX='-Bstatic'
21559 cxx*)
21560 # Compaq C++
21561 # Make sure the PIC flag is empty. It appears that all Alpha
21562 # Linux and Compaq Tru64 Unix objects are PIC.
21563 lt_prog_compiler_pic_CXX=
21564 lt_prog_compiler_static_CXX='-non_shared'
21566 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21567 # IBM XL 8.0, 9.0 on PPC and BlueGene
21568 lt_prog_compiler_wl_CXX='-Wl,'
21569 lt_prog_compiler_pic_CXX='-qpic'
21570 lt_prog_compiler_static_CXX='-qstaticlink'
21573 case `$CC -V 2>&1 | sed 5q` in
21574 *Sun\ C*)
21575 # Sun C++ 5.9
21576 lt_prog_compiler_pic_CXX='-KPIC'
21577 lt_prog_compiler_static_CXX='-Bstatic'
21578 lt_prog_compiler_wl_CXX='-Qoption ld '
21580 esac
21582 esac
21584 lynxos*)
21586 m88k*)
21588 mvs*)
21589 case $cc_basename in
21590 cxx*)
21591 lt_prog_compiler_pic_CXX='-W c,exportall'
21595 esac
21597 netbsd*)
21599 *qnx* | *nto*)
21600 # QNX uses GNU C++, but need to define -shared option too, otherwise
21601 # it will coredump.
21602 lt_prog_compiler_pic_CXX='-fPIC -shared'
21604 osf3* | osf4* | osf5*)
21605 case $cc_basename in
21606 KCC*)
21607 lt_prog_compiler_wl_CXX='--backend -Wl,'
21609 RCC*)
21610 # Rational C++ 2.4.1
21611 lt_prog_compiler_pic_CXX='-pic'
21613 cxx*)
21614 # Digital/Compaq C++
21615 lt_prog_compiler_wl_CXX='-Wl,'
21616 # Make sure the PIC flag is empty. It appears that all Alpha
21617 # Linux and Compaq Tru64 Unix objects are PIC.
21618 lt_prog_compiler_pic_CXX=
21619 lt_prog_compiler_static_CXX='-non_shared'
21623 esac
21625 psos*)
21627 solaris*)
21628 case $cc_basename in
21629 CC*)
21630 # Sun C++ 4.2, 5.x and Centerline C++
21631 lt_prog_compiler_pic_CXX='-KPIC'
21632 lt_prog_compiler_static_CXX='-Bstatic'
21633 lt_prog_compiler_wl_CXX='-Qoption ld '
21635 gcx*)
21636 # Green Hills C++ Compiler
21637 lt_prog_compiler_pic_CXX='-PIC'
21641 esac
21643 sunos4*)
21644 case $cc_basename in
21645 CC*)
21646 # Sun C++ 4.x
21647 lt_prog_compiler_pic_CXX='-pic'
21648 lt_prog_compiler_static_CXX='-Bstatic'
21650 lcc*)
21651 # Lucid
21652 lt_prog_compiler_pic_CXX='-pic'
21656 esac
21658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21659 case $cc_basename in
21660 CC*)
21661 lt_prog_compiler_wl_CXX='-Wl,'
21662 lt_prog_compiler_pic_CXX='-KPIC'
21663 lt_prog_compiler_static_CXX='-Bstatic'
21665 esac
21667 tandem*)
21668 case $cc_basename in
21669 NCC*)
21670 # NonStop-UX NCC 3.20
21671 lt_prog_compiler_pic_CXX='-KPIC'
21675 esac
21677 vxworks*)
21680 lt_prog_compiler_can_build_shared_CXX=no
21682 esac
21685 case $host_os in
21686 # For platforms which do not support PIC, -DPIC is meaningless:
21687 *djgpp*)
21688 lt_prog_compiler_pic_CXX=
21691 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21693 esac
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21695 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21700 # Check to make sure the PIC flag actually works.
21702 if test -n "$lt_prog_compiler_pic_CXX"; then
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21704 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21705 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21706 $as_echo_n "(cached) " >&6
21707 else
21708 lt_cv_prog_compiler_pic_works_CXX=no
21709 ac_outfile=conftest.$ac_objext
21710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21711 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21712 # Insert the option either (1) after the last *FLAGS variable, or
21713 # (2) before a word containing "conftest.", or (3) at the end.
21714 # Note that $ac_compile itself does not contain backslashes and begins
21715 # with a dollar sign (not a hyphen), so the echo should work correctly.
21716 # The option is referenced via a variable to avoid confusing sed.
21717 lt_compile=`echo "$ac_compile" | $SED \
21718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21720 -e 's:$: $lt_compiler_flag:'`
21721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21722 (eval "$lt_compile" 2>conftest.err)
21723 ac_status=$?
21724 cat conftest.err >&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 if (exit $ac_status) && test -s "$ac_outfile"; then
21727 # The compiler can only warn and ignore the option if not recognized
21728 # So say no if there are warnings other than the usual output.
21729 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21731 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21732 lt_cv_prog_compiler_pic_works_CXX=yes
21735 $RM conftest*
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21739 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21741 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21742 case $lt_prog_compiler_pic_CXX in
21743 "" | " "*) ;;
21744 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21745 esac
21746 else
21747 lt_prog_compiler_pic_CXX=
21748 lt_prog_compiler_can_build_shared_CXX=no
21756 # Check to make sure the static flag actually works.
21758 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21760 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21761 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21762 $as_echo_n "(cached) " >&6
21763 else
21764 lt_cv_prog_compiler_static_works_CXX=no
21765 save_LDFLAGS="$LDFLAGS"
21766 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21767 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21768 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21769 # The linker can only warn and ignore the option if not recognized
21770 # So say no if there are warnings
21771 if test -s conftest.err; then
21772 # Append any errors to the config.log.
21773 cat conftest.err 1>&5
21774 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21776 if diff conftest.exp conftest.er2 >/dev/null; then
21777 lt_cv_prog_compiler_static_works_CXX=yes
21779 else
21780 lt_cv_prog_compiler_static_works_CXX=yes
21783 $RM -r conftest*
21784 LDFLAGS="$save_LDFLAGS"
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21788 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21790 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21792 else
21793 lt_prog_compiler_static_CXX=
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21800 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21801 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21802 $as_echo_n "(cached) " >&6
21803 else
21804 lt_cv_prog_compiler_c_o_CXX=no
21805 $RM -r conftest 2>/dev/null
21806 mkdir conftest
21807 cd conftest
21808 mkdir out
21809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21811 lt_compiler_flag="-o out/conftest2.$ac_objext"
21812 # Insert the option either (1) after the last *FLAGS variable, or
21813 # (2) before a word containing "conftest.", or (3) at the end.
21814 # Note that $ac_compile itself does not contain backslashes and begins
21815 # with a dollar sign (not a hyphen), so the echo should work correctly.
21816 lt_compile=`echo "$ac_compile" | $SED \
21817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21819 -e 's:$: $lt_compiler_flag:'`
21820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21821 (eval "$lt_compile" 2>out/conftest.err)
21822 ac_status=$?
21823 cat out/conftest.err >&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21826 then
21827 # The compiler can only warn and ignore the option if not recognized
21828 # So say no if there are warnings
21829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21832 lt_cv_prog_compiler_c_o_CXX=yes
21835 chmod u+w . 2>&5
21836 $RM conftest*
21837 # SGI C++ compiler will create directory out/ii_files/ for
21838 # template instantiation
21839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21840 $RM out/* && rmdir out
21841 cd ..
21842 $RM -r conftest
21843 $RM conftest*
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21847 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21852 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21853 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21854 $as_echo_n "(cached) " >&6
21855 else
21856 lt_cv_prog_compiler_c_o_CXX=no
21857 $RM -r conftest 2>/dev/null
21858 mkdir conftest
21859 cd conftest
21860 mkdir out
21861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21863 lt_compiler_flag="-o out/conftest2.$ac_objext"
21864 # Insert the option either (1) after the last *FLAGS variable, or
21865 # (2) before a word containing "conftest.", or (3) at the end.
21866 # Note that $ac_compile itself does not contain backslashes and begins
21867 # with a dollar sign (not a hyphen), so the echo should work correctly.
21868 lt_compile=`echo "$ac_compile" | $SED \
21869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21871 -e 's:$: $lt_compiler_flag:'`
21872 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21873 (eval "$lt_compile" 2>out/conftest.err)
21874 ac_status=$?
21875 cat out/conftest.err >&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21878 then
21879 # The compiler can only warn and ignore the option if not recognized
21880 # So say no if there are warnings
21881 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21884 lt_cv_prog_compiler_c_o_CXX=yes
21887 chmod u+w . 2>&5
21888 $RM conftest*
21889 # SGI C++ compiler will create directory out/ii_files/ for
21890 # template instantiation
21891 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21892 $RM out/* && rmdir out
21893 cd ..
21894 $RM -r conftest
21895 $RM conftest*
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21899 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21904 hard_links="nottested"
21905 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21906 # do not overwrite the value of need_locks provided by the user
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21908 $as_echo_n "checking if we can lock with hard links... " >&6; }
21909 hard_links=yes
21910 $RM conftest*
21911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21912 touch conftest.a
21913 ln conftest.a conftest.b 2>&5 || hard_links=no
21914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21916 $as_echo "$hard_links" >&6; }
21917 if test "$hard_links" = no; then
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21919 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21920 need_locks=warn
21922 else
21923 need_locks=no
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21929 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21931 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21932 case $host_os in
21933 aix[4-9]*)
21934 # If we're using GNU nm, then we don't want the "-C" option.
21935 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21936 # Also, AIX nm treats weak defined symbols like other global defined
21937 # symbols, whereas GNU nm marks them as "W".
21938 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21939 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'
21940 else
21941 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'
21944 pw32*)
21945 export_symbols_cmds_CXX="$ltdll_cmds"
21947 cygwin* | mingw* | cegcc*)
21948 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'
21951 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21953 esac
21954 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21957 $as_echo "$ld_shlibs_CXX" >&6; }
21958 test "$ld_shlibs_CXX" = no && can_build_shared=no
21960 with_gnu_ld_CXX=$with_gnu_ld
21968 # Do we need to explicitly link libc?
21970 case "x$archive_cmds_need_lc_CXX" in
21971 x|xyes)
21972 # Assume -lc should be added
21973 archive_cmds_need_lc_CXX=yes
21975 if test "$enable_shared" = yes && test "$GCC" = yes; then
21976 case $archive_cmds_CXX in
21977 *'~'*)
21978 # FIXME: we may have to deal with multi-command sequences.
21980 '$CC '*)
21981 # Test whether the compiler implicitly links with -lc since on some
21982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21983 # to ld, don't add -lc before -lgcc.
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21985 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21986 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21987 $as_echo_n "(cached) " >&6
21988 else
21989 $RM conftest*
21990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21993 (eval $ac_compile) 2>&5
21994 ac_status=$?
21995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21996 test $ac_status = 0; } 2>conftest.err; then
21997 soname=conftest
21998 lib=conftest
21999 libobjs=conftest.$ac_objext
22000 deplibs=
22001 wl=$lt_prog_compiler_wl_CXX
22002 pic_flag=$lt_prog_compiler_pic_CXX
22003 compiler_flags=-v
22004 linker_flags=-v
22005 verstring=
22006 output_objdir=.
22007 libname=conftest
22008 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22009 allow_undefined_flag_CXX=
22010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22011 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22012 ac_status=$?
22013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22014 test $ac_status = 0; }
22015 then
22016 lt_cv_archive_cmds_need_lc_CXX=no
22017 else
22018 lt_cv_archive_cmds_need_lc_CXX=yes
22020 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22021 else
22022 cat conftest.err 1>&5
22024 $RM conftest*
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22028 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22029 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22031 esac
22034 esac
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22100 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22102 library_names_spec=
22103 libname_spec='lib$name'
22104 soname_spec=
22105 shrext_cmds=".so"
22106 postinstall_cmds=
22107 postuninstall_cmds=
22108 finish_cmds=
22109 finish_eval=
22110 shlibpath_var=
22111 shlibpath_overrides_runpath=unknown
22112 version_type=none
22113 dynamic_linker="$host_os ld.so"
22114 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22115 need_lib_prefix=unknown
22116 hardcode_into_libs=no
22118 # when you set need_version to no, make sure it does not cause -set_version
22119 # flags to be left without arguments
22120 need_version=unknown
22122 case $host_os in
22123 aix3*)
22124 version_type=linux
22125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22126 shlibpath_var=LIBPATH
22128 # AIX 3 has no versioning support, so we append a major version to the name.
22129 soname_spec='${libname}${release}${shared_ext}$major'
22132 aix[4-9]*)
22133 version_type=linux
22134 need_lib_prefix=no
22135 need_version=no
22136 hardcode_into_libs=yes
22137 if test "$host_cpu" = ia64; then
22138 # AIX 5 supports IA64
22139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22140 shlibpath_var=LD_LIBRARY_PATH
22141 else
22142 # With GCC up to 2.95.x, collect2 would create an import file
22143 # for dependence libraries. The import file would start with
22144 # the line `#! .'. This would cause the generated library to
22145 # depend on `.', always an invalid library. This was fixed in
22146 # development snapshots of GCC prior to 3.0.
22147 case $host_os in
22148 aix4 | aix4.[01] | aix4.[01].*)
22149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22150 echo ' yes '
22151 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22153 else
22154 can_build_shared=no
22157 esac
22158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22159 # soname into executable. Probably we can add versioning support to
22160 # collect2, so additional links can be useful in future.
22161 if test "$aix_use_runtimelinking" = yes; then
22162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22163 # instead of lib<name>.a to let people know that these are not
22164 # typical AIX shared libraries.
22165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22166 else
22167 # We preserve .a as extension for shared libraries through AIX4.2
22168 # and later when we are not doing run time linking.
22169 library_names_spec='${libname}${release}.a $libname.a'
22170 soname_spec='${libname}${release}${shared_ext}$major'
22172 shlibpath_var=LIBPATH
22176 amigaos*)
22177 case $host_cpu in
22178 powerpc)
22179 # Since July 2007 AmigaOS4 officially supports .so libraries.
22180 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22183 m68k)
22184 library_names_spec='$libname.ixlibrary $libname.a'
22185 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22186 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'
22188 esac
22191 beos*)
22192 library_names_spec='${libname}${shared_ext}'
22193 dynamic_linker="$host_os ld.so"
22194 shlibpath_var=LIBRARY_PATH
22197 bsdi[45]*)
22198 version_type=linux
22199 need_version=no
22200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22201 soname_spec='${libname}${release}${shared_ext}$major'
22202 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22203 shlibpath_var=LD_LIBRARY_PATH
22204 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22205 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22206 # the default ld.so.conf also contains /usr/contrib/lib and
22207 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22208 # libtool to hard-code these into programs
22211 cygwin* | mingw* | pw32* | cegcc*)
22212 version_type=windows
22213 shrext_cmds=".dll"
22214 need_version=no
22215 need_lib_prefix=no
22217 case $GCC,$host_os in
22218 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22219 library_names_spec='$libname.dll.a'
22220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22221 postinstall_cmds='base_file=`basename \${file}`~
22222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22223 dldir=$destdir/`dirname \$dlpath`~
22224 test -d \$dldir || mkdir -p \$dldir~
22225 $install_prog $dir/$dlname \$dldir/$dlname~
22226 chmod a+x \$dldir/$dlname~
22227 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22228 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22231 dlpath=$dir/\$dldll~
22232 $RM \$dlpath'
22233 shlibpath_overrides_runpath=yes
22235 case $host_os in
22236 cygwin*)
22237 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22238 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22241 mingw* | cegcc*)
22242 # MinGW DLLs use traditional 'lib' prefix
22243 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22245 pw32*)
22246 # pw32 DLLs use 'pw' prefix rather than 'lib'
22247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22249 esac
22253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22255 esac
22256 dynamic_linker='Win32 ld.exe'
22257 # FIXME: first we should search . and the directory the executable is in
22258 shlibpath_var=PATH
22261 darwin* | rhapsody*)
22262 dynamic_linker="$host_os dyld"
22263 version_type=darwin
22264 need_lib_prefix=no
22265 need_version=no
22266 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22267 soname_spec='${libname}${release}${major}$shared_ext'
22268 shlibpath_overrides_runpath=yes
22269 shlibpath_var=DYLD_LIBRARY_PATH
22270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22272 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22275 dgux*)
22276 version_type=linux
22277 need_lib_prefix=no
22278 need_version=no
22279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22280 soname_spec='${libname}${release}${shared_ext}$major'
22281 shlibpath_var=LD_LIBRARY_PATH
22284 freebsd* | dragonfly*)
22285 # DragonFly does not have aout. When/if they implement a new
22286 # versioning mechanism, adjust this.
22287 if test -x /usr/bin/objformat; then
22288 objformat=`/usr/bin/objformat`
22289 else
22290 case $host_os in
22291 freebsd[23].*) objformat=aout ;;
22292 *) objformat=elf ;;
22293 esac
22295 version_type=freebsd-$objformat
22296 case $version_type in
22297 freebsd-elf*)
22298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22299 need_version=no
22300 need_lib_prefix=no
22302 freebsd-*)
22303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22304 need_version=yes
22306 esac
22307 shlibpath_var=LD_LIBRARY_PATH
22308 case $host_os in
22309 freebsd2.*)
22310 shlibpath_overrides_runpath=yes
22312 freebsd3.[01]* | freebsdelf3.[01]*)
22313 shlibpath_overrides_runpath=yes
22314 hardcode_into_libs=yes
22316 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22317 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22318 shlibpath_overrides_runpath=no
22319 hardcode_into_libs=yes
22321 *) # from 4.6 on, and DragonFly
22322 shlibpath_overrides_runpath=yes
22323 hardcode_into_libs=yes
22325 esac
22328 haiku*)
22329 version_type=linux
22330 need_lib_prefix=no
22331 need_version=no
22332 dynamic_linker="$host_os runtime_loader"
22333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22334 soname_spec='${libname}${release}${shared_ext}$major'
22335 shlibpath_var=LIBRARY_PATH
22336 shlibpath_overrides_runpath=yes
22337 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22338 hardcode_into_libs=yes
22341 hpux9* | hpux10* | hpux11*)
22342 # Give a soname corresponding to the major version so that dld.sl refuses to
22343 # link against other versions.
22344 version_type=sunos
22345 need_lib_prefix=no
22346 need_version=no
22347 case $host_cpu in
22348 ia64*)
22349 shrext_cmds='.so'
22350 hardcode_into_libs=yes
22351 dynamic_linker="$host_os dld.so"
22352 shlibpath_var=LD_LIBRARY_PATH
22353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
22356 if test "X$HPUX_IA64_MODE" = X32; then
22357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22358 else
22359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22363 hppa*64*)
22364 shrext_cmds='.sl'
22365 hardcode_into_libs=yes
22366 dynamic_linker="$host_os dld.sl"
22367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22370 soname_spec='${libname}${release}${shared_ext}$major'
22371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22375 shrext_cmds='.sl'
22376 dynamic_linker="$host_os dld.sl"
22377 shlibpath_var=SHLIB_PATH
22378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22380 soname_spec='${libname}${release}${shared_ext}$major'
22382 esac
22383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22384 postinstall_cmds='chmod 555 $lib'
22385 # or fails outright, so override atomically:
22386 install_override_mode=555
22389 interix[3-9]*)
22390 version_type=linux
22391 need_lib_prefix=no
22392 need_version=no
22393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22394 soname_spec='${libname}${release}${shared_ext}$major'
22395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22396 shlibpath_var=LD_LIBRARY_PATH
22397 shlibpath_overrides_runpath=no
22398 hardcode_into_libs=yes
22401 irix5* | irix6* | nonstopux*)
22402 case $host_os in
22403 nonstopux*) version_type=nonstopux ;;
22405 if test "$lt_cv_prog_gnu_ld" = yes; then
22406 version_type=linux
22407 else
22408 version_type=irix
22409 fi ;;
22410 esac
22411 need_lib_prefix=no
22412 need_version=no
22413 soname_spec='${libname}${release}${shared_ext}$major'
22414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22415 case $host_os in
22416 irix5* | nonstopux*)
22417 libsuff= shlibsuff=
22420 case $LD in # libtool.m4 will add one of these switches to LD
22421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22422 libsuff= shlibsuff= libmagic=32-bit;;
22423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22424 libsuff=32 shlibsuff=N32 libmagic=N32;;
22425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22427 *) libsuff= shlibsuff= libmagic=never-match;;
22428 esac
22430 esac
22431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22432 shlibpath_overrides_runpath=no
22433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22435 hardcode_into_libs=yes
22438 # No shared lib support for Linux oldld, aout, or coff.
22439 linux*oldld* | linux*aout* | linux*coff*)
22440 dynamic_linker=no
22443 # This must be Linux ELF.
22445 # uclinux* changes (here and below) have been submitted to the libtool
22446 # project, but have not yet been accepted: they are GCC-local changes
22447 # for the time being. (See
22448 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22449 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22450 version_type=linux
22451 need_lib_prefix=no
22452 need_version=no
22453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22454 soname_spec='${libname}${release}${shared_ext}$major'
22455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22456 shlibpath_var=LD_LIBRARY_PATH
22457 shlibpath_overrides_runpath=no
22459 # Some binutils ld are patched to set DT_RUNPATH
22460 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22461 $as_echo_n "(cached) " >&6
22462 else
22463 lt_cv_shlibpath_overrides_runpath=no
22464 save_LDFLAGS=$LDFLAGS
22465 save_libdir=$libdir
22466 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22467 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22469 /* end confdefs.h. */
22472 main ()
22476 return 0;
22478 _ACEOF
22479 if ac_fn_cxx_try_link "$LINENO"; then :
22480 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22481 lt_cv_shlibpath_overrides_runpath=yes
22484 rm -f core conftest.err conftest.$ac_objext \
22485 conftest$ac_exeext conftest.$ac_ext
22486 LDFLAGS=$save_LDFLAGS
22487 libdir=$save_libdir
22491 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22493 # This implies no fast_install, which is unacceptable.
22494 # Some rework will be needed to allow for fast_install
22495 # before this can be enabled.
22496 hardcode_into_libs=yes
22498 # Append ld.so.conf contents to the search path
22499 if test -f /etc/ld.so.conf; then
22500 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' ' '`
22501 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22504 # We used to test for /lib/ld.so.1 and disable shared libraries on
22505 # powerpc, because MkLinux only supported shared libraries with the
22506 # GNU dynamic linker. Since this was broken with cross compilers,
22507 # most powerpc-linux boxes support dynamic linking these days and
22508 # people can always --disable-shared, the test was removed, and we
22509 # assume the GNU/Linux dynamic linker is in use.
22510 dynamic_linker='GNU/Linux ld.so'
22513 netbsd*)
22514 version_type=sunos
22515 need_lib_prefix=no
22516 need_version=no
22517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22520 dynamic_linker='NetBSD (a.out) ld.so'
22521 else
22522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22523 soname_spec='${libname}${release}${shared_ext}$major'
22524 dynamic_linker='NetBSD ld.elf_so'
22526 shlibpath_var=LD_LIBRARY_PATH
22527 shlibpath_overrides_runpath=yes
22528 hardcode_into_libs=yes
22531 newsos6)
22532 version_type=linux
22533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22534 shlibpath_var=LD_LIBRARY_PATH
22535 shlibpath_overrides_runpath=yes
22538 *nto* | *qnx*)
22539 version_type=qnx
22540 need_lib_prefix=no
22541 need_version=no
22542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22543 soname_spec='${libname}${release}${shared_ext}$major'
22544 shlibpath_var=LD_LIBRARY_PATH
22545 shlibpath_overrides_runpath=no
22546 hardcode_into_libs=yes
22547 dynamic_linker='ldqnx.so'
22550 openbsd*)
22551 version_type=sunos
22552 sys_lib_dlsearch_path_spec="/usr/lib"
22553 need_lib_prefix=no
22554 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22555 case $host_os in
22556 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22557 *) need_version=no ;;
22558 esac
22559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22561 shlibpath_var=LD_LIBRARY_PATH
22562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22563 case $host_os in
22564 openbsd2.[89] | openbsd2.[89].*)
22565 shlibpath_overrides_runpath=no
22568 shlibpath_overrides_runpath=yes
22570 esac
22571 else
22572 shlibpath_overrides_runpath=yes
22576 os2*)
22577 libname_spec='$name'
22578 shrext_cmds=".dll"
22579 need_lib_prefix=no
22580 library_names_spec='$libname${shared_ext} $libname.a'
22581 dynamic_linker='OS/2 ld.exe'
22582 shlibpath_var=LIBPATH
22585 osf3* | osf4* | osf5*)
22586 version_type=osf
22587 need_lib_prefix=no
22588 need_version=no
22589 soname_spec='${libname}${release}${shared_ext}$major'
22590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591 shlibpath_var=LD_LIBRARY_PATH
22592 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22593 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22596 rdos*)
22597 dynamic_linker=no
22600 solaris*)
22601 version_type=linux
22602 need_lib_prefix=no
22603 need_version=no
22604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22605 soname_spec='${libname}${release}${shared_ext}$major'
22606 shlibpath_var=LD_LIBRARY_PATH
22607 shlibpath_overrides_runpath=yes
22608 hardcode_into_libs=yes
22609 # ldd complains unless libraries are executable
22610 postinstall_cmds='chmod +x $lib'
22613 sunos4*)
22614 version_type=sunos
22615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22617 shlibpath_var=LD_LIBRARY_PATH
22618 shlibpath_overrides_runpath=yes
22619 if test "$with_gnu_ld" = yes; then
22620 need_lib_prefix=no
22622 need_version=yes
22625 sysv4 | sysv4.3*)
22626 version_type=linux
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22628 soname_spec='${libname}${release}${shared_ext}$major'
22629 shlibpath_var=LD_LIBRARY_PATH
22630 case $host_vendor in
22631 sni)
22632 shlibpath_overrides_runpath=no
22633 need_lib_prefix=no
22634 runpath_var=LD_RUN_PATH
22636 siemens)
22637 need_lib_prefix=no
22639 motorola)
22640 need_lib_prefix=no
22641 need_version=no
22642 shlibpath_overrides_runpath=no
22643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22645 esac
22648 sysv4*MP*)
22649 if test -d /usr/nec ;then
22650 version_type=linux
22651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22652 soname_spec='$libname${shared_ext}.$major'
22653 shlibpath_var=LD_LIBRARY_PATH
22657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22658 version_type=freebsd-elf
22659 need_lib_prefix=no
22660 need_version=no
22661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22662 soname_spec='${libname}${release}${shared_ext}$major'
22663 shlibpath_var=LD_LIBRARY_PATH
22664 shlibpath_overrides_runpath=yes
22665 hardcode_into_libs=yes
22666 if test "$with_gnu_ld" = yes; then
22667 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22668 else
22669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22670 case $host_os in
22671 sco3.2v5*)
22672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22674 esac
22676 sys_lib_dlsearch_path_spec='/usr/lib'
22679 tpf*)
22680 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22681 version_type=linux
22682 need_lib_prefix=no
22683 need_version=no
22684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22685 shlibpath_var=LD_LIBRARY_PATH
22686 shlibpath_overrides_runpath=no
22687 hardcode_into_libs=yes
22690 uts4*)
22691 version_type=linux
22692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22693 soname_spec='${libname}${release}${shared_ext}$major'
22694 shlibpath_var=LD_LIBRARY_PATH
22698 dynamic_linker=no
22700 esac
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22702 $as_echo "$dynamic_linker" >&6; }
22703 test "$dynamic_linker" = no && can_build_shared=no
22705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22706 if test "$GCC" = yes; then
22707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22710 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22711 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22713 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22714 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22755 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22756 hardcode_action_CXX=
22757 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22758 test -n "$runpath_var_CXX" ||
22759 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22761 # We can hardcode non-existent directories.
22762 if test "$hardcode_direct_CXX" != no &&
22763 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22764 # have to relink, otherwise we might link with an installed library
22765 # when we should be linking with a yet-to-be-installed one
22766 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22767 test "$hardcode_minus_L_CXX" != no; then
22768 # Linking always hardcodes the temporary library directory.
22769 hardcode_action_CXX=relink
22770 else
22771 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22772 hardcode_action_CXX=immediate
22774 else
22775 # We cannot hardcode anything, or else we can only hardcode existing
22776 # directories.
22777 hardcode_action_CXX=unsupported
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22780 $as_echo "$hardcode_action_CXX" >&6; }
22782 if test "$hardcode_action_CXX" = relink ||
22783 test "$inherit_rpath_CXX" = yes; then
22784 # Fast installation is not supported
22785 enable_fast_install=no
22786 elif test "$shlibpath_overrides_runpath" = yes ||
22787 test "$enable_shared" = no; then
22788 # Fast installation is not necessary
22789 enable_fast_install=needless
22798 fi # test -n "$compiler"
22800 CC=$lt_save_CC
22801 LDCXX=$LD
22802 LD=$lt_save_LD
22803 GCC=$lt_save_GCC
22804 with_gnu_ld=$lt_save_with_gnu_ld
22805 lt_cv_path_LDCXX=$lt_cv_path_LD
22806 lt_cv_path_LD=$lt_save_path_LD
22807 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22808 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22809 fi # test "$_lt_caught_CXX_error" != yes
22811 ac_ext=cpp
22812 ac_cpp='$CXXCPP $CPPFLAGS'
22813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22832 # Only expand once:
22838 # Identify the assembler which will work hand-in-glove with the newly
22839 # built GCC, so that we can examine its features. This is the assembler
22840 # which will be driven by the driver program.
22842 # If build != host, and we aren't building gas in-tree, we identify a
22843 # build->target assembler and hope that it will have the same features
22844 # as the host->target assembler we'll be using.
22845 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22847 if ${gcc_cv_as+:} false; then :
22849 else
22851 if test -x "$DEFAULT_ASSEMBLER"; then
22852 gcc_cv_as="$DEFAULT_ASSEMBLER"
22853 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22854 && test -f ../gas/Makefile \
22855 && test x$build = x$host; then
22856 gcc_cv_as=../gas/as-new$build_exeext
22857 elif test -x as$build_exeext; then
22858 # Build using assembler in the current directory.
22859 gcc_cv_as=./as$build_exeext
22860 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22861 gcc_cv_as="$AS_FOR_TARGET"
22862 else
22863 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22864 set dummy $AS_FOR_TARGET; ac_word=$2
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22866 $as_echo_n "checking for $ac_word... " >&6; }
22867 if ${ac_cv_path_gcc_cv_as+:} false; then :
22868 $as_echo_n "(cached) " >&6
22869 else
22870 case $gcc_cv_as in
22871 [\\/]* | ?:[\\/]*)
22872 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22876 for as_dir in $PATH
22878 IFS=$as_save_IFS
22879 test -z "$as_dir" && as_dir=.
22880 for ac_exec_ext in '' $ac_executable_extensions; do
22881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22882 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22884 break 2
22886 done
22887 done
22888 IFS=$as_save_IFS
22891 esac
22893 gcc_cv_as=$ac_cv_path_gcc_cv_as
22894 if test -n "$gcc_cv_as"; then
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22896 $as_echo "$gcc_cv_as" >&6; }
22897 else
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22899 $as_echo "no" >&6; }
22906 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22908 case "$ORIGINAL_AS_FOR_TARGET" in
22909 ./as | ./as$build_exeext) ;;
22910 *) ac_config_files="$ac_config_files as:exec-tool.in"
22912 esac
22914 default_ld=
22915 # Check whether --enable-ld was given.
22916 if test "${enable_ld+set}" = set; then :
22917 enableval=$enable_ld; case "${enableval}" in
22919 default_ld=ld.gold
22921 esac
22925 install_gold_as_default=no
22926 # Check whether --enable-gold was given.
22927 if test "${enable_gold+set}" = set; then :
22928 enableval=$enable_gold; case "${enableval}" in
22929 default)
22930 install_gold_as_default=yes
22932 yes)
22933 if test x${default_ld} != x; then
22934 install_gold_as_default=yes
22940 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22942 esac
22946 # Identify the linker which will work hand-in-glove with the newly
22947 # built GCC, so that we can examine its features. This is the linker
22948 # which will be driven by the driver program.
22950 # If build != host, and we aren't building gas in-tree, we identify a
22951 # build->target linker and hope that it will have the same features
22952 # as the host->target linker we'll be using.
22953 gcc_cv_gld_major_version=
22954 gcc_cv_gld_minor_version=
22955 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22956 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22957 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22959 if ${gcc_cv_ld+:} false; then :
22961 else
22963 if test -x "$DEFAULT_LINKER"; then
22964 gcc_cv_ld="$DEFAULT_LINKER"
22965 elif test $install_gold_as_default = yes \
22966 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22967 && test -f ../gold/Makefile \
22968 && test x$build = x$host; then
22969 gcc_cv_ld=../gold/ld-new$build_exeext
22970 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22971 && test -f ../ld/Makefile \
22972 && test x$build = x$host; then
22973 gcc_cv_ld=../ld/ld-new$build_exeext
22974 elif test -x collect-ld$build_exeext; then
22975 # Build using linker in the current directory.
22976 gcc_cv_ld=./collect-ld$build_exeext
22977 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22978 gcc_cv_ld="$LD_FOR_TARGET"
22979 else
22980 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22981 set dummy $LD_FOR_TARGET; ac_word=$2
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22983 $as_echo_n "checking for $ac_word... " >&6; }
22984 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22985 $as_echo_n "(cached) " >&6
22986 else
22987 case $gcc_cv_ld in
22988 [\\/]* | ?:[\\/]*)
22989 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22993 for as_dir in $PATH
22995 IFS=$as_save_IFS
22996 test -z "$as_dir" && as_dir=.
22997 for ac_exec_ext in '' $ac_executable_extensions; do
22998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22999 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23001 break 2
23003 done
23004 done
23005 IFS=$as_save_IFS
23008 esac
23010 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23011 if test -n "$gcc_cv_ld"; then
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23013 $as_echo "$gcc_cv_ld" >&6; }
23014 else
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23016 $as_echo "no" >&6; }
23023 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23024 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23025 # if the PLUGIN_LD is set ld-new, just have it as ld
23026 # as that is the installed named.
23027 if test x$PLUGIN_LD_SUFFIX = xld-new \
23028 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23029 PLUGIN_LD_SUFFIX=ld
23032 # Check whether --with-plugin-ld was given.
23033 if test "${with_plugin_ld+set}" = set; then :
23034 withval=$with_plugin_ld; if test x"$withval" != x; then
23035 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23036 PLUGIN_LD_SUFFIX="$withval"
23042 cat >>confdefs.h <<_ACEOF
23043 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23044 _ACEOF
23047 # Check to see if we are using gold instead of ld
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23049 $as_echo_n "checking whether we are using gold... " >&6; }
23050 ld_is_gold=no
23051 if test x$gcc_cv_ld != x; then
23052 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23053 | grep "GNU gold" > /dev/null; then
23054 ld_is_gold=yes
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23058 $as_echo "$ld_is_gold" >&6; }
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23061 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23062 # Check to see if default ld is not gold, but gold is
23063 # available and has support for split stack. If gcc was configured
23064 # with gold then no checking is done.
23066 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23068 # For platforms other than powerpc64*, enable as appropriate.
23070 gold_non_default=no
23071 ld_gold=`which ${gcc_cv_ld}.gold`
23072 # Make sure this gold has minimal split stack support
23073 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23074 ld_vers=`$ld_gold --version | sed 1q`
23075 gold_vers=`echo $ld_vers | sed -n \
23076 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23077 case $target in
23078 # check that the gold version contains the complete split stack support
23079 # on powerpc64 big and little endian
23080 powerpc64*-*-*)
23081 case "$gold_vers" in
23082 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23084 *) gold_non_default=no
23086 esac
23088 esac
23090 if test $gold_non_default = yes; then
23092 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23097 $as_echo "$gold_non_default" >&6; }
23099 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23101 case "$ORIGINAL_LD_FOR_TARGET" in
23102 ./collect-ld | ./collect-ld$build_exeext) ;;
23103 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23105 esac
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23108 $as_echo_n "checking what linker to use... " >&6; }
23109 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23110 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23111 # Single tree build which includes ld. We want to prefer it
23112 # over whatever linker top-level may have detected, since
23113 # we'll use what we're building after installation anyway.
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23115 $as_echo "newly built ld" >&6; }
23116 in_tree_ld=yes
23117 in_tree_ld_is_elf=no
23118 if (grep 'EMUL = .*elf' ../ld/Makefile \
23119 || grep 'EMUL = .*linux' ../ld/Makefile \
23120 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23121 in_tree_ld_is_elf=yes
23122 elif test "$ld_is_gold" = yes; then
23123 in_tree_ld_is_elf=yes
23125 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
23127 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23128 if test x$gcc_cv_gld_version != x; then
23129 break
23131 done
23132 case $gcc_cv_gld_version in
23133 VERSION=[0-9]*) ;;
23134 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23135 esac
23136 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23137 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23138 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23139 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23140 else
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23142 $as_echo "$gcc_cv_ld" >&6; }
23143 in_tree_ld=no
23144 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23145 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23146 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23152 # Figure out what nm we will be using.
23153 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23154 if ${gcc_cv_nm+:} false; then :
23156 else
23158 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23159 && test -f ../binutils/Makefile \
23160 && test x$build = x$host; then
23161 gcc_cv_nm=../binutils/nm-new$build_exeext
23162 elif test -x nm$build_exeext; then
23163 gcc_cv_nm=./nm$build_exeext
23164 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23165 gcc_cv_nm="$NM_FOR_TARGET"
23166 else
23167 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23168 set dummy $NM_FOR_TARGET; ac_word=$2
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23170 $as_echo_n "checking for $ac_word... " >&6; }
23171 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23172 $as_echo_n "(cached) " >&6
23173 else
23174 case $gcc_cv_nm in
23175 [\\/]* | ?:[\\/]*)
23176 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23180 for as_dir in $PATH
23182 IFS=$as_save_IFS
23183 test -z "$as_dir" && as_dir=.
23184 for ac_exec_ext in '' $ac_executable_extensions; do
23185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23186 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23188 break 2
23190 done
23191 done
23192 IFS=$as_save_IFS
23195 esac
23197 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23198 if test -n "$gcc_cv_nm"; then
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23200 $as_echo "$gcc_cv_nm" >&6; }
23201 else
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23203 $as_echo "no" >&6; }
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23211 $as_echo_n "checking what nm to use... " >&6; }
23212 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23213 # Single tree build which includes binutils.
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23215 $as_echo "newly built nm" >&6; }
23216 in_tree_nm=yes
23217 else
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23219 $as_echo "$gcc_cv_nm" >&6; }
23220 in_tree_nm=no
23223 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23225 case "$ORIGINAL_NM_FOR_TARGET" in
23226 ./nm | ./nm$build_exeext) ;;
23227 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23229 esac
23232 # Figure out what objdump we will be using.
23233 if ${gcc_cv_objdump+:} false; then :
23235 else
23237 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23238 && test -f ../binutils/Makefile \
23239 && test x$build = x$host; then
23240 # Single tree build which includes binutils.
23241 gcc_cv_objdump=../binutils/objdump$build_exeext
23242 elif test -x objdump$build_exeext; then
23243 gcc_cv_objdump=./objdump$build_exeext
23244 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23245 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23246 else
23247 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23248 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23250 $as_echo_n "checking for $ac_word... " >&6; }
23251 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23252 $as_echo_n "(cached) " >&6
23253 else
23254 case $gcc_cv_objdump in
23255 [\\/]* | ?:[\\/]*)
23256 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23260 for as_dir in $PATH
23262 IFS=$as_save_IFS
23263 test -z "$as_dir" && as_dir=.
23264 for ac_exec_ext in '' $ac_executable_extensions; do
23265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23266 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23268 break 2
23270 done
23271 done
23272 IFS=$as_save_IFS
23275 esac
23277 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23278 if test -n "$gcc_cv_objdump"; then
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23280 $as_echo "$gcc_cv_objdump" >&6; }
23281 else
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23283 $as_echo "no" >&6; }
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23291 $as_echo_n "checking what objdump to use... " >&6; }
23292 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23293 # Single tree build which includes binutils.
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23295 $as_echo "newly built objdump" >&6; }
23296 elif test x$gcc_cv_objdump = x; then
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23298 $as_echo "not found" >&6; }
23299 else
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23301 $as_echo "$gcc_cv_objdump" >&6; }
23304 # Figure out what readelf we will be using.
23305 if ${gcc_cv_readelf+:} false; then :
23307 else
23309 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23310 && test -f ../binutils/Makefile \
23311 && test x$build = x$host; then
23312 # Single tree build which includes binutils.
23313 gcc_cv_readelf=../binutils/readelf$build_exeext
23314 elif test -x readelf$build_exeext; then
23315 gcc_cv_readelf=./readelf$build_exeext
23316 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23317 gcc_cv_readelf="$READELF_FOR_TARGET"
23318 else
23319 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23320 set dummy $READELF_FOR_TARGET; ac_word=$2
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23322 $as_echo_n "checking for $ac_word... " >&6; }
23323 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23324 $as_echo_n "(cached) " >&6
23325 else
23326 case $gcc_cv_readelf in
23327 [\\/]* | ?:[\\/]*)
23328 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23332 for as_dir in $PATH
23334 IFS=$as_save_IFS
23335 test -z "$as_dir" && as_dir=.
23336 for ac_exec_ext in '' $ac_executable_extensions; do
23337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23338 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23340 break 2
23342 done
23343 done
23344 IFS=$as_save_IFS
23347 esac
23349 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23350 if test -n "$gcc_cv_readelf"; then
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23352 $as_echo "$gcc_cv_readelf" >&6; }
23353 else
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23355 $as_echo "no" >&6; }
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23363 $as_echo_n "checking what readelf to use... " >&6; }
23364 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23365 # Single tree build which includes binutils.
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23367 $as_echo "newly built readelf" >&6; }
23368 elif test x$gcc_cv_readelf = x; then
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23370 $as_echo "not found" >&6; }
23371 else
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23373 $as_echo "$gcc_cv_readelf" >&6; }
23376 # Figure out what otool we will be using.
23377 if ${gcc_cv_otool+:} false; then :
23379 else
23381 if test -x otool$build_exeext; then
23382 gcc_cv_otool=./otool$build_exeext
23383 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23384 gcc_cv_otool="$OTOOL_FOR_TARGET"
23385 else
23386 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23387 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23389 $as_echo_n "checking for $ac_word... " >&6; }
23390 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23391 $as_echo_n "(cached) " >&6
23392 else
23393 case $gcc_cv_otool in
23394 [\\/]* | ?:[\\/]*)
23395 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23399 for as_dir in $PATH
23401 IFS=$as_save_IFS
23402 test -z "$as_dir" && as_dir=.
23403 for ac_exec_ext in '' $ac_executable_extensions; do
23404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23405 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23407 break 2
23409 done
23410 done
23411 IFS=$as_save_IFS
23414 esac
23416 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23417 if test -n "$gcc_cv_otool"; then
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23419 $as_echo "$gcc_cv_otool" >&6; }
23420 else
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23422 $as_echo "no" >&6; }
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23430 $as_echo_n "checking what otool to use... " >&6; }
23431 if test x$gcc_cv_otool = x; then
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23433 $as_echo "not found" >&6; }
23434 else
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23436 $as_echo "$gcc_cv_otool" >&6; }
23439 # Figure out the dsymutil we will use.
23440 if ${gcc_cv_dsymutil+:} false; then :
23442 else
23444 if test -x "$DEFAULT_DSYMUTIL"; then
23445 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23446 elif test -x dsymutil$build_exeext; then
23447 gcc_cv_dsymutil=./dsymutil$build_exeext
23448 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23449 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23450 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23451 gcc_cv_dsymutil=$DSYMUTIL
23452 else
23453 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23454 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23456 $as_echo_n "checking for $ac_word... " >&6; }
23457 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23458 $as_echo_n "(cached) " >&6
23459 else
23460 case $gcc_cv_dsymutil in
23461 [\\/]* | ?:[\\/]*)
23462 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23466 for as_dir in $PATH
23468 IFS=$as_save_IFS
23469 test -z "$as_dir" && as_dir=.
23470 for ac_exec_ext in '' $ac_executable_extensions; do
23471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23472 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23474 break 2
23476 done
23477 done
23478 IFS=$as_save_IFS
23481 esac
23483 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23484 if test -n "$gcc_cv_dsymutil"; then
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23486 $as_echo "$gcc_cv_dsymutil" >&6; }
23487 else
23488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23489 $as_echo "no" >&6; }
23496 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23498 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23499 ./dsymutil | ./dsymutil$build_exeext) ;;
23500 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23502 esac
23504 # Figure out what assembler alignment features are present.
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23506 $as_echo_n "checking assembler flags... " >&6; }
23507 if ${gcc_cv_as_flags+:} false; then :
23508 $as_echo_n "(cached) " >&6
23509 else
23510 case "$target" in
23511 i[34567]86-*-linux*)
23512 gcc_cv_as_flags=--32
23514 x86_64-*-linux-gnux32)
23515 gcc_cv_as_flags=--x32
23517 x86_64-*-linux*)
23518 gcc_cv_as_flags=--64
23520 powerpc*-*-darwin*)
23521 gcc_cv_as_flags="-arch ppc"
23524 gcc_cv_as_flags=" "
23526 esac
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23529 $as_echo "$gcc_cv_as_flags" >&6; }
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23532 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23533 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23534 $as_echo_n "(cached) " >&6
23535 else
23536 gcc_cv_as_balign_and_p2align=no
23537 if test x$gcc_cv_as != x; then
23538 $as_echo '.balign 4
23539 .p2align 2' > conftest.s
23540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23542 (eval $ac_try) 2>&5
23543 ac_status=$?
23544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23545 test $ac_status = 0; }; }
23546 then
23547 gcc_cv_as_balign_and_p2align=yes
23548 else
23549 echo "configure: failed program was" >&5
23550 cat conftest.s >&5
23552 rm -f conftest.o conftest.s
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23556 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23557 if test $gcc_cv_as_balign_and_p2align = yes; then
23559 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23565 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23566 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23567 $as_echo_n "(cached) " >&6
23568 else
23569 gcc_cv_as_max_skip_p2align=no
23570 if test x$gcc_cv_as != x; then
23571 $as_echo '.p2align 4,,7' > conftest.s
23572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23574 (eval $ac_try) 2>&5
23575 ac_status=$?
23576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23577 test $ac_status = 0; }; }
23578 then
23579 gcc_cv_as_max_skip_p2align=yes
23580 else
23581 echo "configure: failed program was" >&5
23582 cat conftest.s >&5
23584 rm -f conftest.o conftest.s
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23588 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23589 if test $gcc_cv_as_max_skip_p2align = yes; then
23591 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23597 $as_echo_n "checking assembler for .literal16... " >&6; }
23598 if ${gcc_cv_as_literal16+:} false; then :
23599 $as_echo_n "(cached) " >&6
23600 else
23601 gcc_cv_as_literal16=no
23602 if test x$gcc_cv_as != x; then
23603 $as_echo '.literal16' > conftest.s
23604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23606 (eval $ac_try) 2>&5
23607 ac_status=$?
23608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23609 test $ac_status = 0; }; }
23610 then
23611 gcc_cv_as_literal16=yes
23612 else
23613 echo "configure: failed program was" >&5
23614 cat conftest.s >&5
23616 rm -f conftest.o conftest.s
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23620 $as_echo "$gcc_cv_as_literal16" >&6; }
23621 if test $gcc_cv_as_literal16 = yes; then
23623 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23629 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23630 if ${gcc_cv_as_subsection_m1+:} false; then :
23631 $as_echo_n "(cached) " >&6
23632 else
23633 gcc_cv_as_subsection_m1=no
23634 if test x$gcc_cv_as != x; then
23635 $as_echo 'conftest_label1: .word 0
23636 .subsection -1
23637 conftest_label2: .word 0
23638 .previous' > conftest.s
23639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23641 (eval $ac_try) 2>&5
23642 ac_status=$?
23643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23644 test $ac_status = 0; }; }
23645 then
23646 if test x$gcc_cv_nm != x; then
23647 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23648 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23649 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23650 then :
23651 else gcc_cv_as_subsection_m1=yes
23653 rm -f conftest.nm1 conftest.nm2
23655 else
23656 echo "configure: failed program was" >&5
23657 cat conftest.s >&5
23659 rm -f conftest.o conftest.s
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23663 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23664 if test $gcc_cv_as_subsection_m1 = yes; then
23666 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23672 $as_echo_n "checking assembler for .weak... " >&6; }
23673 if ${gcc_cv_as_weak+:} false; then :
23674 $as_echo_n "(cached) " >&6
23675 else
23676 gcc_cv_as_weak=no
23677 if test x$gcc_cv_as != x; then
23678 $as_echo ' .weak foobar' > conftest.s
23679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23681 (eval $ac_try) 2>&5
23682 ac_status=$?
23683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23684 test $ac_status = 0; }; }
23685 then
23686 gcc_cv_as_weak=yes
23687 else
23688 echo "configure: failed program was" >&5
23689 cat conftest.s >&5
23691 rm -f conftest.o conftest.s
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23695 $as_echo "$gcc_cv_as_weak" >&6; }
23696 if test $gcc_cv_as_weak = yes; then
23698 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23704 $as_echo_n "checking assembler for .weakref... " >&6; }
23705 if ${gcc_cv_as_weakref+:} false; then :
23706 $as_echo_n "(cached) " >&6
23707 else
23708 gcc_cv_as_weakref=no
23709 if test x$gcc_cv_as != x; then
23710 $as_echo ' .weakref foobar, barfnot' > conftest.s
23711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23713 (eval $ac_try) 2>&5
23714 ac_status=$?
23715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23716 test $ac_status = 0; }; }
23717 then
23718 gcc_cv_as_weakref=yes
23719 else
23720 echo "configure: failed program was" >&5
23721 cat conftest.s >&5
23723 rm -f conftest.o conftest.s
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23727 $as_echo "$gcc_cv_as_weakref" >&6; }
23728 if test $gcc_cv_as_weakref = yes; then
23730 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23736 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23737 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23738 $as_echo_n "(cached) " >&6
23739 else
23740 gcc_cv_as_nsubspa_comdat=no
23741 if test x$gcc_cv_as != x; then
23742 $as_echo ' .SPACE $TEXT$
23743 .NSUBSPA $CODE$,COMDAT' > conftest.s
23744 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23746 (eval $ac_try) 2>&5
23747 ac_status=$?
23748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23749 test $ac_status = 0; }; }
23750 then
23751 gcc_cv_as_nsubspa_comdat=yes
23752 else
23753 echo "configure: failed program was" >&5
23754 cat conftest.s >&5
23756 rm -f conftest.o conftest.s
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23760 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23761 if test $gcc_cv_as_nsubspa_comdat = yes; then
23763 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23768 # .hidden needs to be supported in both the assembler and the linker,
23769 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23770 # This is irritatingly difficult to feature test for; we have to check the
23771 # date string after the version number. If we've got an in-tree
23772 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23773 # to be safe.
23774 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23775 case "${target}" in
23776 *-*-aix*)
23777 conftest_s=' .globl foobar,hidden'
23780 conftest_s=' .hidden foobar
23781 foobar:'
23783 esac
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23785 $as_echo_n "checking assembler for .hidden... " >&6; }
23786 if ${gcc_cv_as_hidden+:} false; then :
23787 $as_echo_n "(cached) " >&6
23788 else
23789 gcc_cv_as_hidden=no
23790 if test x$gcc_cv_as != x; then
23791 $as_echo "$conftest_s" > conftest.s
23792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23794 (eval $ac_try) 2>&5
23795 ac_status=$?
23796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23797 test $ac_status = 0; }; }
23798 then
23799 gcc_cv_as_hidden=yes
23800 else
23801 echo "configure: failed program was" >&5
23802 cat conftest.s >&5
23804 rm -f conftest.o conftest.s
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23808 $as_echo "$gcc_cv_as_hidden" >&6; }
23811 case "${target}" in
23812 *-*-darwin*)
23813 # Darwin as has some visibility support, though with a different syntax.
23814 gcc_cv_as_hidden=yes
23816 esac
23818 # gnu_indirect_function type is an extension proposed at
23819 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23820 # selection of function implementation
23821 # Check whether --enable-gnu-indirect-function was given.
23822 if test "${enable_gnu_indirect_function+set}" = set; then :
23823 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23824 yes | no) ;;
23825 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23826 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23827 esac
23828 else
23829 enable_gnu_indirect_function="$default_gnu_indirect_function"
23833 case "${target}" in
23834 riscv*-*-linux*)
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23836 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23837 cat > conftest.s <<EOF
23838 .text
23839 .type foo_resolver, @function
23840 foo_resolver:
23842 .size foo_resolver, .-foo_resolver
23844 .globl foo
23845 .type foo, %gnu_indirect_function
23846 .set foo, foo_resolver
23848 .globl bar
23849 .type bar, @function
23850 bar:
23851 call foo
23853 .size bar, .-bar
23855 if test x$gcc_cv_as != x \
23856 && test x$gcc_cv_ld != x \
23857 && test x$gcc_cv_readelf != x \
23858 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23859 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23860 && $gcc_cv_readelf --relocs --wide conftest \
23861 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
23862 enable_gnu_indirect_function=yes
23864 rm -f conftest conftest.o conftest.s
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23866 $as_echo "$enable_gnu_indirect_function" >&6; }
23868 esac
23870 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23872 cat >>confdefs.h <<_ACEOF
23873 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23874 _ACEOF
23878 if test $in_tree_ld != yes ; then
23879 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23880 if echo "$ld_ver" | grep GNU > /dev/null; then
23881 if test x"$ld_is_gold" = xyes; then
23882 # GNU gold --version looks like this:
23884 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23886 # We extract the binutils version which is more familiar and specific
23887 # than the gold version.
23888 ld_vers=`echo $ld_ver | sed -n \
23889 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23890 else
23891 # GNU ld --version looks like this:
23893 # GNU ld (GNU Binutils) 2.21.51.20110225
23894 ld_vers=`echo $ld_ver | sed -n \
23895 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23897 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'`
23898 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23899 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23900 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23901 else
23902 case "${target}" in
23903 *-*-solaris2*)
23904 # Solaris 2 ld -V output looks like this for a regular version:
23906 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23908 # but test versions add stuff at the end:
23910 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23912 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23913 # numbers can be used in ld.so.1 feature checks even if a different
23914 # linker is configured.
23915 ld_ver=`$gcc_cv_ld -V 2>&1`
23916 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23917 ld_vers=`echo $ld_ver | sed -n \
23918 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23919 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23920 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23923 esac
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23928 $as_echo_n "checking linker for .hidden support... " >&6; }
23929 if ${gcc_cv_ld_hidden+:} false; then :
23930 $as_echo_n "(cached) " >&6
23931 else
23932 if test $in_tree_ld = yes ; then
23933 gcc_cv_ld_hidden=no
23934 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 \
23935 && test $in_tree_ld_is_elf = yes; then
23936 gcc_cv_ld_hidden=yes
23938 else
23939 gcc_cv_ld_hidden=yes
23940 if test x"$ld_is_gold" = xyes; then
23942 elif echo "$ld_ver" | grep GNU > /dev/null; then
23943 if test 0"$ld_date" -lt 20020404; then
23944 if test -n "$ld_date"; then
23945 # If there was date string, but was earlier than 2002-04-04, fail
23946 gcc_cv_ld_hidden=no
23947 elif test -z "$ld_vers"; then
23948 # If there was no date string nor ld version number, something is wrong
23949 gcc_cv_ld_hidden=no
23950 else
23951 test -z "$ld_vers_patch" && ld_vers_patch=0
23952 if test "$ld_vers_major" -lt 2; then
23953 gcc_cv_ld_hidden=no
23954 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23955 gcc_cv_ld_hidden="no"
23956 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23957 gcc_cv_ld_hidden=no
23961 else
23962 case "${target}" in
23963 *-*-aix[789]*)
23964 gcc_cv_ld_hidden=yes
23966 *-*-darwin*)
23967 # Darwin ld has some visibility support.
23968 gcc_cv_ld_hidden=yes
23970 hppa64*-*-hpux* | ia64*-*-hpux*)
23971 gcc_cv_ld_hidden=yes
23973 *-*-solaris2*)
23974 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23975 # .symbolic was only added in Solaris 9 12/02.
23976 gcc_cv_ld_hidden=yes
23979 gcc_cv_ld_hidden=no
23981 esac
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23986 $as_echo "$gcc_cv_ld_hidden" >&6; }
23987 libgcc_visibility=no
23990 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23991 libgcc_visibility=yes
23993 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23998 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23999 gcc_cv_ld_ro_rw_mix=unknown
24000 if test $in_tree_ld = yes ; then
24001 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 \
24002 && test $in_tree_ld_is_elf = yes; then
24003 gcc_cv_ld_ro_rw_mix=read-write
24005 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24006 echo '.section myfoosect, "a"' > conftest1.s
24007 echo '.section myfoosect, "aw"' > conftest2.s
24008 echo '.byte 1' >> conftest2.s
24009 echo '.section myfoosect, "a"' > conftest3.s
24010 echo '.byte 0' >> conftest3.s
24011 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24012 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24013 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24014 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24015 conftest2.o conftest3.o > /dev/null 2>&1; then
24016 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24017 | sed -e '/myfoosect/!d' -e N`
24018 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24019 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24020 gcc_cv_ld_ro_rw_mix=read-only
24021 else
24022 gcc_cv_ld_ro_rw_mix=read-write
24026 rm -f conftest.* conftest[123].*
24028 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24030 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24034 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24036 # Check whether --enable-initfini-array was given.
24037 if test "${enable_initfini_array+set}" = set; then :
24038 enableval=$enable_initfini_array;
24039 else
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24042 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24043 if ${gcc_cv_initfini_array+:} false; then :
24044 $as_echo_n "(cached) " >&6
24045 else
24046 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24047 case "${target}" in
24048 ia64-*)
24049 if test "$cross_compiling" = yes; then :
24050 gcc_cv_initfini_array=no
24051 else
24052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24053 /* end confdefs.h. */
24055 #ifndef __ELF__
24056 #error Not an ELF OS
24057 #endif
24058 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24059 if it can be used. */
24060 static int x = -1;
24061 int main (void) { return x; }
24062 int foo (void) { x = 0; }
24063 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24065 _ACEOF
24066 if ac_fn_cxx_try_run "$LINENO"; then :
24067 gcc_cv_initfini_array=yes
24068 else
24069 gcc_cv_initfini_array=no
24071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24072 conftest.$ac_objext conftest.beam conftest.$ac_ext
24076 gcc_cv_initfini_array=no
24077 if test $in_tree_ld = yes ; then
24078 if test "$gcc_cv_gld_major_version" -eq 2 \
24079 -a "$gcc_cv_gld_minor_version" -ge 22 \
24080 -o "$gcc_cv_gld_major_version" -gt 2 \
24081 && test $in_tree_ld_is_elf = yes; then
24082 gcc_cv_initfini_array=yes
24084 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24085 case $target:$gas in
24086 *:yes)
24087 sh_flags='"a"'
24088 sh_type='%progbits'
24090 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24091 sh_flags='"a"'
24092 sh_type='@progbits'
24094 sparc*-*-solaris2*:no)
24095 sh_flags='#alloc'
24096 sh_type='#progbits'
24097 sh_quote='"'
24099 esac
24100 case "$target:$gnu_ld" in
24101 *:yes)
24102 cat > conftest.s <<EOF
24103 .section .dtors,$sh_flags,$sh_type
24104 .balign 4
24105 .byte 'A', 'A', 'A', 'A'
24106 .section .ctors,$sh_flags,$sh_type
24107 .balign 4
24108 .byte 'B', 'B', 'B', 'B'
24109 .section .fini_array.65530,$sh_flags,$sh_type
24110 .balign 4
24111 .byte 'C', 'C', 'C', 'C'
24112 .section .init_array.65530,$sh_flags,$sh_type
24113 .balign 4
24114 .byte 'D', 'D', 'D', 'D'
24115 .section .dtors.64528,$sh_flags,$sh_type
24116 .balign 4
24117 .byte 'E', 'E', 'E', 'E'
24118 .section .ctors.64528,$sh_flags,$sh_type
24119 .balign 4
24120 .byte 'F', 'F', 'F', 'F'
24121 .section .fini_array.01005,$sh_flags,$sh_type
24122 .balign 4
24123 .byte 'G', 'G', 'G', 'G'
24124 .section .init_array.01005,$sh_flags,$sh_type
24125 .balign 4
24126 .byte 'H', 'H', 'H', 'H'
24127 .text
24128 .globl _start
24129 _start:
24131 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24132 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24133 && $gcc_cv_objdump -s -j .init_array conftest \
24134 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24135 && $gcc_cv_objdump -s -j .fini_array conftest \
24136 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24137 gcc_cv_initfini_array=yes
24140 *-*-solaris2*:no)
24141 # When Solaris ld added constructor priority support, it was
24142 # decided to only handle .init_array.N/.fini_array.N since
24143 # there was no need for backwards compatibility with
24144 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24145 # sections with correct execution order resp. to
24146 # .init_array/.fini_array, while gld merges them into
24147 # .init_array/.fini_array.
24148 cat > conftest.s <<EOF
24149 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24150 .align 4
24151 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24152 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24153 .align 4
24154 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24155 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24156 .align 4
24157 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24158 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24159 .align 4
24160 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24161 .text
24162 .globl _start
24163 _start:
24165 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24166 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24167 && $gcc_cv_objdump -s -j .init_array conftest \
24168 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24169 && $gcc_cv_objdump -s -j .fini_array conftest \
24170 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24171 gcc_cv_initfini_array=yes
24174 esac
24175 rm -f conftest conftest.*
24177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24178 /* end confdefs.h. */
24180 #ifndef __ELF__
24181 # error Not an ELF OS
24182 #endif
24183 #include <stdlib.h>
24184 #if defined __GLIBC_PREREQ
24185 # if __GLIBC_PREREQ (2, 4)
24186 # else
24187 # error GLIBC 2.4 required
24188 # endif
24189 #else
24190 # if defined __sun__ && defined __svr4__
24191 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24192 # else
24193 # error The C library not known to support .init_array/.fini_array
24194 # endif
24195 #endif
24197 _ACEOF
24198 if ac_fn_cxx_try_cpp "$LINENO"; then :
24200 else
24201 gcc_cv_initfini_array=no
24203 rm -f conftest.err conftest.i conftest.$ac_ext;;
24204 esac
24205 else
24206 case "${target}" in
24207 aarch64*-linux-gnu*)
24208 # AArch64 postdates glibc support for .init_array/.fini_array,
24209 # so we don't need the preprocessor test above.
24210 gcc_cv_initfini_array=yes
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24215 $as_echo_n "checking cross compile... guessing... " >&6; }
24216 gcc_cv_initfini_array=no
24218 esac
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24222 $as_echo "$gcc_cv_initfini_array" >&6; }
24223 enable_initfini_array=$gcc_cv_initfini_array
24228 cat >>confdefs.h <<_ACEOF
24229 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24230 _ACEOF
24234 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24235 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24236 # these directives, even when they appear to accept them.
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24238 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24239 if ${gcc_cv_as_leb128+:} false; then :
24240 $as_echo_n "(cached) " >&6
24241 else
24242 gcc_cv_as_leb128=no
24243 if test x$gcc_cv_as != x; then
24244 $as_echo ' .data
24245 .uleb128 L2 - L1
24247 .uleb128 1280
24248 .sleb128 -1010
24250 .uleb128 0x8000000000000000
24251 ' > conftest.s
24252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24254 (eval $ac_try) 2>&5
24255 ac_status=$?
24256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24257 test $ac_status = 0; }; }
24258 then
24260 if test "x$gcc_cv_objdump" != x; then
24261 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24262 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24263 gcc_cv_as_leb128=yes
24265 elif test "x$gcc_cv_otool" != x; then
24266 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24267 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24268 gcc_cv_as_leb128=yes
24270 else
24271 # play safe, assume the assembler is broken.
24275 else
24276 echo "configure: failed program was" >&5
24277 cat conftest.s >&5
24279 rm -f conftest.o conftest.s
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24283 $as_echo "$gcc_cv_as_leb128" >&6; }
24284 if test $gcc_cv_as_leb128 = yes; then
24286 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24289 if test $gcc_cv_as_leb128 != yes; then
24291 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24295 # Determine if an .eh_frame section is read-only.
24296 gcc_fn_eh_frame_ro () {
24297 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24298 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24299 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24302 # Check if we have assembler support for unwind directives.
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24304 $as_echo_n "checking assembler for cfi directives... " >&6; }
24305 if ${gcc_cv_as_cfi_directive+:} false; then :
24306 $as_echo_n "(cached) " >&6
24307 else
24308 gcc_cv_as_cfi_directive=no
24309 if test x$gcc_cv_as != x; then
24310 $as_echo ' .text
24311 .cfi_startproc
24312 .cfi_offset 0, 0
24313 .cfi_same_value 1
24314 .cfi_def_cfa 1, 2
24315 .cfi_escape 1, 2, 3, 4, 5
24316 .cfi_endproc' > conftest.s
24317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24319 (eval $ac_try) 2>&5
24320 ac_status=$?
24321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24322 test $ac_status = 0; }; }
24323 then
24324 case "$target" in
24325 *-*-solaris*)
24326 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24327 # read-only and read-write sections, we need to make sure that the
24328 # assembler used emits read-write .eh_frame sections.
24329 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24330 gcc_cv_as_cfi_directive=yes
24331 elif test "x$gcc_cv_objdump" = x; then
24332 # No objdump, err on the side of caution.
24333 gcc_cv_as_cfi_directive=no
24334 else
24335 if test x$gas = xyes; then
24336 as_32_opt="--32"
24337 as_64_opt="--64"
24338 else
24339 as_32_opt="-m32"
24340 as_64_opt="-m64"
24342 case "$target" in
24343 sparc*-*-solaris2.*)
24344 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24345 if gcc_fn_eh_frame_ro $as_32_opt \
24346 || gcc_fn_eh_frame_ro $as_64_opt; then
24347 gcc_cv_as_cfi_directive=no
24348 else
24349 gcc_cv_as_cfi_directive=yes
24352 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24353 # On Solaris/x86, make sure that GCC and assembler agree on using
24354 # read-only .eh_frame sections for 64-bit.
24355 if gcc_fn_eh_frame_ro $as_32_opt; then
24356 gcc_cv_as_cfi_directive=no
24357 elif gcc_fn_eh_frame_ro $as_64_opt; then
24358 gcc_cv_as_cfi_directive=yes
24359 else
24360 gcc_cv_as_cfi_directive=no
24363 esac
24366 *-*-*)
24367 gcc_cv_as_cfi_directive=yes
24369 esac
24370 else
24371 echo "configure: failed program was" >&5
24372 cat conftest.s >&5
24374 rm -f conftest.o conftest.s
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24378 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24381 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24383 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24384 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24385 $as_echo_n "(cached) " >&6
24386 else
24387 gcc_cv_as_cfi_advance_working=no
24388 if test x$gcc_cv_as != x; then
24389 $as_echo ' .text
24390 .cfi_startproc
24391 .cfi_adjust_cfa_offset 64
24392 .skip 75040, 0
24393 .cfi_adjust_cfa_offset 128
24394 .cfi_endproc' > conftest.s
24395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24397 (eval $ac_try) 2>&5
24398 ac_status=$?
24399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24400 test $ac_status = 0; }; }
24401 then
24403 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24404 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24405 gcc_cv_as_cfi_advance_working=yes
24408 else
24409 echo "configure: failed program was" >&5
24410 cat conftest.s >&5
24412 rm -f conftest.o conftest.s
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24416 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24419 else
24420 # no objdump, err on the side of caution
24421 gcc_cv_as_cfi_advance_working=no
24425 cat >>confdefs.h <<_ACEOF
24426 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24427 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24428 _ACEOF
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24433 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24434 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24435 $as_echo_n "(cached) " >&6
24436 else
24437 gcc_cv_as_cfi_personality_directive=no
24438 if test x$gcc_cv_as != x; then
24439 $as_echo ' .text
24440 .cfi_startproc
24441 .cfi_personality 0, symbol
24442 .cfi_endproc' > conftest.s
24443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24445 (eval $ac_try) 2>&5
24446 ac_status=$?
24447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24448 test $ac_status = 0; }; }
24449 then
24450 gcc_cv_as_cfi_personality_directive=yes
24451 else
24452 echo "configure: failed program was" >&5
24453 cat conftest.s >&5
24455 rm -f conftest.o conftest.s
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24459 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24463 cat >>confdefs.h <<_ACEOF
24464 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24465 _ACEOF
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24469 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24470 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24471 $as_echo_n "(cached) " >&6
24472 else
24473 gcc_cv_as_cfi_sections_directive=no
24474 if test x$gcc_cv_as != x; then
24475 $as_echo ' .text
24476 .cfi_sections .debug_frame, .eh_frame
24477 .cfi_startproc
24478 .cfi_endproc' > conftest.s
24479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24481 (eval $ac_try) 2>&5
24482 ac_status=$?
24483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24484 test $ac_status = 0; }; }
24485 then
24486 case $target_os in
24487 win32 | pe | cygwin* | mingw32*)
24488 # Need to check that we generated the correct relocation for the
24489 # .debug_frame section. This was fixed for binutils 2.21.
24490 gcc_cv_as_cfi_sections_directive=no
24491 if test "x$gcc_cv_objdump" != x; then
24492 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24493 grep secrel > /dev/null; then
24494 gcc_cv_as_cfi_sections_directive=yes
24499 gcc_cv_as_cfi_sections_directive=yes
24501 esac
24502 else
24503 echo "configure: failed program was" >&5
24504 cat conftest.s >&5
24506 rm -f conftest.o conftest.s
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24510 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24515 cat >>confdefs.h <<_ACEOF
24516 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24517 _ACEOF
24520 # GAS versions up to and including 2.11.0 may mis-optimize
24521 # .eh_frame data.
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24523 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24524 if ${gcc_cv_as_eh_frame+:} false; then :
24525 $as_echo_n "(cached) " >&6
24526 else
24527 gcc_cv_as_eh_frame=no
24528 if test x$gcc_cv_as != x; then
24529 $as_echo ' .text
24530 .LFB1:
24531 .4byte 0
24532 .L1:
24533 .4byte 0
24534 .LFE1:
24535 .section .eh_frame,"aw",@progbits
24536 __FRAME_BEGIN__:
24537 .4byte .LECIE1-.LSCIE1
24538 .LSCIE1:
24539 .4byte 0x0
24540 .byte 0x1
24541 .ascii "z\0"
24542 .byte 0x1
24543 .byte 0x78
24544 .byte 0x1a
24545 .byte 0x0
24546 .byte 0x4
24547 .4byte 1
24548 .p2align 1
24549 .LECIE1:
24550 .LSFDE1:
24551 .4byte .LEFDE1-.LASFDE1
24552 .LASFDE1:
24553 .4byte .LASFDE1-__FRAME_BEGIN__
24554 .4byte .LFB1
24555 .4byte .LFE1-.LFB1
24556 .byte 0x4
24557 .4byte .LFE1-.LFB1
24558 .byte 0x4
24559 .4byte .L1-.LFB1
24560 .LEFDE1:' > conftest.s
24561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24563 (eval $ac_try) 2>&5
24564 ac_status=$?
24565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24566 test $ac_status = 0; }; }
24567 then
24568 cat > conftest.lit <<EOF
24569 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24570 0010 01000000 12000000 18000000 00000000 ................
24571 0020 08000000 04080000 0044 .........D
24573 cat > conftest.big <<EOF
24574 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24575 0010 00000001 00000012 00000018 00000000 ................
24576 0020 00000008 04000000 0844 .........D
24578 # If the assembler didn't choke, and we can objdump,
24579 # and we got the correct data, then succeed.
24580 # The text in the here-document typically retains its unix-style line
24581 # endings, while the output of objdump will use host line endings.
24582 # Therefore, use diff -b for the comparisons.
24583 if test x$gcc_cv_objdump != x \
24584 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24585 | tail -3 > conftest.got \
24586 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24587 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24588 then
24589 gcc_cv_as_eh_frame=yes
24590 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24592 (eval $ac_try) 2>&5
24593 ac_status=$?
24594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24595 test $ac_status = 0; }; }; then
24596 gcc_cv_as_eh_frame=buggy
24597 else
24598 # Uh oh, what do we do now?
24599 gcc_cv_as_eh_frame=no
24601 else
24602 echo "configure: failed program was" >&5
24603 cat conftest.s >&5
24605 rm -f conftest.o conftest.s
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24609 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24613 if test $gcc_cv_as_eh_frame = buggy; then
24615 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24619 # Test if the assembler supports the section flag 'e' or #exclude for
24620 # specifying an excluded section.
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24622 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24623 if ${gcc_cv_as_section_exclude_e+:} false; then :
24624 $as_echo_n "(cached) " >&6
24625 else
24626 gcc_cv_as_section_exclude_e=no
24627 if test x$gcc_cv_as != x; then
24628 $as_echo '.section foo1,"e"
24629 .byte 0,0,0,0' > conftest.s
24630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24632 (eval $ac_try) 2>&5
24633 ac_status=$?
24634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24635 test $ac_status = 0; }; }
24636 then
24637 gcc_cv_as_section_exclude_e=yes
24638 else
24639 echo "configure: failed program was" >&5
24640 cat conftest.s >&5
24642 rm -f conftest.o conftest.s
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24646 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24649 if test $gcc_cv_as_section_exclude_e = no; then
24650 case "${target}" in
24651 # Solaris as uses #exclude instead.
24652 *-*-solaris2*)
24653 case "${target}" in
24654 sparc*-*-solaris2*)
24655 conftest_s='.section "foo1", #exclude'
24657 i?86-*-solaris2* | x86_64-*-solaris2*)
24658 conftest_s='.section foo1, #exclude'
24660 esac
24662 esac
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24664 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24665 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24666 $as_echo_n "(cached) " >&6
24667 else
24668 gcc_cv_as_section_exclude_hash=no
24669 if test x$gcc_cv_as != x; then
24670 $as_echo "$conftest_s
24671 .byte 0,0,0,0" > conftest.s
24672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24674 (eval $ac_try) 2>&5
24675 ac_status=$?
24676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24677 test $ac_status = 0; }; }
24678 then
24679 gcc_cv_as_section_exclude_hash=yes
24680 else
24681 echo "configure: failed program was" >&5
24682 cat conftest.s >&5
24684 rm -f conftest.o conftest.s
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24688 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24693 cat >>confdefs.h <<_ACEOF
24694 #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`
24695 _ACEOF
24698 # Test if the assembler supports the section flag 'R' for specifying
24699 # section with SHF_GNU_RETAIN.
24700 case "${target}" in
24701 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24702 # assembler supports the section flag 'R', it doesn't mean that
24703 # Solairs ld supports it.
24704 *-*-solaris2*)
24705 gcc_cv_as_shf_gnu_retain=no
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24709 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24710 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24711 $as_echo_n "(cached) " >&6
24712 else
24713 gcc_cv_as_shf_gnu_retain=no
24714 if test x$gcc_cv_as != x; then
24715 $as_echo '.section .foo,"awR",%progbits
24716 .byte 0' > conftest.s
24717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24719 (eval $ac_try) 2>&5
24720 ac_status=$?
24721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24722 test $ac_status = 0; }; }
24723 then
24724 gcc_cv_as_shf_gnu_retain=yes
24725 else
24726 echo "configure: failed program was" >&5
24727 cat conftest.s >&5
24729 rm -f conftest.o conftest.s
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24733 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24737 esac
24739 cat >>confdefs.h <<_ACEOF
24740 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24741 _ACEOF
24744 # Test if the assembler supports the section flag 'o' for specifying
24745 # section with link-order.
24746 case "${target}" in
24747 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24748 # assembler supports the section flag 'o', it doesn't mean that
24749 # Solairs ld supports it.
24750 *-*-solaris2*)
24751 gcc_cv_as_section_link_order=no
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24755 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
24756 if ${gcc_cv_as_section_link_order+:} false; then :
24757 $as_echo_n "(cached) " >&6
24758 else
24759 gcc_cv_as_section_link_order=no
24760 if test x$gcc_cv_as != x; then
24761 $as_echo '.section .foo,"a"
24762 .byte 0
24763 .section __patchable_function_entries,"awo",%progbits,.foo
24764 .byte 0' > conftest.s
24765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24767 (eval $ac_try) 2>&5
24768 ac_status=$?
24769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24770 test $ac_status = 0; }; }
24771 then
24772 gcc_cv_as_section_link_order=yes
24773 else
24774 echo "configure: failed program was" >&5
24775 cat conftest.s >&5
24777 rm -f conftest.o conftest.s
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
24781 $as_echo "$gcc_cv_as_section_link_order" >&6; }
24785 esac
24787 cat >>confdefs.h <<_ACEOF
24788 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
24789 _ACEOF
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24793 $as_echo_n "checking assembler for section merging support... " >&6; }
24794 if ${gcc_cv_as_shf_merge+:} false; then :
24795 $as_echo_n "(cached) " >&6
24796 else
24797 gcc_cv_as_shf_merge=no
24798 if test x$gcc_cv_as != x; then
24799 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24802 (eval $ac_try) 2>&5
24803 ac_status=$?
24804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24805 test $ac_status = 0; }; }
24806 then
24807 gcc_cv_as_shf_merge=yes
24808 else
24809 echo "configure: failed program was" >&5
24810 cat conftest.s >&5
24812 rm -f conftest.o conftest.s
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24816 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24819 if test $gcc_cv_as_shf_merge = no; then
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24821 $as_echo_n "checking assembler for section merging support... " >&6; }
24822 if ${gcc_cv_as_shf_merge+:} false; then :
24823 $as_echo_n "(cached) " >&6
24824 else
24825 gcc_cv_as_shf_merge=no
24826 if test x$gcc_cv_as != x; then
24827 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24830 (eval $ac_try) 2>&5
24831 ac_status=$?
24832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24833 test $ac_status = 0; }; }
24834 then
24835 gcc_cv_as_shf_merge=yes
24836 else
24837 echo "configure: failed program was" >&5
24838 cat conftest.s >&5
24840 rm -f conftest.o conftest.s
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24844 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24849 cat >>confdefs.h <<_ACEOF
24850 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24851 _ACEOF
24854 gcc_cv_ld_aligned_shf_merge=yes
24855 case "$target" in
24856 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24857 # alignment > 1.
24858 sparc*-*-solaris2.11*)
24859 if test x"$gnu_ld" = xno \
24860 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24861 gcc_cv_ld_aligned_shf_merge=no
24864 esac
24866 cat >>confdefs.h <<_ACEOF
24867 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24868 _ACEOF
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24872 $as_echo_n "checking assembler for stabs directive... " >&6; }
24873 if ${gcc_cv_as_stabs_directive+:} false; then :
24874 $as_echo_n "(cached) " >&6
24875 else
24876 gcc_cv_as_stabs_directive=no
24877 if test x$gcc_cv_as != x; then
24878 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24881 (eval $ac_try) 2>&5
24882 ac_status=$?
24883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24884 test $ac_status = 0; }; }
24885 then
24886 gcc_cv_as_stabs_directive=yes
24887 else
24888 echo "configure: failed program was" >&5
24889 cat conftest.s >&5
24891 rm -f conftest.o conftest.s
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24895 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24896 if test $gcc_cv_as_stabs_directive = yes; then
24898 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24904 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24905 if ${gcc_cv_as_comdat_group+:} false; then :
24906 $as_echo_n "(cached) " >&6
24907 else
24908 gcc_cv_as_comdat_group=no
24909 if test x$gcc_cv_as != x; then
24910 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24917 then
24918 gcc_cv_as_comdat_group=yes
24919 else
24920 echo "configure: failed program was" >&5
24921 cat conftest.s >&5
24923 rm -f conftest.o conftest.s
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24927 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24930 if test $gcc_cv_as_comdat_group = yes; then
24931 gcc_cv_as_comdat_group_percent=no
24932 gcc_cv_as_comdat_group_group=no
24933 else
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24935 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24936 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24937 $as_echo_n "(cached) " >&6
24938 else
24939 gcc_cv_as_comdat_group_percent=no
24940 if test x$gcc_cv_as != x; then
24941 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947 test $ac_status = 0; }; }
24948 then
24949 gcc_cv_as_comdat_group_percent=yes
24950 else
24951 echo "configure: failed program was" >&5
24952 cat conftest.s >&5
24954 rm -f conftest.o conftest.s
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24958 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24961 if test $gcc_cv_as_comdat_group_percent = yes; then
24962 gcc_cv_as_comdat_group_group=no
24963 else
24964 case "${target}" in
24965 # Sun as uses a completely different syntax.
24966 *-*-solaris2*)
24967 case "${target}" in
24968 sparc*-*-solaris2*)
24969 conftest_s='
24970 .group foo,".text%foo",#comdat
24971 .section ".text%foo", #alloc,#execinstr,#progbits
24972 .globl foo
24973 foo:
24976 i?86-*-solaris2* | x86_64-*-solaris2*)
24977 conftest_s='
24978 .group foo,.text%foo,#comdat
24979 .section .text%foo, "ax", @progbits
24980 .globl foo
24981 foo:
24984 esac
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24986 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24987 if ${gcc_cv_as_comdat_group_group+:} false; then :
24988 $as_echo_n "(cached) " >&6
24989 else
24990 gcc_cv_as_comdat_group_group=no
24991 if test x$gcc_cv_as != x; then
24992 $as_echo "$conftest_s" > conftest.s
24993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24995 (eval $ac_try) 2>&5
24996 ac_status=$?
24997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24998 test $ac_status = 0; }; }
24999 then
25000 gcc_cv_as_comdat_group_group=yes
25001 else
25002 echo "configure: failed program was" >&5
25003 cat conftest.s >&5
25005 rm -f conftest.o conftest.s
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25009 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25013 esac
25014 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25015 gcc_cv_as_comdat_group_group=no
25019 if test x"$ld_is_gold" = xyes; then
25020 comdat_group=yes
25021 elif test $in_tree_ld = yes ; then
25022 comdat_group=no
25023 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 \
25024 && test $in_tree_ld_is_elf = yes; then
25025 comdat_group=yes
25027 elif echo "$ld_ver" | grep GNU > /dev/null; then
25028 comdat_group=yes
25029 if test 0"$ld_date" -lt 20050308; then
25030 if test -n "$ld_date"; then
25031 # If there was date string, but was earlier than 2005-03-08, fail
25032 comdat_group=no
25033 elif test "$ld_vers_major" -lt 2; then
25034 comdat_group=no
25035 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25036 comdat_group=no
25039 else
25040 case "${target}" in
25041 *-*-solaris2.1[1-9]*)
25042 comdat_group=no
25043 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25044 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25045 # version 1.688.
25047 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25048 # least ld version 1.2267.
25049 if test "$ld_vers_major" -gt 1; then
25050 comdat_group=yes
25051 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25052 comdat_group=yes
25053 elif test "$ld_vers_minor" -ge 2267; then
25054 comdat_group=yes
25058 # Assume linkers other than GNU ld don't support COMDAT group.
25059 comdat_group=no
25061 esac
25063 # Allow overriding the automatic COMDAT group tests above.
25064 # Check whether --enable-comdat was given.
25065 if test "${enable_comdat+set}" = set; then :
25066 enableval=$enable_comdat; comdat_group="$enable_comdat"
25069 if test $comdat_group = no; then
25070 gcc_cv_as_comdat_group=no
25071 gcc_cv_as_comdat_group_percent=no
25072 gcc_cv_as_comdat_group_group=no
25075 cat >>confdefs.h <<_ACEOF
25076 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25077 || test $gcc_cv_as_comdat_group_percent = yes \
25078 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25079 _ACEOF
25082 # Restrict this test to Solaris/x86: other targets define this statically.
25083 case "${target}" in
25084 i?86-*-solaris2* | x86_64-*-solaris2*)
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25086 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25087 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25088 hidden_linkonce=yes
25089 else
25090 case "${target}" in
25091 # Full support for hidden thunks in linkonce sections only appeared in
25092 # Solaris 11/OpenSolaris.
25093 *-*-solaris2.1[1-9]*)
25094 hidden_linkonce=yes
25097 hidden_linkonce=no
25099 esac
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25102 $as_echo "$hidden_linkonce" >&6; }
25104 cat >>confdefs.h <<_ACEOF
25105 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25106 _ACEOF
25109 esac
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25112 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25113 if ${gcc_cv_as_is_stmt+:} false; then :
25114 $as_echo_n "(cached) " >&6
25115 else
25116 gcc_cv_as_is_stmt=no
25117 if test x$gcc_cv_as != x; then
25118 $as_echo ' .text
25119 .file 1 "conf.c"
25120 .loc 1 1 0 is_stmt 1' > conftest.s
25121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25126 test $ac_status = 0; }; }
25127 then
25128 gcc_cv_as_is_stmt=yes
25129 else
25130 echo "configure: failed program was" >&5
25131 cat conftest.s >&5
25133 rm -f conftest.o conftest.s
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25137 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25138 if test $gcc_cv_as_is_stmt = yes; then
25140 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25146 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25147 if ${gcc_cv_as_discriminator+:} false; then :
25148 $as_echo_n "(cached) " >&6
25149 else
25150 gcc_cv_as_discriminator=no
25151 if test x$gcc_cv_as != x; then
25152 $as_echo ' .text
25153 .file 1 "conf.c"
25154 .loc 1 1 0 discriminator 1' > conftest.s
25155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25157 (eval $ac_try) 2>&5
25158 ac_status=$?
25159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25160 test $ac_status = 0; }; }
25161 then
25162 gcc_cv_as_discriminator=yes
25163 else
25164 echo "configure: failed program was" >&5
25165 cat conftest.s >&5
25167 rm -f conftest.o conftest.s
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25171 $as_echo "$gcc_cv_as_discriminator" >&6; }
25172 if test $gcc_cv_as_discriminator = yes; then
25174 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25179 # Catch the newlib flag of the same name so we can gate GCC features on it.
25180 # Check whether --enable-newlib-nano-formatted-io was given.
25181 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25182 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25183 yes|no)
25186 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25188 esac
25192 # Thread-local storage - the check is heavily parameterized.
25193 conftest_s=
25194 tls_as_opt=
25195 case "$target" in
25196 alpha*-*-*)
25197 conftest_s='
25198 .section ".tdata","awT",@progbits
25199 foo: .long 25
25200 .text
25201 ldq $27,__tls_get_addr($29) !literal!1
25202 lda $16,foo($29) !tlsgd!1
25203 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25204 ldq $27,__tls_get_addr($29) !literal!2
25205 lda $16,foo($29) !tlsldm!2
25206 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25207 ldq $1,foo($29) !gotdtprel
25208 ldah $2,foo($29) !dtprelhi
25209 lda $3,foo($2) !dtprello
25210 lda $4,foo($29) !dtprel
25211 ldq $1,foo($29) !gottprel
25212 ldah $2,foo($29) !tprelhi
25213 lda $3,foo($2) !tprello
25214 lda $4,foo($29) !tprel'
25215 tls_as_opt=--fatal-warnings
25217 arc*-*-*)
25218 conftest_s='
25219 add_s r0,r0, @foo@tpoff'
25221 cris-*-*|crisv32-*-*)
25222 conftest_s='
25223 .section ".tdata","awT",@progbits
25224 x: .long 25
25225 .text
25226 move.d x:IE,$r10
25227 nop'
25228 tls_as_opt=--fatal-warnings
25230 frv*-*-*)
25231 conftest_s='
25232 .section ".tdata","awT",@progbits
25233 x: .long 25
25234 .text
25235 call #gettlsoff(x)'
25237 hppa*-*-linux*)
25238 conftest_s='
25239 t1: .reg %r20
25240 t2: .reg %r21
25241 gp: .reg %r19
25242 .section ".tdata","awT",@progbits
25243 foo: .long 25
25244 .text
25245 .align 4
25246 addil LT%foo-$tls_gdidx$,gp
25247 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25248 b __tls_get_addr
25250 addil LT%foo-$tls_ldidx$,gp
25251 b __tls_get_addr
25252 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25253 addil LR%foo-$tls_dtpoff$,%ret0
25254 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25255 mfctl %cr27,%t1
25256 addil LT%foo-$tls_ieoff$,gp
25257 ldw RT%foo-$tls_ieoff$(%r1),%t2
25258 add %t1,%t2,%t3
25259 mfctl %cr27,%t1
25260 addil LR%foo-$tls_leoff$,%t1
25261 ldo RR%foo-$tls_leoff$(%r1),%t2'
25262 tls_as_opt=--fatal-warnings
25264 arm*-*-*)
25265 conftest_s='
25266 .section ".tdata","awT",%progbits
25267 foo: .long 25
25268 .text
25269 .word foo(gottpoff)
25270 .word foo(tpoff)
25271 .word foo(tlsgd)
25272 .word foo(tlsldm)
25273 .word foo(tlsldo)'
25275 i[34567]86-*-* | x86_64-*-*)
25276 case "$target" in
25277 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25278 on_solaris=yes
25281 on_solaris=no
25283 esac
25284 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25285 conftest_s='
25286 .section .tdata,"awt",@progbits'
25287 tls_section_flag=t
25289 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25291 else
25292 conftest_s='
25293 .section ".tdata","awT",@progbits'
25294 tls_section_flag=T
25295 tls_as_opt="--fatal-warnings"
25297 case "$target" in
25298 i[34567]86-*-*)
25299 if test x$on_solaris = xyes; then
25300 case $gas_flag in
25301 yes) tls_as_opt="$tls_as_opt --32" ;;
25302 esac
25304 conftest_s="$conftest_s
25305 foo: .long 25
25306 .text
25307 movl %gs:0, %eax
25308 leal foo@tlsgd(,%ebx,1), %eax
25309 leal foo@tlsldm(%ebx), %eax
25310 leal foo@dtpoff(%eax), %edx
25311 movl foo@gottpoff(%ebx), %eax
25312 subl foo@gottpoff(%ebx), %eax
25313 addl foo@gotntpoff(%ebx), %eax
25314 movl foo@indntpoff, %eax
25315 movl \$foo@tpoff, %eax
25316 subl \$foo@tpoff, %eax
25317 leal foo@ntpoff(%ecx), %eax"
25319 x86_64-*-*)
25320 if test x$on_solaris = xyes; then
25321 case $gas_flag in
25322 yes) tls_as_opt="$tls_as_opt --64" ;;
25323 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25324 esac
25326 conftest_s="$conftest_s
25327 foo: .long 25
25328 .text
25329 movq %fs:0, %rax
25330 leaq foo@tlsgd(%rip), %rdi
25331 leaq foo@tlsld(%rip), %rdi
25332 leaq foo@dtpoff(%rax), %rdx
25333 movq foo@gottpoff(%rip), %rax
25334 movq \$foo@tpoff, %rax"
25336 esac
25338 ia64-*-*)
25339 conftest_s='
25340 .section ".tdata","awT",@progbits
25341 foo: data8 25
25342 .text
25343 addl r16 = @ltoff(@dtpmod(foo#)), gp
25344 addl r17 = @ltoff(@dtprel(foo#)), gp
25345 addl r18 = @ltoff(@tprel(foo#)), gp
25346 addl r19 = @dtprel(foo#), gp
25347 adds r21 = @dtprel(foo#), r13
25348 movl r23 = @dtprel(foo#)
25349 addl r20 = @tprel(foo#), gp
25350 adds r22 = @tprel(foo#), r13
25351 movl r24 = @tprel(foo#)'
25352 tls_as_opt=--fatal-warnings
25354 microblaze*-*-*)
25355 conftest_s='
25356 .section .tdata,"awT",@progbits
25358 .word 2
25359 .text
25360 addik r5,r20,x@TLSGD
25361 addik r5,r20,x@TLSLDM'
25362 tls_as_opt='--fatal-warnings'
25364 mips*-*-*)
25365 conftest_s='
25366 .section .tdata,"awT",@progbits
25368 .word 2
25369 .text
25370 addiu $4, $28, %tlsgd(x)
25371 addiu $4, $28, %tlsldm(x)
25372 lui $4, %dtprel_hi(x)
25373 addiu $4, $4, %dtprel_lo(x)
25374 lw $4, %gottprel(x)($28)
25375 lui $4, %tprel_hi(x)
25376 addiu $4, $4, %tprel_lo(x)'
25377 tls_as_opt='-32 --fatal-warnings'
25379 m68k-*-*)
25380 conftest_s='
25381 .section .tdata,"awT",@progbits
25383 .word 2
25384 .text
25385 foo:
25386 move.l x@TLSGD(%a5),%a0
25387 move.l x@TLSLDM(%a5),%a0
25388 move.l x@TLSLDO(%a5),%a0
25389 move.l x@TLSIE(%a5),%a0
25390 move.l x@TLSLE(%a5),%a0'
25391 tls_as_opt='--fatal-warnings'
25393 nios2-*-*)
25394 conftest_s='
25395 .section ".tdata","awT",@progbits'
25396 tls_as_opt="--fatal-warnings"
25398 aarch64*-*-*)
25399 conftest_s='
25400 .section ".tdata","awT",%progbits
25401 foo: .long 25
25402 .text
25403 adrp x0, :tlsgd:x
25404 add x0, x0, #:tlsgd_lo12:x
25405 bl __tls_get_addr
25406 nop'
25407 tls_as_opt='--fatal-warnings'
25409 or1k*-*-*)
25410 conftest_s='
25411 .section ".tdata","awT",@progbits
25412 foo: .long 25
25413 .text
25414 l.movhi r3, tpoffha(foo)
25415 l.add r3, r3, r10
25416 l.lwz r4, tpofflo(foo)(r3)'
25417 tls_as_opt=--fatal-warnings
25419 powerpc-ibm-aix*)
25420 conftest_s='
25421 .extern __get_tpointer
25422 .toc
25423 LC..1:
25424 .tc a[TC],a[TL]@le
25425 .csect .text[PR]
25426 .tlstest:
25427 lwz 9,LC..1(2)
25428 bla __get_tpointer
25429 lwzx 3,9,3
25430 .globl a
25431 .csect a[TL],4
25433 .space 4'
25435 powerpc64*-*-*)
25436 conftest_s='
25437 .section ".tdata","awT",@progbits
25438 .align 3
25439 ld0: .space 8
25440 ld1: .space 8
25441 x1: .space 8
25442 x2: .space 8
25443 x3: .space 8
25444 .text
25445 addi 3,2,ld0@got@tlsgd
25446 bl .__tls_get_addr
25448 addi 3,2,ld1@toc
25449 bl .__tls_get_addr
25451 addi 3,2,x1@got@tlsld
25452 bl .__tls_get_addr
25454 addi 9,3,x1@dtprel
25455 bl .__tls_get_addr
25457 addis 9,3,x2@dtprel@ha
25458 addi 9,9,x2@dtprel@l
25459 bl .__tls_get_addr
25461 ld 9,x3@got@dtprel(2)
25462 add 9,9,3
25463 bl .__tls_get_addr
25464 nop'
25465 tls_as_opt="-a64 --fatal-warnings"
25467 powerpc*-*-*)
25468 conftest_s='
25469 .section ".tdata","awT",@progbits
25470 .align 2
25471 ld0: .space 4
25472 ld1: .space 4
25473 x1: .space 4
25474 x2: .space 4
25475 x3: .space 4
25476 .text
25477 addi 3,31,ld0@got@tlsgd
25478 bl __tls_get_addr
25479 addi 3,31,x1@got@tlsld
25480 bl __tls_get_addr
25481 addi 9,3,x1@dtprel
25482 addis 9,3,x2@dtprel@ha
25483 addi 9,9,x2@dtprel@l
25484 lwz 9,x3@got@tprel(31)
25485 add 9,9,x@tls
25486 addi 9,2,x1@tprel
25487 addis 9,2,x2@tprel@ha
25488 addi 9,9,x2@tprel@l'
25489 tls_as_opt="-a32 --fatal-warnings"
25491 riscv*-*-*)
25492 conftest_s='
25493 .section .tdata,"awT",@progbits
25494 x: .word 2
25495 .text
25496 la.tls.gd a0,x
25497 call __tls_get_addr'
25498 tls_as_opt='--fatal-warnings'
25500 s390-*-*)
25501 conftest_s='
25502 .section ".tdata","awT",@progbits
25503 foo: .long 25
25504 .text
25505 .long foo@TLSGD
25506 .long foo@TLSLDM
25507 .long foo@DTPOFF
25508 .long foo@NTPOFF
25509 .long foo@GOTNTPOFF
25510 .long foo@INDNTPOFF
25511 l %r1,foo@GOTNTPOFF(%r12)
25512 l %r1,0(%r1):tls_load:foo
25513 bas %r14,0(%r1,%r13):tls_gdcall:foo
25514 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25515 tls_as_opt="-m31 --fatal-warnings"
25517 s390x-*-*)
25518 conftest_s='
25519 .section ".tdata","awT",@progbits
25520 foo: .long 25
25521 .text
25522 .quad foo@TLSGD
25523 .quad foo@TLSLDM
25524 .quad foo@DTPOFF
25525 .quad foo@NTPOFF
25526 .quad foo@GOTNTPOFF
25527 lg %r1,foo@GOTNTPOFF(%r12)
25528 larl %r1,foo@INDNTPOFF
25529 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25530 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25531 tls_as_opt="-m64 -Aesame --fatal-warnings"
25533 sh-*-* | sh[123456789lbe]*-*-*)
25534 conftest_s='
25535 .section ".tdata","awT",@progbits
25536 foo: .long 25
25537 .text
25538 .long foo@TLSGD
25539 .long foo@TLSLDM
25540 .long foo@DTPOFF
25541 .long foo@GOTTPOFF
25542 .long foo@TPOFF'
25543 tls_as_opt=--fatal-warnings
25545 sparc*-*-*)
25546 case "$target" in
25547 sparc*-sun-solaris2.*)
25548 on_solaris=yes
25551 on_solaris=no
25553 esac
25554 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25555 conftest_s='
25556 .section ".tdata",#alloc,#write,#tls'
25557 else
25558 conftest_s='
25559 .section ".tdata","awT",@progbits'
25560 tls_as_opt="-32 --fatal-warnings"
25562 conftest_s="$conftest_s
25563 foo: .long 25
25564 .text
25565 sethi %tgd_hi22(foo), %o0
25566 add %o0, %tgd_lo10(foo), %o1
25567 add %l7, %o1, %o0, %tgd_add(foo)
25568 call __tls_get_addr, %tgd_call(foo)
25569 sethi %tldm_hi22(foo), %l1
25570 add %l1, %tldm_lo10(foo), %l2
25571 add %l7, %l2, %o0, %tldm_add(foo)
25572 call __tls_get_addr, %tldm_call(foo)
25573 sethi %tldo_hix22(foo), %l3
25574 xor %l3, %tldo_lox10(foo), %l4
25575 add %o0, %l4, %l5, %tldo_add(foo)
25576 sethi %tie_hi22(foo), %o3
25577 add %o3, %tie_lo10(foo), %o3
25578 ld [%l7 + %o3], %o2, %tie_ld(foo)
25579 add %g7, %o2, %o4, %tie_add(foo)
25580 sethi %tle_hix22(foo), %l1
25581 xor %l1, %tle_lox10(foo), %o5
25582 ld [%g7 + %o5], %o1"
25584 tilepro*-*-*)
25585 conftest_s='
25586 .section ".tdata","awT",@progbits
25587 foo: .long 25
25588 .text
25589 addli r0, zero, tls_gd(foo)
25590 auli r0, zero, tls_gd_ha16(foo)
25591 addli r0, r0, tls_gd_lo16(foo)
25592 jal __tls_get_addr
25593 addli r0, zero, tls_ie(foo)
25594 auli r0, r0, tls_ie_ha16(foo)
25595 addli r0, r0, tls_ie_lo16(foo)'
25596 tls_as_opt="--fatal-warnings"
25598 tilegx*-*-*)
25599 conftest_s='
25600 .section ".tdata","awT",@progbits
25601 foo: .long 25
25602 .text
25603 shl16insli r0, zero, hw0_last_tls_gd(foo)
25604 shl16insli r0, zero, hw1_last_tls_gd(foo)
25605 shl16insli r0, r0, hw0_tls_gd(foo)
25606 jal __tls_get_addr
25607 shl16insli r0, zero, hw1_last_tls_ie(foo)
25608 shl16insli r0, r0, hw0_tls_ie(foo)'
25609 tls_as_opt="--fatal-warnings"
25611 xtensa*-*-*)
25612 conftest_s='
25613 .section ".tdata","awT",@progbits
25614 foo: .long 25
25615 .text
25616 movi a8, foo@TLSFUNC
25617 movi a10, foo@TLSARG
25618 callx8.tls a8, foo@TLSCALL'
25620 esac
25621 set_have_as_tls=no
25622 if test "x$enable_tls" = xno ; then
25623 : # TLS explicitly disabled.
25624 elif test "x$enable_tls" = xyes ; then
25625 set_have_as_tls=yes # TLS explicitly enabled.
25626 elif test -z "$conftest_s"; then
25627 : # If we don't have a check, assume no support.
25628 else
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25630 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25631 if ${gcc_cv_as_tls+:} false; then :
25632 $as_echo_n "(cached) " >&6
25633 else
25634 gcc_cv_as_tls=no
25635 if test x$gcc_cv_as != x; then
25636 $as_echo "$conftest_s" > conftest.s
25637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25639 (eval $ac_try) 2>&5
25640 ac_status=$?
25641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25642 test $ac_status = 0; }; }
25643 then
25644 gcc_cv_as_tls=yes
25645 else
25646 echo "configure: failed program was" >&5
25647 cat conftest.s >&5
25649 rm -f conftest.o conftest.s
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25653 $as_echo "$gcc_cv_as_tls" >&6; }
25654 if test $gcc_cv_as_tls = yes; then
25655 set_have_as_tls=yes
25659 if test $set_have_as_tls = yes ; then
25661 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25665 # Target-specific assembler checks.
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25668 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25669 gcc_cv_ld_static_dynamic=no
25670 gcc_cv_ld_static_option='-Bstatic'
25671 gcc_cv_ld_dynamic_option='-Bdynamic'
25672 if test $in_tree_ld = yes ; then
25673 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
25674 gcc_cv_ld_static_dynamic=yes
25676 elif test x$gcc_cv_ld != x; then
25677 # Check if linker supports -Bstatic/-Bdynamic option
25678 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25679 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25680 gcc_cv_ld_static_dynamic=yes
25681 else
25682 case "$target" in
25683 # AIX ld uses -b flags
25684 *-*-aix4.[23]* | *-*-aix[5-9]*)
25685 gcc_cv_ld_static_dynamic=yes
25686 gcc_cv_ld_static_option="-bstatic"
25687 gcc_cv_ld_dynamic_option="-bdynamic"
25689 # HP-UX ld uses -a flags to select between shared and archive.
25690 *-*-hpux*)
25691 if test x"$gnu_ld" = xno; then
25692 gcc_cv_ld_static_dynamic=yes
25693 gcc_cv_ld_static_option="-aarchive_shared"
25694 gcc_cv_ld_dynamic_option="-adefault"
25697 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25698 *-*-solaris2*)
25699 gcc_cv_ld_static_dynamic=yes
25701 esac
25704 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25706 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25709 cat >>confdefs.h <<_ACEOF
25710 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25711 _ACEOF
25714 cat >>confdefs.h <<_ACEOF
25715 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25716 _ACEOF
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25720 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25723 $as_echo_n "checking linker --version-script option... " >&6; }
25724 gcc_cv_ld_version_script=no
25725 ld_version_script_option=''
25726 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25727 gcc_cv_ld_version_script=yes
25728 ld_version_script_option='--version-script'
25729 elif test x$gcc_cv_ld != x; then
25730 case "$target" in
25731 # Solaris 2 ld always supports -M. It also supports a subset of
25732 # --version-script since Solaris 11.4, but requires
25733 # -z gnu-version-script-compat to activate.
25734 *-*-solaris2*)
25735 gcc_cv_ld_version_script=yes
25736 ld_version_script_option='-M'
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_version_script" >&5
25742 $as_echo "$gcc_cv_ld_version_script" >&6; }
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25746 $as_echo_n "checking linker soname option... " >&6; }
25747 gcc_cv_ld_soname=no
25748 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25749 gcc_cv_ld_soname=yes
25750 ld_soname_option='-soname'
25751 elif test x$gcc_cv_ld != x; then
25752 case "$target" in
25753 *-*-darwin*)
25754 gcc_cv_ld_soname=yes
25755 ld_soname_option='-install_name'
25757 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25758 # ld compatiblity since some Solaris 10 update.
25759 *-*-solaris2*)
25760 gcc_cv_ld_soname=yes
25761 ld_soname_option='-h'
25763 esac
25765 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25767 $as_echo "$gcc_cv_ld_soname" >&6; }
25770 if test x"$demangler_in_ld" = xyes; then
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25772 $as_echo_n "checking linker --demangle support... " >&6; }
25773 gcc_cv_ld_demangle=no
25774 if test $in_tree_ld = yes; then
25775 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 \
25776 gcc_cv_ld_demangle=yes
25778 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25779 # Check if the GNU linker supports --demangle option
25780 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25781 gcc_cv_ld_demangle=yes
25784 if test x"$gcc_cv_ld_demangle" = xyes; then
25786 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25790 $as_echo "$gcc_cv_ld_demangle" >&6; }
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25794 $as_echo_n "checking linker plugin support... " >&6; }
25795 gcc_cv_lto_plugin=0
25796 if test -f liblto_plugin.la; then
25797 save_ld_ver="$ld_ver"
25798 save_ld_vers_major="$ld_vers_major"
25799 save_ld_vers_minor="$ld_vers_minor"
25800 save_ld_is_gold="$ld_is_gold"
25802 ld_is_gold=no
25804 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25805 ld_ver="GNU ld"
25806 # FIXME: ld_is_gold?
25807 ld_vers_major="$gcc_cv_gld_major_version"
25808 ld_vers_minor="$gcc_cv_gld_minor_version"
25809 else
25810 # Determine plugin linker version.
25811 # FIXME: Partial duplicate from above, generalize.
25812 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25813 if echo "$ld_ver" | grep GNU > /dev/null; then
25814 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25815 ld_is_gold=yes
25816 ld_vers=`echo $ld_ver | sed -n \
25817 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25818 else
25819 ld_vers=`echo $ld_ver | sed -n \
25820 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25822 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25823 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25827 # Determine plugin support.
25828 if echo "$ld_ver" | grep GNU > /dev/null; then
25829 # Require GNU ld or gold 2.21+ for plugin support by default.
25830 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25831 gcc_cv_lto_plugin=2
25832 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25833 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25834 gcc_cv_lto_plugin=1
25838 ld_ver="$save_ld_ver"
25839 ld_vers_major="$save_ld_vers_major"
25840 ld_vers_minor="$save_ld_vers_minor"
25841 ld_is_gold="$save_ld_is_gold"
25844 cat >>confdefs.h <<_ACEOF
25845 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25846 _ACEOF
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25849 $as_echo "$gcc_cv_lto_plugin" >&6; }
25851 # Target OS-specific assembler checks.
25853 case "$target_os" in
25854 darwin*)
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25856 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25857 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25858 $as_echo_n "(cached) " >&6
25859 else
25860 gcc_cv_as_mmacosx_version_min=no
25861 if test x$gcc_cv_as != x; then
25862 $as_echo '.text' > conftest.s
25863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868 test $ac_status = 0; }; }
25869 then
25870 gcc_cv_as_mmacosx_version_min=yes
25871 else
25872 echo "configure: failed program was" >&5
25873 cat conftest.s >&5
25875 rm -f conftest.o conftest.s
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25879 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25880 if test $gcc_cv_as_mmacosx_version_min = yes; then
25882 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25887 esac
25889 # Target CPU-specific assembler checks.
25891 case "$target" in
25892 aarch64*-*-*)
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25894 $as_echo_n "checking assembler for -mabi option... " >&6; }
25895 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25896 $as_echo_n "(cached) " >&6
25897 else
25898 gcc_cv_as_aarch64_mabi=no
25899 if test x$gcc_cv_as != x; then
25900 $as_echo '.text' > conftest.s
25901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25903 (eval $ac_try) 2>&5
25904 ac_status=$?
25905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25906 test $ac_status = 0; }; }
25907 then
25908 gcc_cv_as_aarch64_mabi=yes
25909 else
25910 echo "configure: failed program was" >&5
25911 cat conftest.s >&5
25913 rm -f conftest.o conftest.s
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25917 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25920 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25922 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25924 else
25925 if test x$with_abi = xilp32; then
25926 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25927 Upgrade the Assembler." "$LINENO" 5
25929 if test x"$with_multilib_list" = xdefault; then
25930 TM_MULTILIB_CONFIG=lp64
25931 else
25932 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25933 for aarch64_multilib in ${aarch64_multilibs}; do
25934 case ${aarch64_multilib} in
25935 ilp32)
25936 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25937 Upgrade the Assembler." "$LINENO" 5
25941 esac
25942 done
25945 # Check if we have binutils support for relocations types needed by -fpic
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25947 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25948 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25949 $as_echo_n "(cached) " >&6
25950 else
25951 gcc_cv_as_aarch64_picreloc=no
25952 if test x$gcc_cv_as != x; then
25953 $as_echo '
25954 .text
25955 ldr x0, [x2, #:gotpage_lo15:globalsym]
25956 ' > conftest.s
25957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25962 test $ac_status = 0; }; }
25963 then
25964 gcc_cv_as_aarch64_picreloc=yes
25965 else
25966 echo "configure: failed program was" >&5
25967 cat conftest.s >&5
25969 rm -f conftest.o conftest.s
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25973 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25974 if test $gcc_cv_as_aarch64_picreloc = yes; then
25976 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25980 # Enable Branch Target Identification Mechanism and Return Address
25981 # Signing by default.
25982 # Check whether --enable-standard-branch-protection was given.
25983 if test "${enable_standard_branch_protection+set}" = set; then :
25984 enableval=$enable_standard_branch_protection;
25985 case $enableval in
25986 yes)
25987 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25992 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25993 Valid choices are 'yes' and 'no'." "$LINENO" 5
25995 esac
25999 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26000 # Check whether --enable-fix-cortex-a53-835769 was given.
26001 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26002 enableval=$enable_fix_cortex_a53_835769;
26003 case $enableval in
26004 yes)
26005 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26010 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26011 Valid choices are 'yes' and 'no'." "$LINENO" 5
26014 esac
26018 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26019 # Check whether --enable-fix-cortex-a53-843419 was given.
26020 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26021 enableval=$enable_fix_cortex_a53_843419;
26022 case $enableval in
26023 yes)
26024 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26029 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26030 Valid choices are 'yes' and 'no'." "$LINENO" 5
26033 esac
26039 # All TARGET_ABI_OSF targets.
26040 alpha*-*-linux* | alpha*-*-*bsd*)
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26042 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26043 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26044 $as_echo_n "(cached) " >&6
26045 else
26046 gcc_cv_as_alpha_explicit_relocs=no
26047 if test x$gcc_cv_as != x; then
26048 $as_echo ' .set nomacro
26049 .text
26050 extbl $3, $2, $3 !lituse_bytoff!1
26051 ldq $2, a($29) !literal!1
26052 ldq $4, b($29) !literal!2
26053 ldq_u $3, 0($2) !lituse_base!1
26054 ldq $27, f($29) !literal!5
26055 jsr $26, ($27), f !lituse_jsr!5
26056 ldah $29, 0($26) !gpdisp!3
26057 lda $0, c($29) !gprel
26058 ldah $1, d($29) !gprelhigh
26059 lda $1, d($1) !gprellow
26060 lda $29, 0($29) !gpdisp!3' > conftest.s
26061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26063 (eval $ac_try) 2>&5
26064 ac_status=$?
26065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26066 test $ac_status = 0; }; }
26067 then
26068 gcc_cv_as_alpha_explicit_relocs=yes
26069 else
26070 echo "configure: failed program was" >&5
26071 cat conftest.s >&5
26073 rm -f conftest.o conftest.s
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26077 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26078 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26080 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26085 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26086 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26087 $as_echo_n "(cached) " >&6
26088 else
26089 gcc_cv_as_alpha_jsrdirect_relocs=no
26090 if test x$gcc_cv_as != x; then
26091 $as_echo ' .set nomacro
26092 .text
26093 ldq $27, a($29) !literal!1
26094 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26097 (eval $ac_try) 2>&5
26098 ac_status=$?
26099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26100 test $ac_status = 0; }; }
26101 then
26102 gcc_cv_as_alpha_jsrdirect_relocs=yes
26103 else
26104 echo "configure: failed program was" >&5
26105 cat conftest.s >&5
26107 rm -f conftest.o conftest.s
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26111 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26112 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26114 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26120 avr-*-*)
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26122 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26123 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26124 $as_echo_n "(cached) " >&6
26125 else
26126 gcc_cv_as_avr_mlink_relax=no
26127 if test x$gcc_cv_as != x; then
26128 $as_echo '.text' > conftest.s
26129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26131 (eval $ac_try) 2>&5
26132 ac_status=$?
26133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26134 test $ac_status = 0; }; }
26135 then
26136 gcc_cv_as_avr_mlink_relax=yes
26137 else
26138 echo "configure: failed program was" >&5
26139 cat conftest.s >&5
26141 rm -f conftest.o conftest.s
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26145 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26146 if test $gcc_cv_as_avr_mlink_relax = yes; then
26148 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26154 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26155 if ${gcc_cv_as_avr_mrmw+:} false; then :
26156 $as_echo_n "(cached) " >&6
26157 else
26158 gcc_cv_as_avr_mrmw=no
26159 if test x$gcc_cv_as != x; then
26160 $as_echo '.text' > conftest.s
26161 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26163 (eval $ac_try) 2>&5
26164 ac_status=$?
26165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26166 test $ac_status = 0; }; }
26167 then
26168 gcc_cv_as_avr_mrmw=yes
26169 else
26170 echo "configure: failed program was" >&5
26171 cat conftest.s >&5
26173 rm -f conftest.o conftest.s
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26177 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26178 if test $gcc_cv_as_avr_mrmw = yes; then
26180 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26186 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26187 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26188 $as_echo_n "(cached) " >&6
26189 else
26190 gcc_cv_as_avr_mgccisr=no
26191 if test x$gcc_cv_as != x; then
26192 $as_echo '.text
26193 __gcc_isr 1
26194 __gcc_isr 2
26195 __gcc_isr 0,r24
26196 ' > conftest.s
26197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26199 (eval $ac_try) 2>&5
26200 ac_status=$?
26201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26202 test $ac_status = 0; }; }
26203 then
26204 gcc_cv_as_avr_mgccisr=yes
26205 else
26206 echo "configure: failed program was" >&5
26207 cat conftest.s >&5
26209 rm -f conftest.o conftest.s
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26213 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26214 if test $gcc_cv_as_avr_mgccisr = yes; then
26216 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26221 # Check how default linker description file implements .rodata for
26222 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26223 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26225 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26226 cat > conftest.s <<EOF
26227 .section .rodata,"a",@progbits
26228 .global xxvaryy
26229 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26230 xxvaryy:
26231 .word 1
26233 rm -f conftest.nm
26234 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26236 (eval $ac_try) 2>&5
26237 ac_status=$?
26238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26239 test $ac_status = 0; }; }
26240 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26242 (eval $ac_try) 2>&5
26243 ac_status=$?
26244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26245 test $ac_status = 0; }; }
26246 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26251 test $ac_status = 0; }; }
26252 if test -s conftest.nm
26253 then
26254 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26256 $as_echo "yes" >&6; }
26258 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26260 else
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26262 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26263 echo "$as_me: nm output was" >&5
26264 cat conftest.nm >&5
26265 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26266 { $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
26267 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26269 else
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26271 $as_echo "test failed" >&6; }
26272 echo "$as_me: failed program was" >&5
26273 cat conftest.s >&5
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26275 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26277 rm -f conftest.s conftest.o conftest.elf conftest.nm
26280 cris-*-*)
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26282 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26283 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26284 $as_echo_n "(cached) " >&6
26285 else
26286 gcc_cv_as_cris_no_mul_bug=no
26287 if test x$gcc_cv_as != x; then
26288 $as_echo '.text' > conftest.s
26289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26291 (eval $ac_try) 2>&5
26292 ac_status=$?
26293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26294 test $ac_status = 0; }; }
26295 then
26296 gcc_cv_as_cris_no_mul_bug=yes
26297 else
26298 echo "configure: failed program was" >&5
26299 cat conftest.s >&5
26301 rm -f conftest.o conftest.s
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26305 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26306 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26308 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26314 sparc*-*-*)
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26316 $as_echo_n "checking assembler for -relax option... " >&6; }
26317 if ${gcc_cv_as_sparc_relax+:} false; then :
26318 $as_echo_n "(cached) " >&6
26319 else
26320 gcc_cv_as_sparc_relax=no
26321 if test x$gcc_cv_as != x; then
26322 $as_echo '.text' > conftest.s
26323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26325 (eval $ac_try) 2>&5
26326 ac_status=$?
26327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26328 test $ac_status = 0; }; }
26329 then
26330 gcc_cv_as_sparc_relax=yes
26331 else
26332 echo "configure: failed program was" >&5
26333 cat conftest.s >&5
26335 rm -f conftest.o conftest.s
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26339 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26340 if test $gcc_cv_as_sparc_relax = yes; then
26342 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26348 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26349 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26350 $as_echo_n "(cached) " >&6
26351 else
26352 gcc_cv_as_sparc_gotdata_op=no
26353 if test x$gcc_cv_as != x; then
26354 $as_echo '.text
26355 .align 4
26356 foo:
26358 bar:
26359 sethi %gdop_hix22(foo), %g1
26360 xor %g1, %gdop_lox10(foo), %g1
26361 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26364 (eval $ac_try) 2>&5
26365 ac_status=$?
26366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26367 test $ac_status = 0; }; }
26368 then
26369 if test x$gcc_cv_ld != x \
26370 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26371 if test x$gcc_cv_objdump != x; then
26372 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26373 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26374 gcc_cv_as_sparc_gotdata_op=no
26375 else
26376 gcc_cv_as_sparc_gotdata_op=yes
26380 rm -f conftest
26381 else
26382 echo "configure: failed program was" >&5
26383 cat conftest.s >&5
26385 rm -f conftest.o conftest.s
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26389 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26390 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26392 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26398 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26399 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26400 $as_echo_n "(cached) " >&6
26401 else
26402 gcc_cv_as_sparc_ua_pcrel=no
26403 if test x$gcc_cv_as != x; then
26404 $as_echo '.text
26405 foo:
26407 .data
26408 .align 4
26409 .byte 0
26410 .uaword %r_disp32(foo)' > conftest.s
26411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26413 (eval $ac_try) 2>&5
26414 ac_status=$?
26415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26416 test $ac_status = 0; }; }
26417 then
26418 if test x$gcc_cv_ld != x \
26419 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26420 gcc_cv_as_sparc_ua_pcrel=yes
26422 rm -f conftest
26423 else
26424 echo "configure: failed program was" >&5
26425 cat conftest.s >&5
26427 rm -f conftest.o conftest.s
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26431 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26432 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26434 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26438 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26439 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26440 $as_echo_n "(cached) " >&6
26441 else
26442 gcc_cv_as_sparc_ua_pcrel_hidden=no
26443 if test x$gcc_cv_as != x; then
26444 $as_echo '.data
26445 .align 4
26446 .byte 0x31
26447 .uaword %r_disp32(foo)
26448 .byte 0x32, 0x33, 0x34
26449 .global foo
26450 .hidden foo
26451 foo:
26452 .skip 4' > conftest.s
26453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26455 (eval $ac_try) 2>&5
26456 ac_status=$?
26457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26458 test $ac_status = 0; }; }
26459 then
26460 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26461 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26462 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26463 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26464 if $gcc_cv_objdump -R conftest 2> /dev/null \
26465 | grep 'DISP32' > /dev/null 2>&1; then
26467 else
26468 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26471 rm -f conftest
26472 else
26473 echo "configure: failed program was" >&5
26474 cat conftest.s >&5
26476 rm -f conftest.o conftest.s
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26480 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26481 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26483 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26489 # unaligned pcrel relocs
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26492 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26493 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26494 $as_echo_n "(cached) " >&6
26495 else
26496 gcc_cv_as_sparc_offsetable_lo10=no
26497 if test x$gcc_cv_as != x; then
26498 $as_echo '.text
26499 or %g1, %lo(ab) + 12, %g1
26500 or %g1, %lo(ab + 12), %g1' > conftest.s
26501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26503 (eval $ac_try) 2>&5
26504 ac_status=$?
26505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26506 test $ac_status = 0; }; }
26507 then
26508 if test x$gcc_cv_objdump != x \
26509 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26510 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26511 gcc_cv_as_sparc_offsetable_lo10=yes
26513 else
26514 echo "configure: failed program was" >&5
26515 cat conftest.s >&5
26517 rm -f conftest.o conftest.s
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26521 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26522 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26524 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26530 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26531 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26532 $as_echo_n "(cached) " >&6
26533 else
26534 gcc_cv_as_sparc_fmaf=no
26535 if test x$gcc_cv_as != x; then
26536 $as_echo '.text
26537 .register %g2, #scratch
26538 .register %g3, #scratch
26539 .align 4
26540 fmaddd %f0, %f2, %f4, %f6
26541 addxccc %g1, %g2, %g3
26542 fsrl32 %f2, %f4, %f8
26543 fnaddd %f10, %f12, %f14' > conftest.s
26544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26546 (eval $ac_try) 2>&5
26547 ac_status=$?
26548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26549 test $ac_status = 0; }; }
26550 then
26551 gcc_cv_as_sparc_fmaf=yes
26552 else
26553 echo "configure: failed program was" >&5
26554 cat conftest.s >&5
26556 rm -f conftest.o conftest.s
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26560 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26561 if test $gcc_cv_as_sparc_fmaf = yes; then
26563 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26569 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26570 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26571 $as_echo_n "(cached) " >&6
26572 else
26573 gcc_cv_as_sparc_sparc4=no
26574 if test x$gcc_cv_as != x; then
26575 $as_echo '.text
26576 .register %g2, #scratch
26577 .register %g3, #scratch
26578 .align 4
26579 cxbe %g2, %g3, 1f
26580 1: cwbneg %g2, %g3, 1f
26581 1: sha1
26583 aes_kexpand0 %f4, %f6, %f8
26584 des_round %f38, %f40, %f42, %f44
26585 camellia_f %f54, %f56, %f58, %f60
26586 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26589 (eval $ac_try) 2>&5
26590 ac_status=$?
26591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26592 test $ac_status = 0; }; }
26593 then
26594 gcc_cv_as_sparc_sparc4=yes
26595 else
26596 echo "configure: failed program was" >&5
26597 cat conftest.s >&5
26599 rm -f conftest.o conftest.s
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26603 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26604 if test $gcc_cv_as_sparc_sparc4 = yes; then
26606 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26612 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26613 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26614 $as_echo_n "(cached) " >&6
26615 else
26616 gcc_cv_as_sparc_sparc5=no
26617 if test x$gcc_cv_as != x; then
26618 $as_echo '.text
26619 .register %g2, #scratch
26620 .register %g3, #scratch
26621 .align 4
26622 subxc %g1, %g2, %g3
26623 fpadd8 %f0, %f2, %f4' > conftest.s
26624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26626 (eval $ac_try) 2>&5
26627 ac_status=$?
26628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26629 test $ac_status = 0; }; }
26630 then
26631 gcc_cv_as_sparc_sparc5=yes
26632 else
26633 echo "configure: failed program was" >&5
26634 cat conftest.s >&5
26636 rm -f conftest.o conftest.s
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26640 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26641 if test $gcc_cv_as_sparc_sparc5 = yes; then
26643 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26649 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26650 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26651 $as_echo_n "(cached) " >&6
26652 else
26653 gcc_cv_as_sparc_sparc6=no
26654 if test x$gcc_cv_as != x; then
26655 $as_echo '.text
26656 .register %g2, #scratch
26657 .register %g3, #scratch
26658 .align 4
26659 rd %entropy, %g1
26660 fpsll64x %f0, %f2, %f4' > conftest.s
26661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26663 (eval $ac_try) 2>&5
26664 ac_status=$?
26665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26666 test $ac_status = 0; }; }
26667 then
26668 gcc_cv_as_sparc_sparc6=yes
26669 else
26670 echo "configure: failed program was" >&5
26671 cat conftest.s >&5
26673 rm -f conftest.o conftest.s
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26677 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26678 if test $gcc_cv_as_sparc_sparc6 = yes; then
26680 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26686 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26687 if ${gcc_cv_as_sparc_leon+:} false; then :
26688 $as_echo_n "(cached) " >&6
26689 else
26690 gcc_cv_as_sparc_leon=no
26691 if test x$gcc_cv_as != x; then
26692 $as_echo '.text
26693 .register %g2, #scratch
26694 .register %g3, #scratch
26695 .align 4
26696 smac %g2, %g3, %g1
26697 umac %g2, %g3, %g1
26698 casa [%g2] 0xb, %g3, %g1' > conftest.s
26699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26701 (eval $ac_try) 2>&5
26702 ac_status=$?
26703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26704 test $ac_status = 0; }; }
26705 then
26706 gcc_cv_as_sparc_leon=yes
26707 else
26708 echo "configure: failed program was" >&5
26709 cat conftest.s >&5
26711 rm -f conftest.o conftest.s
26714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26715 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26716 if test $gcc_cv_as_sparc_leon = yes; then
26718 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26724 i[34567]86-*-* | x86_64-*-*)
26725 case $target_os in
26726 cygwin*)
26727 # Full C++ conformance when using a shared libstdc++-v3 requires some
26728 # support from the Cygwin DLL, which in more recent versions exports
26729 # wrappers to aid in interposing and redirecting operators new, delete,
26730 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26731 # are configuring for a version of Cygwin that exports the wrappers.
26732 if test x$host = x$target && test x$host_cpu = xi686; then
26733 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26734 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26735 gcc_ac_cygwin_dll_wrappers=yes
26736 else
26737 gcc_ac_cygwin_dll_wrappers=no
26740 else
26741 # Can't check presence of libc functions during cross-compile, so
26742 # we just have to assume we're building for an up-to-date target.
26743 gcc_ac_cygwin_dll_wrappers=yes
26746 cat >>confdefs.h <<_ACEOF
26747 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26748 _ACEOF
26750 esac
26751 case $target_os in
26752 cygwin* | pe | mingw32*)
26753 # Recent binutils allows the three-operand form of ".comm" on PE. This
26754 # definition is used unconditionally to initialise the default state of
26755 # the target option variable that governs usage of the feature.
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26757 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26758 if ${gcc_cv_as_comm_has_align+:} false; then :
26759 $as_echo_n "(cached) " >&6
26760 else
26761 gcc_cv_as_comm_has_align=no
26762 if test x$gcc_cv_as != x; then
26763 $as_echo '.comm foo,1,32' > conftest.s
26764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26766 (eval $ac_try) 2>&5
26767 ac_status=$?
26768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26769 test $ac_status = 0; }; }
26770 then
26771 gcc_cv_as_comm_has_align=yes
26772 else
26773 echo "configure: failed program was" >&5
26774 cat conftest.s >&5
26776 rm -f conftest.o conftest.s
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26780 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26784 cat >>confdefs.h <<_ACEOF
26785 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26786 _ACEOF
26788 # Used for DWARF 2 in PE
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26790 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26791 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26792 $as_echo_n "(cached) " >&6
26793 else
26794 gcc_cv_as_ix86_pe_secrel32=no
26795 if test x$gcc_cv_as != x; then
26796 $as_echo '.text
26797 foo: nop
26798 .data
26799 .secrel32 foo' > conftest.s
26800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26802 (eval $ac_try) 2>&5
26803 ac_status=$?
26804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26805 test $ac_status = 0; }; }
26806 then
26807 if test x$gcc_cv_ld != x \
26808 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26809 gcc_cv_as_ix86_pe_secrel32=yes
26811 rm -f conftest
26812 else
26813 echo "configure: failed program was" >&5
26814 cat conftest.s >&5
26816 rm -f conftest.o conftest.s
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26820 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26821 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26823 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26827 # Test if the assembler supports the extended form of the .section
26828 # directive that specifies section alignment. LTO support uses this,
26829 # but normally only after installation, so we warn but don't fail the
26830 # configure if LTO is enabled but the assembler does not support it.
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26832 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26833 if ${gcc_cv_as_section_has_align+:} false; then :
26834 $as_echo_n "(cached) " >&6
26835 else
26836 gcc_cv_as_section_has_align=no
26837 if test x$gcc_cv_as != x; then
26838 $as_echo '.section lto_test,"dr0"' > conftest.s
26839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26841 (eval $ac_try) 2>&5
26842 ac_status=$?
26843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26844 test $ac_status = 0; }; }
26845 then
26846 gcc_cv_as_section_has_align=yes
26847 else
26848 echo "configure: failed program was" >&5
26849 cat conftest.s >&5
26851 rm -f conftest.o conftest.s
26854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26855 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26858 if test x$gcc_cv_as_section_has_align != xyes; then
26859 case ",$enable_languages," in
26860 *,lto,*)
26861 { $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
26862 $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;}
26864 esac
26867 esac
26868 case $target_os in
26869 darwin2[0-9]* | darwin19*)
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
26871 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
26872 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
26873 $as_echo_n "(cached) " >&6
26874 else
26875 gcc_cv_as_mllvm_x86_pad_for_align=no
26876 if test x$gcc_cv_as != x; then
26877 $as_echo '.text' > conftest.s
26878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
26879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26883 test $ac_status = 0; }; }
26884 then
26885 gcc_cv_as_mllvm_x86_pad_for_align=yes
26886 else
26887 echo "configure: failed program was" >&5
26888 cat conftest.s >&5
26890 rm -f conftest.o conftest.s
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
26894 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
26895 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
26897 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
26902 esac
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26905 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26906 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26907 $as_echo_n "(cached) " >&6
26908 else
26909 gcc_cv_as_ix86_xbrace_comment=no
26910 if test x$gcc_cv_as != x; then
26911 $as_echo '.text' > conftest.s
26912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26914 (eval $ac_try) 2>&5
26915 ac_status=$?
26916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26917 test $ac_status = 0; }; }
26918 then
26919 gcc_cv_as_ix86_xbrace_comment=yes
26920 else
26921 echo "configure: failed program was" >&5
26922 cat conftest.s >&5
26924 rm -f conftest.o conftest.s
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26928 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26929 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26931 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26937 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26938 if ${gcc_cv_as_ix86_filds+:} false; then :
26939 $as_echo_n "(cached) " >&6
26940 else
26941 gcc_cv_as_ix86_filds=no
26942 if test x$gcc_cv_as != x; then
26943 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26946 (eval $ac_try) 2>&5
26947 ac_status=$?
26948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26949 test $ac_status = 0; }; }
26950 then
26951 gcc_cv_as_ix86_filds=yes
26952 else
26953 echo "configure: failed program was" >&5
26954 cat conftest.s >&5
26956 rm -f conftest.o conftest.s
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26960 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26961 if test $gcc_cv_as_ix86_filds = yes; then
26963 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26969 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26970 if ${gcc_cv_as_ix86_fildq+:} false; then :
26971 $as_echo_n "(cached) " >&6
26972 else
26973 gcc_cv_as_ix86_fildq=no
26974 if test x$gcc_cv_as != x; then
26975 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26978 (eval $ac_try) 2>&5
26979 ac_status=$?
26980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26981 test $ac_status = 0; }; }
26982 then
26983 gcc_cv_as_ix86_fildq=yes
26984 else
26985 echo "configure: failed program was" >&5
26986 cat conftest.s >&5
26988 rm -f conftest.o conftest.s
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26992 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26993 if test $gcc_cv_as_ix86_fildq = yes; then
26995 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27001 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27002 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27003 $as_echo_n "(cached) " >&6
27004 else
27005 gcc_cv_as_ix86_cmov_sun_syntax=no
27006 if test x$gcc_cv_as != x; then
27007 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27010 (eval $ac_try) 2>&5
27011 ac_status=$?
27012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27013 test $ac_status = 0; }; }
27014 then
27015 gcc_cv_as_ix86_cmov_sun_syntax=yes
27016 else
27017 echo "configure: failed program was" >&5
27018 cat conftest.s >&5
27020 rm -f conftest.o conftest.s
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27024 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27025 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27027 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27033 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27034 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27035 $as_echo_n "(cached) " >&6
27036 else
27037 gcc_cv_as_ix86_ffreep=no
27038 if test x$gcc_cv_as != x; then
27039 $as_echo 'ffreep %st(1)' > conftest.s
27040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27042 (eval $ac_try) 2>&5
27043 ac_status=$?
27044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27045 test $ac_status = 0; }; }
27046 then
27047 gcc_cv_as_ix86_ffreep=yes
27048 else
27049 echo "configure: failed program was" >&5
27050 cat conftest.s >&5
27052 rm -f conftest.o conftest.s
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27056 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27057 if test $gcc_cv_as_ix86_ffreep = yes; then
27059 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27065 $as_echo_n "checking assembler for .quad directive... " >&6; }
27066 if ${gcc_cv_as_ix86_quad+:} false; then :
27067 $as_echo_n "(cached) " >&6
27068 else
27069 gcc_cv_as_ix86_quad=no
27070 if test x$gcc_cv_as != x; then
27071 $as_echo '.quad 0' > conftest.s
27072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27074 (eval $ac_try) 2>&5
27075 ac_status=$?
27076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27077 test $ac_status = 0; }; }
27078 then
27079 gcc_cv_as_ix86_quad=yes
27080 else
27081 echo "configure: failed program was" >&5
27082 cat conftest.s >&5
27084 rm -f conftest.o conftest.s
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27088 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27089 if test $gcc_cv_as_ix86_quad = yes; then
27091 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27097 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27098 if ${gcc_cv_as_ix86_sahf+:} false; then :
27099 $as_echo_n "(cached) " >&6
27100 else
27101 gcc_cv_as_ix86_sahf=no
27102 if test x$gcc_cv_as != x; then
27103 $as_echo '.code64
27104 sahf' > conftest.s
27105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27107 (eval $ac_try) 2>&5
27108 ac_status=$?
27109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27110 test $ac_status = 0; }; }
27111 then
27112 gcc_cv_as_ix86_sahf=yes
27113 else
27114 echo "configure: failed program was" >&5
27115 cat conftest.s >&5
27117 rm -f conftest.o conftest.s
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27121 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27122 if test $gcc_cv_as_ix86_sahf = yes; then
27124 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27130 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27131 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27132 $as_echo_n "(cached) " >&6
27133 else
27134 gcc_cv_as_ix86_interunit_movq=no
27135 if test x$gcc_cv_as != x; then
27136 $as_echo '.code64
27137 movq %mm0, %rax
27138 movq %rax, %xmm0' > conftest.s
27139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27141 (eval $ac_try) 2>&5
27142 ac_status=$?
27143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27144 test $ac_status = 0; }; }
27145 then
27146 gcc_cv_as_ix86_interunit_movq=yes
27147 else
27148 echo "configure: failed program was" >&5
27149 cat conftest.s >&5
27151 rm -f conftest.o conftest.s
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27155 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27159 cat >>confdefs.h <<_ACEOF
27160 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27161 _ACEOF
27164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27165 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27166 if ${gcc_cv_as_ix86_hle+:} false; then :
27167 $as_echo_n "(cached) " >&6
27168 else
27169 gcc_cv_as_ix86_hle=no
27170 if test x$gcc_cv_as != x; then
27171 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27174 (eval $ac_try) 2>&5
27175 ac_status=$?
27176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27177 test $ac_status = 0; }; }
27178 then
27179 gcc_cv_as_ix86_hle=yes
27180 else
27181 echo "configure: failed program was" >&5
27182 cat conftest.s >&5
27184 rm -f conftest.o conftest.s
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27188 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27189 if test $gcc_cv_as_ix86_hle = yes; then
27191 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27197 $as_echo_n "checking assembler for swap suffix... " >&6; }
27198 if ${gcc_cv_as_ix86_swap+:} false; then :
27199 $as_echo_n "(cached) " >&6
27200 else
27201 gcc_cv_as_ix86_swap=no
27202 if test x$gcc_cv_as != x; then
27203 $as_echo 'movl.s %esp, %ebp' > conftest.s
27204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27206 (eval $ac_try) 2>&5
27207 ac_status=$?
27208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27209 test $ac_status = 0; }; }
27210 then
27211 gcc_cv_as_ix86_swap=yes
27212 else
27213 echo "configure: failed program was" >&5
27214 cat conftest.s >&5
27216 rm -f conftest.o conftest.s
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27220 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27221 if test $gcc_cv_as_ix86_swap = yes; then
27223 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27229 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27230 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27231 $as_echo_n "(cached) " >&6
27232 else
27233 gcc_cv_as_ix86_diff_sect_delta=no
27234 if test x$gcc_cv_as != x; then
27235 $as_echo '.section .rodata
27236 .L1:
27237 .long .L2-.L1
27238 .long .L3-.L1
27239 .text
27240 .L3: nop
27241 .L2: nop' > conftest.s
27242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27244 (eval $ac_try) 2>&5
27245 ac_status=$?
27246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27247 test $ac_status = 0; }; }
27248 then
27249 gcc_cv_as_ix86_diff_sect_delta=yes
27250 else
27251 echo "configure: failed program was" >&5
27252 cat conftest.s >&5
27254 rm -f conftest.o conftest.s
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27258 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27259 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27261 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27267 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27268 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27269 $as_echo_n "(cached) " >&6
27270 else
27271 gcc_cv_as_ix86_rep_lock_prefix=no
27272 if test x$gcc_cv_as != x; then
27273 $as_echo 'rep movsl
27274 rep ret
27275 rep nop
27276 rep bsf %ecx, %eax
27277 rep bsr %ecx, %eax
27278 lock addl %edi, (%eax,%esi)
27279 lock orl $0, (%esp)' > conftest.s
27280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27282 (eval $ac_try) 2>&5
27283 ac_status=$?
27284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27285 test $ac_status = 0; }; }
27286 then
27287 gcc_cv_as_ix86_rep_lock_prefix=yes
27288 else
27289 echo "configure: failed program was" >&5
27290 cat conftest.s >&5
27292 rm -f conftest.o conftest.s
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27296 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27297 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27299 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27305 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27306 if ${gcc_cv_as_ix86_ud2+:} false; then :
27307 $as_echo_n "(cached) " >&6
27308 else
27309 gcc_cv_as_ix86_ud2=no
27310 if test x$gcc_cv_as != x; then
27311 $as_echo 'ud2' > conftest.s
27312 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27314 (eval $ac_try) 2>&5
27315 ac_status=$?
27316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27317 test $ac_status = 0; }; }
27318 then
27319 gcc_cv_as_ix86_ud2=yes
27320 else
27321 echo "configure: failed program was" >&5
27322 cat conftest.s >&5
27324 rm -f conftest.o conftest.s
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27328 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27329 if test $gcc_cv_as_ix86_ud2 = yes; then
27331 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27336 # Enforce 32-bit output with gas and gld.
27337 if test x$gas = xyes; then
27338 as_ix86_gas_32_opt="--32"
27340 if echo "$ld_ver" | grep GNU > /dev/null; then
27341 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27342 ld_ix86_gld_32_opt="-melf_i386_sol2"
27343 else
27344 ld_ix86_gld_32_opt="-melf_i386"
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27349 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27350 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27351 $as_echo_n "(cached) " >&6
27352 else
27353 gcc_cv_as_ix86_tlsgdplt=no
27354 if test x$gcc_cv_as != x; then
27355 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27358 (eval $ac_try) 2>&5
27359 ac_status=$?
27360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27361 test $ac_status = 0; }; }
27362 then
27363 if test x$gcc_cv_ld != x \
27364 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27365 gcc_cv_as_ix86_tlsgdplt=yes
27367 rm -f conftest
27368 else
27369 echo "configure: failed program was" >&5
27370 cat conftest.s >&5
27372 rm -f conftest.o conftest.s
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27376 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27377 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27379 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27384 conftest_s='
27385 .section .tdata,"aw'$tls_section_flag'",@progbits
27386 tls_ld:
27387 .section .text,"ax",@progbits
27388 call tls_ld@tlsldmplt'
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27391 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27392 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27393 $as_echo_n "(cached) " >&6
27394 else
27395 gcc_cv_as_ix86_tlsldmplt=no
27396 if test x$gcc_cv_as != x; then
27397 $as_echo "$conftest_s" > conftest.s
27398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27400 (eval $ac_try) 2>&5
27401 ac_status=$?
27402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27403 test $ac_status = 0; }; }
27404 then
27405 if test x$gcc_cv_ld != x \
27406 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27407 gcc_cv_as_ix86_tlsldmplt=yes
27409 rm -f conftest
27410 else
27411 echo "configure: failed program was" >&5
27412 cat conftest.s >&5
27414 rm -f conftest.o conftest.s
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27418 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27422 cat >>confdefs.h <<_ACEOF
27423 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27424 _ACEOF
27427 conftest_s='
27428 .section .text,"ax",@progbits
27429 .globl _start
27430 .type _start, @function
27431 _start:
27432 leal value@tlsldm(%ebx), %eax
27433 call ___tls_get_addr@plt
27435 .section .tdata,"aw'$tls_section_flag'",@progbits
27436 .type value, @object
27437 value:'
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27439 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27440 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27441 $as_echo_n "(cached) " >&6
27442 else
27443 gcc_cv_as_ix86_tlsldm=no
27444 if test x$gcc_cv_as != x; then
27445 $as_echo "$conftest_s" > conftest.s
27446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27448 (eval $ac_try) 2>&5
27449 ac_status=$?
27450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27451 test $ac_status = 0; }; }
27452 then
27453 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27454 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27455 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27456 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27457 gcc_cv_as_ix86_tlsldm=yes
27460 rm -f conftest
27461 else
27462 echo "configure: failed program was" >&5
27463 cat conftest.s >&5
27465 rm -f conftest.o conftest.s
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27469 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27473 cat >>confdefs.h <<_ACEOF
27474 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27475 _ACEOF
27478 conftest_s='
27479 .data
27480 bar:
27481 .byte 1
27482 .text
27483 .global _start
27484 _start:
27485 cmpl $0, bar@GOT
27486 jmp *_start@GOT'
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27488 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27489 if ${gcc_cv_as_ix86_got32x+:} false; then :
27490 $as_echo_n "(cached) " >&6
27491 else
27492 gcc_cv_as_ix86_got32x=no
27493 if test x$gcc_cv_as != x; then
27494 $as_echo "$conftest_s" > conftest.s
27495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27497 (eval $ac_try) 2>&5
27498 ac_status=$?
27499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27500 test $ac_status = 0; }; }
27501 then
27502 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27503 && test x$gcc_cv_readelf != x \
27504 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27505 | grep R_386_GOT32X > /dev/null 2>&1 \
27506 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27507 if $gcc_cv_objdump -dw conftest 2>&1 \
27508 | grep 0xffffff > /dev/null 2>&1; then
27509 gcc_cv_as_ix86_got32x=no
27510 else
27511 gcc_cv_as_ix86_got32x=yes
27514 rm -f conftest
27515 else
27516 echo "configure: failed program was" >&5
27517 cat conftest.s >&5
27519 rm -f conftest.o conftest.s
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27523 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27527 cat >>confdefs.h <<_ACEOF
27528 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27529 _ACEOF
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27533 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27534 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27535 $as_echo_n "(cached) " >&6
27536 else
27537 gcc_cv_as_ix86_gotoff_in_data=no
27538 if test x$gcc_cv_as != x; then
27539 $as_echo ' .text
27540 .L0:
27542 .data
27543 .long .L0@GOTOFF' > conftest.s
27544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27546 (eval $ac_try) 2>&5
27547 ac_status=$?
27548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27549 test $ac_status = 0; }; }
27550 then
27551 gcc_cv_as_ix86_gotoff_in_data=yes
27552 else
27553 echo "configure: failed program was" >&5
27554 cat conftest.s >&5
27556 rm -f conftest.o conftest.s
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27560 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27564 cat >>confdefs.h <<_ACEOF
27565 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27566 _ACEOF
27569 conftest_s='
27570 .section .text,"ax",@progbits
27571 .globl _start
27572 .type _start, @function
27573 _start:
27574 leal ld@tlsldm(%ecx), %eax
27575 call *___tls_get_addr@GOT(%ecx)
27576 leal gd@tlsgd(%ecx), %eax
27577 call *___tls_get_addr@GOT(%ecx)
27579 .section .tdata,"aw'$tls_section_flag'",@progbits
27580 .type ld, @object
27582 .byte 0
27583 .globl gd
27584 .type gd, @object
27586 .byte 0'
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27588 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27589 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27590 $as_echo_n "(cached) " >&6
27591 else
27592 gcc_cv_as_ix86_tls_get_addr_via_got=no
27593 if test x$gcc_cv_as != x; then
27594 $as_echo "$conftest_s" > conftest.s
27595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27597 (eval $ac_try) 2>&5
27598 ac_status=$?
27599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27600 test $ac_status = 0; }; }
27601 then
27602 if test x$gcc_cv_ld != x \
27603 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27604 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27606 rm -f conftest
27607 else
27608 echo "configure: failed program was" >&5
27609 cat conftest.s >&5
27611 rm -f conftest.o conftest.s
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27615 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27619 cat >>confdefs.h <<_ACEOF
27620 #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`
27621 _ACEOF
27625 ia64*-*-*)
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27627 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27628 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27629 $as_echo_n "(cached) " >&6
27630 else
27631 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27632 if test x$gcc_cv_as != x; then
27633 $as_echo ' .text
27634 addl r15 = @ltoffx(x#), gp
27636 ld8.mov r16 = [r15], x#
27637 ' > conftest.s
27638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27640 (eval $ac_try) 2>&5
27641 ac_status=$?
27642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27643 test $ac_status = 0; }; }
27644 then
27645 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27646 else
27647 echo "configure: failed program was" >&5
27648 cat conftest.s >&5
27650 rm -f conftest.o conftest.s
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27654 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27655 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27657 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27664 powerpc*-*-*)
27666 case $target in
27667 *-*-darwin*)
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27669 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27670 if ${gcc_cv_as_machine_directive+:} false; then :
27671 $as_echo_n "(cached) " >&6
27672 else
27673 gcc_cv_as_machine_directive=no
27674 if test x$gcc_cv_as != x; then
27675 $as_echo ' .machine ppc7400' > conftest.s
27676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27678 (eval $ac_try) 2>&5
27679 ac_status=$?
27680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27681 test $ac_status = 0; }; }
27682 then
27683 gcc_cv_as_machine_directive=yes
27684 else
27685 echo "configure: failed program was" >&5
27686 cat conftest.s >&5
27688 rm -f conftest.o conftest.s
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27692 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27695 if test x$gcc_cv_as_machine_directive != xyes; then
27696 echo "*** This target requires an assembler supporting \".machine\"" >&2
27697 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27698 test x$build = x$target && exit 1
27701 esac
27703 case $target in
27704 *-*-aix*) conftest_s=' .machine "pwr5"
27705 .csect .text[PR]
27706 mfcr 3,128';;
27707 *-*-darwin*) conftest_s=' .text
27708 mfcr r3,128';;
27709 *) conftest_s=' .machine power4
27710 .text
27711 mfcr 3,128';;
27712 esac
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27715 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27716 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27717 $as_echo_n "(cached) " >&6
27718 else
27719 gcc_cv_as_powerpc_mfcrf=no
27720 if test x$gcc_cv_as != x; then
27721 $as_echo "$conftest_s" > conftest.s
27722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27724 (eval $ac_try) 2>&5
27725 ac_status=$?
27726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27727 test $ac_status = 0; }; }
27728 then
27729 gcc_cv_as_powerpc_mfcrf=yes
27730 else
27731 echo "configure: failed program was" >&5
27732 cat conftest.s >&5
27734 rm -f conftest.o conftest.s
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27738 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27739 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27741 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27746 case $target in
27747 *-*-aix*) conftest_s=' .csect .text[PR]
27748 LCF..0:
27749 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27750 *-*-darwin*)
27751 conftest_s=' .text
27752 LCF0:
27753 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27754 *) conftest_s=' .text
27755 .LCF0:
27756 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27757 esac
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27760 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27761 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27762 $as_echo_n "(cached) " >&6
27763 else
27764 gcc_cv_as_powerpc_rel16=no
27765 if test x$gcc_cv_as != x; then
27766 $as_echo "$conftest_s" > conftest.s
27767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27769 (eval $ac_try) 2>&5
27770 ac_status=$?
27771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27772 test $ac_status = 0; }; }
27773 then
27774 gcc_cv_as_powerpc_rel16=yes
27775 else
27776 echo "configure: failed program was" >&5
27777 cat conftest.s >&5
27779 rm -f conftest.o conftest.s
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27783 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27784 if test $gcc_cv_as_powerpc_rel16 = yes; then
27786 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27791 case $target in
27792 *-*-aix*) conftest_s=' .machine "pwr7"
27793 .csect .text[PR]
27794 lxvd2x 1,2,3';;
27795 *) conftest_s=' .machine power7
27796 .text
27797 lxvd2x 1,2,3';;
27798 esac
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27801 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27802 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27803 $as_echo_n "(cached) " >&6
27804 else
27805 gcc_cv_as_powerpc_vsx=no
27806 if test x$gcc_cv_as != x; then
27807 $as_echo "$conftest_s" > conftest.s
27808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27813 test $ac_status = 0; }; }
27814 then
27815 gcc_cv_as_powerpc_vsx=yes
27816 else
27817 echo "configure: failed program was" >&5
27818 cat conftest.s >&5
27820 rm -f conftest.o conftest.s
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27824 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27825 if test $gcc_cv_as_powerpc_vsx = yes; then
27827 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27833 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27834 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27835 $as_echo_n "(cached) " >&6
27836 else
27837 gcc_cv_as_powerpc_gnu_attribute=no
27838 if test x$gcc_cv_as != x; then
27839 $as_echo '.gnu_attribute 4,1' > conftest.s
27840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27842 (eval $ac_try) 2>&5
27843 ac_status=$?
27844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27845 test $ac_status = 0; }; }
27846 then
27847 gcc_cv_as_powerpc_gnu_attribute=yes
27848 else
27849 echo "configure: failed program was" >&5
27850 cat conftest.s >&5
27852 rm -f conftest.o conftest.s
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27856 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27857 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27859 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27865 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27866 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27867 $as_echo_n "(cached) " >&6
27868 else
27869 gcc_cv_as_powerpc_entry_markers=no
27870 if test x$gcc_cv_as != x; then
27871 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27874 (eval $ac_try) 2>&5
27875 ac_status=$?
27876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27877 test $ac_status = 0; }; }
27878 then
27879 gcc_cv_as_powerpc_entry_markers=yes
27880 else
27881 echo "configure: failed program was" >&5
27882 cat conftest.s >&5
27884 rm -f conftest.o conftest.s
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27888 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27889 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27891 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27897 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27898 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27899 $as_echo_n "(cached) " >&6
27900 else
27901 gcc_cv_as_powerpc_pltseq_markers=no
27902 if test x$gcc_cv_as != x; then
27903 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27906 (eval $ac_try) 2>&5
27907 ac_status=$?
27908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27909 test $ac_status = 0; }; }
27910 then
27911 gcc_cv_as_powerpc_pltseq_markers=yes
27912 else
27913 echo "configure: failed program was" >&5
27914 cat conftest.s >&5
27916 rm -f conftest.o conftest.s
27919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27920 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27921 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27923 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27928 case $target in
27929 *-*-aix*)
27930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27931 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27932 if ${gcc_cv_as_aix_ref+:} false; then :
27933 $as_echo_n "(cached) " >&6
27934 else
27935 gcc_cv_as_aix_ref=no
27936 if test x$gcc_cv_as != x; then
27937 $as_echo ' .csect stuff[rw]
27938 stuff:
27939 .long 1
27940 .extern sym
27941 .ref sym
27942 ' > conftest.s
27943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27945 (eval $ac_try) 2>&5
27946 ac_status=$?
27947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27948 test $ac_status = 0; }; }
27949 then
27950 gcc_cv_as_aix_ref=yes
27951 else
27952 echo "configure: failed program was" >&5
27953 cat conftest.s >&5
27955 rm -f conftest.o conftest.s
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27959 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27960 if test $gcc_cv_as_aix_ref = yes; then
27962 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27968 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27969 if ${gcc_cv_as_aix_dwloc+:} false; then :
27970 $as_echo_n "(cached) " >&6
27971 else
27972 gcc_cv_as_aix_dwloc=no
27973 if test x$gcc_cv_as != x; then
27974 $as_echo ' .dwsect 0xA0000
27975 Lframe..0:
27976 .vbyte 4,Lframe..0
27977 ' > conftest.s
27978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27980 (eval $ac_try) 2>&5
27981 ac_status=$?
27982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27983 test $ac_status = 0; }; }
27984 then
27985 gcc_cv_as_aix_dwloc=yes
27986 else
27987 echo "configure: failed program was" >&5
27988 cat conftest.s >&5
27990 rm -f conftest.o conftest.s
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27994 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27995 if test $gcc_cv_as_aix_dwloc = yes; then
27997 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28002 esac
28005 mips*-*-*)
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28007 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28008 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28009 $as_echo_n "(cached) " >&6
28010 else
28011 gcc_cv_as_mips_explicit_relocs=no
28012 if test x$gcc_cv_as != x; then
28013 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28016 (eval $ac_try) 2>&5
28017 ac_status=$?
28018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28019 test $ac_status = 0; }; }
28020 then
28021 gcc_cv_as_mips_explicit_relocs=yes
28022 else
28023 echo "configure: failed program was" >&5
28024 cat conftest.s >&5
28026 rm -f conftest.o conftest.s
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28030 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28031 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28032 if test x$target_cpu_default = x
28033 then target_cpu_default=MASK_EXPLICIT_RELOCS
28034 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28040 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28041 if ${gcc_cv_as_mips_no_shared+:} false; then :
28042 $as_echo_n "(cached) " >&6
28043 else
28044 gcc_cv_as_mips_no_shared=no
28045 if test x$gcc_cv_as != x; then
28046 $as_echo 'nop' > conftest.s
28047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28049 (eval $ac_try) 2>&5
28050 ac_status=$?
28051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28052 test $ac_status = 0; }; }
28053 then
28054 gcc_cv_as_mips_no_shared=yes
28055 else
28056 echo "configure: failed program was" >&5
28057 cat conftest.s >&5
28059 rm -f conftest.o conftest.s
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28063 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28064 if test $gcc_cv_as_mips_no_shared = yes; then
28066 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28072 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28073 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28074 $as_echo_n "(cached) " >&6
28075 else
28076 gcc_cv_as_mips_gnu_attribute=no
28077 if test x$gcc_cv_as != x; then
28078 $as_echo '.gnu_attribute 4,1' > conftest.s
28079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28081 (eval $ac_try) 2>&5
28082 ac_status=$?
28083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28084 test $ac_status = 0; }; }
28085 then
28086 gcc_cv_as_mips_gnu_attribute=yes
28087 else
28088 echo "configure: failed program was" >&5
28089 cat conftest.s >&5
28091 rm -f conftest.o conftest.s
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28095 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28096 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28098 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28104 $as_echo_n "checking assembler for .module support... " >&6; }
28105 if ${gcc_cv_as_mips_dot_module+:} false; then :
28106 $as_echo_n "(cached) " >&6
28107 else
28108 gcc_cv_as_mips_dot_module=no
28109 if test x$gcc_cv_as != x; then
28110 $as_echo '.module mips2
28111 .module fp=xx' > conftest.s
28112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28114 (eval $ac_try) 2>&5
28115 ac_status=$?
28116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28117 test $ac_status = 0; }; }
28118 then
28119 gcc_cv_as_mips_dot_module=yes
28120 else
28121 echo "configure: failed program was" >&5
28122 cat conftest.s >&5
28124 rm -f conftest.o conftest.s
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28128 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28129 if test $gcc_cv_as_mips_dot_module = yes; then
28131 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28135 if test x$gcc_cv_as_mips_dot_module = xno \
28136 && test x$with_fp_32 != x; then
28137 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28141 $as_echo_n "checking assembler for .micromips support... " >&6; }
28142 if ${gcc_cv_as_micromips_support+:} false; then :
28143 $as_echo_n "(cached) " >&6
28144 else
28145 gcc_cv_as_micromips_support=no
28146 if test x$gcc_cv_as != x; then
28147 $as_echo '.set micromips' > conftest.s
28148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28150 (eval $ac_try) 2>&5
28151 ac_status=$?
28152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28153 test $ac_status = 0; }; }
28154 then
28155 gcc_cv_as_micromips_support=yes
28156 else
28157 echo "configure: failed program was" >&5
28158 cat conftest.s >&5
28160 rm -f conftest.o conftest.s
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28164 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28165 if test $gcc_cv_as_micromips_support = yes; then
28167 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28173 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28174 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28175 $as_echo_n "(cached) " >&6
28176 else
28177 gcc_cv_as_mips_dtprelword=no
28178 if test x$gcc_cv_as != x; then
28179 $as_echo '.section .tdata,"awT",@progbits
28181 .word 2
28182 .text
28183 .dtprelword x+0x8000' > conftest.s
28184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28186 (eval $ac_try) 2>&5
28187 ac_status=$?
28188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28189 test $ac_status = 0; }; }
28190 then
28191 gcc_cv_as_mips_dtprelword=yes
28192 else
28193 echo "configure: failed program was" >&5
28194 cat conftest.s >&5
28196 rm -f conftest.o conftest.s
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28200 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28201 if test $gcc_cv_as_mips_dtprelword = yes; then
28203 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28209 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28210 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28211 $as_echo_n "(cached) " >&6
28212 else
28213 gcc_cv_as_mips_dspr1_mult=no
28214 if test x$gcc_cv_as != x; then
28215 $as_echo ' .set mips32r2
28216 .set nodspr2
28217 .set dsp
28218 madd $ac3,$4,$5
28219 maddu $ac3,$4,$5
28220 msub $ac3,$4,$5
28221 msubu $ac3,$4,$5
28222 mult $ac3,$4,$5
28223 multu $ac3,$4,$5' > conftest.s
28224 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28226 (eval $ac_try) 2>&5
28227 ac_status=$?
28228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28229 test $ac_status = 0; }; }
28230 then
28231 gcc_cv_as_mips_dspr1_mult=yes
28232 else
28233 echo "configure: failed program was" >&5
28234 cat conftest.s >&5
28236 rm -f conftest.o conftest.s
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28240 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28241 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28243 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28249 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28250 gcc_cv_as_ld_jalr_reloc=no
28251 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28252 if test $in_tree_ld = yes ; then
28253 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 \
28254 && test $in_tree_ld_is_elf = yes; then
28255 gcc_cv_as_ld_jalr_reloc=yes
28257 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28258 echo ' .ent x' > conftest.s
28259 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28260 echo ' lw $25,%call16(y)($28)' >> conftest.s
28261 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28262 echo '1: jalr $25' >> conftest.s
28263 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28264 echo '1: jalr $25' >> conftest.s
28265 echo ' .end x' >> conftest.s
28266 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28267 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28268 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28269 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28270 gcc_cv_as_ld_jalr_reloc=yes
28273 rm -f conftest.*
28276 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28277 if test x$target_cpu_default = x; then
28278 target_cpu_default=MASK_RELAX_PIC_CALLS
28279 else
28280 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28284 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28287 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28288 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28289 $as_echo_n "(cached) " >&6
28290 else
28291 gcc_cv_ld_mips_personality_relaxation=no
28292 if test $in_tree_ld = yes ; then
28293 if test "$gcc_cv_gld_major_version" -eq 2 \
28294 -a "$gcc_cv_gld_minor_version" -ge 21 \
28295 -o "$gcc_cv_gld_major_version" -gt 2; then
28296 gcc_cv_ld_mips_personality_relaxation=yes
28298 elif test x$gcc_cv_as != x \
28299 -a x$gcc_cv_ld != x \
28300 -a x$gcc_cv_readelf != x ; then
28301 cat > conftest.s <<EOF
28302 .cfi_startproc
28303 .cfi_personality 0x80,indirect_ptr
28304 .ent test
28305 test:
28307 .end test
28308 .cfi_endproc
28310 .section .data,"aw",@progbits
28311 indirect_ptr:
28312 .dc.a personality
28314 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28315 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28316 if $gcc_cv_readelf -d conftest 2>&1 \
28317 | grep TEXTREL > /dev/null 2>&1; then
28319 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28320 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28322 else
28323 gcc_cv_ld_mips_personality_relaxation=yes
28327 rm -f conftest.s conftest.o conftest
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28330 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28331 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28333 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28338 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28339 if ${gcc_cv_as_mips_nan+:} false; then :
28340 $as_echo_n "(cached) " >&6
28341 else
28342 gcc_cv_as_mips_nan=no
28343 if test x$gcc_cv_as != x; then
28344 $as_echo '' > conftest.s
28345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28347 (eval $ac_try) 2>&5
28348 ac_status=$?
28349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28350 test $ac_status = 0; }; }
28351 then
28352 gcc_cv_as_mips_nan=yes
28353 else
28354 echo "configure: failed program was" >&5
28355 cat conftest.s >&5
28357 rm -f conftest.o conftest.s
28360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28361 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28362 if test $gcc_cv_as_mips_nan = yes; then
28364 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28368 if test x$gcc_cv_as_mips_nan = xno \
28369 && test x$with_nan != x; then
28370 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28373 msp430-*-*)
28374 # Earlier GAS versions generically support .gnu_attribute, but the
28375 # msp430 assembler will not do anything with it.
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28377 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28378 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28379 $as_echo_n "(cached) " >&6
28380 else
28381 gcc_cv_as_msp430_gnu_attribute=no
28382 if test x$gcc_cv_as != x; then
28383 $as_echo '.gnu_attribute 4,1' > conftest.s
28384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28386 (eval $ac_try) 2>&5
28387 ac_status=$?
28388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28389 test $ac_status = 0; }; }
28390 then
28391 gcc_cv_as_msp430_gnu_attribute=yes
28392 else
28393 echo "configure: failed program was" >&5
28394 cat conftest.s >&5
28396 rm -f conftest.o conftest.s
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28400 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28401 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28403 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28408 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28409 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28410 $as_echo_n "(cached) " >&6
28411 else
28412 gcc_cv_as_msp430_mspabi_attribute=no
28413 if test x$gcc_cv_as != x; then
28414 $as_echo '.mspabi_attribute 4,2' > conftest.s
28415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; }
28421 then
28422 gcc_cv_as_msp430_mspabi_attribute=yes
28423 else
28424 echo "configure: failed program was" >&5
28425 cat conftest.s >&5
28427 rm -f conftest.o conftest.s
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28431 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28432 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28434 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28438 if test x$enable_newlib_nano_formatted_io = xyes; then
28440 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28444 nios2-*-*)
28445 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28446 # syntax that is documented in the ABI specification.
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28448 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28449 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28450 $as_echo_n "(cached) " >&6
28451 else
28452 gcc_cv_as_nios2_gotoff_relocation=no
28453 if test x$gcc_cv_as != x; then
28454 $as_echo ' .extern foo
28455 .data
28456 .long %gotoff(foo)' > conftest.s
28457 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28459 (eval $ac_try) 2>&5
28460 ac_status=$?
28461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28462 test $ac_status = 0; }; }
28463 then
28464 gcc_cv_as_nios2_gotoff_relocation=yes
28465 else
28466 echo "configure: failed program was" >&5
28467 cat conftest.s >&5
28469 rm -f conftest.o conftest.s
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28473 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28474 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28476 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28481 riscv*-*-*)
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28483 $as_echo_n "checking assembler for .attribute support... " >&6; }
28484 if ${gcc_cv_as_riscv_attribute+:} false; then :
28485 $as_echo_n "(cached) " >&6
28486 else
28487 gcc_cv_as_riscv_attribute=no
28488 if test x$gcc_cv_as != x; then
28489 $as_echo '.attribute stack_align,4' > conftest.s
28490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28492 (eval $ac_try) 2>&5
28493 ac_status=$?
28494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28495 test $ac_status = 0; }; }
28496 then
28497 gcc_cv_as_riscv_attribute=yes
28498 else
28499 echo "configure: failed program was" >&5
28500 cat conftest.s >&5
28502 rm -f conftest.o conftest.s
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28506 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28507 if test $gcc_cv_as_riscv_attribute = yes; then
28509 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28514 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28515 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28516 $as_echo_n "(cached) " >&6
28517 else
28518 gcc_cv_as_riscv_isa_spec=no
28519 if test x$gcc_cv_as != x; then
28520 $as_echo '' > conftest.s
28521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28523 (eval $ac_try) 2>&5
28524 ac_status=$?
28525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28526 test $ac_status = 0; }; }
28527 then
28528 gcc_cv_as_riscv_isa_spec=yes
28529 else
28530 echo "configure: failed program was" >&5
28531 cat conftest.s >&5
28533 rm -f conftest.o conftest.s
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28537 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28538 if test $gcc_cv_as_riscv_isa_spec = yes; then
28540 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28545 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28546 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28547 $as_echo_n "(cached) " >&6
28548 else
28549 gcc_cv_as_riscv_march_zifencei=no
28550 if test x$gcc_cv_as != x; then
28551 $as_echo '' > conftest.s
28552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei -o conftest.o conftest.s >&5'
28553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28554 (eval $ac_try) 2>&5
28555 ac_status=$?
28556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28557 test $ac_status = 0; }; }
28558 then
28559 gcc_cv_as_riscv_march_zifencei=yes
28560 else
28561 echo "configure: failed program was" >&5
28562 cat conftest.s >&5
28564 rm -f conftest.o conftest.s
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28568 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28569 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28571 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28576 s390*-*-*)
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28578 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28579 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28580 $as_echo_n "(cached) " >&6
28581 else
28582 gcc_cv_as_s390_gnu_attribute=no
28583 if test x$gcc_cv_as != x; then
28584 $as_echo '.gnu_attribute 8,1' > conftest.s
28585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28587 (eval $ac_try) 2>&5
28588 ac_status=$?
28589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28590 test $ac_status = 0; }; }
28591 then
28592 gcc_cv_as_s390_gnu_attribute=yes
28593 else
28594 echo "configure: failed program was" >&5
28595 cat conftest.s >&5
28597 rm -f conftest.o conftest.s
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28601 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28602 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28604 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28609 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28610 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28611 $as_echo_n "(cached) " >&6
28612 else
28613 gcc_cv_as_s390_machine_machinemode=no
28614 if test x$gcc_cv_as != x; then
28615 $as_echo ' .machinemode push
28616 .machinemode pop
28617 .machine push
28618 .machine pop' > conftest.s
28619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28621 (eval $ac_try) 2>&5
28622 ac_status=$?
28623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28624 test $ac_status = 0; }; }
28625 then
28626 gcc_cv_as_s390_machine_machinemode=yes
28627 else
28628 echo "configure: failed program was" >&5
28629 cat conftest.s >&5
28631 rm -f conftest.o conftest.s
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28635 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28636 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28638 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28643 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28644 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28645 $as_echo_n "(cached) " >&6
28646 else
28647 gcc_cv_as_s390_architecture_modifiers=no
28648 if test x$gcc_cv_as != x; then
28649 $as_echo ' .machine z13+vx ' > conftest.s
28650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28652 (eval $ac_try) 2>&5
28653 ac_status=$?
28654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28655 test $ac_status = 0; }; }
28656 then
28657 gcc_cv_as_s390_architecture_modifiers=yes
28658 else
28659 echo "configure: failed program was" >&5
28660 cat conftest.s >&5
28662 rm -f conftest.o conftest.s
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28666 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28667 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28669 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28674 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28675 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28676 $as_echo_n "(cached) " >&6
28677 else
28678 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28679 if test x$gcc_cv_as != x; then
28680 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28683 (eval $ac_try) 2>&5
28684 ac_status=$?
28685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28686 test $ac_status = 0; }; }
28687 then
28688 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28689 else
28690 echo "configure: failed program was" >&5
28691 cat conftest.s >&5
28693 rm -f conftest.o conftest.s
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28697 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28698 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28700 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28705 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28706 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28707 $as_echo_n "(cached) " >&6
28708 else
28709 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28710 if test x$gcc_cv_as != x; then
28711 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28714 (eval $ac_try) 2>&5
28715 ac_status=$?
28716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28717 test $ac_status = 0; }; }
28718 then
28719 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28720 else
28721 echo "configure: failed program was" >&5
28722 cat conftest.s >&5
28724 rm -f conftest.o conftest.s
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28728 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28729 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28731 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28737 esac
28739 # Mips and HP-UX need the GNU assembler.
28740 # Linux on IA64 might be able to use the Intel assembler.
28742 case "$target" in
28743 mips*-*-* | *-*-hpux* )
28744 if test x$gas_flag = xyes \
28745 || test x"$host" != x"$build" \
28746 || test ! -x "$gcc_cv_as" \
28747 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28749 else
28750 echo "*** This configuration requires the GNU assembler" >&2
28751 exit 1
28754 esac
28756 # This tests if the assembler supports two registers for global_load functions
28757 # (like in LLVM versions <12) or one register (like in LLVM 12).
28758 case "$target" in
28759 amdgcn-* | gcn-*)
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler fix for global_load functions" >&5
28761 $as_echo_n "checking assembler fix for global_load functions... " >&6; }
28762 gcc_cv_as_gcn_global_load_fixed=yes
28763 if test x$gcc_cv_as != x; then
28764 cat > conftest.s <<EOF
28765 global_store_dwordx2 v[1:2], v[4:5], s[14:15]
28767 if $gcc_cv_as -triple=amdgcn--amdhsa -filetype=obj -mcpu=gfx900 -o conftest.o conftest.s > /dev/null 2>&1; then
28768 gcc_cv_as_gcn_global_load_fixed=no
28770 rm -f conftest.s conftest.o conftest
28772 global_load_fixed=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi`
28774 cat >>confdefs.h <<_ACEOF
28775 #define HAVE_GCN_ASM_GLOBAL_LOAD_FIXED $global_load_fixed
28776 _ACEOF
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_global_load_fixed" >&5
28779 $as_echo "$gcc_cv_as_gcn_global_load_fixed" >&6; }
28781 esac
28783 case "$target" in
28784 amdgcn-* | gcn-*)
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+sram-ecc for fiji" >&5
28786 $as_echo_n "checking assembler for assembler accepts -mattr=+sram-ecc for fiji... " >&6; }
28787 if ${gcc_cv_as_gcn_sram_ecc_fiji+:} false; then :
28788 $as_echo_n "(cached) " >&6
28789 else
28790 gcc_cv_as_gcn_sram_ecc_fiji=no
28791 if test x$gcc_cv_as != x; then
28792 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx803+sram-ecc"' > conftest.s
28793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=-xnack -mattr=+sram-ecc -o conftest.o conftest.s >&5'
28794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28795 (eval $ac_try) 2>&5
28796 ac_status=$?
28797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28798 test $ac_status = 0; }; }
28799 then
28800 gcc_cv_as_gcn_sram_ecc_fiji=yes
28801 else
28802 echo "configure: failed program was" >&5
28803 cat conftest.s >&5
28805 rm -f conftest.o conftest.s
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_fiji" >&5
28809 $as_echo "$gcc_cv_as_gcn_sram_ecc_fiji" >&6; }
28810 if test $gcc_cv_as_gcn_sram_ecc_fiji = yes; then
28812 $as_echo "#define HAVE_GCN_SRAM_ECC_FIJI 1" >>confdefs.h
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+sram-ecc for gfx900" >&5
28817 $as_echo_n "checking assembler for assembler accepts -mattr=+sram-ecc for gfx900... " >&6; }
28818 if ${gcc_cv_as_gcn_sram_ecc_gfx900+:} false; then :
28819 $as_echo_n "(cached) " >&6
28820 else
28821 gcc_cv_as_gcn_sram_ecc_gfx900=no
28822 if test x$gcc_cv_as != x; then
28823 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx900+sram-ecc"' > conftest.s
28824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=-xnack -mattr=+sram-ecc -o conftest.o conftest.s >&5'
28825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28826 (eval $ac_try) 2>&5
28827 ac_status=$?
28828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28829 test $ac_status = 0; }; }
28830 then
28831 gcc_cv_as_gcn_sram_ecc_gfx900=yes
28832 else
28833 echo "configure: failed program was" >&5
28834 cat conftest.s >&5
28836 rm -f conftest.o conftest.s
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx900" >&5
28840 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx900" >&6; }
28841 if test $gcc_cv_as_gcn_sram_ecc_gfx900 = yes; then
28843 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX900 1" >>confdefs.h
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+sram-ecc for gfx906" >&5
28848 $as_echo_n "checking assembler for assembler accepts -mattr=+sram-ecc for gfx906... " >&6; }
28849 if ${gcc_cv_as_gcn_sram_ecc_gfx906+:} false; then :
28850 $as_echo_n "(cached) " >&6
28851 else
28852 gcc_cv_as_gcn_sram_ecc_gfx906=no
28853 if test x$gcc_cv_as != x; then
28854 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+sram-ecc"' > conftest.s
28855 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=-xnack -mattr=+sram-ecc -o conftest.o conftest.s >&5'
28856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28857 (eval $ac_try) 2>&5
28858 ac_status=$?
28859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28860 test $ac_status = 0; }; }
28861 then
28862 gcc_cv_as_gcn_sram_ecc_gfx906=yes
28863 else
28864 echo "configure: failed program was" >&5
28865 cat conftest.s >&5
28867 rm -f conftest.o conftest.s
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx906" >&5
28871 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx906" >&6; }
28872 if test $gcc_cv_as_gcn_sram_ecc_gfx906 = yes; then
28874 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX906 1" >>confdefs.h
28878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+sram-ecc for gfx908" >&5
28879 $as_echo_n "checking assembler for assembler accepts -mattr=+sram-ecc for gfx908... " >&6; }
28880 if ${gcc_cv_as_gcn_sram_ecc_gfx908+:} false; then :
28881 $as_echo_n "(cached) " >&6
28882 else
28883 gcc_cv_as_gcn_sram_ecc_gfx908=no
28884 if test x$gcc_cv_as != x; then
28885 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx908+sram-ecc"' > conftest.s
28886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=-xnack -mattr=+sram-ecc -o conftest.o conftest.s >&5'
28887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28888 (eval $ac_try) 2>&5
28889 ac_status=$?
28890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28891 test $ac_status = 0; }; }
28892 then
28893 gcc_cv_as_gcn_sram_ecc_gfx908=yes
28894 else
28895 echo "configure: failed program was" >&5
28896 cat conftest.s >&5
28898 rm -f conftest.o conftest.s
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx908" >&5
28902 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx908" >&6; }
28903 if test $gcc_cv_as_gcn_sram_ecc_gfx908 = yes; then
28905 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX908 1" >>confdefs.h
28910 esac
28912 # ??? Not all targets support dwarf2 debug_line, even within a version
28913 # of gas. Moreover, we need to emit a valid instruction to trigger any
28914 # info to the output file. So, as supported targets are added to gas 2.11,
28915 # add some instruction here to (also) show we expect this might work.
28916 # ??? Once 2.11 is released, probably need to add first known working
28917 # version to the per-target configury.
28918 case "$cpu_type" in
28919 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28920 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28921 | tilegx | tilepro | visium | xstormy16 | xtensa)
28922 insn="nop"
28924 ia64 | s390)
28925 insn="nop 0"
28927 mmix)
28928 insn="swym 0"
28930 esac
28931 if test x"$insn" != x; then
28932 conftest_s="\
28933 .file 1 \"conftest.s\"
28934 .loc 1 3 0
28935 $insn"
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28937 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28938 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28939 $as_echo_n "(cached) " >&6
28940 else
28941 gcc_cv_as_dwarf2_debug_line=no
28942 if test x$gcc_cv_as != x; then
28943 $as_echo "$conftest_s" > conftest.s
28944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28946 (eval $ac_try) 2>&5
28947 ac_status=$?
28948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28949 test $ac_status = 0; }; }
28950 then
28951 if test x$gcc_cv_objdump != x \
28952 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28953 | grep debug_line > /dev/null 2>&1; then
28954 gcc_cv_as_dwarf2_debug_line=yes
28955 elif test x$gcc_cv_otool != x \
28956 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28957 | grep debug_line > /dev/null 2>&1; then
28958 gcc_cv_as_dwarf2_debug_line=yes
28960 else
28961 echo "configure: failed program was" >&5
28962 cat conftest.s >&5
28964 rm -f conftest.o conftest.s
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28968 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28972 # The .debug_line file table must be in the exact order that
28973 # we specified the files, since these indices are also used
28974 # by DW_AT_decl_file. Approximate this test by testing if
28975 # the assembler bitches if the same index is assigned twice.
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28977 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28978 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28979 $as_echo_n "(cached) " >&6
28980 else
28981 gcc_cv_as_dwarf2_file_buggy=no
28982 if test x$gcc_cv_as != x; then
28983 $as_echo ' .file 1 "foo.s"
28984 .file 1 "bar.s"' > conftest.s
28985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28987 (eval $ac_try) 2>&5
28988 ac_status=$?
28989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28990 test $ac_status = 0; }; }
28991 then
28992 gcc_cv_as_dwarf2_file_buggy=yes
28993 else
28994 echo "configure: failed program was" >&5
28995 cat conftest.s >&5
28997 rm -f conftest.o conftest.s
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29001 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29005 if test $gcc_cv_as_dwarf2_debug_line = yes \
29006 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29008 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29011 if test $gcc_cv_as_leb128 = yes; then
29012 conftest_s="\
29013 .file 1 \"conftest.s\"
29014 .loc 1 3 0 view .LVU1
29015 $insn
29016 .data
29017 .uleb128 .LVU1
29018 .uleb128 .LVU1
29020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29021 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29022 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29023 $as_echo_n "(cached) " >&6
29024 else
29025 gcc_cv_as_dwarf2_debug_view=no
29026 if test x$gcc_cv_as != x; then
29027 $as_echo "$conftest_s" > conftest.s
29028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29030 (eval $ac_try) 2>&5
29031 ac_status=$?
29032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29033 test $ac_status = 0; }; }
29034 then
29035 gcc_cv_as_dwarf2_debug_view=yes
29036 else
29037 echo "configure: failed program was" >&5
29038 cat conftest.s >&5
29040 rm -f conftest.o conftest.s
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29044 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29045 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29047 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29055 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29056 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29057 $as_echo_n "(cached) " >&6
29058 else
29059 gcc_cv_as_gdwarf2_flag=no
29060 if test x$gcc_cv_as != x; then
29061 $as_echo "$insn" > conftest.s
29062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29064 (eval $ac_try) 2>&5
29065 ac_status=$?
29066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29067 test $ac_status = 0; }; }
29068 then
29069 gcc_cv_as_gdwarf2_flag=yes
29070 else
29071 echo "configure: failed program was" >&5
29072 cat conftest.s >&5
29074 rm -f conftest.o conftest.s
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29078 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29079 if test $gcc_cv_as_gdwarf2_flag = yes; then
29081 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29087 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29088 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29089 $as_echo_n "(cached) " >&6
29090 else
29091 gcc_cv_as_gdwarf_5_flag=no
29092 if test x$gcc_cv_as != x; then
29093 $as_echo "$insn" > conftest.s
29094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29096 (eval $ac_try) 2>&5
29097 ac_status=$?
29098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29099 test $ac_status = 0; }; }
29100 then
29101 if test x$gcc_cv_objdump != x \
29102 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29103 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29104 gcc_cv_as_gdwarf_5_flag=yes;
29106 else
29107 echo "configure: failed program was" >&5
29108 cat conftest.s >&5
29110 rm -f conftest.o conftest.s
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29114 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29115 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29117 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29122 case $target_os in
29123 win32 | pe | cygwin* | mingw32*)
29124 section_flags=\"dr\"
29125 function_type=".def foo; .scl 2; .type 32; .endef"
29126 function_size="";;
29128 section_flags=\"\",%progbits
29129 function_type=".type foo, %function"
29130 function_size=".size foo, .-foo";;
29131 esac
29132 dwarf4_debug_info_size=0x46
29133 dwarf4_high_pc_form=7
29134 dwarf4_debug_aranges_size=0x2c
29135 dwarf4_line_sz=9
29136 for dwarf4_addr_size in 8 4; do
29137 conftest_s="\
29138 .file \"a.c\"
29139 .text
29140 .Ltext0:
29141 .p2align 4
29142 .globl foo
29143 $function_type
29144 foo:
29145 .LFB0:
29146 .LM1:
29147 $insn
29148 .LM2:
29149 .LFE0:
29150 $function_size
29151 .Letext0:
29152 .section .debug_info,$section_flags
29153 .Ldebug_info0:
29154 .4byte $dwarf4_debug_info_size
29155 .2byte 0x4
29156 .4byte .Ldebug_abbrev0
29157 .byte 0x$dwarf4_addr_size
29158 .byte 0x1
29159 .ascii \"GNU C17\\0\"
29160 .byte 0xc
29161 .ascii \"a.c\\0\"
29162 .ascii \"/\\0\"
29163 .${dwarf4_addr_size}byte .Ltext0
29164 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29165 .4byte .Ldebug_line0
29166 .byte 0x2
29167 .ascii \"foo\\0\"
29168 .byte 0x1
29169 .byte 0x2
29170 .byte 0x1
29171 .${dwarf4_addr_size}byte .LFB0
29172 .${dwarf4_addr_size}byte .LFE0-.LFB0
29173 .byte 0x1
29174 .byte 0x9c
29175 .byte 0
29176 .section .debug_abbrev,$section_flags
29177 .Ldebug_abbrev0:
29178 .byte 0x1
29179 .byte 0x11
29180 .byte 0x1
29181 .byte 0x25
29182 .byte 0x8
29183 .byte 0x13
29184 .byte 0xb
29185 .byte 0x3
29186 .byte 0x8
29187 .byte 0x1b
29188 .byte 0x8
29189 .byte 0x11
29190 .byte 0x1
29191 .byte 0x12
29192 .byte 0x$dwarf4_high_pc_form
29193 .byte 0x10
29194 .byte 0x17
29195 .byte 0
29196 .byte 0
29197 .byte 0x2
29198 .byte 0x2e
29199 .byte 0
29200 .byte 0x3f
29201 .byte 0x19
29202 .byte 0x3
29203 .byte 0x8
29204 .byte 0x3a
29205 .byte 0xb
29206 .byte 0x3b
29207 .byte 0xb
29208 .byte 0x39
29209 .byte 0xb
29210 .byte 0x11
29211 .byte 0x1
29212 .byte 0x12
29213 .byte 0x$dwarf4_high_pc_form
29214 .byte 0x40
29215 .byte 0x18
29216 .byte 0
29217 .byte 0
29218 .byte 0
29219 .section .debug_aranges,$section_flags
29220 .4byte $dwarf4_debug_aranges_size
29221 .2byte 0x2
29222 .4byte .Ldebug_info0
29223 .byte 0x8
29224 .byte 0
29225 .2byte 0
29226 .2byte 0
29227 .${dwarf4_addr_size}byte .Ltext0
29228 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29229 .${dwarf4_addr_size}byte 0
29230 .${dwarf4_addr_size}byte 0
29231 .section .debug_line,$section_flags
29232 .Ldebug_line0:
29233 .4byte .LELT0-.LSLT0
29234 .LSLT0:
29235 .2byte 0x4
29236 .4byte .LELTP0-.LASLTP0
29237 .LASLTP0:
29238 .byte 0x1
29239 .byte 0x1
29240 .byte 0x1
29241 .byte 0xf6
29242 .byte 0xf2
29243 .byte 0xd
29244 .byte 0
29245 .byte 0x1
29246 .byte 0x1
29247 .byte 0x1
29248 .byte 0x1
29249 .byte 0
29250 .byte 0
29251 .byte 0
29252 .byte 0x1
29253 .byte 0
29254 .byte 0
29255 .byte 0x1
29256 .byte 0
29257 .ascii \"a.c\\0\"
29258 .byte 0
29259 .byte 0
29260 .byte 0
29261 .byte 0
29262 .LELTP0:
29263 .byte 0
29264 .byte 0x$dwarf4_line_sz
29265 .byte 0x2
29266 .${dwarf4_addr_size}byte .LM1
29267 .byte 0x18
29268 .byte 0x5
29269 .byte 0x1
29270 .byte 0
29271 .byte 0x$dwarf4_line_sz
29272 .byte 0x2
29273 .${dwarf4_addr_size}byte .LM2
29274 .byte 0x1
29275 .byte 0x5
29276 .byte 0x1
29277 .byte 0
29278 .byte 0x$dwarf4_line_sz
29279 .byte 0x2
29280 .${dwarf4_addr_size}byte .Letext0
29281 .byte 0
29282 .byte 0x1
29283 .byte 0x1
29284 .LELT0:
29285 .section .debug_str,$section_flags
29286 .ident \"GCC\"
29288 dwarf4_success=no
29289 if test $dwarf4_addr_size = 4; then
29290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29291 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29292 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29293 $as_echo_n "(cached) " >&6
29294 else
29295 gcc_cv_as_debug_line_32_flag=no
29296 if test x$gcc_cv_as != x; then
29297 $as_echo "$conftest_s" > conftest.s
29298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_debug_line_32_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_debug_line_32_flag" >&5
29314 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29315 if test $gcc_cv_as_debug_line_32_flag = yes; then
29316 dwarf4_success=yes
29319 else
29320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29321 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29322 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29323 $as_echo_n "(cached) " >&6
29324 else
29325 gcc_cv_as_debug_line_64_flag=no
29326 if test x$gcc_cv_as != x; then
29327 $as_echo "$conftest_s" > conftest.s
29328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29330 (eval $ac_try) 2>&5
29331 ac_status=$?
29332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29333 test $ac_status = 0; }; }
29334 then
29335 gcc_cv_as_debug_line_64_flag=yes
29336 else
29337 echo "configure: failed program was" >&5
29338 cat conftest.s >&5
29340 rm -f conftest.o conftest.s
29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29344 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29345 if test $gcc_cv_as_debug_line_64_flag = yes; then
29346 dwarf4_success=yes
29350 if test $dwarf4_success = yes; then
29351 dwarf4_success=no
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29353 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29354 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29355 $as_echo_n "(cached) " >&6
29356 else
29357 gcc_cv_as_dwarf_4_debug_line_flag=no
29358 if test x$gcc_cv_as != x; then
29359 $as_echo "$conftest_s" > conftest.s
29360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29362 (eval $ac_try) 2>&5
29363 ac_status=$?
29364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29365 test $ac_status = 0; }; }
29366 then
29367 gcc_cv_as_dwarf_4_debug_line_flag=yes
29368 else
29369 echo "configure: failed program was" >&5
29370 cat conftest.s >&5
29372 rm -f conftest.o conftest.s
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29376 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29377 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29378 dwarf4_success=yes
29381 break
29383 dwarf4_debug_info_size=0x36
29384 dwarf4_high_pc_form=6
29385 dwarf4_debug_aranges_size=0x1c
29386 dwarf4_line_sz=5
29387 done
29389 if test $dwarf4_success = yes; then
29390 conftest_s="\
29391 .file \"foo.c\"
29392 .text
29393 bar:
29394 #APP
29395 # 82 \"xxx.h\" 1
29396 $insn
29397 # 0 \"\" 2
29398 #NO_APP
29399 $insn
29400 foo:
29401 .file 1 \"foo.c\"
29402 $insn
29403 .file 2 \"foo.h\"
29406 dwarf4_success=no
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29408 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29409 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29410 $as_echo_n "(cached) " >&6
29411 else
29412 gcc_cv_as_dwarf_4_app_flag=no
29413 if test x$gcc_cv_as != x; then
29414 $as_echo "$conftest_s" > conftest.s
29415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29417 (eval $ac_try) 2>&5
29418 ac_status=$?
29419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29420 test $ac_status = 0; }; }
29421 then
29422 gcc_cv_as_dwarf_4_app_flag=yes
29423 else
29424 echo "configure: failed program was" >&5
29425 cat conftest.s >&5
29427 rm -f conftest.o conftest.s
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29431 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29432 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29433 dwarf4_success=yes
29438 if test $dwarf4_success = yes; then
29439 conftest_s="\
29440 .text
29441 .globl foo
29442 $function_type
29443 foo:
29444 $insn
29445 $function_size
29446 .file 1 \"foo.c\"
29448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29449 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29450 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29451 $as_echo_n "(cached) " >&6
29452 else
29453 gcc_cv_as_working_gdwarf_n_flag=no
29454 if test x$gcc_cv_as != x; then
29455 $as_echo "$conftest_s" > conftest.s
29456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29458 (eval $ac_try) 2>&5
29459 ac_status=$?
29460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29461 test $ac_status = 0; }; }
29462 then
29463 if test x$gcc_cv_objdump != x \
29464 && $gcc_cv_objdump -W conftest.o 2>&1 \
29465 | grep conftest.s > /dev/null 2>&1; then
29466 gcc_cv_as_working_gdwarf_n_flag=no
29467 else
29468 gcc_cv_as_working_gdwarf_n_flag=yes
29470 else
29471 echo "configure: failed program was" >&5
29472 cat conftest.s >&5
29474 rm -f conftest.o conftest.s
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29478 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29481 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29483 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29489 $as_echo_n "checking assembler for --gstabs option... " >&6; }
29490 if ${gcc_cv_as_gstabs_flag+:} false; then :
29491 $as_echo_n "(cached) " >&6
29492 else
29493 gcc_cv_as_gstabs_flag=no
29494 if test x$gcc_cv_as != x; then
29495 $as_echo "$insn" > conftest.s
29496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29498 (eval $ac_try) 2>&5
29499 ac_status=$?
29500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29501 test $ac_status = 0; }; }
29502 then
29503 gcc_cv_as_gstabs_flag=yes
29504 else
29505 echo "configure: failed program was" >&5
29506 cat conftest.s >&5
29508 rm -f conftest.o conftest.s
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29512 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29513 if test $gcc_cv_as_gstabs_flag = yes; then
29515 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29521 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29522 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29523 $as_echo_n "(cached) " >&6
29524 else
29525 gcc_cv_as_debug_prefix_map_flag=no
29526 if test x$gcc_cv_as != x; then
29527 $as_echo "$insn" > conftest.s
29528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29530 (eval $ac_try) 2>&5
29531 ac_status=$?
29532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29533 test $ac_status = 0; }; }
29534 then
29535 gcc_cv_as_debug_prefix_map_flag=yes
29536 else
29537 echo "configure: failed program was" >&5
29538 cat conftest.s >&5
29540 rm -f conftest.o conftest.s
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29544 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29545 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29547 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29554 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29555 if ${gcc_cv_as_compress_debug+:} false; then :
29556 $as_echo_n "(cached) " >&6
29557 else
29558 gcc_cv_as_compress_debug=no
29559 if test x$gcc_cv_as != x; then
29560 $as_echo '' > conftest.s
29561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29563 (eval $ac_try) 2>&5
29564 ac_status=$?
29565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29566 test $ac_status = 0; }; }
29567 then
29568 # gas compiled without zlib cannot compress debug sections and warns
29569 # about it, but still exits successfully. So check for this, too.
29570 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29571 then
29572 gcc_cv_as_compress_debug=0
29573 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29574 # defaulting to the ELF gABI format.
29575 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
29576 then
29577 gcc_cv_as_compress_debug=2
29578 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29579 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29580 # Before binutils 2.26, gas only supported --compress-debug-options and
29581 # emitted the traditional GNU format.
29582 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
29583 then
29584 gcc_cv_as_compress_debug=1
29585 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29586 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29587 else
29588 gcc_cv_as_compress_debug=0
29590 else
29591 echo "configure: failed program was" >&5
29592 cat conftest.s >&5
29594 rm -f conftest.o conftest.s
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29598 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29602 cat >>confdefs.h <<_ACEOF
29603 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29604 _ACEOF
29607 cat >>confdefs.h <<_ACEOF
29608 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29609 _ACEOF
29612 cat >>confdefs.h <<_ACEOF
29613 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29614 _ACEOF
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29618 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29619 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29620 $as_echo_n "(cached) " >&6
29621 else
29622 gcc_cv_as_lcomm_with_alignment=no
29623 if test x$gcc_cv_as != x; then
29624 $as_echo '.lcomm bar,4,16' > conftest.s
29625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29627 (eval $ac_try) 2>&5
29628 ac_status=$?
29629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29630 test $ac_status = 0; }; }
29631 then
29632 gcc_cv_as_lcomm_with_alignment=yes
29633 else
29634 echo "configure: failed program was" >&5
29635 cat conftest.s >&5
29637 rm -f conftest.o conftest.s
29640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29641 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29642 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29644 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29649 if test x$with_sysroot = x && test x$host = x$target \
29650 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29651 && test "$prefix" != "NONE"; then
29653 cat >>confdefs.h <<_ACEOF
29654 #define PREFIX_INCLUDE_DIR "$prefix/include"
29655 _ACEOF
29659 # Determine the version of glibc, if any, used on the target.
29660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29661 $as_echo_n "checking for target glibc version... " >&6; }
29663 # Check whether --with-glibc-version was given.
29664 if test "${with_glibc_version+set}" = set; then :
29665 withval=$with_glibc_version;
29666 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29667 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29668 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29669 else
29670 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29672 else
29674 glibc_version_major=0
29675 glibc_version_minor=0
29676 if test -f $target_header_dir/features.h \
29677 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29678 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29679 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29680 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29685 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29687 cat >>confdefs.h <<_ACEOF
29688 #define TARGET_GLIBC_MAJOR $glibc_version_major
29689 _ACEOF
29692 cat >>confdefs.h <<_ACEOF
29693 #define TARGET_GLIBC_MINOR $glibc_version_minor
29694 _ACEOF
29697 # Check whether --enable-gnu-unique-object was given.
29698 if test "${enable_gnu_unique_object+set}" = set; then :
29699 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29700 yes | no) ;;
29701 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29702 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29703 esac
29704 else
29705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29706 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29707 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29708 $as_echo_n "(cached) " >&6
29709 else
29710 gcc_cv_as_gnu_unique_object=no
29711 if test x$gcc_cv_as != x; then
29712 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29715 (eval $ac_try) 2>&5
29716 ac_status=$?
29717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29718 test $ac_status = 0; }; }
29719 then
29720 gcc_cv_as_gnu_unique_object=yes
29721 else
29722 echo "configure: failed program was" >&5
29723 cat conftest.s >&5
29725 rm -f conftest.o conftest.s
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29729 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29730 if test $gcc_cv_as_gnu_unique_object = yes; then
29731 # We need to unquote above to to use the definition from config.gcc.
29732 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29734 if test $glibc_version_major -gt 2 \
29735 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29736 enable_gnu_unique_object=yes
29743 if test x$enable_gnu_unique_object = xyes; then
29745 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29750 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29751 if ${gcc_cv_as_line_zero+:} false; then :
29752 $as_echo_n "(cached) " >&6
29753 else
29754 gcc_cv_as_line_zero=no
29755 if test "x$gcc_cv_as" != x; then
29756 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29757 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29759 (eval $ac_try) 2>&5
29760 ac_status=$?
29761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29762 test $ac_status = 0; }; } &&
29763 test "x`cat conftest.out`" = x
29764 then
29765 gcc_cv_as_line_zero=yes
29766 else
29767 echo "configure: failed program was" >&5
29768 cat conftest.s >&5
29769 echo "configure: error output was" >&5
29770 cat conftest.out >&5
29772 rm -f conftest.o conftest.s conftest.out
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29776 $as_echo "$gcc_cv_as_line_zero" >&6; }
29777 if test "x$gcc_cv_as_line_zero" = xyes; then
29779 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29784 $as_echo_n "checking support for thin archives... " >&6; }
29785 thin_archive_support=no
29786 echo 'int main (void) { return 0; }' > conftest.c
29787 if ($AR --version | sed 1q | grep "GNU ar" \
29788 && $CC $CFLAGS -c conftest.c \
29789 && $AR rcT conftest.a conftest.o \
29790 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29791 thin_archive_support=yes
29793 rm -f conftest.c conftest.o conftest.a conftest
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29795 $as_echo "$thin_archive_support" >&6; }
29798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29799 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29800 gcc_cv_ld_eh_frame_hdr=no
29801 if test $in_tree_ld = yes ; then
29802 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 \
29803 && test $in_tree_ld_is_elf = yes; then
29804 gcc_cv_ld_eh_frame_hdr=yes
29806 elif test x$gcc_cv_ld != x; then
29807 if echo "$ld_ver" | grep GNU > /dev/null; then
29808 # Check if linker supports --eh-frame-hdr option
29809 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
29810 gcc_cv_ld_eh_frame_hdr=yes
29812 else
29813 case "$target" in
29814 *-*-solaris2*)
29815 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29816 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
29817 gcc_cv_ld_eh_frame_hdr=yes
29820 esac
29824 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
29826 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29830 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29833 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29834 gcc_cv_ld_eh_frame_ciev3=no
29835 if test $in_tree_ld = yes ; then
29836 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 \
29837 && test $in_tree_ld_is_elf = yes; then
29838 gcc_cv_ld_eh_frame_ciev3=yes
29840 elif test x$gcc_cv_ld != x; then
29841 if echo "$ld_ver" | grep GNU > /dev/null; then
29842 gcc_cv_ld_eh_frame_ciev3=yes
29843 if test 0"$ld_date" -lt 20040513; then
29844 if test -n "$ld_date"; then
29845 # If there was date string, but was earlier than 2004-05-13, fail
29846 gcc_cv_ld_eh_frame_ciev3=no
29847 elif test "$ld_vers_major" -lt 2; then
29848 gcc_cv_ld_eh_frame_ciev3=no
29849 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29850 gcc_cv_ld_eh_frame_ciev3=no
29853 else
29854 case "$target" in
29855 *-*-solaris2*)
29856 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29857 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
29858 gcc_cv_ld_eh_frame_ciev3=yes
29861 esac
29865 cat >>confdefs.h <<_ACEOF
29866 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
29867 _ACEOF
29869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
29870 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
29873 $as_echo_n "checking linker position independent executable support... " >&6; }
29874 gcc_cv_ld_pie=no
29875 if test $in_tree_ld = yes ; then
29876 case "$target" in
29877 # Full PIE support on Solaris was only introduced in gld 2.26.
29878 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
29879 *) gcc_gld_pie_min_version=15 ;;
29880 esac
29881 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 \
29882 && test $in_tree_ld_is_elf = yes; then
29883 gcc_cv_ld_pie=yes
29885 elif test x$gcc_cv_ld != x; then
29886 # Check if linker supports -pie option
29887 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
29888 gcc_cv_ld_pie=yes
29889 case "$target" in
29890 *-*-solaris2*)
29891 if echo "$ld_ver" | grep GNU > /dev/null \
29892 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29893 gcc_cv_ld_pie=no
29896 esac
29897 else
29898 case "$target" in
29899 *-*-solaris2.1[1-9]*)
29900 # Solaris 11.3 added PIE support.
29901 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
29902 gcc_cv_ld_pie=yes
29905 esac
29908 if test x"$gcc_cv_ld_pie" = xyes; then
29910 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
29913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
29914 $as_echo "$gcc_cv_ld_pie" >&6; }
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
29917 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
29918 gcc_cv_ld_pie_copyreloc=no
29919 if test $gcc_cv_ld_pie = yes ; then
29920 if test $in_tree_ld = yes ; then
29921 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
29922 gcc_cv_ld_pie_copyreloc=yes
29924 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29925 # Check if linker supports -pie option with copy reloc
29926 case "$target" in
29927 i?86-*-linux* | x86_64-*-linux*)
29928 cat > conftest1.s <<EOF
29929 .globl a_glob
29930 .data
29931 .type a_glob, @object
29932 .size a_glob, 4
29933 a_glob:
29934 .long 2
29936 cat > conftest2.s <<EOF
29937 .text
29938 .globl main
29939 .type main, @function
29940 main:
29941 movl %eax, a_glob(%rip)
29942 .size main, .-main
29943 .globl ptr
29944 .section .data.rel,"aw",@progbits
29945 .type ptr, @object
29946 ptr:
29947 .quad a_glob
29949 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29950 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
29951 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29952 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
29953 gcc_cv_ld_pie_copyreloc=yes
29955 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
29957 esac
29961 cat >>confdefs.h <<_ACEOF
29962 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
29963 _ACEOF
29965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
29966 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
29969 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
29970 gcc_cv_ld_eh_gc_sections=no
29971 if test $in_tree_ld = yes ; then
29972 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 \
29973 && test $in_tree_ld_is_elf = yes; then
29974 gcc_cv_ld_eh_gc_sections=yes
29976 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
29977 cat > conftest.s <<EOF
29978 .section .text
29979 .globl _start
29980 .type _start, @function
29981 _start:
29982 .long foo
29983 .size _start, .-_start
29984 .section .text.foo,"ax",@progbits
29985 .type foo, @function
29986 foo:
29987 .long 0
29988 .size foo, .-foo
29989 .section .gcc_except_table.foo,"a",@progbits
29990 .L0:
29991 .long 0
29992 .section .eh_frame,"a",@progbits
29993 .long .L0
29995 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29996 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29997 | grep "gc-sections option ignored" > /dev/null; then
29998 gcc_cv_ld_eh_gc_sections=no
29999 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30000 | grep gcc_except_table > /dev/null; then
30001 gcc_cv_ld_eh_gc_sections=yes
30002 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30003 if test x$gcc_cv_as_comdat_group != xyes; then
30004 gcc_cv_ld_eh_gc_sections=no
30005 cat > conftest.s <<EOF
30006 .section .text
30007 .globl _start
30008 .type _start, @function
30009 _start:
30010 .long foo
30011 .size _start, .-_start
30012 .section .gnu.linkonce.t.foo,"ax",@progbits
30013 .type foo, @function
30014 foo:
30015 .long 0
30016 .size foo, .-foo
30017 .section .gcc_except_table.foo,"a",@progbits
30018 .L0:
30019 .long 0
30020 .section .eh_frame,"a",@progbits
30021 .long .L0
30023 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30024 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30025 | grep "gc-sections option ignored" > /dev/null; then
30026 gcc_cv_ld_eh_gc_sections=no
30027 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30028 | grep gcc_except_table > /dev/null; then
30029 gcc_cv_ld_eh_gc_sections=yes
30035 rm -f conftest.s conftest.o conftest
30037 case "$target" in
30038 hppa*-*-linux*)
30039 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30040 gcc_cv_ld_eh_gc_sections=no
30042 esac
30043 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30045 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30049 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30052 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30053 gcc_cv_ld_eh_gc_sections_bug=no
30054 if test $in_tree_ld = yes ; then
30055 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 \
30056 && test $in_tree_ld_is_elf = yes; then
30057 gcc_cv_ld_eh_gc_sections_bug=yes
30059 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
30060 gcc_cv_ld_eh_gc_sections_bug=yes
30061 cat > conftest.s <<EOF
30062 .section .text
30063 .globl _start
30064 .type _start, @function
30065 _start:
30066 .long foo
30067 .size _start, .-_start
30068 .section .text.startup.foo,"ax",@progbits
30069 .type foo, @function
30070 foo:
30071 .long 0
30072 .size foo, .-foo
30073 .section .gcc_except_table.foo,"a",@progbits
30074 .L0:
30075 .long 0
30076 .section .eh_frame,"a",@progbits
30077 .long .L0
30079 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30080 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30081 | grep "gc-sections option ignored" > /dev/null; then
30083 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30084 | grep gcc_except_table > /dev/null; then
30085 gcc_cv_ld_eh_gc_sections_bug=no
30088 rm -f conftest.s conftest.o conftest
30090 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30092 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30096 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30099 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30100 # gold/gld support compressed debug sections since binutils 2.19/2.21
30101 # In binutils 2.26, gld gained support for the ELF gABI format.
30102 if test $in_tree_ld = yes ; then
30103 gcc_cv_ld_compress_debug=0
30104 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 \
30105 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30106 gcc_cv_ld_compress_debug=2
30107 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30108 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 \
30109 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
30110 gcc_cv_ld_compress_debug=3
30111 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30112 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 \
30113 && test $in_tree_ld_is_elf = yes; then
30114 gcc_cv_ld_compress_debug=1
30116 elif echo "$ld_ver" | grep GNU > /dev/null; then
30117 if test "$ld_vers_major" -lt 2 \
30118 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30119 gcc_cv_ld_compress_debug=0
30120 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30121 gcc_cv_ld_compress_debug=1
30122 else
30123 gcc_cv_ld_compress_debug=3
30124 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30126 if test $ld_is_gold = yes; then
30127 gcc_cv_ld_compress_debug=2
30128 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30130 else
30131 case "${target}" in
30132 *-*-solaris2*)
30133 # Introduced in Solaris 11.2.
30134 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30135 gcc_cv_ld_compress_debug=3
30136 gcc_cv_ld_compress_debug_option="-z compress-sections"
30137 else
30138 gcc_cv_ld_compress_debug=0
30142 # Assume linkers other than GNU ld don't support compessed debug
30143 # sections.
30144 gcc_cv_ld_compress_debug=0
30146 esac
30149 cat >>confdefs.h <<_ACEOF
30150 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30151 _ACEOF
30154 cat >>confdefs.h <<_ACEOF
30155 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30156 _ACEOF
30158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30159 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30161 if test x"$ld64_flag" = x"yes"; then
30163 # Set defaults for possibly untestable items.
30164 gcc_cv_ld64_export_dynamic=0
30166 if test "$build" = "$host"; then
30167 darwin_try_test=1
30168 else
30169 darwin_try_test=0
30172 # On Darwin, because of FAT library support, it is often possible to execute
30173 # exes from compatible archs even when the host differs from the build system.
30174 case "$build","$host" in
30175 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30176 darwin_try_test=1;;
30177 *) ;;
30178 esac
30180 # If the configurer specified a minimum ld64 version to be supported, then use
30181 # that to determine feature support.
30182 if test x"${gcc_cv_ld64_version}" != x; then
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30184 $as_echo_n "checking ld64 specified version... " >&6; }
30185 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30187 $as_echo "$gcc_cv_ld64_major" >&6; }
30188 if test "$gcc_cv_ld64_major" -ge 236; then
30189 gcc_cv_ld64_export_dynamic=1
30191 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30192 # If the version was not specified, try to find it.
30193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30194 $as_echo_n "checking linker version... " >&6; }
30195 if test x"${gcc_cv_ld64_version}" = x; then
30196 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30199 $as_echo "$gcc_cv_ld64_version" >&6; }
30201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30202 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30203 gcc_cv_ld64_export_dynamic=1
30204 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30205 gcc_cv_ld64_export_dynamic=0
30207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30208 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30211 if test x"${gcc_cv_ld64_version}" != x; then
30213 cat >>confdefs.h <<_ACEOF
30214 #define LD64_VERSION "${gcc_cv_ld64_version}"
30215 _ACEOF
30220 cat >>confdefs.h <<_ACEOF
30221 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30222 _ACEOF
30226 if test x"$dsymutil_flag" = x"yes"; then
30228 # If the user specified a dsymutil path, then we will already have the
30229 # version string, otherwise, pick it up.
30230 if test x"$gcc_cv_dsymutil" = x; then
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30232 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30233 dsymutil_vers="tool unspecified"
30234 elif test x"$dsymutil_vers" = x; then
30235 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30238 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30240 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30241 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30242 dsymutil_kind=DWARFUTILS
30243 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30244 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30245 dsymutil_kind=CLANG
30246 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30247 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30248 dsymutil_kind=LLVM
30249 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30250 else
30251 dsymutil_kind=UNKNOWN
30252 dsymutil_vers="0.0"
30254 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30255 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30256 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30257 if test x"${dsymutil_minor}" = x; then
30258 dsymutil_minor=0
30260 if test x"${dsymutil_tiny}" = x; then
30261 dsymutil_tiny=0
30264 cat >>confdefs.h <<_ACEOF
30265 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30266 _ACEOF
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30269 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30272 case $target_os in
30273 win32 | pe | cygwin* | mingw32*)
30274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30275 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30276 gcc_cv_ld_broken_pe_dwarf5=yes
30277 if test $in_tree_ld = yes ; then
30278 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30279 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30280 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30281 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30282 gcc_cv_ld_broken_pe_dwarf5=no
30284 else
30285 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30286 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30287 gcc_cv_ld_broken_pe_dwarf5=no
30290 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30292 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30296 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30299 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30300 gcc_cv_ld_disable_dynamicbase=no
30301 if test $in_tree_ld = yes; then
30302 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 \
30303 gcc_cv_ld_disable_dynamicbase=yes
30305 else
30306 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30307 gcc_cv_ld_disable_dynamicbase=yes
30310 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30312 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30316 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30318 esac
30320 # --------
30321 # UNSORTED
30322 # --------
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30325 $as_echo_n "checking linker --as-needed support... " >&6; }
30326 if ${gcc_cv_ld_as_needed+:} false; then :
30327 $as_echo_n "(cached) " >&6
30328 else
30329 gcc_cv_ld_as_needed=no
30330 gcc_cv_ld_as_needed_option='--as-needed'
30331 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30332 if test $in_tree_ld = yes ; then
30333 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 \
30334 && test $in_tree_ld_is_elf = yes; then
30335 gcc_cv_ld_as_needed=yes
30336 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30337 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30338 gcc_cv_ld_no_as_needed_option='--pop-state'
30341 elif test x$gcc_cv_ld != x; then
30342 # Check if linker supports --as-needed and --no-as-needed options
30343 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30344 gcc_cv_ld_as_needed=yes
30345 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30346 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30347 && echo "$ld_ver" | grep GNU > /dev/null \
30348 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30349 # Use these options only when both ld.bfd and ld.gold support
30350 # --push-state/--pop-state, which unfortunately wasn't added
30351 # at the same time.
30352 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30353 gcc_cv_ld_no_as_needed_option='--pop-state'
30356 case "$target:$gnu_ld" in
30357 *-*-solaris2*:no)
30358 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30359 # forms.
30360 gcc_cv_ld_as_needed=yes
30361 gcc_cv_ld_as_needed_option="-z ignore"
30362 gcc_cv_ld_no_as_needed_option="-z record"
30364 esac
30366 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30367 # dl_iterate_phdr, i.e. since Solaris 11.
30368 case "$target" in
30369 *-*-solaris2.1[1-9]*)
30370 case "$target" in
30371 i?86-*-* | x86_64-*-*)
30372 if echo "$ld_ver" | grep GNU > /dev/null; then
30373 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30374 gcc_cv_ld_as_needed=no
30377 esac
30379 *-*-solaris2*)
30380 gcc_cv_ld_as_needed=no
30382 esac
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30386 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30387 if test x"$gcc_cv_ld_as_needed" = xyes; then
30389 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30392 cat >>confdefs.h <<_ACEOF
30393 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30394 _ACEOF
30397 cat >>confdefs.h <<_ACEOF
30398 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30399 _ACEOF
30403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30404 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30405 saved_LDFLAGS="$LDFLAGS"
30406 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30407 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30409 /* end confdefs.h. */
30410 int main(void) {return 0;}
30411 _ACEOF
30412 if ac_fn_cxx_try_link "$LINENO"; then :
30413 gcc_cv_ld_clearcap=yes; break
30414 else
30415 gcc_cv_ld_clearcap=no
30417 rm -f core conftest.err conftest.$ac_objext \
30418 conftest$ac_exeext conftest.$ac_ext
30419 done
30420 LDFLAGS="$saved_LDFLAGS"
30421 if test "x$gcc_cv_ld_clearcap" = xyes; then
30423 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30425 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30429 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30431 case "$target" in
30432 powerpc*-*-*)
30433 case "$target" in
30434 *le-*-linux*)
30435 emul_name="-melf32lppc"
30438 emul_name="-melf32ppc"
30440 esac
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30442 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30443 if ${gcc_cv_ld_ppc_attr+:} false; then :
30444 $as_echo_n "(cached) " >&6
30445 else
30446 gcc_cv_ld_ppc_attr=no
30447 if test x"$ld_is_gold" = xyes; then
30448 gcc_cv_ld_ppc_attr=yes
30449 elif test $in_tree_ld = yes ; then
30450 if test "$gcc_cv_gld_major_version" -eq 2 \
30451 -a "$gcc_cv_gld_minor_version" -ge 28 \
30452 -o "$gcc_cv_gld_major_version" -gt 2; then
30453 gcc_cv_ld_ppc_attr=yes
30455 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30456 # check that merging the long double .gnu_attribute doesn't warn
30457 cat > conftest1.s <<EOF
30458 .gnu_attribute 4,1
30460 cat > conftest2.s <<EOF
30461 .gnu_attribute 4,9
30463 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30464 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30465 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30466 && test ! -s conftest.err; then
30467 gcc_cv_ld_ppc_attr=yes
30469 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30474 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30475 if test x$gcc_cv_ld_ppc_attr = xyes; then
30477 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30481 esac
30483 case "$target:$tm_file" in
30484 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30485 case "$target" in
30486 *le-*-linux*)
30487 emul_name="-melf64lppc"
30489 *-*-linux*)
30490 emul_name="-melf64ppc"
30492 *le-*-freebsd*)
30493 emul_name="-melf64lppc_fbsd"
30495 *-*-freebsd*)
30496 emul_name="-melf64ppc_fbsd"
30498 esac
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30500 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30501 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30502 $as_echo_n "(cached) " >&6
30503 else
30504 gcc_cv_ld_no_dot_syms=no
30505 if test x"$ld_is_gold" = xyes; then
30506 gcc_cv_ld_no_dot_syms=yes
30507 elif test $in_tree_ld = yes ; then
30508 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
30509 gcc_cv_ld_no_dot_syms=yes
30511 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30512 cat > conftest1.s <<EOF
30513 .text
30514 bl .foo
30516 cat > conftest2.s <<EOF
30517 .section ".opd","aw"
30518 .align 3
30519 .globl foo
30520 .type foo,@function
30521 foo:
30522 .quad .LEfoo,.TOC.@tocbase,0
30523 .text
30524 .LEfoo:
30526 .size foo,.-.LEfoo
30528 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30529 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30530 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30531 gcc_cv_ld_no_dot_syms=yes
30533 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30538 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30539 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30541 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30546 $as_echo_n "checking linker large toc support... " >&6; }
30547 if ${gcc_cv_ld_large_toc+:} false; then :
30548 $as_echo_n "(cached) " >&6
30549 else
30550 gcc_cv_ld_large_toc=no
30551 if test x"$ld_is_gold" = xyes; then
30552 gcc_cv_ld_large_toc=yes
30553 elif test $in_tree_ld = yes ; then
30554 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
30555 gcc_cv_ld_large_toc=yes
30557 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30558 cat > conftest.s <<EOF
30559 .section ".tbss","awT",@nobits
30560 .align 3
30561 ie0: .space 8
30562 .global _start
30563 .text
30564 _start:
30565 addis 9,13,ie0@got@tprel@ha
30566 ld 9,ie0@got@tprel@l(9)
30568 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30569 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30570 gcc_cv_ld_large_toc=yes
30572 rm -f conftest conftest.o conftest.s
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30577 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30578 if test x"$gcc_cv_ld_large_toc" = xyes; then
30580 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30585 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30586 if ${gcc_cv_ld_toc_align+:} false; then :
30587 $as_echo_n "(cached) " >&6
30588 else
30589 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30590 cat > conftest.s <<EOF
30591 .global _start
30592 .text
30593 _start:
30594 addis 9,2,x@got@ha
30595 .section .data.rel.ro,"aw",@progbits
30596 .p2align 16
30597 .space 32768
30598 x: .quad .TOC.
30600 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30601 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30602 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)) }'`
30604 rm -f conftest conftest.o conftest.s
30608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30609 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30610 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30612 cat >>confdefs.h <<_ACEOF
30613 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30614 _ACEOF
30618 esac
30620 case "$target" in
30621 *-*-aix*)
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30623 $as_echo_n "checking linker large toc support... " >&6; }
30624 if ${gcc_cv_ld_large_toc+:} false; then :
30625 $as_echo_n "(cached) " >&6
30626 else
30627 gcc_cv_ld_large_toc=no
30628 if test x$gcc_cv_as != x ; then
30629 cat > conftest.s <<EOF
30630 .toc
30631 LC..1:
30632 .tc a[TC],a[RW]
30633 .extern a[RW]
30634 .csect .text[PR]
30635 .largetoctest:
30636 addis 9,LC..1@u(2)
30637 ld 3,LC..1@l(9)
30639 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30640 gcc_cv_ld_large_toc=yes
30642 rm -f conftest conftest.o conftest.s
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30647 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30648 if test x"$gcc_cv_ld_large_toc" = xyes; then
30650 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30654 esac
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30657 $as_echo_n "checking linker --build-id support... " >&6; }
30658 if ${gcc_cv_ld_buildid+:} false; then :
30659 $as_echo_n "(cached) " >&6
30660 else
30661 gcc_cv_ld_buildid=no
30662 if test $in_tree_ld = yes ; then
30663 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30664 "$gcc_cv_gld_minor_version" -ge 18 -o \
30665 "$gcc_cv_gld_major_version" -gt 2 \
30666 && test $in_tree_ld_is_elf = yes; then
30667 gcc_cv_ld_buildid=yes
30669 elif test x$gcc_cv_ld != x; then
30670 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30671 gcc_cv_ld_buildid=yes
30675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30676 $as_echo "$gcc_cv_ld_buildid" >&6; }
30677 if test x"$gcc_cv_ld_buildid" = xyes; then
30679 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30683 # Check whether --enable-linker-build-id was given.
30684 if test "${enable_linker_build_id+set}" = set; then :
30685 enableval=$enable_linker_build_id;
30686 else
30687 enable_linker_build_id=no
30691 if test x"$enable_linker_build_id" = xyes; then
30692 if test x"$gcc_cv_ld_buildid" = xyes; then
30694 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30696 else
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30698 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30702 # In binutils 2.21, GNU ld gained support for new emulations fully
30703 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30705 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30706 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30707 $as_echo_n "(cached) " >&6
30708 else
30709 gcc_cv_ld_sol2_emulation=no
30710 if test $in_tree_ld = yes ; then
30711 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30712 "$gcc_cv_gld_minor_version" -ge 21 -o \
30713 "$gcc_cv_gld_major_version" -gt 2 \
30714 && test $in_tree_ld_is_elf = yes; then
30715 gcc_cv_ld_sol2_emulation=yes
30717 elif test x$gcc_cv_ld != x; then
30718 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30719 grep _sol2 > /dev/null; then
30720 gcc_cv_ld_sol2_emulation=yes
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30725 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30726 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30728 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30733 $as_echo_n "checking linker --sysroot support... " >&6; }
30734 if ${gcc_cv_ld_sysroot+:} false; then :
30735 $as_echo_n "(cached) " >&6
30736 else
30737 gcc_cv_ld_sysroot=no
30738 if test $in_tree_ld = yes ; then
30739 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
30740 gcc_cv_ld_sysroot=yes
30742 elif test x$gcc_cv_ld != x; then
30743 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30744 gcc_cv_ld_sysroot=yes
30748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30749 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30750 if test x"$gcc_cv_ld_sysroot" = xyes; then
30752 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30756 case $target in
30757 *-*-solaris2*)
30758 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30760 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30761 if ${gcc_cv_solaris_crts+:} false; then :
30762 $as_echo_n "(cached) " >&6
30763 else
30764 gcc_cv_solaris_crts=no
30765 if test x$host != x$target; then
30766 if test "x$with_sysroot" = xyes; then
30767 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30768 else
30769 target_sysroot="${with_sysroot}"
30772 target_libdir="$target_sysroot/usr/lib"
30773 # At the time they were added, gcrt1.o became a symlink for backwards
30774 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30775 case $target in
30776 i?86-*-solaris2* | x86_64-*-solaris2*)
30777 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30779 sparc*-*-solaris2*)
30780 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30782 esac
30784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30785 $as_echo "$gcc_cv_solaris_crts" >&6; }
30787 esac
30788 if test x$gcc_cv_solaris_crts = xyes; then
30790 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30794 # Check whether --enable-libssp was given.
30795 if test "${enable_libssp+set}" = set; then :
30796 enableval=$enable_libssp; case "${enableval}" in
30797 yes|no)
30800 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30802 esac
30806 # Test for stack protector support in target C library.
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30808 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30809 if ${gcc_cv_libc_provides_ssp+:} false; then :
30810 $as_echo_n "(cached) " >&6
30811 else
30812 gcc_cv_libc_provides_ssp=no
30813 if test "x$enable_libssp" = "xno"; then
30814 gcc_cv_libc_provides_ssp=yes
30815 elif test "x$enable_libssp" = "xyes"; then
30816 gcc_cv_libc_provides_ssp=no
30817 else
30818 case "$target" in
30819 *-*-musl*)
30820 # All versions of musl provide stack protector
30821 gcc_cv_libc_provides_ssp=yes;;
30822 *-*-linux* | *-*-kfreebsd*-gnu)
30823 # glibc 2.4 and later provides __stack_chk_fail and
30824 # either __stack_chk_guard, or TLS access to stack guard canary.
30826 if test $glibc_version_major -gt 2 \
30827 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30828 gcc_cv_libc_provides_ssp=yes
30829 else
30831 if test -f $target_header_dir/features.h \
30832 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30833 $target_header_dir/features.h > /dev/null; then
30834 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
30835 $target_header_dir/features.h > /dev/null && \
30836 test -f $target_header_dir/bits/uClibc_config.h && \
30837 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
30838 $target_header_dir/bits/uClibc_config.h > /dev/null; then
30839 gcc_cv_libc_provides_ssp=yes
30841 # all versions of Bionic support stack protector
30842 elif test -f $target_header_dir/sys/cdefs.h \
30843 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
30844 $target_header_dir/sys/cdefs.h > /dev/null; then
30845 gcc_cv_libc_provides_ssp=yes
30849 *-*-gnu*)
30850 # Avoid complicated tests (see
30851 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
30852 # simply assert that glibc does provide this, which is true for all
30853 # realistically usable GNU/Hurd configurations.
30854 # All supported versions of musl provide it as well
30855 gcc_cv_libc_provides_ssp=yes;;
30856 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
30857 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
30858 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
30859 gcc_cv_libc_provides_ssp=yes
30860 else
30861 echo "no __stack_chk_fail on this target"
30865 *) gcc_cv_libc_provides_ssp=no ;;
30866 esac
30869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
30870 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
30872 if test x$gcc_cv_libc_provides_ssp = xyes; then
30874 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
30878 # Check whether --enable-default-ssp was given.
30879 # Check whether --enable-default-ssp was given.
30880 if test "${enable_default_ssp+set}" = set; then :
30881 enableval=$enable_default_ssp;
30882 if test x$gcc_cv_libc_provides_ssp = xyes; then
30883 case "$target" in
30884 ia64*-*-*) enable_default_ssp=no ;;
30885 *) enable_default_ssp=$enableval ;;
30886 esac
30887 else
30888 enable_default_ssp=no
30890 else
30891 enable_default_ssp=no
30894 if test x$enable_default_ssp = xyes ; then
30896 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
30901 # Test for <sys/sdt.h> on the target.
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
30904 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
30905 have_sys_sdt_h=no
30906 if test -f $target_header_dir/sys/sdt.h; then
30907 have_sys_sdt_h=yes
30909 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
30913 $as_echo "$have_sys_sdt_h" >&6; }
30915 # Check if TFmode long double should be used by default or not.
30916 # Some glibc targets used DFmode long double, but with glibc 2.4
30917 # and later they can use TFmode.
30918 case "$target" in
30919 powerpc*-*-linux* | \
30920 sparc*-*-linux* | \
30921 s390*-*-linux* | \
30922 alpha*-*-linux*)
30924 # Check whether --with-long-double-128 was given.
30925 if test "${with_long_double_128+set}" = set; then :
30926 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
30927 else
30929 case "$target" in
30930 s390*-*-linux-musl*)
30931 gcc_cv_target_ldbl128=yes
30933 powerpc*-*-linux-musl*)
30934 gcc_cv_target_ldbl128=no
30938 if test $glibc_version_major -gt 2 \
30939 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30940 gcc_cv_target_ldbl128=yes
30941 else
30943 gcc_cv_target_ldbl128=no
30944 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
30945 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
30946 && gcc_cv_target_ldbl128=yes
30951 esac
30956 esac
30957 if test x$gcc_cv_target_ldbl128 = xyes; then
30959 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
30963 # Check if TFmode long double target should use the IBM extended double or IEEE
30964 # 128-bit floating point formats if long doubles are 128-bits long. The long
30965 # double type can only be switched on powerpc64 bit Linux systems where VSX is
30966 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
30967 # libgcc.
30969 # Check whether --with-long-double-format was given.
30970 if test "${with_long_double_format+set}" = set; then :
30971 withval=$with_long_double_format;
30972 case "$target:$with_long_double_format" in
30973 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
30976 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
30977 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
30978 case "$with_cpu" in
30979 power7 | power8 | power9 | power1*)
30983 as_fn_error $? "Configuration option --with-long-double-format is only \
30984 supported if the default cpu is power7 or newer" "$LINENO" 5
30985 with_long_double_format=""
30987 esac
30989 powerpc64*-*-linux*:*)
30990 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
30991 with_long_double_format=""
30994 as_fn_error $? "Configure option --with-long-double-format is only supported \
30995 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
30996 with_long_double_format=""
30998 esac
31002 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31003 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31004 gcc_cv_libc_provides_hwcap_in_tcb=no
31005 case "$target" in
31006 powerpc*-*-linux*)
31008 if test $glibc_version_major -gt 2 \
31009 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31010 gcc_cv_libc_provides_hwcap_in_tcb=yes
31013 esac
31014 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31016 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31020 # Check if the target LIBC handles PT_GNU_STACK.
31021 gcc_cv_libc_gnustack=unknown
31022 case "$target" in
31023 mips*-*-linux*)
31025 if test $glibc_version_major -gt 2 \
31026 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31027 gcc_cv_libc_gnustack=yes
31030 esac
31031 if test x$gcc_cv_libc_gnustack = xyes; then
31033 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31038 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31039 gcc_cv_target_dl_iterate_phdr=unknown
31040 case "$target" in
31041 *-*-solaris2*)
31042 # <link.h> needs both a dl_iterate_phdr declaration and support for
31043 # compilation with largefile support.
31044 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31045 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31046 gcc_cv_target_dl_iterate_phdr=yes
31047 else
31048 gcc_cv_target_dl_iterate_phdr=no
31051 *-*-dragonfly* | *-*-freebsd*)
31052 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31053 gcc_cv_target_dl_iterate_phdr=yes
31054 else
31055 gcc_cv_target_dl_iterate_phdr=no
31058 *-linux-musl*)
31059 gcc_cv_target_dl_iterate_phdr=yes
31061 esac
31063 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31065 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31069 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31071 # We no longer support different GC mechanisms. Emit an error if
31072 # the user configures with --with-gc.
31074 # Check whether --with-gc was given.
31075 if test "${with_gc+set}" = set; then :
31076 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31080 # Libraries to use on the host. This will normally be set by the top
31081 # level Makefile. Here we simply capture the value for our Makefile.
31082 if test -z "${HOST_LIBS+set}"; then
31083 HOST_LIBS=
31087 # Use the system's zlib library.
31089 # Use the system's zlib library.
31090 zlibdir="-L\$(top_builddir)/../zlib"
31091 zlibinc="-I\$(top_srcdir)/../zlib"
31093 # Check whether --with-system-zlib was given.
31094 if test "${with_system_zlib+set}" = set; then :
31095 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31096 zlibdir=
31097 zlibinc=
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31108 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31109 # Check whether --enable-maintainer-mode was given.
31110 if test "${enable_maintainer_mode+set}" = set; then :
31111 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31112 else
31113 maintainer_mode=no
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31118 $as_echo "$maintainer_mode" >&6; }
31120 if test "$maintainer_mode" = "yes"; then
31121 MAINT=''
31122 else
31123 MAINT='#'
31127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31128 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31129 # Check whether --enable-link-mutex was given.
31130 if test "${enable_link_mutex+set}" = set; then :
31131 enableval=$enable_link_mutex; do_link_mutex=$enableval
31132 else
31133 do_link_mutex=no
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31137 $as_echo "$do_link_mutex" >&6; }
31139 if test "$do_link_mutex" = "yes"; then
31140 DO_LINK_MUTEX=true
31141 else
31142 DO_LINK_MUTEX=false
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31148 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31149 # Check whether --enable-link-serialization was given.
31150 if test "${enable_link_serialization+set}" = set; then :
31151 enableval=$enable_link_serialization; do_link_serialization=$enableval
31152 else
31153 do_link_serialization=no
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31157 $as_echo "$do_link_serialization" >&6; }
31159 case "$do_link_serialization" in
31160 yes)
31161 DO_LINK_SERIALIZATION=1;;
31162 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31163 DO_LINK_SERIALIZATION=$do_link_serialization;;
31165 DO_LINK_SERIALIZATION=;;
31167 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31168 esac
31171 # --------------
31172 # Language hooks
31173 # --------------
31175 # Make empty files to contain the specs and options for each language.
31176 # Then add #include lines to for a compiler that has specs and/or options.
31178 subdirs=
31179 lang_opt_files=
31180 lang_specs_files=
31181 lang_tree_files=
31182 # These (without "all_") are set in each config-lang.in.
31183 # `language' must be a single word so is spelled singularly.
31184 all_languages=
31185 all_compilers=
31186 all_outputs='Makefile'
31187 # List of language configure and makefile fragments.
31188 all_lang_configurefrags=
31189 all_lang_makefrags=
31190 # Additional files for gengtype
31191 all_gtfiles="$target_gtfiles"
31193 # These are the languages that are set in --enable-languages,
31194 # and are available in the GCC tree.
31195 all_selected_languages=
31197 # Add the language fragments.
31198 # Languages are added via two mechanisms. Some information must be
31199 # recorded in makefile variables, these are defined in config-lang.in.
31200 # We accumulate them and plug them into the main Makefile.
31201 # The other mechanism is a set of hooks for each of the main targets
31202 # like `clean', `install', etc.
31204 language_hooks="Make-hooks"
31206 for lang in ${srcdir}/*/config-lang.in
31208 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31210 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31211 if test "x$lang_alias" = x
31212 then
31213 echo "$lang doesn't set \$language." 1>&2
31214 exit 1
31216 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31217 subdirs="$subdirs $subdir"
31219 # $gcc_subdir is where the gcc integration files are to be found
31220 # for a language, both for internal compiler purposes (compiler
31221 # sources implementing front-end to GCC tree converters), and for
31222 # build infrastructure purposes (Make-lang.in, etc.)
31224 # This will be <subdir> (relative to $srcdir) if a line like
31225 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31226 # is found in <langdir>/config-lang.in, and will remain <langdir>
31227 # otherwise.
31229 # Except for the language alias (fetched above), the regular
31230 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31231 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31232 # only this and the language alias.
31234 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31235 if [ "$gcc_subdir" = "" ]; then
31236 gcc_subdir="$subdir"
31239 case ",$enable_languages," in
31240 *,$lang_alias,*)
31241 all_selected_languages="$all_selected_languages $lang_alias"
31242 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31243 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31246 esac
31248 language=
31249 boot_language=
31250 compilers=
31251 outputs=
31252 gtfiles=
31253 subdir_requires=
31254 . ${srcdir}/$gcc_subdir/config-lang.in
31255 if test "x$language" = x
31256 then
31257 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31258 exit 1
31261 ok=:
31262 case ",$enable_languages," in
31263 *,$lang_alias,*) ;;
31265 for i in $subdir_requires; do
31266 test -f "${srcdir}/$i/config-lang.in" && continue
31267 ok=false
31268 break
31269 done
31271 esac
31272 $ok || continue
31274 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31275 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31276 # Put c/Make-lang.in fragment first to match serialization languages order.
31277 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31278 else
31279 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31281 if test -f $srcdir/$gcc_subdir/lang.opt; then
31282 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31283 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31285 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31286 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31288 all_languages="$all_languages $language"
31289 all_compilers="$all_compilers $compilers"
31290 all_outputs="$all_outputs $outputs"
31291 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31292 case ",$enable_languages," in
31293 *,lto,*)
31295 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31297 enable_lto=yes
31300 *) ;;
31301 esac
31302 done
31304 check_languages=
31305 for language in $all_selected_languages
31307 check_languages="$check_languages check-$language"
31308 done
31310 selftest_languages=
31311 for language in $all_selected_languages
31313 selftest_languages="$selftest_languages selftest-$language"
31314 done
31316 # We link each language in with a set of hooks, reached indirectly via
31317 # lang.${target}. Only do so for selected languages.
31319 rm -f Make-hooks
31320 touch Make-hooks
31321 target_list="all.cross start.encap rest.encap tags \
31322 install-common install-man install-info install-pdf install-html dvi \
31323 pdf html uninstall info man srcextra srcman srcinfo \
31324 mostlyclean clean distclean maintainer-clean install-plugin"
31326 for t in $target_list
31329 for lang in $all_selected_languages
31331 x="$x $lang.$t"
31332 done
31333 echo "lang.$t: $x" >> Make-hooks
31334 done
31336 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31337 echo "SERIAL_LIST =" >> Make-hooks
31338 echo else >> Make-hooks
31339 lang_cnt=0
31340 lang_list=
31341 prev=c
31342 serialization_languages=c
31343 for lang in $all_selected_languages
31345 test $lang = c && continue
31346 if test $lang = lto; then
31347 serialization_languages="$serialization_languages lto1 lto2"
31348 else
31349 serialization_languages="$serialization_languages $lang"
31351 done
31352 for lang in $serialization_languages
31354 test $lang = c && continue
31355 lang_cnt=`expr $lang_cnt + 1`
31356 lang_list=" $prev$lang_list"
31357 prev=${lang}
31358 done
31359 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31360 echo endif >> Make-hooks
31361 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31362 echo "INDEX.c = 0" >> Make-hooks
31363 lang_idx=1
31364 for lang in $serialization_languages
31366 test $lang = c && continue
31367 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31368 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31369 lang_cnt=`expr $lang_cnt - 1`
31370 lang_idx=`expr $lang_idx + 1`
31371 done
31373 # --------
31374 # Option include files
31375 # --------
31377 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31378 option_includes="option-includes.mk"
31381 # --------
31382 # UNSORTED
31383 # --------
31385 # Create .gdbinit.
31387 echo "dir ." > .gdbinit
31388 echo "dir ${srcdir}" >> .gdbinit
31389 if test x$gdb_needs_out_file_path = xyes
31390 then
31391 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31393 if test "x$subdirs" != x; then
31394 for s in $subdirs
31396 echo "dir ${srcdir}/$s" >> .gdbinit
31397 done
31399 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31400 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31402 # Put a breakpoint on __asan_report_error to help with debugging buffer
31403 # overflow.
31404 case "$CFLAGS" in
31405 *-fsanitize=address*)
31406 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31408 esac
31410 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31414 # Find a directory in which to install a shared libgcc.
31416 # Check whether --enable-version-specific-runtime-libs was given.
31417 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31418 enableval=$enable_version_specific_runtime_libs;
31422 # Substitute configuration variables
31492 # Echo link setup.
31493 if test x${build} = x${host} ; then
31494 if test x${host} = x${target} ; then
31495 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31496 else
31497 echo "Links are now set up to build a cross-compiler" 1>&2
31498 echo " from ${host} to ${target}." 1>&2
31500 else
31501 if test x${host} = x${target} ; then
31502 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31503 echo " for ${target}." 1>&2
31504 else
31505 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31506 echo " from ${host} to ${target}." 1>&2
31515 if test "x${ISLLIBS}" != "x" ; then
31517 $as_echo "#define HAVE_isl 1" >>confdefs.h
31521 # Check for plugin support
31522 # Check whether --enable-plugin was given.
31523 if test "${enable_plugin+set}" = set; then :
31524 enableval=$enable_plugin; enable_plugin=$enableval
31525 else
31526 enable_plugin=yes; default_plugin=yes
31530 pluginlibs=
31531 plugin_check=yes
31533 case "${host}" in
31534 *-*-mingw*)
31535 # Since plugin support under MinGW is not as straightforward as on
31536 # other platforms (e.g., we have to link import library, etc), we
31537 # only enable it if explicitly requested.
31538 if test x"$default_plugin" = x"yes"; then
31539 enable_plugin=no
31540 elif test x"$enable_plugin" = x"yes"; then
31541 # Use make's target variable to derive import library name.
31542 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31543 plugin_check=no
31546 *-*-darwin*)
31547 if test x$build = x$host; then
31548 export_sym_check="nm${exeext} -g"
31549 elif test x$host = x$target; then
31550 export_sym_check="$gcc_cv_nm -g"
31551 else
31552 export_sym_check=
31556 if test x$build = x$host; then
31557 export_sym_check="objdump${exeext} -T"
31558 elif test x$host = x$target; then
31559 export_sym_check="$gcc_cv_objdump -T"
31560 else
31561 export_sym_check=
31564 esac
31566 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31569 $as_echo_n "checking for exported symbols... " >&6; }
31570 if test "x$export_sym_check" != x; then
31571 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31572 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31573 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31574 : # No need to use a flag
31575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31576 $as_echo "yes" >&6; }
31577 else
31578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31579 $as_echo "yes" >&6; }
31580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31581 $as_echo_n "checking for -rdynamic... " >&6; }
31582 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31583 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31584 plugin_rdynamic=yes
31585 pluginlibs="-rdynamic"
31586 else
31587 plugin_rdynamic=no
31588 enable_plugin=no
31590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31591 $as_echo "$plugin_rdynamic" >&6; }
31593 else
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31595 $as_echo "unable to check" >&6; }
31598 # Check -ldl
31599 saved_LIBS="$LIBS"
31600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31601 $as_echo_n "checking for library containing dlopen... " >&6; }
31602 if ${ac_cv_search_dlopen+:} false; then :
31603 $as_echo_n "(cached) " >&6
31604 else
31605 ac_func_search_save_LIBS=$LIBS
31606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31607 /* end confdefs.h. */
31609 /* Override any GCC internal prototype to avoid an error.
31610 Use char because int might match the return type of a GCC
31611 builtin and then its argument prototype would still apply. */
31612 #ifdef __cplusplus
31613 extern "C"
31614 #endif
31615 char dlopen ();
31617 main ()
31619 return dlopen ();
31621 return 0;
31623 _ACEOF
31624 for ac_lib in '' dl; do
31625 if test -z "$ac_lib"; then
31626 ac_res="none required"
31627 else
31628 ac_res=-l$ac_lib
31629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31631 if ac_fn_cxx_try_link "$LINENO"; then :
31632 ac_cv_search_dlopen=$ac_res
31634 rm -f core conftest.err conftest.$ac_objext \
31635 conftest$ac_exeext
31636 if ${ac_cv_search_dlopen+:} false; then :
31637 break
31639 done
31640 if ${ac_cv_search_dlopen+:} false; then :
31642 else
31643 ac_cv_search_dlopen=no
31645 rm conftest.$ac_ext
31646 LIBS=$ac_func_search_save_LIBS
31648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31649 $as_echo "$ac_cv_search_dlopen" >&6; }
31650 ac_res=$ac_cv_search_dlopen
31651 if test "$ac_res" != no; then :
31652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31656 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31657 pluginlibs="$pluginlibs -ldl"
31659 LIBS="$saved_LIBS"
31661 # Check that we can build shared objects with -fPIC -shared
31662 saved_LDFLAGS="$LDFLAGS"
31663 saved_CFLAGS="$CFLAGS"
31664 case "${host}" in
31665 *-*-darwin*)
31666 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31667 CFLAGS="$CFLAGS -fPIC"
31668 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31671 CFLAGS="$CFLAGS -fPIC"
31672 LDFLAGS="$LDFLAGS -fPIC -shared"
31674 esac
31675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31676 $as_echo_n "checking for -fPIC -shared... " >&6; }
31677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31678 /* end confdefs.h. */
31679 extern int X;
31681 main ()
31683 return X == 0;
31685 return 0;
31687 _ACEOF
31688 if ac_fn_cxx_try_link "$LINENO"; then :
31689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31690 $as_echo "yes" >&6; }; have_pic_shared=yes
31691 else
31692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31693 $as_echo "no" >&6; }; have_pic_shared=no
31695 rm -f core conftest.err conftest.$ac_objext \
31696 conftest$ac_exeext conftest.$ac_ext
31697 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31698 pluginlibs=
31699 enable_plugin=no
31701 LDFLAGS="$saved_LDFLAGS"
31702 CFLAGS="$saved_CFLAGS"
31704 # If plugin support had been requested but not available, fail.
31705 if test x"$enable_plugin" = x"no" ; then
31706 if test x"$default_plugin" != x"yes"; then
31707 as_fn_error $? "
31708 Building GCC with plugin support requires a host that supports
31709 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31716 if test x"$enable_plugin" = x"yes"; then
31718 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31723 # Enable --enable-host-shared
31724 # Check whether --enable-host-shared was given.
31725 if test "${enable_host_shared+set}" = set; then :
31726 enableval=$enable_host_shared; PICFLAG=-fPIC
31727 else
31728 PICFLAG=
31735 # Check whether --enable-libquadmath-support was given.
31736 if test "${enable_libquadmath_support+set}" = set; then :
31737 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31738 else
31739 ENABLE_LIBQUADMATH_SUPPORT=yes
31742 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31744 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31749 # Specify what hash style to use by default.
31751 # Check whether --with-linker-hash-style was given.
31752 if test "${with_linker_hash_style+set}" = set; then :
31753 withval=$with_linker_hash_style; case x"$withval" in
31754 xsysv)
31755 LINKER_HASH_STYLE=sysv
31757 xgnu)
31758 LINKER_HASH_STYLE=gnu
31760 xboth)
31761 LINKER_HASH_STYLE=both
31764 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31766 esac
31767 else
31768 LINKER_HASH_STYLE=''
31771 if test x"${LINKER_HASH_STYLE}" != x; then
31773 cat >>confdefs.h <<_ACEOF
31774 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31775 _ACEOF
31779 # Specify what should be the default of -fdiagnostics-color option.
31781 # Check whether --with-diagnostics-color was given.
31782 if test "${with_diagnostics_color+set}" = set; then :
31783 withval=$with_diagnostics_color; case x"$withval" in
31784 xnever)
31785 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
31787 xauto)
31788 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31790 xauto-if-env)
31791 DIAGNOSTICS_COLOR_DEFAULT=-1
31793 xalways)
31794 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
31797 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31799 esac
31800 else
31801 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31805 cat >>confdefs.h <<_ACEOF
31806 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31807 _ACEOF
31810 # Specify what should be the default of -fdiagnostics-urls option.
31812 # Check whether --with-diagnostics-urls was given.
31813 if test "${with_diagnostics_urls+set}" = set; then :
31814 withval=$with_diagnostics_urls; case x"$withval" in
31815 xnever)
31816 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
31818 xauto)
31819 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31821 xauto-if-env)
31822 DIAGNOSTICS_URLS_DEFAULT=-1
31824 xalways)
31825 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
31828 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
31830 esac
31831 else
31832 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31836 cat >>confdefs.h <<_ACEOF
31837 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
31838 _ACEOF
31841 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
31842 # of jit/jit-playback.c.
31843 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
31844 echo "gcc_driver_version: ${gcc_driver_version}"
31845 cat > gcc-driver-name.h <<EOF
31846 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
31849 # Check whether --enable-default-pie was given.
31850 # Check whether --enable-default-pie was given.
31851 if test "${enable_default_pie+set}" = set; then :
31852 enableval=$enable_default_pie; enable_default_pie=$enableval
31853 else
31854 enable_default_pie=no
31857 if test x$enable_default_pie = xyes ; then
31859 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
31864 # Check if -fno-PIE works.
31865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
31866 $as_echo_n "checking for -fno-PIE option... " >&6; }
31867 if ${gcc_cv_c_no_fpie+:} false; then :
31868 $as_echo_n "(cached) " >&6
31869 else
31870 saved_CXXFLAGS="$CXXFLAGS"
31871 CXXFLAGS="$CXXFLAGS -fno-PIE"
31872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31873 /* end confdefs.h. */
31874 int main(void) {return 0;}
31875 _ACEOF
31876 if ac_fn_cxx_try_compile "$LINENO"; then :
31877 gcc_cv_c_no_fpie=yes
31878 else
31879 gcc_cv_c_no_fpie=no
31881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31882 CXXFLAGS="$saved_CXXFLAGS"
31884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
31885 $as_echo "$gcc_cv_c_no_fpie" >&6; }
31886 if test "$gcc_cv_c_no_fpie" = "yes"; then
31887 NO_PIE_CFLAGS="-fno-PIE"
31891 # Check if -no-pie works.
31892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
31893 $as_echo_n "checking for -no-pie option... " >&6; }
31894 if ${gcc_cv_no_pie+:} false; then :
31895 $as_echo_n "(cached) " >&6
31896 else
31897 saved_LDFLAGS="$LDFLAGS"
31898 LDFLAGS="$LDFLAGS -no-pie"
31899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31900 /* end confdefs.h. */
31901 int main(void) {return 0;}
31902 _ACEOF
31903 if ac_fn_cxx_try_link "$LINENO"; then :
31904 gcc_cv_no_pie=yes
31905 else
31906 gcc_cv_no_pie=no
31908 rm -f core conftest.err conftest.$ac_objext \
31909 conftest$ac_exeext conftest.$ac_ext
31910 LDFLAGS="$saved_LDFLAGS"
31912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
31913 $as_echo "$gcc_cv_no_pie" >&6; }
31914 if test "$gcc_cv_no_pie" = "yes"; then
31915 NO_PIE_FLAG="-no-pie"
31919 # Enable Intel CET on Intel CET enabled host if jit is enabled.
31920 # Check whether --enable-cet was given.
31921 if test "${enable_cet+set}" = set; then :
31922 enableval=$enable_cet;
31923 case "$enableval" in
31924 yes|no|auto) ;;
31925 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
31926 esac
31928 else
31929 enable_cet=auto
31933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
31934 $as_echo_n "checking for CET support... " >&6; }
31936 case "$host" in
31937 i[34567]86-*-linux* | x86_64-*-linux*)
31938 may_have_cet=yes
31939 cet_save_CFLAGS="$CFLAGS"
31940 CFLAGS="$CFLAGS -fcf-protection"
31941 case "$enable_cet" in
31942 auto)
31943 # Check if target supports multi-byte NOPs
31944 # and if compiler and assembler support CET.
31945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31946 /* end confdefs.h. */
31949 main ()
31952 #if !defined(__SSE2__)
31953 #error target does not support multi-byte NOPs
31954 #else
31955 asm ("setssbsy");
31956 #endif
31959 return 0;
31961 _ACEOF
31962 if ac_fn_cxx_try_compile "$LINENO"; then :
31963 enable_cet=yes
31964 else
31965 enable_cet=no
31967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31969 yes)
31970 # Check if compiler and assembler support CET.
31971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31972 /* end confdefs.h. */
31975 main ()
31977 asm ("setssbsy");
31979 return 0;
31981 _ACEOF
31982 if ac_fn_cxx_try_compile "$LINENO"; then :
31983 support_cet=yes
31984 else
31985 support_cet=no
31987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31988 if test $support_cet = "no"; then
31989 if test x$enable_bootstrap != xno \
31990 && test -z "${with_build_subdir}" \
31991 && (test ! -f ../stage_current \
31992 || test `cat ../stage_current` != "stage1"); then
31993 # Require CET support only for the final GCC build.
31994 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
31995 else
31996 # Don't enable CET without CET support for non-bootstrap
31997 # build, in stage1 nor for build support.
31998 enable_cet=no
32002 esac
32003 CFLAGS="$cet_save_CFLAGS"
32006 may_have_cet=no
32007 enable_cet=no
32009 esac
32011 cet_save_CFLAGS="$CFLAGS"
32012 CFLAGS="$CFLAGS -fcf-protection=none"
32013 cet_save_LDFLAGS="$LDFLAGS"
32014 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32015 if test x$may_have_cet = xyes; then
32016 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32018 /* end confdefs.h. */
32021 main ()
32023 return 0;
32025 return 0;
32027 _ACEOF
32028 if ac_fn_cxx_try_link "$LINENO"; then :
32029 may_have_cet=yes
32030 else
32031 may_have_cet=no
32033 rm -f core conftest.err conftest.$ac_objext \
32034 conftest$ac_exeext conftest.$ac_ext
32037 if test x$may_have_cet = xyes; then
32038 if test x$cross_compiling = xno; then
32039 if test "$cross_compiling" = yes; then :
32040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32042 as_fn_error $? "cannot run test program while cross compiling
32043 See \`config.log' for more details" "$LINENO" 5; }
32044 else
32045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32046 /* end confdefs.h. */
32049 main ()
32051 asm ("endbr32");
32052 return 0;
32055 _ACEOF
32056 if ac_fn_cxx_try_run "$LINENO"; then :
32057 have_multi_byte_nop=yes
32058 else
32059 have_multi_byte_nop=no
32061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32062 conftest.$ac_objext conftest.beam conftest.$ac_ext
32065 have_cet=no
32066 if test x$have_multi_byte_nop = xyes; then
32067 if test "$cross_compiling" = yes; then :
32068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32070 as_fn_error $? "cannot run test program while cross compiling
32071 See \`config.log' for more details" "$LINENO" 5; }
32072 else
32073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32074 /* end confdefs.h. */
32076 static void
32077 foo (void)
32081 static void
32082 __attribute__ ((noinline, noclone))
32083 xxx (void (*f) (void))
32085 f ();
32088 static void
32089 __attribute__ ((noinline, noclone))
32090 bar (void)
32092 xxx (foo);
32096 main ()
32098 bar ();
32099 return 0;
32102 _ACEOF
32103 if ac_fn_cxx_try_run "$LINENO"; then :
32104 have_cet=no
32105 else
32106 have_cet=yes
32108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32109 conftest.$ac_objext conftest.beam conftest.$ac_ext
32113 if test x$enable_cet = xno -a x$have_cet = xyes; then
32114 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32117 else
32118 # Enable CET in cross compiler if possible so that it will run on both
32119 # CET and non-CET hosts.
32120 have_cet=yes
32122 if test x$enable_cet = xyes; then
32123 CET_HOST_FLAGS="-fcf-protection"
32124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32125 $as_echo "yes" >&6; }
32126 else
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32128 $as_echo "no" >&6; }
32130 CFLAGS="$cet_save_CFLAGS"
32131 LDFLAGS="$cet_save_LDFLAGS"
32133 case x$enable_languages in
32134 *jit*)
32137 CET_HOST_FLAGS=
32139 esac
32142 # Check linker supports '-z bndplt'
32143 ld_bndplt_support=no
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32145 $as_echo_n "checking linker -z bndplt option... " >&6; }
32146 if test x"$ld_is_gold" = xno; then
32147 if test $in_tree_ld = yes ; then
32148 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
32149 ld_bndplt_support=yes
32151 elif test x$gcc_cv_ld != x; then
32152 # Check if linker supports -a bndplt option
32153 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32154 ld_bndplt_support=yes
32158 if test x"$ld_bndplt_support" = xyes; then
32160 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32164 $as_echo "$ld_bndplt_support" >&6; }
32166 # Check linker supports '--push-state'/'--pop-state'
32167 ld_pushpopstate_support=no
32168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32169 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32170 if test x"$ld_is_gold" = xno; then
32171 if test $in_tree_ld = yes ; then
32172 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
32173 ld_pushpopstate_support=yes
32175 elif test x$gcc_cv_ld != x; then
32176 # Check if linker supports --push-state/--pop-state options
32177 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32178 ld_pushpopstate_support=yes
32182 if test x"$ld_pushpopstate_support" = xyes; then
32184 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32188 $as_echo "$ld_pushpopstate_support" >&6; }
32190 # On s390, float_t has historically been statically defined as double for no
32191 # good reason. To comply with the C standard in the light of this definition,
32192 # gcc has evaluated float expressions in double precision when in
32193 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32194 # a smooth transition towards the new model used by most architectures, where
32195 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32196 # float_t from that, this behavior can be configured with
32197 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32198 # the old model. When omitted, native builds and cross compiles that have target
32199 # libc headers will detect whether libc clamps float_t to double and in that
32200 # case maintain the old model. Otherwise, they will default to the new model.
32201 # Check whether --enable-s390-excess-float-precision was given.
32202 if test "${enable_s390_excess_float_precision+set}" = set; then :
32203 enableval=$enable_s390_excess_float_precision;
32204 else
32205 enable_s390_excess_float_precision=auto
32209 case $target in
32210 s390*-linux*)
32211 if test x"$enable_s390_excess_float_precision" = xauto; then
32212 # Can we autodetect the behavior of the target libc?
32213 if test "$target" = "$host" -a "$host" = "$build"; then
32214 enable_s390_excess_float_precision=autodetect
32215 elif test "x$with_headers" != xno; then
32216 # cross build. are target headers available?
32217 # carefully coerce the build-system compiler to use target headers
32218 saved_CXXFLAGS="$CXXFLAGS"
32219 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32220 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32221 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32223 /* end confdefs.h. */
32225 #include <math.h>
32227 _ACEOF
32228 if ac_fn_cxx_try_compile "$LINENO"; then :
32229 enable_s390_excess_float_precision=autodetect
32231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32232 CXXFLAGS="$saved_CXXFLAGS"
32235 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32236 saved_CXXFLAGS="$CXXFLAGS"
32237 if ! test "$target" = "$host" -a "$host" = "$build"; then
32238 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32239 unset CROSS_TEST_CXXFLAGS
32241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32242 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32243 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32244 $as_echo_n "(cached) " >&6
32245 else
32247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32248 /* end confdefs.h. */
32250 #define __FLT_EVAL_METHOD__ 0
32251 #include <math.h>
32252 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32254 _ACEOF
32255 if ac_fn_cxx_try_compile "$LINENO"; then :
32256 gcc_cv_float_t_clamped_to_double=yes
32257 else
32258 gcc_cv_float_t_clamped_to_double=no
32260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32263 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32264 CXXFLAGS="$saved_CXXFLAGS"
32265 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32266 else
32267 # no way to detect behavior of target libc, default to new model
32268 enable_s390_excess_float_precision=no
32273 if test x"$enable_s390_excess_float_precision" = xyes; then
32275 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32279 esac
32281 # Configure the subdirectories
32282 # AC_CONFIG_SUBDIRS($subdirs)
32284 # Create the Makefile
32285 # and configure language subdirectories
32286 ac_config_files="$ac_config_files $all_outputs"
32289 ac_config_commands="$ac_config_commands default"
32291 cat >confcache <<\_ACEOF
32292 # This file is a shell script that caches the results of configure
32293 # tests run on this system so they can be shared between configure
32294 # scripts and configure runs, see configure's option --config-cache.
32295 # It is not useful on other systems. If it contains results you don't
32296 # want to keep, you may remove or edit it.
32298 # config.status only pays attention to the cache file if you give it
32299 # the --recheck option to rerun configure.
32301 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32302 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32303 # following values.
32305 _ACEOF
32307 # The following way of writing the cache mishandles newlines in values,
32308 # but we know of no workaround that is simple, portable, and efficient.
32309 # So, we kill variables containing newlines.
32310 # Ultrix sh set writes to stderr and can't be redirected directly,
32311 # and sets the high bit in the cache file unless we assign to the vars.
32313 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32314 eval ac_val=\$$ac_var
32315 case $ac_val in #(
32316 *${as_nl}*)
32317 case $ac_var in #(
32318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32320 esac
32321 case $ac_var in #(
32322 _ | IFS | as_nl) ;; #(
32323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32324 *) { eval $ac_var=; unset $ac_var;} ;;
32325 esac ;;
32326 esac
32327 done
32329 (set) 2>&1 |
32330 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32331 *${as_nl}ac_space=\ *)
32332 # `set' does not quote correctly, so add quotes: double-quote
32333 # substitution turns \\\\ into \\, and sed turns \\ into \.
32334 sed -n \
32335 "s/'/'\\\\''/g;
32336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32337 ;; #(
32339 # `set' quotes correctly as required by POSIX, so do not add quotes.
32340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32342 esac |
32343 sort
32345 sed '
32346 /^ac_cv_env_/b end
32347 t clear
32348 :clear
32349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32350 t end
32351 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32352 :end' >>confcache
32353 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32354 if test -w "$cache_file"; then
32355 if test "x$cache_file" != "x/dev/null"; then
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32357 $as_echo "$as_me: updating cache $cache_file" >&6;}
32358 if test ! -f "$cache_file" || test -h "$cache_file"; then
32359 cat confcache >"$cache_file"
32360 else
32361 case $cache_file in #(
32362 */* | ?:*)
32363 mv -f confcache "$cache_file"$$ &&
32364 mv -f "$cache_file"$$ "$cache_file" ;; #(
32366 mv -f confcache "$cache_file" ;;
32367 esac
32370 else
32371 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32372 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32375 rm -f confcache
32377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32378 # Let make expand exec_prefix.
32379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32381 DEFS=-DHAVE_CONFIG_H
32383 ac_libobjs=
32384 ac_ltlibobjs=
32386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32387 # 1. Remove the extension, and $U if already installed.
32388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32389 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32391 # will be set to the directory where LIBOBJS objects are built.
32392 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32393 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32394 done
32395 LIBOBJS=$ac_libobjs
32397 LTLIBOBJS=$ac_ltlibobjs
32402 : "${CONFIG_STATUS=./config.status}"
32403 ac_write_fail=0
32404 ac_clean_files_save=$ac_clean_files
32405 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32407 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32408 as_write_fail=0
32409 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32410 #! $SHELL
32411 # Generated by $as_me.
32412 # Run this file to recreate the current configuration.
32413 # Compiler output produced by configure, useful for debugging
32414 # configure, is in config.log if it exists.
32416 debug=false
32417 ac_cs_recheck=false
32418 ac_cs_silent=false
32420 SHELL=\${CONFIG_SHELL-$SHELL}
32421 export SHELL
32422 _ASEOF
32423 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32424 ## -------------------- ##
32425 ## M4sh Initialization. ##
32426 ## -------------------- ##
32428 # Be more Bourne compatible
32429 DUALCASE=1; export DUALCASE # for MKS sh
32430 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32431 emulate sh
32432 NULLCMD=:
32433 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32434 # is contrary to our usage. Disable this feature.
32435 alias -g '${1+"$@"}'='"$@"'
32436 setopt NO_GLOB_SUBST
32437 else
32438 case `(set -o) 2>/dev/null` in #(
32439 *posix*) :
32440 set -o posix ;; #(
32441 *) :
32443 esac
32447 as_nl='
32449 export as_nl
32450 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32451 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32453 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32454 # Prefer a ksh shell builtin over an external printf program on Solaris,
32455 # but without wasting forks for bash or zsh.
32456 if test -z "$BASH_VERSION$ZSH_VERSION" \
32457 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32458 as_echo='print -r --'
32459 as_echo_n='print -rn --'
32460 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32461 as_echo='printf %s\n'
32462 as_echo_n='printf %s'
32463 else
32464 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32465 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32466 as_echo_n='/usr/ucb/echo -n'
32467 else
32468 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32469 as_echo_n_body='eval
32470 arg=$1;
32471 case $arg in #(
32472 *"$as_nl"*)
32473 expr "X$arg" : "X\\(.*\\)$as_nl";
32474 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32475 esac;
32476 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32478 export as_echo_n_body
32479 as_echo_n='sh -c $as_echo_n_body as_echo'
32481 export as_echo_body
32482 as_echo='sh -c $as_echo_body as_echo'
32485 # The user is always right.
32486 if test "${PATH_SEPARATOR+set}" != set; then
32487 PATH_SEPARATOR=:
32488 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32489 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32490 PATH_SEPARATOR=';'
32495 # IFS
32496 # We need space, tab and new line, in precisely that order. Quoting is
32497 # there to prevent editors from complaining about space-tab.
32498 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32499 # splitting by setting IFS to empty value.)
32500 IFS=" "" $as_nl"
32502 # Find who we are. Look in the path if we contain no directory separator.
32503 as_myself=
32504 case $0 in #((
32505 *[\\/]* ) as_myself=$0 ;;
32506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32507 for as_dir in $PATH
32509 IFS=$as_save_IFS
32510 test -z "$as_dir" && as_dir=.
32511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32512 done
32513 IFS=$as_save_IFS
32516 esac
32517 # We did not find ourselves, most probably we were run as `sh COMMAND'
32518 # in which case we are not to be found in the path.
32519 if test "x$as_myself" = x; then
32520 as_myself=$0
32522 if test ! -f "$as_myself"; then
32523 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32524 exit 1
32527 # Unset variables that we do not need and which cause bugs (e.g. in
32528 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32529 # suppresses any "Segmentation fault" message there. '((' could
32530 # trigger a bug in pdksh 5.2.14.
32531 for as_var in BASH_ENV ENV MAIL MAILPATH
32532 do eval test x\${$as_var+set} = xset \
32533 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32534 done
32535 PS1='$ '
32536 PS2='> '
32537 PS4='+ '
32539 # NLS nuisances.
32540 LC_ALL=C
32541 export LC_ALL
32542 LANGUAGE=C
32543 export LANGUAGE
32545 # CDPATH.
32546 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32549 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32550 # ----------------------------------------
32551 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32552 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32553 # script with STATUS, using 1 if that was 0.
32554 as_fn_error ()
32556 as_status=$1; test $as_status -eq 0 && as_status=1
32557 if test "$4"; then
32558 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32559 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32561 $as_echo "$as_me: error: $2" >&2
32562 as_fn_exit $as_status
32563 } # as_fn_error
32566 # as_fn_set_status STATUS
32567 # -----------------------
32568 # Set $? to STATUS, without forking.
32569 as_fn_set_status ()
32571 return $1
32572 } # as_fn_set_status
32574 # as_fn_exit STATUS
32575 # -----------------
32576 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32577 as_fn_exit ()
32579 set +e
32580 as_fn_set_status $1
32581 exit $1
32582 } # as_fn_exit
32584 # as_fn_unset VAR
32585 # ---------------
32586 # Portably unset VAR.
32587 as_fn_unset ()
32589 { eval $1=; unset $1;}
32591 as_unset=as_fn_unset
32592 # as_fn_append VAR VALUE
32593 # ----------------------
32594 # Append the text in VALUE to the end of the definition contained in VAR. Take
32595 # advantage of any shell optimizations that allow amortized linear growth over
32596 # repeated appends, instead of the typical quadratic growth present in naive
32597 # implementations.
32598 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32599 eval 'as_fn_append ()
32601 eval $1+=\$2
32603 else
32604 as_fn_append ()
32606 eval $1=\$$1\$2
32608 fi # as_fn_append
32610 # as_fn_arith ARG...
32611 # ------------------
32612 # Perform arithmetic evaluation on the ARGs, and store the result in the
32613 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32614 # must be portable across $(()) and expr.
32615 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32616 eval 'as_fn_arith ()
32618 as_val=$(( $* ))
32620 else
32621 as_fn_arith ()
32623 as_val=`expr "$@" || test $? -eq 1`
32625 fi # as_fn_arith
32628 if expr a : '\(a\)' >/dev/null 2>&1 &&
32629 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32630 as_expr=expr
32631 else
32632 as_expr=false
32635 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32636 as_basename=basename
32637 else
32638 as_basename=false
32641 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32642 as_dirname=dirname
32643 else
32644 as_dirname=false
32647 as_me=`$as_basename -- "$0" ||
32648 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32649 X"$0" : 'X\(//\)$' \| \
32650 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32651 $as_echo X/"$0" |
32652 sed '/^.*\/\([^/][^/]*\)\/*$/{
32653 s//\1/
32656 /^X\/\(\/\/\)$/{
32657 s//\1/
32660 /^X\/\(\/\).*/{
32661 s//\1/
32664 s/.*/./; q'`
32666 # Avoid depending upon Character Ranges.
32667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32670 as_cr_digits='0123456789'
32671 as_cr_alnum=$as_cr_Letters$as_cr_digits
32673 ECHO_C= ECHO_N= ECHO_T=
32674 case `echo -n x` in #(((((
32675 -n*)
32676 case `echo 'xy\c'` in
32677 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32678 xy) ECHO_C='\c';;
32679 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32680 ECHO_T=' ';;
32681 esac;;
32683 ECHO_N='-n';;
32684 esac
32686 rm -f conf$$ conf$$.exe conf$$.file
32687 if test -d conf$$.dir; then
32688 rm -f conf$$.dir/conf$$.file
32689 else
32690 rm -f conf$$.dir
32691 mkdir conf$$.dir 2>/dev/null
32693 if (echo >conf$$.file) 2>/dev/null; then
32694 if ln -s conf$$.file conf$$ 2>/dev/null; then
32695 as_ln_s='ln -s'
32696 # ... but there are two gotchas:
32697 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32698 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32699 # In both cases, we have to default to `cp -pR'.
32700 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32701 as_ln_s='cp -pR'
32702 elif ln conf$$.file conf$$ 2>/dev/null; then
32703 as_ln_s=ln
32704 else
32705 as_ln_s='cp -pR'
32707 else
32708 as_ln_s='cp -pR'
32710 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32711 rmdir conf$$.dir 2>/dev/null
32714 # as_fn_mkdir_p
32715 # -------------
32716 # Create "$as_dir" as a directory, including parents if necessary.
32717 as_fn_mkdir_p ()
32720 case $as_dir in #(
32721 -*) as_dir=./$as_dir;;
32722 esac
32723 test -d "$as_dir" || eval $as_mkdir_p || {
32724 as_dirs=
32725 while :; do
32726 case $as_dir in #(
32727 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32728 *) as_qdir=$as_dir;;
32729 esac
32730 as_dirs="'$as_qdir' $as_dirs"
32731 as_dir=`$as_dirname -- "$as_dir" ||
32732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32733 X"$as_dir" : 'X\(//\)[^/]' \| \
32734 X"$as_dir" : 'X\(//\)$' \| \
32735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32736 $as_echo X"$as_dir" |
32737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32738 s//\1/
32741 /^X\(\/\/\)[^/].*/{
32742 s//\1/
32745 /^X\(\/\/\)$/{
32746 s//\1/
32749 /^X\(\/\).*/{
32750 s//\1/
32753 s/.*/./; q'`
32754 test -d "$as_dir" && break
32755 done
32756 test -z "$as_dirs" || eval "mkdir $as_dirs"
32757 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32760 } # as_fn_mkdir_p
32761 if mkdir -p . 2>/dev/null; then
32762 as_mkdir_p='mkdir -p "$as_dir"'
32763 else
32764 test -d ./-p && rmdir ./-p
32765 as_mkdir_p=false
32769 # as_fn_executable_p FILE
32770 # -----------------------
32771 # Test if FILE is an executable regular file.
32772 as_fn_executable_p ()
32774 test -f "$1" && test -x "$1"
32775 } # as_fn_executable_p
32776 as_test_x='test -x'
32777 as_executable_p=as_fn_executable_p
32779 # Sed expression to map a string onto a valid CPP name.
32780 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32782 # Sed expression to map a string onto a valid variable name.
32783 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32786 exec 6>&1
32787 ## ----------------------------------- ##
32788 ## Main body of $CONFIG_STATUS script. ##
32789 ## ----------------------------------- ##
32790 _ASEOF
32791 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32794 # Save the log message, to keep $0 and so on meaningful, and to
32795 # report actual input values of CONFIG_FILES etc. instead of their
32796 # values after options handling.
32797 ac_log="
32798 This file was extended by $as_me, which was
32799 generated by GNU Autoconf 2.69. Invocation command line was
32801 CONFIG_FILES = $CONFIG_FILES
32802 CONFIG_HEADERS = $CONFIG_HEADERS
32803 CONFIG_LINKS = $CONFIG_LINKS
32804 CONFIG_COMMANDS = $CONFIG_COMMANDS
32805 $ $0 $@
32807 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32810 _ACEOF
32812 case $ac_config_files in *"
32813 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32814 esac
32816 case $ac_config_headers in *"
32817 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32818 esac
32821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32822 # Files that config.status was made for.
32823 config_files="$ac_config_files"
32824 config_headers="$ac_config_headers"
32825 config_links="$ac_config_links"
32826 config_commands="$ac_config_commands"
32828 _ACEOF
32830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32831 ac_cs_usage="\
32832 \`$as_me' instantiates files and other configuration actions
32833 from templates according to the current configuration. Unless the files
32834 and actions are specified as TAGs, all are instantiated by default.
32836 Usage: $0 [OPTION]... [TAG]...
32838 -h, --help print this help, then exit
32839 -V, --version print version number and configuration settings, then exit
32840 --config print configuration, then exit
32841 -q, --quiet, --silent
32842 do not print progress messages
32843 -d, --debug don't remove temporary files
32844 --recheck update $as_me by reconfiguring in the same conditions
32845 --file=FILE[:TEMPLATE]
32846 instantiate the configuration file FILE
32847 --header=FILE[:TEMPLATE]
32848 instantiate the configuration header FILE
32850 Configuration files:
32851 $config_files
32853 Configuration headers:
32854 $config_headers
32856 Configuration links:
32857 $config_links
32859 Configuration commands:
32860 $config_commands
32862 Report bugs to the package provider."
32864 _ACEOF
32865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32866 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32867 ac_cs_version="\\
32868 config.status
32869 configured by $0, generated by GNU Autoconf 2.69,
32870 with options \\"\$ac_cs_config\\"
32872 Copyright (C) 2012 Free Software Foundation, Inc.
32873 This config.status script is free software; the Free Software Foundation
32874 gives unlimited permission to copy, distribute and modify it."
32876 ac_pwd='$ac_pwd'
32877 srcdir='$srcdir'
32878 AWK='$AWK'
32879 test -n "\$AWK" || AWK=awk
32880 _ACEOF
32882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32883 # The default lists apply if the user does not specify any file.
32884 ac_need_defaults=:
32885 while test $# != 0
32887 case $1 in
32888 --*=?*)
32889 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32890 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32891 ac_shift=:
32893 --*=)
32894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32895 ac_optarg=
32896 ac_shift=:
32899 ac_option=$1
32900 ac_optarg=$2
32901 ac_shift=shift
32903 esac
32905 case $ac_option in
32906 # Handling of the options.
32907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32908 ac_cs_recheck=: ;;
32909 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32910 $as_echo "$ac_cs_version"; exit ;;
32911 --config | --confi | --conf | --con | --co | --c )
32912 $as_echo "$ac_cs_config"; exit ;;
32913 --debug | --debu | --deb | --de | --d | -d )
32914 debug=: ;;
32915 --file | --fil | --fi | --f )
32916 $ac_shift
32917 case $ac_optarg in
32918 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32919 '') as_fn_error $? "missing file argument" ;;
32920 esac
32921 as_fn_append CONFIG_FILES " '$ac_optarg'"
32922 ac_need_defaults=false;;
32923 --header | --heade | --head | --hea )
32924 $ac_shift
32925 case $ac_optarg in
32926 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32927 esac
32928 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32929 ac_need_defaults=false;;
32930 --he | --h)
32931 # Conflict between --help and --header
32932 as_fn_error $? "ambiguous option: \`$1'
32933 Try \`$0 --help' for more information.";;
32934 --help | --hel | -h )
32935 $as_echo "$ac_cs_usage"; exit ;;
32936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32937 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32938 ac_cs_silent=: ;;
32940 # This is an error.
32941 -*) as_fn_error $? "unrecognized option: \`$1'
32942 Try \`$0 --help' for more information." ;;
32944 *) as_fn_append ac_config_targets " $1"
32945 ac_need_defaults=false ;;
32947 esac
32948 shift
32949 done
32951 ac_configure_extra_args=
32953 if $ac_cs_silent; then
32954 exec 6>/dev/null
32955 ac_configure_extra_args="$ac_configure_extra_args --silent"
32958 _ACEOF
32959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32960 if \$ac_cs_recheck; then
32961 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32962 shift
32963 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32964 CONFIG_SHELL='$SHELL'
32965 export CONFIG_SHELL
32966 exec "\$@"
32969 _ACEOF
32970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32971 exec 5>>config.log
32973 echo
32974 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32975 ## Running $as_me. ##
32976 _ASBOX
32977 $as_echo "$ac_log"
32978 } >&5
32980 _ACEOF
32981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32983 # INIT-COMMANDS
32985 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32986 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32987 subdirs='$subdirs'
32989 _ACEOF
32991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32993 # Handling of arguments.
32994 for ac_config_target in $ac_config_targets
32996 case $ac_config_target in
32997 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
32998 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
32999 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33000 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33001 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33002 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33003 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33004 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33005 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33006 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33008 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33009 esac
33010 done
33013 # If the user did not use the arguments to specify the items to instantiate,
33014 # then the envvar interface is used. Set only those that are not.
33015 # We use the long form for the default assignment because of an extremely
33016 # bizarre bug on SunOS 4.1.3.
33017 if $ac_need_defaults; then
33018 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33019 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33020 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33024 # Have a temporary directory for convenience. Make it in the build tree
33025 # simply because there is no reason against having it here, and in addition,
33026 # creating and moving files from /tmp can sometimes cause problems.
33027 # Hook for its removal unless debugging.
33028 # Note that there is a small window in which the directory will not be cleaned:
33029 # after its creation but before its name has been assigned to `$tmp'.
33030 $debug ||
33032 tmp= ac_tmp=
33033 trap 'exit_status=$?
33034 : "${ac_tmp:=$tmp}"
33035 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33037 trap 'as_fn_exit 1' 1 2 13 15
33039 # Create a (secure) tmp directory for tmp files.
33042 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33043 test -d "$tmp"
33044 } ||
33046 tmp=./conf$$-$RANDOM
33047 (umask 077 && mkdir "$tmp")
33048 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33049 ac_tmp=$tmp
33051 # Set up the scripts for CONFIG_FILES section.
33052 # No need to generate them if there are no CONFIG_FILES.
33053 # This happens for instance with `./config.status config.h'.
33054 if test -n "$CONFIG_FILES"; then
33056 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33057 ac_cs_awk_getline=:
33058 ac_cs_awk_pipe_init=
33059 ac_cs_awk_read_file='
33060 while ((getline aline < (F[key])) > 0)
33061 print(aline)
33062 close(F[key])'
33063 ac_cs_awk_pipe_fini=
33064 else
33065 ac_cs_awk_getline=false
33066 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33067 ac_cs_awk_read_file='
33068 print "|#_!!_#|"
33069 print "cat " F[key] " &&"
33070 '$ac_cs_awk_pipe_init
33071 # The final `:' finishes the AND list.
33072 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33074 ac_cr=`echo X | tr X '\015'`
33075 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33076 # But we know of no other shell where ac_cr would be empty at this
33077 # point, so we can use a bashism as a fallback.
33078 if test "x$ac_cr" = x; then
33079 eval ac_cr=\$\'\\r\'
33081 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33082 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33083 ac_cs_awk_cr='\\r'
33084 else
33085 ac_cs_awk_cr=$ac_cr
33088 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33089 _ACEOF
33091 # Create commands to substitute file output variables.
33093 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33094 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33095 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33096 echo "_ACAWK" &&
33097 echo "_ACEOF"
33098 } >conf$$files.sh &&
33099 . ./conf$$files.sh ||
33100 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33101 rm -f conf$$files.sh
33104 echo "cat >conf$$subs.awk <<_ACEOF" &&
33105 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33106 echo "_ACEOF"
33107 } >conf$$subs.sh ||
33108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33109 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33110 ac_delim='%!_!# '
33111 for ac_last_try in false false false false false :; do
33112 . ./conf$$subs.sh ||
33113 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33115 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33116 if test $ac_delim_n = $ac_delim_num; then
33117 break
33118 elif $ac_last_try; then
33119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33120 else
33121 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33123 done
33124 rm -f conf$$subs.sh
33126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33127 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33128 _ACEOF
33129 sed -n '
33131 s/^/S["/; s/!.*/"]=/
33134 s/^[^!]*!//
33135 :repl
33136 t repl
33137 s/'"$ac_delim"'$//
33138 t delim
33141 s/\(.\{148\}\)..*/\1/
33142 t more1
33143 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33146 b repl
33147 :more1
33148 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33151 s/.\{148\}//
33152 t nl
33153 :delim
33155 s/\(.\{148\}\)..*/\1/
33156 t more2
33157 s/["\\]/\\&/g; s/^/"/; s/$/"/
33160 :more2
33161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33164 s/.\{148\}//
33165 t delim
33166 ' <conf$$subs.awk | sed '
33167 /^[^""]/{
33169 s/\n//
33171 ' >>$CONFIG_STATUS || ac_write_fail=1
33172 rm -f conf$$subs.awk
33173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33174 _ACAWK
33175 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33176 for (key in S) S_is_set[key] = 1
33177 FS = "\a"
33178 \$ac_cs_awk_pipe_init
33181 line = $ 0
33182 nfields = split(line, field, "@")
33183 substed = 0
33184 len = length(field[1])
33185 for (i = 2; i < nfields; i++) {
33186 key = field[i]
33187 keylen = length(key)
33188 if (S_is_set[key]) {
33189 value = S[key]
33190 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33191 len += length(value) + length(field[++i])
33192 substed = 1
33193 } else
33194 len += 1 + keylen
33196 if (nfields == 3 && !substed) {
33197 key = field[2]
33198 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33199 \$ac_cs_awk_read_file
33200 next
33203 print line
33205 \$ac_cs_awk_pipe_fini
33206 _ACAWK
33207 _ACEOF
33208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33209 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33210 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33211 else
33213 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33214 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33215 _ACEOF
33217 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33218 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33219 # trailing colons and then remove the whole line if VPATH becomes empty
33220 # (actually we leave an empty line to preserve line numbers).
33221 if test "x$srcdir" = x.; then
33222 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33224 s///
33225 s/^/:/
33226 s/[ ]*$/:/
33227 s/:\$(srcdir):/:/g
33228 s/:\${srcdir}:/:/g
33229 s/:@srcdir@:/:/g
33230 s/^:*//
33231 s/:*$//
33233 s/\(=[ ]*\).*/\1/
33235 s/\n//
33236 s/^[^=]*=[ ]*$//
33240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33241 fi # test -n "$CONFIG_FILES"
33243 # Set up the scripts for CONFIG_HEADERS section.
33244 # No need to generate them if there are no CONFIG_HEADERS.
33245 # This happens for instance with `./config.status Makefile'.
33246 if test -n "$CONFIG_HEADERS"; then
33247 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33248 BEGIN {
33249 _ACEOF
33251 # Transform confdefs.h into an awk script `defines.awk', embedded as
33252 # here-document in config.status, that substitutes the proper values into
33253 # config.h.in to produce config.h.
33255 # Create a delimiter string that does not exist in confdefs.h, to ease
33256 # handling of long lines.
33257 ac_delim='%!_!# '
33258 for ac_last_try in false false :; do
33259 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33260 if test -z "$ac_tt"; then
33261 break
33262 elif $ac_last_try; then
33263 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33264 else
33265 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33267 done
33269 # For the awk script, D is an array of macro values keyed by name,
33270 # likewise P contains macro parameters if any. Preserve backslash
33271 # newline sequences.
33273 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33274 sed -n '
33275 s/.\{148\}/&'"$ac_delim"'/g
33276 t rset
33277 :rset
33278 s/^[ ]*#[ ]*define[ ][ ]*/ /
33279 t def
33281 :def
33282 s/\\$//
33283 t bsnl
33284 s/["\\]/\\&/g
33285 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33286 D["\1"]=" \3"/p
33287 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33289 :bsnl
33290 s/["\\]/\\&/g
33291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33292 D["\1"]=" \3\\\\\\n"\\/p
33293 t cont
33294 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33295 t cont
33297 :cont
33299 s/.\{148\}/&'"$ac_delim"'/g
33300 t clear
33301 :clear
33302 s/\\$//
33303 t bsnlc
33304 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33306 :bsnlc
33307 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33308 b cont
33309 ' <confdefs.h | sed '
33310 s/'"$ac_delim"'/"\\\
33311 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33314 for (key in D) D_is_set[key] = 1
33315 FS = "\a"
33317 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33318 line = \$ 0
33319 split(line, arg, " ")
33320 if (arg[1] == "#") {
33321 defundef = arg[2]
33322 mac1 = arg[3]
33323 } else {
33324 defundef = substr(arg[1], 2)
33325 mac1 = arg[2]
33327 split(mac1, mac2, "(") #)
33328 macro = mac2[1]
33329 prefix = substr(line, 1, index(line, defundef) - 1)
33330 if (D_is_set[macro]) {
33331 # Preserve the white space surrounding the "#".
33332 print prefix "define", macro P[macro] D[macro]
33333 next
33334 } else {
33335 # Replace #undef with comments. This is necessary, for example,
33336 # in the case of _POSIX_SOURCE, which is predefined and required
33337 # on some systems where configure will not decide to define it.
33338 if (defundef == "undef") {
33339 print "/*", prefix defundef, macro, "*/"
33340 next
33344 { print }
33345 _ACAWK
33346 _ACEOF
33347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33348 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33349 fi # test -n "$CONFIG_HEADERS"
33352 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33353 shift
33354 for ac_tag
33356 case $ac_tag in
33357 :[FHLC]) ac_mode=$ac_tag; continue;;
33358 esac
33359 case $ac_mode$ac_tag in
33360 :[FHL]*:*);;
33361 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33362 :[FH]-) ac_tag=-:-;;
33363 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33364 esac
33365 ac_save_IFS=$IFS
33366 IFS=:
33367 set x $ac_tag
33368 IFS=$ac_save_IFS
33369 shift
33370 ac_file=$1
33371 shift
33373 case $ac_mode in
33374 :L) ac_source=$1;;
33375 :[FH])
33376 ac_file_inputs=
33377 for ac_f
33379 case $ac_f in
33380 -) ac_f="$ac_tmp/stdin";;
33381 *) # Look for the file first in the build tree, then in the source tree
33382 # (if the path is not absolute). The absolute path cannot be DOS-style,
33383 # because $ac_f cannot contain `:'.
33384 test -f "$ac_f" ||
33385 case $ac_f in
33386 [\\/$]*) false;;
33387 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33388 esac ||
33389 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33390 esac
33391 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33392 as_fn_append ac_file_inputs " '$ac_f'"
33393 done
33395 # Let's still pretend it is `configure' which instantiates (i.e., don't
33396 # use $as_me), people would be surprised to read:
33397 # /* config.h. Generated by config.status. */
33398 configure_input='Generated from '`
33399 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33400 `' by configure.'
33401 if test x"$ac_file" != x-; then
33402 configure_input="$ac_file. $configure_input"
33403 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33404 $as_echo "$as_me: creating $ac_file" >&6;}
33406 # Neutralize special characters interpreted by sed in replacement strings.
33407 case $configure_input in #(
33408 *\&* | *\|* | *\\* )
33409 ac_sed_conf_input=`$as_echo "$configure_input" |
33410 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33411 *) ac_sed_conf_input=$configure_input;;
33412 esac
33414 case $ac_tag in
33415 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33417 esac
33419 esac
33421 ac_dir=`$as_dirname -- "$ac_file" ||
33422 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33423 X"$ac_file" : 'X\(//\)[^/]' \| \
33424 X"$ac_file" : 'X\(//\)$' \| \
33425 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33426 $as_echo X"$ac_file" |
33427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33428 s//\1/
33431 /^X\(\/\/\)[^/].*/{
33432 s//\1/
33435 /^X\(\/\/\)$/{
33436 s//\1/
33439 /^X\(\/\).*/{
33440 s//\1/
33443 s/.*/./; q'`
33444 as_dir="$ac_dir"; as_fn_mkdir_p
33445 ac_builddir=.
33447 case "$ac_dir" in
33448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33451 # A ".." for each directory in $ac_dir_suffix.
33452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33453 case $ac_top_builddir_sub in
33454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33456 esac ;;
33457 esac
33458 ac_abs_top_builddir=$ac_pwd
33459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33460 # for backward compatibility:
33461 ac_top_builddir=$ac_top_build_prefix
33463 case $srcdir in
33464 .) # We are building in place.
33465 ac_srcdir=.
33466 ac_top_srcdir=$ac_top_builddir_sub
33467 ac_abs_top_srcdir=$ac_pwd ;;
33468 [\\/]* | ?:[\\/]* ) # Absolute name.
33469 ac_srcdir=$srcdir$ac_dir_suffix;
33470 ac_top_srcdir=$srcdir
33471 ac_abs_top_srcdir=$srcdir ;;
33472 *) # Relative name.
33473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33474 ac_top_srcdir=$ac_top_build_prefix$srcdir
33475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33476 esac
33477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33480 case $ac_mode in
33483 # CONFIG_FILE
33486 _ACEOF
33488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33489 # If the template does not know about datarootdir, expand it.
33490 # FIXME: This hack should be removed a few years after 2.60.
33491 ac_datarootdir_hack=; ac_datarootdir_seen=
33492 ac_sed_dataroot='
33493 /datarootdir/ {
33497 /@datadir@/p
33498 /@docdir@/p
33499 /@infodir@/p
33500 /@localedir@/p
33501 /@mandir@/p'
33502 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33503 *datarootdir*) ac_datarootdir_seen=yes;;
33504 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33506 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33507 _ACEOF
33508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33509 ac_datarootdir_hack='
33510 s&@datadir@&$datadir&g
33511 s&@docdir@&$docdir&g
33512 s&@infodir@&$infodir&g
33513 s&@localedir@&$localedir&g
33514 s&@mandir@&$mandir&g
33515 s&\\\${datarootdir}&$datarootdir&g' ;;
33516 esac
33517 _ACEOF
33519 # Neutralize VPATH when `$srcdir' = `.'.
33520 # Shell code in configure.ac might set extrasub.
33521 # FIXME: do we really want to maintain this feature?
33522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33523 ac_sed_extra="$ac_vpsub
33524 $extrasub
33525 _ACEOF
33526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33529 s|@configure_input@|$ac_sed_conf_input|;t t
33530 s&@top_builddir@&$ac_top_builddir_sub&;t t
33531 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33532 s&@srcdir@&$ac_srcdir&;t t
33533 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33534 s&@top_srcdir@&$ac_top_srcdir&;t t
33535 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33536 s&@builddir@&$ac_builddir&;t t
33537 s&@abs_builddir@&$ac_abs_builddir&;t t
33538 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33539 $ac_datarootdir_hack
33541 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33542 if $ac_cs_awk_getline; then
33543 $AWK -f "$ac_tmp/subs.awk"
33544 else
33545 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33546 fi \
33547 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33549 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33550 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33551 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33552 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33554 which seems to be undefined. Please make sure it is defined" >&5
33555 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33556 which seems to be undefined. Please make sure it is defined" >&2;}
33558 rm -f "$ac_tmp/stdin"
33559 case $ac_file in
33560 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33561 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33562 esac \
33563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33567 # CONFIG_HEADER
33569 if test x"$ac_file" != x-; then
33571 $as_echo "/* $configure_input */" \
33572 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33573 } >"$ac_tmp/config.h" \
33574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33575 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33576 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33577 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33578 else
33579 rm -f "$ac_file"
33580 mv "$ac_tmp/config.h" "$ac_file" \
33581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33583 else
33584 $as_echo "/* $configure_input */" \
33585 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33586 || as_fn_error $? "could not create -" "$LINENO" 5
33591 # CONFIG_LINK
33594 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33596 else
33597 # Prefer the file from the source tree if names are identical.
33598 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33599 ac_source=$srcdir/$ac_source
33602 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33603 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33605 if test ! -r "$ac_source"; then
33606 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33608 rm -f "$ac_file"
33610 # Try a relative symlink, then a hard link, then a copy.
33611 case $ac_source in
33612 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33613 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33614 esac
33615 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33616 ln "$ac_source" "$ac_file" 2>/dev/null ||
33617 cp -p "$ac_source" "$ac_file" ||
33618 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33621 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33622 $as_echo "$as_me: executing $ac_file commands" >&6;}
33624 esac
33627 case $ac_file$ac_mode in
33628 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33629 "gccdepdir":C)
33630 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33631 for lang in $subdirs c-family common analyzer rtl-ssa
33633 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33634 done ;;
33635 "as":F) chmod +x as ;;
33636 "collect-ld":F) chmod +x collect-ld ;;
33637 "nm":F) chmod +x nm ;;
33638 "dsymutil":F) chmod +x dsymutil ;;
33639 "default":C)
33640 case ${CONFIG_HEADERS} in
33641 *auto-host.h:config.in*)
33642 echo > cstamp-h ;;
33643 esac
33644 # Make sure all the subdirs exist.
33645 for d in $subdirs doc build common c-family
33647 test -d $d || mkdir $d
33648 done
33651 esac
33652 done # for ac_tag
33655 as_fn_exit 0
33656 _ACEOF
33657 ac_clean_files=$ac_clean_files_save
33659 test $ac_write_fail = 0 ||
33660 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33663 # configure is writing to config.log, and then calls config.status.
33664 # config.status does its own redirection, appending to config.log.
33665 # Unfortunately, on DOS this fails, as config.log is still kept open
33666 # by configure, so config.status won't be able to write to it; its
33667 # output is simply discarded. So we exec the FD to /dev/null,
33668 # effectively closing config.log, so it can be properly (re)opened and
33669 # appended to by config.status. When coming back to configure, we
33670 # need to make the FD available again.
33671 if test "$no_create" != yes; then
33672 ac_cs_success=:
33673 ac_config_status_args=
33674 test "$silent" = yes &&
33675 ac_config_status_args="$ac_config_status_args --quiet"
33676 exec 5>/dev/null
33677 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33678 exec 5>>config.log
33679 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33680 # would make configure fail if this is the last instruction.
33681 $ac_cs_success || as_fn_exit 1
33683 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33685 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}