match_asm_constraints: Use copy_rtx where needed (PR88001)
[official-gcc.git] / gcc / configure
blobefbf621d0123b4adffc8788b71cebdeac5e3c5ca
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 NO_PIE_FLAG
635 NO_PIE_CFLAGS
636 enable_default_pie
637 PICFLAG
638 enable_host_shared
639 enable_plugin
640 pluginlibs
641 ISLINC
642 ISLLIBS
643 GMPINC
644 GMPLIBS
645 target_cpu_default
646 d_target_objs
647 fortran_target_objs
648 cxx_target_objs
649 c_target_objs
650 use_gcc_stdint
651 xm_defines
652 xm_include_list
653 xm_file_list
654 tm_d_include_list
655 tm_d_file_list
656 tm_p_include_list
657 tm_p_file_list
658 tm_defines
659 tm_include_list
660 tm_file_list
661 common_out_object_file
662 common_out_file
663 out_object_file
664 out_file
665 objc_boehm_gc
666 md_file
667 local_prefix
668 lang_tree_files
669 lang_specs_files
670 lang_opt_files
671 install
672 out_host_hook_obj
673 host_xm_defines
674 host_xm_include_list
675 host_xm_file_list
676 host_exeext
677 gcc_gxx_include_dir_add_sysroot
678 gcc_gxx_include_dir
679 gcc_config_arguments
680 float_h_file
681 extra_programs
682 extra_objs
683 extra_headers_list
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
686 extra_gcc_objs
687 TM_MULTILIB_EXCEPTIONS_CONFIG
688 TM_MULTILIB_CONFIG
689 TM_ENDIAN_CONFIG
690 tmake_file
691 xmake_file
692 cpp_install_dir
693 selftest_languages
694 check_languages
695 build_file_translate
696 build_xm_defines
697 build_xm_include_list
698 build_xm_file_list
699 build_install_headers_dir
700 build_exeext
701 all_selected_languages
702 all_languages
703 all_lang_makefrags
704 all_gtfiles
705 all_compilers
706 srcdir
707 subdirs
708 dollar
709 gcc_tooldir
710 enable_lto
711 DO_LINK_MUTEX
712 MAINT
713 zlibinc
714 zlibdir
715 HOST_LIBS
716 enable_default_ssp
717 thin_archive_support
718 ld_soname_option
719 ld_version_script_option
720 libgcc_visibility
721 gcc_cv_otool
722 gcc_cv_readelf
723 gcc_cv_objdump
724 ORIGINAL_NM_FOR_TARGET
725 gcc_cv_nm
726 ORIGINAL_LD_GOLD_FOR_TARGET
727 ORIGINAL_LD_BFD_FOR_TARGET
728 ORIGINAL_LD_FOR_TARGET
729 ORIGINAL_PLUGIN_LD_FOR_TARGET
730 gcc_cv_ld
731 ORIGINAL_AS_FOR_TARGET
732 gcc_cv_as
733 enable_fast_install
734 objdir
735 OTOOL64
736 OTOOL
737 LIPO
738 NMEDIT
739 DSYMUTIL
740 STRIP
741 OBJDUMP
742 ac_ct_DUMPBIN
743 DUMPBIN
745 FGREP
747 LIBTOOL
748 collect2
749 NO_PIE_FLAG_FOR_BUILD
750 NO_PIE_CFLAGS_FOR_BUILD
751 BUILD_NO_PIE_FLAG
752 BUILD_NO_PIE_CFLAGS
753 STMP_FIXINC
754 BUILD_LDFLAGS
755 BUILD_CXXFLAGS
756 BUILD_CFLAGS
757 CXX_FOR_BUILD
758 CC_FOR_BUILD
759 inhibit_libc
760 BUILD_SYSTEM_HEADER_DIR
761 SYSTEM_HEADER_DIR
763 CROSS
764 CATOBJEXT
765 GENCAT
766 INSTOBJEXT
767 DATADIRNAME
768 CATALOGS
769 POSUB
770 GMSGFMT
771 XGETTEXT
772 INCINTL
773 LIBINTL_DEP
774 LIBINTL
775 USE_NLS
776 get_gcc_base_ver
777 extra_opt_files
778 extra_modes_file
779 NATIVE_SYSTEM_HEADER_DIR
780 objext
781 manext
782 LIBICONV_DEP
783 LTLIBICONV
784 LIBICONV
785 LDEXP_LIB
786 EXTRA_GCC_LIBS
787 GNAT_LIBEXC
788 COLLECT2_LIBS
789 CXXDEPMODE
790 DEPDIR
791 am__leading_dot
792 doc_build_sys
795 BISON
796 FLEX
797 GENERATED_MANPAGES
798 BUILD_INFO
799 MAKEINFO
800 have_mktemp_command
801 make_compare_target
802 INSTALL_DATA
803 INSTALL_PROGRAM
804 INSTALL
805 ranlib_flags
806 RANLIB
808 LN_S
810 SET_MAKE
811 accel_dir_suffix
812 real_target_noncanonical
813 enable_as_accelerator
814 REPORT_BUGS_TEXI
815 REPORT_BUGS_TO
816 PKGVERSION
817 CONFIGURE_SPECS
818 enable_gcov
819 enable_shared
820 enable_fixed_point
821 enable_decimal_float
822 with_float
823 with_cpu
824 enable_multiarch
825 enable_multilib
826 coverage_flags
827 valgrind_command
828 valgrind_path_defines
829 valgrind_path
830 TREECHECKING
831 nocommon_flag
832 noexception_flags
833 warn_cxxflags
834 warn_cflags
835 c_strict_warn
836 strict_warn
837 c_loose_warn
838 loose_warn
839 aliasing_flags
841 EGREP
842 GREP
843 CXXCPP
844 PICFLAG_FOR_TARGET
845 GNATMAKE
846 GNATBIND
847 ac_ct_CXX
848 CXXFLAGS
850 OBJEXT
851 EXEEXT
852 ac_ct_CC
853 CPPFLAGS
854 LDFLAGS
855 CFLAGS
857 GENINSRC
858 CROSS_SYSTEM_HEADER_DIR
859 TARGET_SYSTEM_ROOT_DEFINE
860 TARGET_SYSTEM_ROOT
861 SYSROOT_CFLAGS_FOR_TARGET
862 target_subdir
863 host_subdir
864 build_subdir
865 build_libsubdir
866 target_noncanonical
867 host_noncanonical
868 target_os
869 target_vendor
870 target_cpu
871 target
872 host_os
873 host_vendor
874 host_cpu
875 host
876 build_os
877 build_vendor
878 build_cpu
879 build
880 target_alias
881 host_alias
882 build_alias
883 LIBS
884 ECHO_T
885 ECHO_N
886 ECHO_C
887 DEFS
888 mandir
889 localedir
890 libdir
891 psdir
892 pdfdir
893 dvidir
894 htmldir
895 infodir
896 docdir
897 oldincludedir
898 includedir
899 localstatedir
900 sharedstatedir
901 sysconfdir
902 datadir
903 datarootdir
904 libexecdir
905 sbindir
906 bindir
907 program_transform_name
908 prefix
909 exec_prefix
910 PACKAGE_URL
911 PACKAGE_BUGREPORT
912 PACKAGE_STRING
913 PACKAGE_VERSION
914 PACKAGE_TARNAME
915 PACKAGE_NAME
916 PATH_SEPARATOR
917 SHELL'
918 ac_subst_files='option_includes
919 language_hooks'
920 ac_user_opts='
921 enable_option_checking
922 with_build_libsubdir
923 with_local_prefix
924 with_native_system_header_dir
925 with_build_sysroot
926 with_sysroot
927 with_gxx_include_dir
928 with_cpp_install_dir
929 enable_generated_files_in_srcdir
930 with_gnu_ld
931 with_ld
932 with_demangler_in_ld
933 with_gnu_as
934 with_as
935 enable_largefile
936 enable_build_format_warnings
937 enable_werror_always
938 enable_checking
939 enable_coverage
940 enable_gather_detailed_mem_stats
941 enable_valgrind_annotations
942 with_stabs
943 enable_multilib
944 enable_multiarch
945 with_stack_clash_protection_guard_size
946 enable___cxa_atexit
947 enable_decimal_float
948 enable_fixed_point
949 enable_threads
950 enable_tls
951 enable_vtable_verify
952 enable_objc_gc
953 with_dwarf2
954 enable_shared
955 enable_gcov
956 with_specs
957 with_pkgversion
958 with_bugurl
959 enable_languages
960 with_multilib_list
961 enable_rpath
962 with_libiconv_prefix
963 enable_sjlj_exceptions
964 with_gcc_major_version_only
965 enable_secureplt
966 enable_mingw_wildcard
967 enable_large_address_aware
968 enable_leading_mingw64_underscores
969 enable_cld
970 enable_frame_pointer
971 enable_win32_registry
972 enable_static
973 with_pic
974 enable_fast_install
975 enable_libtool_lock
976 enable_ld
977 enable_gold
978 with_plugin_ld
979 enable_gnu_indirect_function
980 enable_initfini_array
981 enable_comdat
982 enable_fix_cortex_a53_835769
983 enable_fix_cortex_a53_843419
984 with_glibc_version
985 enable_gnu_unique_object
986 enable_linker_build_id
987 enable_libssp
988 enable_default_ssp
989 with_long_double_128
990 with_long_double_format
991 with_gc
992 with_system_zlib
993 enable_maintainer_mode
994 enable_link_mutex
995 enable_version_specific_runtime_libs
996 enable_plugin
997 enable_host_shared
998 enable_libquadmath_support
999 with_linker_hash_style
1000 with_diagnostics_color
1001 enable_default_pie
1003 ac_precious_vars='build_alias
1004 host_alias
1005 target_alias
1007 CFLAGS
1008 LDFLAGS
1009 LIBS
1010 CPPFLAGS
1012 CXXFLAGS
1014 CXXCPP
1016 GMPLIBS
1017 GMPINC
1018 ISLLIBS
1019 ISLINC'
1022 # Initialize some variables set by options.
1023 ac_init_help=
1024 ac_init_version=false
1025 ac_unrecognized_opts=
1026 ac_unrecognized_sep=
1027 # The variables have the same names as the options, with
1028 # dashes changed to underlines.
1029 cache_file=/dev/null
1030 exec_prefix=NONE
1031 no_create=
1032 no_recursion=
1033 prefix=NONE
1034 program_prefix=NONE
1035 program_suffix=NONE
1036 program_transform_name=s,x,x,
1037 silent=
1038 site=
1039 srcdir=
1040 verbose=
1041 x_includes=NONE
1042 x_libraries=NONE
1044 # Installation directory options.
1045 # These are left unexpanded so users can "make install exec_prefix=/foo"
1046 # and all the variables that are supposed to be based on exec_prefix
1047 # by default will actually change.
1048 # Use braces instead of parens because sh, perl, etc. also accept them.
1049 # (The list follows the same order as the GNU Coding Standards.)
1050 bindir='${exec_prefix}/bin'
1051 sbindir='${exec_prefix}/sbin'
1052 libexecdir='${exec_prefix}/libexec'
1053 datarootdir='${prefix}/share'
1054 datadir='${datarootdir}'
1055 sysconfdir='${prefix}/etc'
1056 sharedstatedir='${prefix}/com'
1057 localstatedir='${prefix}/var'
1058 includedir='${prefix}/include'
1059 oldincludedir='/usr/include'
1060 docdir='${datarootdir}/doc/${PACKAGE}'
1061 infodir='${datarootdir}/info'
1062 htmldir='${docdir}'
1063 dvidir='${docdir}'
1064 pdfdir='${docdir}'
1065 psdir='${docdir}'
1066 libdir='${exec_prefix}/lib'
1067 localedir='${datarootdir}/locale'
1068 mandir='${datarootdir}/man'
1070 ac_prev=
1071 ac_dashdash=
1072 for ac_option
1074 # If the previous option needs an argument, assign it.
1075 if test -n "$ac_prev"; then
1076 eval $ac_prev=\$ac_option
1077 ac_prev=
1078 continue
1081 case $ac_option in
1082 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1083 *=) ac_optarg= ;;
1084 *) ac_optarg=yes ;;
1085 esac
1087 # Accept the important Cygnus configure options, so we can diagnose typos.
1089 case $ac_dashdash$ac_option in
1091 ac_dashdash=yes ;;
1093 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1094 ac_prev=bindir ;;
1095 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1096 bindir=$ac_optarg ;;
1098 -build | --build | --buil | --bui | --bu)
1099 ac_prev=build_alias ;;
1100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1101 build_alias=$ac_optarg ;;
1103 -cache-file | --cache-file | --cache-fil | --cache-fi \
1104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1105 ac_prev=cache_file ;;
1106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1108 cache_file=$ac_optarg ;;
1110 --config-cache | -C)
1111 cache_file=config.cache ;;
1113 -datadir | --datadir | --datadi | --datad)
1114 ac_prev=datadir ;;
1115 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1116 datadir=$ac_optarg ;;
1118 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1119 | --dataroo | --dataro | --datar)
1120 ac_prev=datarootdir ;;
1121 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1122 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1123 datarootdir=$ac_optarg ;;
1125 -disable-* | --disable-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid feature name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "enable_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval enable_$ac_useropt=no ;;
1141 -docdir | --docdir | --docdi | --doc | --do)
1142 ac_prev=docdir ;;
1143 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1144 docdir=$ac_optarg ;;
1146 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1147 ac_prev=dvidir ;;
1148 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1149 dvidir=$ac_optarg ;;
1151 -enable-* | --enable-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid feature name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1160 "enable_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval enable_$ac_useropt=\$ac_optarg ;;
1167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1169 | --exec | --exe | --ex)
1170 ac_prev=exec_prefix ;;
1171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1173 | --exec=* | --exe=* | --ex=*)
1174 exec_prefix=$ac_optarg ;;
1176 -gas | --gas | --ga | --g)
1177 # Obsolete; use --with-gas.
1178 with_gas=yes ;;
1180 -help | --help | --hel | --he | -h)
1181 ac_init_help=long ;;
1182 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1183 ac_init_help=recursive ;;
1184 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1185 ac_init_help=short ;;
1187 -host | --host | --hos | --ho)
1188 ac_prev=host_alias ;;
1189 -host=* | --host=* | --hos=* | --ho=*)
1190 host_alias=$ac_optarg ;;
1192 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1193 ac_prev=htmldir ;;
1194 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1195 | --ht=*)
1196 htmldir=$ac_optarg ;;
1198 -includedir | --includedir | --includedi | --included | --include \
1199 | --includ | --inclu | --incl | --inc)
1200 ac_prev=includedir ;;
1201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1202 | --includ=* | --inclu=* | --incl=* | --inc=*)
1203 includedir=$ac_optarg ;;
1205 -infodir | --infodir | --infodi | --infod | --info | --inf)
1206 ac_prev=infodir ;;
1207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1208 infodir=$ac_optarg ;;
1210 -libdir | --libdir | --libdi | --libd)
1211 ac_prev=libdir ;;
1212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1213 libdir=$ac_optarg ;;
1215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1216 | --libexe | --libex | --libe)
1217 ac_prev=libexecdir ;;
1218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1219 | --libexe=* | --libex=* | --libe=*)
1220 libexecdir=$ac_optarg ;;
1222 -localedir | --localedir | --localedi | --localed | --locale)
1223 ac_prev=localedir ;;
1224 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1225 localedir=$ac_optarg ;;
1227 -localstatedir | --localstatedir | --localstatedi | --localstated \
1228 | --localstate | --localstat | --localsta | --localst | --locals)
1229 ac_prev=localstatedir ;;
1230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1231 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1232 localstatedir=$ac_optarg ;;
1234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1235 ac_prev=mandir ;;
1236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1237 mandir=$ac_optarg ;;
1239 -nfp | --nfp | --nf)
1240 # Obsolete; use --without-fp.
1241 with_fp=no ;;
1243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1244 | --no-cr | --no-c | -n)
1245 no_create=yes ;;
1247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1249 no_recursion=yes ;;
1251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1253 | --oldin | --oldi | --old | --ol | --o)
1254 ac_prev=oldincludedir ;;
1255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1258 oldincludedir=$ac_optarg ;;
1260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1261 ac_prev=prefix ;;
1262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1263 prefix=$ac_optarg ;;
1265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1266 | --program-pre | --program-pr | --program-p)
1267 ac_prev=program_prefix ;;
1268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1270 program_prefix=$ac_optarg ;;
1272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1273 | --program-suf | --program-su | --program-s)
1274 ac_prev=program_suffix ;;
1275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1277 program_suffix=$ac_optarg ;;
1279 -program-transform-name | --program-transform-name \
1280 | --program-transform-nam | --program-transform-na \
1281 | --program-transform-n | --program-transform- \
1282 | --program-transform | --program-transfor \
1283 | --program-transfo | --program-transf \
1284 | --program-trans | --program-tran \
1285 | --progr-tra | --program-tr | --program-t)
1286 ac_prev=program_transform_name ;;
1287 -program-transform-name=* | --program-transform-name=* \
1288 | --program-transform-nam=* | --program-transform-na=* \
1289 | --program-transform-n=* | --program-transform-=* \
1290 | --program-transform=* | --program-transfor=* \
1291 | --program-transfo=* | --program-transf=* \
1292 | --program-trans=* | --program-tran=* \
1293 | --progr-tra=* | --program-tr=* | --program-t=*)
1294 program_transform_name=$ac_optarg ;;
1296 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1297 ac_prev=pdfdir ;;
1298 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1299 pdfdir=$ac_optarg ;;
1301 -psdir | --psdir | --psdi | --psd | --ps)
1302 ac_prev=psdir ;;
1303 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1304 psdir=$ac_optarg ;;
1306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1307 | -silent | --silent | --silen | --sile | --sil)
1308 silent=yes ;;
1310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1311 ac_prev=sbindir ;;
1312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1313 | --sbi=* | --sb=*)
1314 sbindir=$ac_optarg ;;
1316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318 | --sharedst | --shareds | --shared | --share | --shar \
1319 | --sha | --sh)
1320 ac_prev=sharedstatedir ;;
1321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1324 | --sha=* | --sh=*)
1325 sharedstatedir=$ac_optarg ;;
1327 -site | --site | --sit)
1328 ac_prev=site ;;
1329 -site=* | --site=* | --sit=*)
1330 site=$ac_optarg ;;
1332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1333 ac_prev=srcdir ;;
1334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335 srcdir=$ac_optarg ;;
1337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338 | --syscon | --sysco | --sysc | --sys | --sy)
1339 ac_prev=sysconfdir ;;
1340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342 sysconfdir=$ac_optarg ;;
1344 -target | --target | --targe | --targ | --tar | --ta | --t)
1345 ac_prev=target_alias ;;
1346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347 target_alias=$ac_optarg ;;
1349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1350 verbose=yes ;;
1352 -version | --version | --versio | --versi | --vers | -V)
1353 ac_init_version=: ;;
1355 -with-* | --with-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359 as_fn_error $? "invalid package name: $ac_useropt"
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1364 "with_$ac_useropt"
1365 "*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval with_$ac_useropt=\$ac_optarg ;;
1371 -without-* | --without-*)
1372 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375 as_fn_error $? "invalid package name: $ac_useropt"
1376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1380 "with_$ac_useropt"
1381 "*) ;;
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1384 esac
1385 eval with_$ac_useropt=no ;;
1387 --x)
1388 # Obsolete; use --with-x.
1389 with_x=yes ;;
1391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392 | --x-incl | --x-inc | --x-in | --x-i)
1393 ac_prev=x_includes ;;
1394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396 x_includes=$ac_optarg ;;
1398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400 ac_prev=x_libraries ;;
1401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403 x_libraries=$ac_optarg ;;
1405 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1406 Try \`$0 --help' for more information"
1409 *=*)
1410 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411 # Reject names that are not valid shell variable names.
1412 case $ac_envvar in #(
1413 '' | [0-9]* | *[!_$as_cr_alnum]* )
1414 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1415 esac
1416 eval $ac_envvar=\$ac_optarg
1417 export $ac_envvar ;;
1420 # FIXME: should be removed in autoconf 3.0.
1421 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1427 esac
1428 done
1430 if test -n "$ac_prev"; then
1431 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432 as_fn_error $? "missing argument to $ac_option"
1435 if test -n "$ac_unrecognized_opts"; then
1436 case $enable_option_checking in
1437 no) ;;
1438 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1439 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1440 esac
1443 # Check all directory arguments for consistency.
1444 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1445 datadir sysconfdir sharedstatedir localstatedir includedir \
1446 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1447 libdir localedir mandir
1449 eval ac_val=\$$ac_var
1450 # Remove trailing slashes.
1451 case $ac_val in
1452 */ )
1453 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1454 eval $ac_var=\$ac_val;;
1455 esac
1456 # Be sure to have absolute directory names.
1457 case $ac_val in
1458 [\\/$]* | ?:[\\/]* ) continue;;
1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1460 esac
1461 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1462 done
1464 # There might be people who depend on the old broken behavior: `$host'
1465 # used to hold the argument of --host etc.
1466 # FIXME: To remove some day.
1467 build=$build_alias
1468 host=$host_alias
1469 target=$target_alias
1471 # FIXME: To remove some day.
1472 if test "x$host_alias" != x; then
1473 if test "x$build_alias" = x; then
1474 cross_compiling=maybe
1475 elif test "x$build_alias" != "x$host_alias"; then
1476 cross_compiling=yes
1480 ac_tool_prefix=
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1483 test "$silent" = yes && exec 6>/dev/null
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489 as_fn_error $? "working directory cannot be determined"
1490 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1491 as_fn_error $? "pwd does not report name of working directory"
1494 # Find the source files, if location was not specified.
1495 if test -z "$srcdir"; then
1496 ac_srcdir_defaulted=yes
1497 # Try the directory containing this script, then the parent directory.
1498 ac_confdir=`$as_dirname -- "$as_myself" ||
1499 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1500 X"$as_myself" : 'X\(//\)[^/]' \| \
1501 X"$as_myself" : 'X\(//\)$' \| \
1502 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1503 $as_echo X"$as_myself" |
1504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1505 s//\1/
1508 /^X\(\/\/\)[^/].*/{
1509 s//\1/
1512 /^X\(\/\/\)$/{
1513 s//\1/
1516 /^X\(\/\).*/{
1517 s//\1/
1520 s/.*/./; q'`
1521 srcdir=$ac_confdir
1522 if test ! -r "$srcdir/$ac_unique_file"; then
1523 srcdir=..
1525 else
1526 ac_srcdir_defaulted=no
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1529 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1530 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1532 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1533 ac_abs_confdir=`(
1534 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1535 pwd)`
1536 # When building in place, set srcdir=.
1537 if test "$ac_abs_confdir" = "$ac_pwd"; then
1538 srcdir=.
1540 # Remove unnecessary trailing slashes from srcdir.
1541 # Double slashes in file names in object file debugging info
1542 # mess up M-x gdb in Emacs.
1543 case $srcdir in
1544 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1545 esac
1546 for ac_var in $ac_precious_vars; do
1547 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1548 eval ac_env_${ac_var}_value=\$${ac_var}
1549 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1551 done
1554 # Report the --help message.
1556 if test "$ac_init_help" = "long"; then
1557 # Omit some internal or obsolete options to make the list less imposing.
1558 # This message is too long to be a string in the A/UX 3.1 sh.
1559 cat <<_ACEOF
1560 \`configure' configures this package to adapt to many kinds of systems.
1562 Usage: $0 [OPTION]... [VAR=VALUE]...
1564 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1565 VAR=VALUE. See below for descriptions of some of the useful variables.
1567 Defaults for the options are specified in brackets.
1569 Configuration:
1570 -h, --help display this help and exit
1571 --help=short display options specific to this package
1572 --help=recursive display the short help of all the included packages
1573 -V, --version display version information and exit
1574 -q, --quiet, --silent do not print \`checking ...' messages
1575 --cache-file=FILE cache test results in FILE [disabled]
1576 -C, --config-cache alias for \`--cache-file=config.cache'
1577 -n, --no-create do not create output files
1578 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1580 Installation directories:
1581 --prefix=PREFIX install architecture-independent files in PREFIX
1582 [$ac_default_prefix]
1583 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1584 [PREFIX]
1586 By default, \`make install' will install all the files in
1587 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1588 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1589 for instance \`--prefix=\$HOME'.
1591 For better control, use the options below.
1593 Fine tuning of the installation directories:
1594 --bindir=DIR user executables [EPREFIX/bin]
1595 --sbindir=DIR system admin executables [EPREFIX/sbin]
1596 --libexecdir=DIR program executables [EPREFIX/libexec]
1597 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1598 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1599 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1600 --libdir=DIR object code libraries [EPREFIX/lib]
1601 --includedir=DIR C header files [PREFIX/include]
1602 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1603 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1604 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1605 --infodir=DIR info documentation [DATAROOTDIR/info]
1606 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1607 --mandir=DIR man documentation [DATAROOTDIR/man]
1608 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1609 --htmldir=DIR html documentation [DOCDIR]
1610 --dvidir=DIR dvi documentation [DOCDIR]
1611 --pdfdir=DIR pdf documentation [DOCDIR]
1612 --psdir=DIR ps documentation [DOCDIR]
1613 _ACEOF
1615 cat <<\_ACEOF
1617 Program names:
1618 --program-prefix=PREFIX prepend PREFIX to installed program names
1619 --program-suffix=SUFFIX append SUFFIX to installed program names
1620 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1622 System types:
1623 --build=BUILD configure for building on BUILD [guessed]
1624 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1625 --target=TARGET configure for building compilers for TARGET [HOST]
1626 _ACEOF
1629 if test -n "$ac_init_help"; then
1631 cat <<\_ACEOF
1633 Optional Features:
1634 --disable-option-checking ignore unrecognized --enable/--with options
1635 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1636 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1637 --enable-generated-files-in-srcdir
1638 put copies of generated files in source dir intended
1639 for creating source tarballs for users without
1640 texinfo bison or flex
1641 --disable-largefile omit support for large files
1642 --disable-build-format-warnings
1643 don't use -Wformat while building GCC
1644 --enable-werror-always enable -Werror despite compiler version
1645 --enable-checking[=LIST]
1646 enable expensive run-time checks. With LIST, enable
1647 only specific categories of checks. Categories are:
1648 yes,no,all,none,release. Flags are:
1649 assert,df,extra,fold,gc,gcac,gimple,misc,
1650 rtlflag,rtl,runtime,tree,valgrind,types
1651 --enable-coverage[=LEVEL]
1652 enable compiler's code coverage collection. Use to
1653 measure compiler performance and locate unused parts
1654 of the compiler. With LEVEL, specify optimization.
1655 Values are opt, noopt, default is noopt
1656 --enable-gather-detailed-mem-stats
1657 enable detailed memory allocation stats gathering
1658 --enable-valgrind-annotations
1659 enable valgrind runtime interaction
1660 --enable-multilib enable library support for multiple ABIs
1661 --enable-multiarch enable support for multiarch paths
1662 --enable-__cxa_atexit enable __cxa_atexit for C++
1663 --enable-decimal-float={no,yes,bid,dpd}
1664 enable decimal float extension to C. Selecting 'bid'
1665 or 'dpd' choses which decimal floating point format
1666 to use
1667 --enable-fixed-point enable fixed-point arithmetic extension to C
1668 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1669 package
1670 --enable-tls enable or disable generation of tls code overriding
1671 the assembler check for tls support
1672 --enable-vtable-verify enable vtable verification feature
1673 --enable-objc-gc enable the use of Boehm's garbage collector with the
1674 GNU Objective-C runtime
1675 --disable-shared don't provide a shared libgcc
1676 --disable-gcov don't provide libgcov and related host tools
1677 --enable-languages=LIST specify which front-ends to build
1678 --disable-rpath do not hardcode runtime library paths
1679 --enable-sjlj-exceptions
1680 arrange to use setjmp/longjmp exception handling
1681 --enable-secureplt enable -msecure-plt by default for PowerPC
1682 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1683 Default to platform configuration
1684 --enable-large-address-aware
1685 Link mingw executables with --large-address-aware
1686 --enable-leading-mingw64-underscores
1687 enable leading underscores on 64 bit mingw targets
1688 --enable-cld enable -mcld by default for 32bit x86
1689 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1691 --disable-win32-registry
1692 disable lookup of installation paths in the Registry
1693 on Windows hosts
1694 --enable-win32-registry enable registry lookup (default)
1695 --enable-win32-registry=KEY
1696 use KEY instead of GCC version as the last portion
1697 of the registry key
1698 --enable-shared[=PKGS] build shared libraries [default=yes]
1699 --enable-static[=PKGS] build static libraries [default=yes]
1700 --enable-fast-install[=PKGS]
1701 optimize for fast installation [default=yes]
1702 --disable-libtool-lock avoid locking (might break parallel builds)
1703 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1704 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1705 --enable-gnu-indirect-function
1706 enable the use of the @gnu_indirect_function to
1707 glibc systems
1708 --enable-initfini-array use .init_array/.fini_array sections
1709 --enable-comdat enable COMDAT group support
1711 --enable-fix-cortex-a53-835769
1712 enable workaround for AArch64 Cortex-A53 erratum
1713 835769 by default
1714 --disable-fix-cortex-a53-835769
1715 disable workaround for AArch64 Cortex-A53 erratum
1716 835769 by default
1719 --enable-fix-cortex-a53-843419
1720 enable workaround for AArch64 Cortex-A53 erratum
1721 843419 by default
1722 --disable-fix-cortex-a53-843419
1723 disable workaround for AArch64 Cortex-A53 erratum
1724 843419 by default
1726 --enable-gnu-unique-object
1727 enable the use of the @gnu_unique_object ELF
1728 extension on glibc systems
1729 --enable-linker-build-id
1730 compiler will always pass --build-id to linker
1731 --enable-libssp enable linking against libssp
1732 --enable-default-ssp enable Stack Smashing Protection as default
1733 --enable-maintainer-mode
1734 enable make rules and dependencies not useful (and
1735 sometimes confusing) to the casual installer
1736 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1737 thrashing on the build machine
1738 --enable-version-specific-runtime-libs
1739 specify that runtime libraries should be installed
1740 in a compiler-specific directory
1741 --enable-plugin enable plugin support
1742 --enable-host-shared build host code as shared libraries
1743 --disable-libquadmath-support
1744 disable libquadmath support for Fortran
1745 --enable-default-pie enable Position Independent Executable as default
1747 Optional Packages:
1748 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1749 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1750 --with-build-libsubdir=DIR Directory where to find libraries for build system
1751 --with-local-prefix=DIR specifies directory to put local include
1752 --with-native-system-header-dir=dir
1753 use dir as the directory to look for standard
1754 system header files in. Defaults to /usr/include.
1755 --with-build-sysroot=sysroot
1756 use sysroot as the system root during the build
1757 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1758 --with-gxx-include-dir=DIR
1759 specifies directory to put g++ header files
1760 --with-cpp-install-dir=DIR
1761 install the user visible C preprocessor in DIR
1762 (relative to PREFIX) as well as PREFIX/bin
1763 --with-gnu-ld arrange to work with GNU ld
1764 --with-ld arrange to use the specified ld (full pathname)
1765 --with-demangler-in-ld try to use demangler in GNU ld
1766 --with-gnu-as arrange to work with GNU as
1767 --with-as arrange to use the specified as (full pathname)
1768 --with-stabs arrange to use stabs instead of host debug format
1769 --with-stack-clash-protection-guard-size=size
1770 Set the default stack clash protection guard size
1771 for specific targets as a power of two in bytes.
1772 --with-dwarf2 force the default debug format to be DWARF 2
1773 --with-specs=SPECS add SPECS to driver command-line processing
1774 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1775 --with-bugurl=URL Direct users to URL to report a bug
1776 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1777 --with-gnu-ld assume the C compiler uses GNU ld default=no
1778 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1779 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1780 --with-gcc-major-version-only
1781 use only GCC major number in filesystem paths
1782 --with-pic try to use only PIC/non-PIC objects [default=use
1783 both]
1784 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1785 --with-plugin-ld=[ARG] specify the plugin linker
1786 --with-glibc-version=M.N
1787 assume GCC used with glibc version M.N or later
1788 --with-long-double-128 use 128-bit long double by default
1789 --with-long-double-format={ieee,ibm}
1790 Specify whether PowerPC long double uses IEEE or IBM format
1792 --with-gc={page,zone} this option is not supported anymore. It used to
1793 choose the garbage collection mechanism to use with
1794 the compiler
1795 --with-system-zlib use installed libz
1796 --with-linker-hash-style={sysv,gnu,both}
1797 specify the linker hash style
1798 --with-diagnostics-color={never,auto,auto-if-env,always}
1799 specify the default of -fdiagnostics-color option
1800 auto-if-env stands for -fdiagnostics-color=auto if
1801 GCC_COLOR environment variable is present and
1802 -fdiagnostics-color=never otherwise
1804 Some influential environment variables:
1805 CC C compiler command
1806 CFLAGS C compiler flags
1807 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1808 nonstandard directory <lib dir>
1809 LIBS libraries to pass to the linker, e.g. -l<library>
1810 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1811 you have headers in a nonstandard directory <include dir>
1812 CXX C++ compiler command
1813 CXXFLAGS C++ compiler flags
1814 CXXCPP C++ preprocessor
1815 CPP C preprocessor
1816 GMPLIBS How to link GMP
1817 GMPINC How to find GMP include files
1818 ISLLIBS How to link isl
1819 ISLINC How to find isl include files
1821 Use these variables to override the choices made by `configure' or to help
1822 it to find libraries and programs with nonstandard names/locations.
1824 Report bugs to the package provider.
1825 _ACEOF
1826 ac_status=$?
1829 if test "$ac_init_help" = "recursive"; then
1830 # If there are subdirs, report their specific --help.
1831 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1832 test -d "$ac_dir" ||
1833 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1834 continue
1835 ac_builddir=.
1837 case "$ac_dir" in
1838 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1840 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1841 # A ".." for each directory in $ac_dir_suffix.
1842 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1843 case $ac_top_builddir_sub in
1844 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1845 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1846 esac ;;
1847 esac
1848 ac_abs_top_builddir=$ac_pwd
1849 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1850 # for backward compatibility:
1851 ac_top_builddir=$ac_top_build_prefix
1853 case $srcdir in
1854 .) # We are building in place.
1855 ac_srcdir=.
1856 ac_top_srcdir=$ac_top_builddir_sub
1857 ac_abs_top_srcdir=$ac_pwd ;;
1858 [\\/]* | ?:[\\/]* ) # Absolute name.
1859 ac_srcdir=$srcdir$ac_dir_suffix;
1860 ac_top_srcdir=$srcdir
1861 ac_abs_top_srcdir=$srcdir ;;
1862 *) # Relative name.
1863 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1864 ac_top_srcdir=$ac_top_build_prefix$srcdir
1865 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1866 esac
1867 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1869 cd "$ac_dir" || { ac_status=$?; continue; }
1870 # Check for guested configure.
1871 if test -f "$ac_srcdir/configure.gnu"; then
1872 echo &&
1873 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1874 elif test -f "$ac_srcdir/configure"; then
1875 echo &&
1876 $SHELL "$ac_srcdir/configure" --help=recursive
1877 else
1878 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1879 fi || ac_status=$?
1880 cd "$ac_pwd" || { ac_status=$?; break; }
1881 done
1884 test -n "$ac_init_help" && exit $ac_status
1885 if $ac_init_version; then
1886 cat <<\_ACEOF
1887 configure
1888 generated by GNU Autoconf 2.69
1890 Copyright (C) 2012 Free Software Foundation, Inc.
1891 This configure script is free software; the Free Software Foundation
1892 gives unlimited permission to copy, distribute and modify it.
1893 _ACEOF
1894 exit
1897 ## ------------------------ ##
1898 ## Autoconf initialization. ##
1899 ## ------------------------ ##
1901 # ac_fn_c_try_compile LINENO
1902 # --------------------------
1903 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_c_try_compile ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 rm -f conftest.$ac_objext
1908 if { { ac_try="$ac_compile"
1909 case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_compile") 2>conftest.err
1916 ac_status=$?
1917 if test -s conftest.err; then
1918 grep -v '^ *+' conftest.err >conftest.er1
1919 cat conftest.er1 >&5
1920 mv -f conftest.er1 conftest.err
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } && {
1924 test -z "$ac_c_werror_flag" ||
1925 test ! -s conftest.err
1926 } && test -s conftest.$ac_objext; then :
1927 ac_retval=0
1928 else
1929 $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1932 ac_retval=1
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1937 } # ac_fn_c_try_compile
1939 # ac_fn_cxx_try_compile LINENO
1940 # ----------------------------
1941 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_cxx_try_compile ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 rm -f conftest.$ac_objext
1946 if { { ac_try="$ac_compile"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_compile") 2>conftest.err
1954 ac_status=$?
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } && {
1962 test -z "$ac_cxx_werror_flag" ||
1963 test ! -s conftest.err
1964 } && test -s conftest.$ac_objext; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1970 ac_retval=1
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1975 } # ac_fn_cxx_try_compile
1977 # ac_fn_cxx_try_cpp LINENO
1978 # ------------------------
1979 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_cpp ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { { ac_try="$ac_cpp conftest.$ac_ext"
1984 case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1991 ac_status=$?
1992 if test -s conftest.err; then
1993 grep -v '^ *+' conftest.err >conftest.er1
1994 cat conftest.er1 >&5
1995 mv -f conftest.er1 conftest.err
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } > conftest.i && {
1999 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2000 test ! -s conftest.err
2001 }; then :
2002 ac_retval=0
2003 else
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2007 ac_retval=1
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2012 } # ac_fn_cxx_try_cpp
2014 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2015 # ---------------------------------------------------------
2016 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2017 # the include files in INCLUDES and setting the cache variable VAR
2018 # accordingly.
2019 ac_fn_cxx_check_header_mongrel ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if eval \${$3+:} false; then :
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 else
2032 # Is the header compilable?
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2034 $as_echo_n "checking $2 usability... " >&6; }
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2038 #include <$2>
2039 _ACEOF
2040 if ac_fn_cxx_try_compile "$LINENO"; then :
2041 ac_header_compiler=yes
2042 else
2043 ac_header_compiler=no
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2047 $as_echo "$ac_header_compiler" >&6; }
2049 # Is the header present?
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2051 $as_echo_n "checking $2 presence... " >&6; }
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 #include <$2>
2055 _ACEOF
2056 if ac_fn_cxx_try_cpp "$LINENO"; then :
2057 ac_header_preproc=yes
2058 else
2059 ac_header_preproc=no
2061 rm -f conftest.err conftest.i conftest.$ac_ext
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2063 $as_echo "$ac_header_preproc" >&6; }
2065 # So? What about this header?
2066 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2067 yes:no: )
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2069 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2071 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 no:yes:* )
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2075 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2077 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2079 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2081 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2083 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2085 esac
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2090 else
2091 eval "$3=\$ac_header_compiler"
2093 eval ac_res=\$$3
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 } # ac_fn_cxx_check_header_mongrel
2101 # ac_fn_cxx_try_run LINENO
2102 # ------------------------
2103 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2104 # that executables *can* be run.
2105 ac_fn_cxx_try_run ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 if { { ac_try="$ac_link"
2109 case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112 esac
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_link") 2>&5
2116 ac_status=$?
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2119 { { case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122 esac
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_try") 2>&5
2126 ac_status=$?
2127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2128 test $ac_status = 0; }; }; then :
2129 ac_retval=0
2130 else
2131 $as_echo "$as_me: program exited with status $ac_status" >&5
2132 $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2135 ac_retval=$ac_status
2137 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139 as_fn_set_status $ac_retval
2141 } # ac_fn_cxx_try_run
2143 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2144 # ---------------------------------------------------------
2145 # Tests whether HEADER exists and can be compiled using the include files in
2146 # INCLUDES, setting the cache variable VAR accordingly.
2147 ac_fn_cxx_check_header_compile ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151 $as_echo_n "checking for $2... " >&6; }
2152 if eval \${$3+:} false; then :
2153 $as_echo_n "(cached) " >&6
2154 else
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2158 #include <$2>
2159 _ACEOF
2160 if ac_fn_cxx_try_compile "$LINENO"; then :
2161 eval "$3=yes"
2162 else
2163 eval "$3=no"
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 eval ac_res=\$$3
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_cxx_check_header_compile
2174 # ac_fn_c_try_cpp LINENO
2175 # ----------------------
2176 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2177 ac_fn_c_try_cpp ()
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 if { { ac_try="$ac_cpp conftest.$ac_ext"
2181 case "(($ac_try" in
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2184 esac
2185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 $as_echo "$ac_try_echo"; } >&5
2187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2188 ac_status=$?
2189 if test -s conftest.err; then
2190 grep -v '^ *+' conftest.err >conftest.er1
2191 cat conftest.er1 >&5
2192 mv -f conftest.er1 conftest.err
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } > conftest.i && {
2196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2197 test ! -s conftest.err
2198 }; then :
2199 ac_retval=0
2200 else
2201 $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2204 ac_retval=1
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
2209 } # ac_fn_c_try_cpp
2211 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2212 # ----------------------------------------------
2213 # Tries to find the compile-time value of EXPR in a program that includes
2214 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2215 # computed
2216 ac_fn_cxx_compute_int ()
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 if test "$cross_compiling" = yes; then
2220 # Depending upon the size, compute the lo and hi bounds.
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2225 main ()
2227 static int test_array [1 - 2 * !(($2) >= 0)];
2228 test_array [0] = 0;
2229 return test_array [0];
2232 return 0;
2234 _ACEOF
2235 if ac_fn_cxx_try_compile "$LINENO"; then :
2236 ac_lo=0 ac_mid=0
2237 while :; do
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2242 main ()
2244 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2245 test_array [0] = 0;
2246 return test_array [0];
2249 return 0;
2251 _ACEOF
2252 if ac_fn_cxx_try_compile "$LINENO"; then :
2253 ac_hi=$ac_mid; break
2254 else
2255 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2256 if test $ac_lo -le $ac_mid; then
2257 ac_lo= ac_hi=
2258 break
2260 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 done
2264 else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2269 main ()
2271 static int test_array [1 - 2 * !(($2) < 0)];
2272 test_array [0] = 0;
2273 return test_array [0];
2276 return 0;
2278 _ACEOF
2279 if ac_fn_cxx_try_compile "$LINENO"; then :
2280 ac_hi=-1 ac_mid=-1
2281 while :; do
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2286 main ()
2288 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2289 test_array [0] = 0;
2290 return test_array [0];
2293 return 0;
2295 _ACEOF
2296 if ac_fn_cxx_try_compile "$LINENO"; then :
2297 ac_lo=$ac_mid; break
2298 else
2299 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2300 if test $ac_mid -le $ac_hi; then
2301 ac_lo= ac_hi=
2302 break
2304 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 done
2308 else
2309 ac_lo= ac_hi=
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 # Binary search between lo and hi bounds.
2315 while test "x$ac_lo" != "x$ac_hi"; do
2316 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2321 main ()
2323 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2324 test_array [0] = 0;
2325 return test_array [0];
2328 return 0;
2330 _ACEOF
2331 if ac_fn_cxx_try_compile "$LINENO"; then :
2332 ac_hi=$ac_mid
2333 else
2334 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 done
2338 case $ac_lo in #((
2339 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2340 '') ac_retval=1 ;;
2341 esac
2342 else
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2346 static long int longval () { return $2; }
2347 static unsigned long int ulongval () { return $2; }
2348 #include <stdio.h>
2349 #include <stdlib.h>
2351 main ()
2354 FILE *f = fopen ("conftest.val", "w");
2355 if (! f)
2356 return 1;
2357 if (($2) < 0)
2359 long int i = longval ();
2360 if (i != ($2))
2361 return 1;
2362 fprintf (f, "%ld", i);
2364 else
2366 unsigned long int i = ulongval ();
2367 if (i != ($2))
2368 return 1;
2369 fprintf (f, "%lu", i);
2371 /* Do not output a trailing newline, as this causes \r\n confusion
2372 on some platforms. */
2373 return ferror (f) || fclose (f) != 0;
2376 return 0;
2378 _ACEOF
2379 if ac_fn_cxx_try_run "$LINENO"; then :
2380 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2381 else
2382 ac_retval=1
2384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2385 conftest.$ac_objext conftest.beam conftest.$ac_ext
2386 rm -f conftest.val
2389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2390 as_fn_set_status $ac_retval
2392 } # ac_fn_cxx_compute_int
2394 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2395 # ---------------------------------------------
2396 # Tests whether TYPE exists after having included INCLUDES, setting cache
2397 # variable VAR accordingly.
2398 ac_fn_cxx_check_type ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2402 $as_echo_n "checking for $2... " >&6; }
2403 if eval \${$3+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 eval "$3=no"
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2411 main ()
2413 if (sizeof ($2))
2414 return 0;
2416 return 0;
2418 _ACEOF
2419 if ac_fn_cxx_try_compile "$LINENO"; then :
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2424 main ()
2426 if (sizeof (($2)))
2427 return 0;
2429 return 0;
2431 _ACEOF
2432 if ac_fn_cxx_try_compile "$LINENO"; then :
2434 else
2435 eval "$3=yes"
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 eval ac_res=\$$3
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446 } # ac_fn_cxx_check_type
2448 # ac_fn_c_find_intX_t LINENO BITS VAR
2449 # -----------------------------------
2450 # Finds a signed integer type with width BITS, setting cache variable VAR
2451 # accordingly.
2452 ac_fn_c_find_intX_t ()
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2456 $as_echo_n "checking for int$2_t... " >&6; }
2457 if eval \${$3+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 eval "$3=no"
2461 # Order is important - never check a type that is potentially smaller
2462 # than half of the expected target width.
2463 for ac_type in int$2_t 'int' 'long int' \
2464 'long long int' 'short int' 'signed char'; do
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2467 $ac_includes_default
2468 enum { N = $2 / 2 - 1 };
2470 main ()
2472 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2473 test_array [0] = 0;
2474 return test_array [0];
2477 return 0;
2479 _ACEOF
2480 if ac_fn_cxx_try_compile "$LINENO"; then :
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2483 $ac_includes_default
2484 enum { N = $2 / 2 - 1 };
2486 main ()
2488 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2489 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2490 test_array [0] = 0;
2491 return test_array [0];
2494 return 0;
2496 _ACEOF
2497 if ac_fn_cxx_try_compile "$LINENO"; then :
2499 else
2500 case $ac_type in #(
2501 int$2_t) :
2502 eval "$3=yes" ;; #(
2503 *) :
2504 eval "$3=\$ac_type" ;;
2505 esac
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 if eval test \"x\$"$3"\" = x"no"; then :
2512 else
2513 break
2515 done
2517 eval ac_res=\$$3
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2519 $as_echo "$ac_res" >&6; }
2520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2522 } # ac_fn_c_find_intX_t
2524 # ac_fn_cxx_try_link LINENO
2525 # -------------------------
2526 # Try to link conftest.$ac_ext, and return whether this succeeded.
2527 ac_fn_cxx_try_link ()
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 rm -f conftest.$ac_objext conftest$ac_exeext
2531 if { { ac_try="$ac_link"
2532 case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535 esac
2536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2537 $as_echo "$ac_try_echo"; } >&5
2538 (eval "$ac_link") 2>conftest.err
2539 ac_status=$?
2540 if test -s conftest.err; then
2541 grep -v '^ *+' conftest.err >conftest.er1
2542 cat conftest.er1 >&5
2543 mv -f conftest.er1 conftest.err
2545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2546 test $ac_status = 0; } && {
2547 test -z "$ac_cxx_werror_flag" ||
2548 test ! -s conftest.err
2549 } && test -s conftest$ac_exeext && {
2550 test "$cross_compiling" = yes ||
2551 test -x conftest$ac_exeext
2552 }; then :
2553 ac_retval=0
2554 else
2555 $as_echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2558 ac_retval=1
2560 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2561 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2562 # interfere with the next link command; also delete a directory that is
2563 # left behind by Apple's compiler. We do this before executing the actions.
2564 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2566 as_fn_set_status $ac_retval
2568 } # ac_fn_cxx_try_link
2570 # ac_fn_c_find_uintX_t LINENO BITS VAR
2571 # ------------------------------------
2572 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2573 # accordingly.
2574 ac_fn_c_find_uintX_t ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2578 $as_echo_n "checking for uint$2_t... " >&6; }
2579 if eval \${$3+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 eval "$3=no"
2583 # Order is important - never check a type that is potentially smaller
2584 # than half of the expected target width.
2585 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2586 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2589 $ac_includes_default
2591 main ()
2593 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2594 test_array [0] = 0;
2595 return test_array [0];
2598 return 0;
2600 _ACEOF
2601 if ac_fn_cxx_try_compile "$LINENO"; then :
2602 case $ac_type in #(
2603 uint$2_t) :
2604 eval "$3=yes" ;; #(
2605 *) :
2606 eval "$3=\$ac_type" ;;
2607 esac
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 if eval test \"x\$"$3"\" = x"no"; then :
2612 else
2613 break
2615 done
2617 eval ac_res=\$$3
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619 $as_echo "$ac_res" >&6; }
2620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622 } # ac_fn_c_find_uintX_t
2624 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2625 # ------------------------------------------------
2626 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2627 ac_fn_cxx_check_header_preproc ()
2629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2631 $as_echo_n "checking for $2... " >&6; }
2632 if eval \${$3+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2637 #include <$2>
2638 _ACEOF
2639 if ac_fn_cxx_try_cpp "$LINENO"; then :
2640 eval "$3=yes"
2641 else
2642 eval "$3=no"
2644 rm -f conftest.err conftest.i conftest.$ac_ext
2646 eval ac_res=\$$3
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648 $as_echo "$ac_res" >&6; }
2649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2651 } # ac_fn_cxx_check_header_preproc
2653 # ac_fn_cxx_check_func LINENO FUNC VAR
2654 # ------------------------------------
2655 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2656 ac_fn_cxx_check_func ()
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2660 $as_echo_n "checking for $2... " >&6; }
2661 if eval \${$3+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2666 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2668 #define $2 innocuous_$2
2670 /* System header to define __stub macros and hopefully few prototypes,
2671 which can conflict with char $2 (); below.
2672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2673 <limits.h> exists even on freestanding compilers. */
2675 #ifdef __STDC__
2676 # include <limits.h>
2677 #else
2678 # include <assert.h>
2679 #endif
2681 #undef $2
2683 /* Override any GCC internal prototype to avoid an error.
2684 Use char because int might match the return type of a GCC
2685 builtin and then its argument prototype would still apply. */
2686 #ifdef __cplusplus
2687 extern "C"
2688 #endif
2689 char $2 ();
2690 /* The GNU C library defines this for functions which it implements
2691 to always fail with ENOSYS. Some functions are actually named
2692 something starting with __ and the normal name is an alias. */
2693 #if defined __stub_$2 || defined __stub___$2
2694 choke me
2695 #endif
2698 main ()
2700 return $2 ();
2702 return 0;
2704 _ACEOF
2705 if ac_fn_cxx_try_link "$LINENO"; then :
2706 eval "$3=yes"
2707 else
2708 eval "$3=no"
2710 rm -f core conftest.err conftest.$ac_objext \
2711 conftest$ac_exeext conftest.$ac_ext
2713 eval ac_res=\$$3
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2715 $as_echo "$ac_res" >&6; }
2716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2718 } # ac_fn_cxx_check_func
2720 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2721 # -----------------------------------------------
2722 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2723 # accordingly.
2724 ac_fn_cxx_check_decl ()
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 as_decl_name=`echo $2|sed 's/ *(.*//'`
2728 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2730 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2731 if eval \${$3+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2738 main ()
2740 #ifndef $as_decl_name
2741 #ifdef __cplusplus
2742 (void) $as_decl_use;
2743 #else
2744 (void) $as_decl_name;
2745 #endif
2746 #endif
2749 return 0;
2751 _ACEOF
2752 if ac_fn_cxx_try_compile "$LINENO"; then :
2753 eval "$3=yes"
2754 else
2755 eval "$3=no"
2757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759 eval ac_res=\$$3
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761 $as_echo "$ac_res" >&6; }
2762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2764 } # ac_fn_cxx_check_decl
2766 # ac_fn_c_try_link LINENO
2767 # -----------------------
2768 # Try to link conftest.$ac_ext, and return whether this succeeded.
2769 ac_fn_c_try_link ()
2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772 rm -f conftest.$ac_objext conftest$ac_exeext
2773 if { { ac_try="$ac_link"
2774 case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777 esac
2778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779 $as_echo "$ac_try_echo"; } >&5
2780 (eval "$ac_link") 2>conftest.err
2781 ac_status=$?
2782 if test -s conftest.err; then
2783 grep -v '^ *+' conftest.err >conftest.er1
2784 cat conftest.er1 >&5
2785 mv -f conftest.er1 conftest.err
2787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2788 test $ac_status = 0; } && {
2789 test -z "$ac_c_werror_flag" ||
2790 test ! -s conftest.err
2791 } && test -s conftest$ac_exeext && {
2792 test "$cross_compiling" = yes ||
2793 test -x conftest$ac_exeext
2794 }; then :
2795 ac_retval=0
2796 else
2797 $as_echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 ac_retval=1
2802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2804 # interfere with the next link command; also delete a directory that is
2805 # left behind by Apple's compiler. We do this before executing the actions.
2806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2808 as_fn_set_status $ac_retval
2810 } # ac_fn_c_try_link
2812 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2813 # ----------------------------------------------
2814 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2815 ac_fn_c_check_header_preproc ()
2817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2819 $as_echo_n "checking for $2... " >&6; }
2820 if eval \${$3+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2825 #include <$2>
2826 _ACEOF
2827 if ac_fn_c_try_cpp "$LINENO"; then :
2828 eval "$3=yes"
2829 else
2830 eval "$3=no"
2832 rm -f conftest.err conftest.i conftest.$ac_ext
2834 eval ac_res=\$$3
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2836 $as_echo "$ac_res" >&6; }
2837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2839 } # ac_fn_c_check_header_preproc
2841 # ac_fn_c_check_func LINENO FUNC VAR
2842 # ----------------------------------
2843 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2844 ac_fn_c_check_func ()
2846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2848 $as_echo_n "checking for $2... " >&6; }
2849 if eval \${$3+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853 /* end confdefs.h. */
2854 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2856 #define $2 innocuous_$2
2858 /* System header to define __stub macros and hopefully few prototypes,
2859 which can conflict with char $2 (); below.
2860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2861 <limits.h> exists even on freestanding compilers. */
2863 #ifdef __STDC__
2864 # include <limits.h>
2865 #else
2866 # include <assert.h>
2867 #endif
2869 #undef $2
2871 /* Override any GCC internal prototype to avoid an error.
2872 Use char because int might match the return type of a GCC
2873 builtin and then its argument prototype would still apply. */
2874 #ifdef __cplusplus
2875 extern "C"
2876 #endif
2877 char $2 ();
2878 /* The GNU C library defines this for functions which it implements
2879 to always fail with ENOSYS. Some functions are actually named
2880 something starting with __ and the normal name is an alias. */
2881 #if defined __stub_$2 || defined __stub___$2
2882 choke me
2883 #endif
2886 main ()
2888 return $2 ();
2890 return 0;
2892 _ACEOF
2893 if ac_fn_c_try_link "$LINENO"; then :
2894 eval "$3=yes"
2895 else
2896 eval "$3=no"
2898 rm -f core conftest.err conftest.$ac_objext \
2899 conftest$ac_exeext conftest.$ac_ext
2901 eval ac_res=\$$3
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2903 $as_echo "$ac_res" >&6; }
2904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2906 } # ac_fn_c_check_func
2907 cat >config.log <<_ACEOF
2908 This file contains any messages produced by compilers while
2909 running configure, to aid debugging if configure makes a mistake.
2911 It was created by $as_me, which was
2912 generated by GNU Autoconf 2.69. Invocation command line was
2914 $ $0 $@
2916 _ACEOF
2917 exec 5>>config.log
2919 cat <<_ASUNAME
2920 ## --------- ##
2921 ## Platform. ##
2922 ## --------- ##
2924 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2925 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2926 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2927 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2928 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2930 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2931 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2933 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2934 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2935 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2936 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2937 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2938 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2939 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2941 _ASUNAME
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 $as_echo "PATH: $as_dir"
2949 done
2950 IFS=$as_save_IFS
2952 } >&5
2954 cat >&5 <<_ACEOF
2957 ## ----------- ##
2958 ## Core tests. ##
2959 ## ----------- ##
2961 _ACEOF
2964 # Keep a trace of the command line.
2965 # Strip out --no-create and --no-recursion so they do not pile up.
2966 # Strip out --silent because we don't want to record it for future runs.
2967 # Also quote any args containing shell meta-characters.
2968 # Make two passes to allow for proper duplicate-argument suppression.
2969 ac_configure_args=
2970 ac_configure_args0=
2971 ac_configure_args1=
2972 ac_must_keep_next=false
2973 for ac_pass in 1 2
2975 for ac_arg
2977 case $ac_arg in
2978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2980 | -silent | --silent | --silen | --sile | --sil)
2981 continue ;;
2982 *\'*)
2983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2984 esac
2985 case $ac_pass in
2986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2988 as_fn_append ac_configure_args1 " '$ac_arg'"
2989 if test $ac_must_keep_next = true; then
2990 ac_must_keep_next=false # Got value, back to normal.
2991 else
2992 case $ac_arg in
2993 *=* | --config-cache | -C | -disable-* | --disable-* \
2994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2996 | -with-* | --with-* | -without-* | --without-* | --x)
2997 case "$ac_configure_args0 " in
2998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2999 esac
3001 -* ) ac_must_keep_next=true ;;
3002 esac
3004 as_fn_append ac_configure_args " '$ac_arg'"
3006 esac
3007 done
3008 done
3009 { ac_configure_args0=; unset ac_configure_args0;}
3010 { ac_configure_args1=; unset ac_configure_args1;}
3012 # When interrupted or exit'd, cleanup temporary files, and complete
3013 # config.log. We remove comments because anyway the quotes in there
3014 # would cause problems or look ugly.
3015 # WARNING: Use '\'' to represent an apostrophe within the trap.
3016 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3017 trap 'exit_status=$?
3018 # Save into config.log some information that might help in debugging.
3020 echo
3022 $as_echo "## ---------------- ##
3023 ## Cache variables. ##
3024 ## ---------------- ##"
3025 echo
3026 # The following way of writing the cache mishandles newlines in values,
3028 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3029 eval ac_val=\$$ac_var
3030 case $ac_val in #(
3031 *${as_nl}*)
3032 case $ac_var in #(
3033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3035 esac
3036 case $ac_var in #(
3037 _ | IFS | as_nl) ;; #(
3038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3039 *) { eval $ac_var=; unset $ac_var;} ;;
3040 esac ;;
3041 esac
3042 done
3043 (set) 2>&1 |
3044 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3045 *${as_nl}ac_space=\ *)
3046 sed -n \
3047 "s/'\''/'\''\\\\'\'''\''/g;
3048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3049 ;; #(
3051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3053 esac |
3054 sort
3056 echo
3058 $as_echo "## ----------------- ##
3059 ## Output variables. ##
3060 ## ----------------- ##"
3061 echo
3062 for ac_var in $ac_subst_vars
3064 eval ac_val=\$$ac_var
3065 case $ac_val in
3066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3067 esac
3068 $as_echo "$ac_var='\''$ac_val'\''"
3069 done | sort
3070 echo
3072 if test -n "$ac_subst_files"; then
3073 $as_echo "## ------------------- ##
3074 ## File substitutions. ##
3075 ## ------------------- ##"
3076 echo
3077 for ac_var in $ac_subst_files
3079 eval ac_val=\$$ac_var
3080 case $ac_val in
3081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3082 esac
3083 $as_echo "$ac_var='\''$ac_val'\''"
3084 done | sort
3085 echo
3088 if test -s confdefs.h; then
3089 $as_echo "## ----------- ##
3090 ## confdefs.h. ##
3091 ## ----------- ##"
3092 echo
3093 cat confdefs.h
3094 echo
3096 test "$ac_signal" != 0 &&
3097 $as_echo "$as_me: caught signal $ac_signal"
3098 $as_echo "$as_me: exit $exit_status"
3099 } >&5
3100 rm -f core *.core core.conftest.* &&
3101 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3102 exit $exit_status
3104 for ac_signal in 1 2 13 15; do
3105 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3106 done
3107 ac_signal=0
3109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3110 rm -f -r conftest* confdefs.h
3112 $as_echo "/* confdefs.h */" > confdefs.h
3114 # Predefined preprocessor variables.
3116 cat >>confdefs.h <<_ACEOF
3117 #define PACKAGE_NAME "$PACKAGE_NAME"
3118 _ACEOF
3120 cat >>confdefs.h <<_ACEOF
3121 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3122 _ACEOF
3124 cat >>confdefs.h <<_ACEOF
3125 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3126 _ACEOF
3128 cat >>confdefs.h <<_ACEOF
3129 #define PACKAGE_STRING "$PACKAGE_STRING"
3130 _ACEOF
3132 cat >>confdefs.h <<_ACEOF
3133 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3134 _ACEOF
3136 cat >>confdefs.h <<_ACEOF
3137 #define PACKAGE_URL "$PACKAGE_URL"
3138 _ACEOF
3141 # Let the site file select an alternate cache file if it wants to.
3142 # Prefer an explicitly selected file to automatically selected ones.
3143 ac_site_file1=NONE
3144 ac_site_file2=NONE
3145 if test -n "$CONFIG_SITE"; then
3146 # We do not want a PATH search for config.site.
3147 case $CONFIG_SITE in #((
3148 -*) ac_site_file1=./$CONFIG_SITE;;
3149 */*) ac_site_file1=$CONFIG_SITE;;
3150 *) ac_site_file1=./$CONFIG_SITE;;
3151 esac
3152 elif test "x$prefix" != xNONE; then
3153 ac_site_file1=$prefix/share/config.site
3154 ac_site_file2=$prefix/etc/config.site
3155 else
3156 ac_site_file1=$ac_default_prefix/share/config.site
3157 ac_site_file2=$ac_default_prefix/etc/config.site
3159 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3161 test "x$ac_site_file" = xNONE && continue
3162 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3164 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3165 sed 's/^/| /' "$ac_site_file" >&5
3166 . "$ac_site_file" \
3167 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error $? "failed to load site script $ac_site_file
3170 See \`config.log' for more details" "$LINENO" 5; }
3172 done
3174 if test -r "$cache_file"; then
3175 # Some versions of bash will fail to source /dev/null (special files
3176 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3177 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3179 $as_echo "$as_me: loading cache $cache_file" >&6;}
3180 case $cache_file in
3181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3182 *) . "./$cache_file";;
3183 esac
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3187 $as_echo "$as_me: creating cache $cache_file" >&6;}
3188 >$cache_file
3191 # Check that the precious variables saved in the cache have kept the same
3192 # value.
3193 ac_cache_corrupted=false
3194 for ac_var in $ac_precious_vars; do
3195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3196 eval ac_new_set=\$ac_env_${ac_var}_set
3197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3198 eval ac_new_val=\$ac_env_${ac_var}_value
3199 case $ac_old_set,$ac_new_set in
3200 set,)
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3202 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3203 ac_cache_corrupted=: ;;
3204 ,set)
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3206 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3207 ac_cache_corrupted=: ;;
3208 ,);;
3210 if test "x$ac_old_val" != "x$ac_new_val"; then
3211 # differences in whitespace do not lead to failure.
3212 ac_old_val_w=`echo x $ac_old_val`
3213 ac_new_val_w=`echo x $ac_new_val`
3214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3216 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3217 ac_cache_corrupted=:
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3220 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3221 eval $ac_var=\$ac_old_val
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3224 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3226 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3227 fi;;
3228 esac
3229 # Pass precious variables to config.status.
3230 if test "$ac_new_set" = set; then
3231 case $ac_new_val in
3232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3233 *) ac_arg=$ac_var=$ac_new_val ;;
3234 esac
3235 case " $ac_configure_args " in
3236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3238 esac
3240 done
3241 if $ac_cache_corrupted; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3245 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3246 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3248 ## -------------------- ##
3249 ## Main body of script. ##
3250 ## -------------------- ##
3252 ac_ext=c
3253 ac_cpp='$CPP $CPPFLAGS'
3254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3266 gcc_version=`cat $srcdir/BASE-VER`
3268 # Determine the host, build, and target systems
3269 ac_aux_dir=
3270 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3271 if test -f "$ac_dir/install-sh"; then
3272 ac_aux_dir=$ac_dir
3273 ac_install_sh="$ac_aux_dir/install-sh -c"
3274 break
3275 elif test -f "$ac_dir/install.sh"; then
3276 ac_aux_dir=$ac_dir
3277 ac_install_sh="$ac_aux_dir/install.sh -c"
3278 break
3279 elif test -f "$ac_dir/shtool"; then
3280 ac_aux_dir=$ac_dir
3281 ac_install_sh="$ac_aux_dir/shtool install -c"
3282 break
3284 done
3285 if test -z "$ac_aux_dir"; then
3286 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3289 # These three variables are undocumented and unsupported,
3290 # and are intended to be withdrawn in a future Autoconf release.
3291 # They can cause serious problems if a builder's source tree is in a directory
3292 # whose full name contains unusual characters.
3293 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3294 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3295 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3298 # Make sure we can run config.sub.
3299 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3300 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3303 $as_echo_n "checking build system type... " >&6; }
3304 if ${ac_cv_build+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 ac_build_alias=$build_alias
3308 test "x$ac_build_alias" = x &&
3309 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3310 test "x$ac_build_alias" = x &&
3311 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3312 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3313 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3317 $as_echo "$ac_cv_build" >&6; }
3318 case $ac_cv_build in
3319 *-*-*) ;;
3320 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3321 esac
3322 build=$ac_cv_build
3323 ac_save_IFS=$IFS; IFS='-'
3324 set x $ac_cv_build
3325 shift
3326 build_cpu=$1
3327 build_vendor=$2
3328 shift; shift
3329 # Remember, the first character of IFS is used to create $*,
3330 # except with old shells:
3331 build_os=$*
3332 IFS=$ac_save_IFS
3333 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3337 $as_echo_n "checking host system type... " >&6; }
3338 if ${ac_cv_host+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 if test "x$host_alias" = x; then
3342 ac_cv_host=$ac_cv_build
3343 else
3344 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3345 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3350 $as_echo "$ac_cv_host" >&6; }
3351 case $ac_cv_host in
3352 *-*-*) ;;
3353 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3354 esac
3355 host=$ac_cv_host
3356 ac_save_IFS=$IFS; IFS='-'
3357 set x $ac_cv_host
3358 shift
3359 host_cpu=$1
3360 host_vendor=$2
3361 shift; shift
3362 # Remember, the first character of IFS is used to create $*,
3363 # except with old shells:
3364 host_os=$*
3365 IFS=$ac_save_IFS
3366 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3370 $as_echo_n "checking target system type... " >&6; }
3371 if ${ac_cv_target+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test "x$target_alias" = x; then
3375 ac_cv_target=$ac_cv_host
3376 else
3377 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3383 $as_echo "$ac_cv_target" >&6; }
3384 case $ac_cv_target in
3385 *-*-*) ;;
3386 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3387 esac
3388 target=$ac_cv_target
3389 ac_save_IFS=$IFS; IFS='-'
3390 set x $ac_cv_target
3391 shift
3392 target_cpu=$1
3393 target_vendor=$2
3394 shift; shift
3395 # Remember, the first character of IFS is used to create $*,
3396 # except with old shells:
3397 target_os=$*
3398 IFS=$ac_save_IFS
3399 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3402 # The aliases save the names the user supplied, while $host etc.
3403 # will get canonicalized.
3404 test -n "$target_alias" &&
3405 test "$program_prefix$program_suffix$program_transform_name" = \
3406 NONENONEs,x,x, &&
3407 program_prefix=${target_alias}-
3409 # Determine the noncanonical host name, for Ada.
3410 case ${build_alias} in
3411 "") build_noncanonical=${build} ;;
3412 *) build_noncanonical=${build_alias} ;;
3413 esac
3415 case ${host_alias} in
3416 "") host_noncanonical=${build_noncanonical} ;;
3417 *) host_noncanonical=${host_alias} ;;
3418 esac
3423 # Determine the noncanonical target name, for directory use.
3424 case ${target_alias} in
3425 "") target_noncanonical=${host_noncanonical} ;;
3426 *) target_noncanonical=${target_alias} ;;
3427 esac
3432 # Used for constructing correct paths for offload compilers.
3433 real_target_noncanonical=${target_noncanonical}
3434 accel_dir_suffix=
3436 # Determine the target- and build-specific subdirectories
3438 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3439 # have matching libraries, they should use host libraries: Makefile.tpl
3440 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3441 # However, they still use the build modules, because the corresponding
3442 # host modules (e.g. bison) are only built for the host when bootstrap
3443 # finishes. So:
3444 # - build_subdir is where we find build modules, and never changes.
3445 # - build_libsubdir is where we find build libraries, and can be overridden.
3447 # Prefix 'build-' so this never conflicts with target_subdir.
3448 build_subdir="build-${build_noncanonical}"
3450 # Check whether --with-build-libsubdir was given.
3451 if test "${with_build_libsubdir+set}" = set; then :
3452 withval=$with_build_libsubdir; build_libsubdir="$withval"
3453 else
3454 build_libsubdir="$build_subdir"
3457 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3458 if ( test $srcdir = . && test -d gcc ) \
3459 || test -d $srcdir/../host-${host_noncanonical}; then
3460 host_subdir="host-${host_noncanonical}"
3461 else
3462 host_subdir=.
3464 # No prefix.
3465 target_subdir=${target_noncanonical}
3468 # Set program_transform_name
3469 test "$program_prefix" != NONE &&
3470 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3471 # Use a double $ so make ignores it.
3472 test "$program_suffix" != NONE &&
3473 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3474 # Double any \ or $.
3475 # By default was `s,x,x', remove it if useless.
3476 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3477 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3480 # Check for bogus environment variables.
3481 # Test if LIBRARY_PATH contains the notation for the current directory
3482 # since this would lead to problems installing/building glibc.
3483 # LIBRARY_PATH contains the current directory if one of the following
3484 # is true:
3485 # - one of the terminals (":" and ";") is the first or last sign
3486 # - two terminals occur directly after each other
3487 # - the path contains an element with a dot in it
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3489 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3490 case ${LIBRARY_PATH} in
3491 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3492 library_path_setting="contains current directory"
3495 library_path_setting="ok"
3497 esac
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3499 $as_echo "$library_path_setting" >&6; }
3500 if test "$library_path_setting" != "ok"; then
3501 as_fn_error $? "
3502 *** LIBRARY_PATH shouldn't contain the current directory when
3503 *** building gcc. Please change the environment variable
3504 *** and run configure again." "$LINENO" 5
3507 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3508 # since this would lead to problems installing/building glibc.
3509 # GCC_EXEC_PREFIX contains the current directory if one of the following
3510 # is true:
3511 # - one of the terminals (":" and ";") is the first or last sign
3512 # - two terminals occur directly after each other
3513 # - the path contains an element with a dot in it
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3515 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3516 case ${GCC_EXEC_PREFIX} in
3517 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3518 gcc_exec_prefix_setting="contains current directory"
3521 gcc_exec_prefix_setting="ok"
3523 esac
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3525 $as_echo "$gcc_exec_prefix_setting" >&6; }
3526 if test "$gcc_exec_prefix_setting" != "ok"; then
3527 as_fn_error $? "
3528 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3529 *** building gcc. Please change the environment variable
3530 *** and run configure again." "$LINENO" 5
3533 # -----------
3534 # Directories
3535 # -----------
3537 # Specify the local prefix
3538 local_prefix=
3540 # Check whether --with-local-prefix was given.
3541 if test "${with_local_prefix+set}" = set; then :
3542 withval=$with_local_prefix; case "${withval}" in
3543 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3544 no) ;;
3545 *) local_prefix=$with_local_prefix ;;
3546 esac
3550 # Default local prefix if it is empty
3551 if test x$local_prefix = x; then
3552 local_prefix=/usr/local
3556 # Check whether --with-native-system-header-dir was given.
3557 if test "${with_native_system_header_dir+set}" = set; then :
3558 withval=$with_native_system_header_dir;
3559 case ${with_native_system_header_dir} in
3560 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3561 /* | [A-Za-z]:[\\/]*) ;;
3562 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3563 esac
3564 configured_native_system_header_dir="${withval}"
3566 else
3567 configured_native_system_header_dir=
3572 # Check whether --with-build-sysroot was given.
3573 if test "${with_build_sysroot+set}" = set; then :
3574 withval=$with_build_sysroot; if test x"$withval" != x ; then
3575 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3577 else
3578 SYSROOT_CFLAGS_FOR_TARGET=
3583 if test "x$prefix" = xNONE; then
3584 test_prefix=/usr/local
3585 else
3586 test_prefix=$prefix
3588 if test "x$exec_prefix" = xNONE; then
3589 test_exec_prefix=$test_prefix
3590 else
3591 test_exec_prefix=$exec_prefix
3595 # Check whether --with-sysroot was given.
3596 if test "${with_sysroot+set}" = set; then :
3597 withval=$with_sysroot;
3598 case ${with_sysroot} in
3599 /) ;;
3600 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3601 esac
3602 case ${with_sysroot} in
3603 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3604 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3605 esac
3607 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3608 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3610 case ${TARGET_SYSTEM_ROOT} in
3611 "${test_prefix}"|"${test_prefix}/"*|\
3612 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3613 '${prefix}'|'${prefix}/'*|\
3614 '${exec_prefix}'|'${exec_prefix}/'*)
3615 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3616 TARGET_SYSTEM_ROOT_DEFINE="$t"
3618 esac
3620 else
3622 TARGET_SYSTEM_ROOT=
3623 TARGET_SYSTEM_ROOT_DEFINE=
3624 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3632 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3633 # passed in by the toplevel make and thus we'd get different behavior
3634 # depending on where we built the sources.
3635 gcc_gxx_include_dir=
3636 # Specify the g++ header file directory
3638 # Check whether --with-gxx-include-dir was given.
3639 if test "${with_gxx_include_dir+set}" = set; then :
3640 withval=$with_gxx_include_dir; case "${withval}" in
3641 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3642 no) ;;
3643 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3644 esac
3648 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3649 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3650 # relative to the sysroot.
3651 gcc_gxx_include_dir_add_sysroot=0
3653 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3654 if test x${gcc_gxx_include_dir} = x; then
3655 if test x${enable_version_specific_runtime_libs} = xyes; then
3656 gcc_gxx_include_dir='${libsubdir}/include/c++'
3657 else
3658 libstdcxx_incdir='include/c++/$(version)'
3659 if test x$host != x$target; then
3660 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3662 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3664 elif test "${with_sysroot+set}" = set; then
3665 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3666 if test "${gcc_gxx_without_sysroot}"; then
3667 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3668 gcc_gxx_include_dir_add_sysroot=1
3673 # Check whether --with-cpp_install_dir was given.
3674 if test "${with_cpp_install_dir+set}" = set; then :
3675 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3676 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3677 elif test x$withval != xno; then
3678 cpp_install_dir=$withval
3683 # We would like to our source tree to be readonly. However when releases or
3684 # pre-releases are generated, the flex/bison generated files as well as the
3685 # various formats of manuals need to be included along with the rest of the
3686 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3687 # just that.
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3690 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3691 # Check whether --enable-generated-files-in-srcdir was given.
3692 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3693 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3694 else
3695 generated_files_in_srcdir=no
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3700 $as_echo "$generated_files_in_srcdir" >&6; }
3702 if test "$generated_files_in_srcdir" = "yes"; then
3703 GENINSRC=''
3704 else
3705 GENINSRC='#'
3709 # -------------------
3710 # Find default linker
3711 # -------------------
3713 # With GNU ld
3715 # Check whether --with-gnu-ld was given.
3716 if test "${with_gnu_ld+set}" = set; then :
3717 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3718 else
3719 gnu_ld_flag=no
3723 case $target in
3724 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3725 *) ld64_flag=no;;
3726 esac
3728 # With pre-defined ld
3730 # Check whether --with-ld was given.
3731 if test "${with_ld+set}" = set; then :
3732 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3735 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3736 if test ! -x "$DEFAULT_LINKER"; then
3737 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3738 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3739 gnu_ld_flag=yes
3740 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3741 ld64_flag=yes
3744 cat >>confdefs.h <<_ACEOF
3745 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3746 _ACEOF
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3751 $as_echo_n "checking whether a default linker was specified... " >&6; }
3752 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3753 if test x"$gnu_ld_flag" = x"no"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3755 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3758 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3760 else
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3765 # With demangler in GNU ld
3767 # Check whether --with-demangler-in-ld was given.
3768 if test "${with_demangler_in_ld+set}" = set; then :
3769 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3770 else
3771 demangler_in_ld=yes
3775 # ----------------------
3776 # Find default assembler
3777 # ----------------------
3779 # With GNU as
3781 # Check whether --with-gnu-as was given.
3782 if test "${with_gnu_as+set}" = set; then :
3783 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3784 else
3785 gas_flag=no
3790 # Check whether --with-as was given.
3791 if test "${with_as+set}" = set; then :
3792 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3795 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3796 if test ! -x "$DEFAULT_ASSEMBLER"; then
3797 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3798 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3799 gas_flag=yes
3802 cat >>confdefs.h <<_ACEOF
3803 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3804 _ACEOF
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3809 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3810 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3811 if test x"$gas_flag" = x"no"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3813 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3816 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3823 # ---------------
3824 # Find C compiler
3825 # ---------------
3827 # If a non-executable a.out is present (e.g. created by GNU as above even if
3828 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3829 # file, even when creating an executable, so an execution test fails.
3830 # Remove possible default executable files to avoid this.
3832 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3833 # Autoconf includes it.
3834 rm -f a.out a.exe b.out
3836 # Find the native compiler
3837 ac_ext=c
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_prog_CC+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 if test -n "$CC"; then
3851 ac_cv_prog_CC="$CC" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3864 done
3865 done
3866 IFS=$as_save_IFS
3870 CC=$ac_cv_prog_CC
3871 if test -n "$CC"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873 $as_echo "$CC" >&6; }
3874 else
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3881 if test -z "$ac_cv_prog_CC"; then
3882 ac_ct_CC=$CC
3883 # Extract the first word of "gcc", so it can be a program name with args.
3884 set dummy gcc; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 if test -n "$ac_ct_CC"; then
3891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_ac_ct_CC="gcc"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3904 done
3905 done
3906 IFS=$as_save_IFS
3910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3911 if test -n "$ac_ct_CC"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3913 $as_echo "$ac_ct_CC" >&6; }
3914 else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3919 if test "x$ac_ct_CC" = x; then
3920 CC=""
3921 else
3922 case $cross_compiling:$ac_tool_warned in
3923 yes:)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926 ac_tool_warned=yes ;;
3927 esac
3928 CC=$ac_ct_CC
3930 else
3931 CC="$ac_cv_prog_CC"
3934 if test -z "$CC"; then
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3937 set dummy ${ac_tool_prefix}cc; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_CC+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test -n "$CC"; then
3944 ac_cv_prog_CC="$CC" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_CC="${ac_tool_prefix}cc"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3957 done
3958 done
3959 IFS=$as_save_IFS
3963 CC=$ac_cv_prog_CC
3964 if test -n "$CC"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3966 $as_echo "$CC" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3975 if test -z "$CC"; then
3976 # Extract the first word of "cc", so it can be a program name with args.
3977 set dummy cc; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if ${ac_cv_prog_CC+:} false; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$CC"; then
3984 ac_cv_prog_CC="$CC" # Let the user override the test.
3985 else
3986 ac_prog_rejected=no
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3995 ac_prog_rejected=yes
3996 continue
3998 ac_cv_prog_CC="cc"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4002 done
4003 done
4004 IFS=$as_save_IFS
4006 if test $ac_prog_rejected = yes; then
4007 # We found a bogon in the path, so make sure we never use it.
4008 set dummy $ac_cv_prog_CC
4009 shift
4010 if test $# != 0; then
4011 # We chose a different compiler from the bogus one.
4012 # However, it has the same basename, so the bogon will be chosen
4013 # first if we set CC to just the basename; use the full file name.
4014 shift
4015 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4020 CC=$ac_cv_prog_CC
4021 if test -n "$CC"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023 $as_echo "$CC" >&6; }
4024 else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4031 if test -z "$CC"; then
4032 if test -n "$ac_tool_prefix"; then
4033 for ac_prog in cl.exe
4035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if ${ac_cv_prog_CC+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 if test -n "$CC"; then
4043 ac_cv_prog_CC="$CC" # Let the user override the test.
4044 else
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4056 done
4057 done
4058 IFS=$as_save_IFS
4062 CC=$ac_cv_prog_CC
4063 if test -n "$CC"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065 $as_echo "$CC" >&6; }
4066 else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4072 test -n "$CC" && break
4073 done
4075 if test -z "$CC"; then
4076 ac_ct_CC=$CC
4077 for ac_prog in cl.exe
4079 # Extract the first word of "$ac_prog", so it can be a program name with args.
4080 set dummy $ac_prog; ac_word=$2
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082 $as_echo_n "checking for $ac_word... " >&6; }
4083 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 if test -n "$ac_ct_CC"; then
4087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_ac_ct_CC="$ac_prog"
4097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4100 done
4101 done
4102 IFS=$as_save_IFS
4106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4107 if test -n "$ac_ct_CC"; then
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4109 $as_echo "$ac_ct_CC" >&6; }
4110 else
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112 $as_echo "no" >&6; }
4116 test -n "$ac_ct_CC" && break
4117 done
4119 if test "x$ac_ct_CC" = x; then
4120 CC=""
4121 else
4122 case $cross_compiling:$ac_tool_warned in
4123 yes:)
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4126 ac_tool_warned=yes ;;
4127 esac
4128 CC=$ac_ct_CC
4135 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "no acceptable C compiler found in \$PATH
4138 See \`config.log' for more details" "$LINENO" 5; }
4140 # Provide some information about the compiler.
4141 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4142 set X $ac_compile
4143 ac_compiler=$2
4144 for ac_option in --version -v -V -qversion; do
4145 { { ac_try="$ac_compiler $ac_option >&5"
4146 case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149 esac
4150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151 $as_echo "$ac_try_echo"; } >&5
4152 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4153 ac_status=$?
4154 if test -s conftest.err; then
4155 sed '10a\
4156 ... rest of stderr output deleted ...
4157 10q' conftest.err >conftest.er1
4158 cat conftest.er1 >&5
4160 rm -f conftest.er1 conftest.err
4161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162 test $ac_status = 0; }
4163 done
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4169 main ()
4173 return 0;
4175 _ACEOF
4176 ac_clean_files_save=$ac_clean_files
4177 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4178 # Try to create an executable without -o first, disregard a.out.
4179 # It will help us diagnose broken compilers, and finding out an intuition
4180 # of exeext.
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4182 $as_echo_n "checking whether the C compiler works... " >&6; }
4183 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4185 # The possible output files:
4186 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4188 ac_rmfiles=
4189 for ac_file in $ac_files
4191 case $ac_file in
4192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4193 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4194 esac
4195 done
4196 rm -f $ac_rmfiles
4198 if { { ac_try="$ac_link_default"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205 (eval "$ac_link_default") 2>&5
4206 ac_status=$?
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }; then :
4209 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4210 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4211 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4212 # so that the user can short-circuit this test for compilers unknown to
4213 # Autoconf.
4214 for ac_file in $ac_files ''
4216 test -f "$ac_file" || continue
4217 case $ac_file in
4218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4220 [ab].out )
4221 # We found the default executable, but exeext='' is most
4222 # certainly right.
4223 break;;
4224 *.* )
4225 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4226 then :; else
4227 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4229 # We set ac_cv_exeext here because the later test for it is not
4230 # safe: cross compilers may not add the suffix if given an `-o'
4231 # argument, so we may need to know it at that point already.
4232 # Even if this section looks crufty: it has the advantage of
4233 # actually working.
4234 break;;
4236 break;;
4237 esac
4238 done
4239 test "$ac_cv_exeext" = no && ac_cv_exeext=
4241 else
4242 ac_file=''
4244 if test -z "$ac_file"; then :
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4247 $as_echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4252 as_fn_error 77 "C compiler cannot create executables
4253 See \`config.log' for more details" "$LINENO" 5; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4256 $as_echo "yes" >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4259 $as_echo_n "checking for C compiler default output file name... " >&6; }
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4261 $as_echo "$ac_file" >&6; }
4262 ac_exeext=$ac_cv_exeext
4264 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4265 ac_clean_files=$ac_clean_files_save
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4267 $as_echo_n "checking for suffix of executables... " >&6; }
4268 if { { ac_try="$ac_link"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_link") 2>&5
4276 ac_status=$?
4277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278 test $ac_status = 0; }; then :
4279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4281 # work properly (i.e., refer to `conftest.exe'), while it won't with
4282 # `rm'.
4283 for ac_file in conftest.exe conftest conftest.*; do
4284 test -f "$ac_file" || continue
4285 case $ac_file in
4286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4288 break;;
4289 * ) break;;
4290 esac
4291 done
4292 else
4293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4295 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4296 See \`config.log' for more details" "$LINENO" 5; }
4298 rm -f conftest conftest$ac_cv_exeext
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4300 $as_echo "$ac_cv_exeext" >&6; }
4302 rm -f conftest.$ac_ext
4303 EXEEXT=$ac_cv_exeext
4304 ac_exeext=$EXEEXT
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #include <stdio.h>
4309 main ()
4311 FILE *f = fopen ("conftest.out", "w");
4312 return ferror (f) || fclose (f) != 0;
4315 return 0;
4317 _ACEOF
4318 ac_clean_files="$ac_clean_files conftest.out"
4319 # Check that the compiler produces executables we can run. If not, either
4320 # the compiler is broken, or we cross compile.
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4322 $as_echo_n "checking whether we are cross compiling... " >&6; }
4323 if test "$cross_compiling" != yes; then
4324 { { ac_try="$ac_link"
4325 case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328 esac
4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330 $as_echo "$ac_try_echo"; } >&5
4331 (eval "$ac_link") 2>&5
4332 ac_status=$?
4333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334 test $ac_status = 0; }
4335 if { ac_try='./conftest$ac_cv_exeext'
4336 { { case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341 $as_echo "$ac_try_echo"; } >&5
4342 (eval "$ac_try") 2>&5
4343 ac_status=$?
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; }; }; then
4346 cross_compiling=no
4347 else
4348 if test "$cross_compiling" = maybe; then
4349 cross_compiling=yes
4350 else
4351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4353 as_fn_error $? "cannot run C compiled programs.
4354 If you meant to cross compile, use \`--host'.
4355 See \`config.log' for more details" "$LINENO" 5; }
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4360 $as_echo "$cross_compiling" >&6; }
4362 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4363 ac_clean_files=$ac_clean_files_save
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4365 $as_echo_n "checking for suffix of object files... " >&6; }
4366 if ${ac_cv_objext+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4373 main ()
4377 return 0;
4379 _ACEOF
4380 rm -f conftest.o conftest.obj
4381 if { { ac_try="$ac_compile"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_compile") 2>&5
4389 ac_status=$?
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }; then :
4392 for ac_file in conftest.o conftest.obj conftest.*; do
4393 test -f "$ac_file" || continue;
4394 case $ac_file in
4395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4396 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4397 break;;
4398 esac
4399 done
4400 else
4401 $as_echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4406 as_fn_error $? "cannot compute suffix of object files: cannot compile
4407 See \`config.log' for more details" "$LINENO" 5; }
4409 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4412 $as_echo "$ac_cv_objext" >&6; }
4413 OBJEXT=$ac_cv_objext
4414 ac_objext=$OBJEXT
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4416 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4417 if ${ac_cv_c_compiler_gnu+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4424 main ()
4426 #ifndef __GNUC__
4427 choke me
4428 #endif
4431 return 0;
4433 _ACEOF
4434 if ac_fn_c_try_compile "$LINENO"; then :
4435 ac_compiler_gnu=yes
4436 else
4437 ac_compiler_gnu=no
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4444 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4445 if test $ac_compiler_gnu = yes; then
4446 GCC=yes
4447 else
4448 GCC=
4450 ac_test_CFLAGS=${CFLAGS+set}
4451 ac_save_CFLAGS=$CFLAGS
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4453 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4454 if ${ac_cv_prog_cc_g+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 ac_save_c_werror_flag=$ac_c_werror_flag
4458 ac_c_werror_flag=yes
4459 ac_cv_prog_cc_g=no
4460 CFLAGS="-g"
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4465 main ()
4469 return 0;
4471 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"; then :
4473 ac_cv_prog_cc_g=yes
4474 else
4475 CFLAGS=""
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4480 main ()
4484 return 0;
4486 _ACEOF
4487 if ac_fn_c_try_compile "$LINENO"; then :
4489 else
4490 ac_c_werror_flag=$ac_save_c_werror_flag
4491 CFLAGS="-g"
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4496 main ()
4500 return 0;
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504 ac_cv_prog_cc_g=yes
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 ac_c_werror_flag=$ac_save_c_werror_flag
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4514 $as_echo "$ac_cv_prog_cc_g" >&6; }
4515 if test "$ac_test_CFLAGS" = set; then
4516 CFLAGS=$ac_save_CFLAGS
4517 elif test $ac_cv_prog_cc_g = yes; then
4518 if test "$GCC" = yes; then
4519 CFLAGS="-g -O2"
4520 else
4521 CFLAGS="-g"
4523 else
4524 if test "$GCC" = yes; then
4525 CFLAGS="-O2"
4526 else
4527 CFLAGS=
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4531 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4532 if ${ac_cv_prog_cc_c89+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 ac_cv_prog_cc_c89=no
4536 ac_save_CC=$CC
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539 #include <stdarg.h>
4540 #include <stdio.h>
4541 struct stat;
4542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4543 struct buf { int x; };
4544 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4545 static char *e (p, i)
4546 char **p;
4547 int i;
4549 return p[i];
4551 static char *f (char * (*g) (char **, int), char **p, ...)
4553 char *s;
4554 va_list v;
4555 va_start (v,p);
4556 s = g (p, va_arg (v,int));
4557 va_end (v);
4558 return s;
4561 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4562 function prototypes and stuff, but not '\xHH' hex character constants.
4563 These don't provoke an error unfortunately, instead are silently treated
4564 as 'x'. The following induces an error, until -std is added to get
4565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4566 array size at least. It's necessary to write '\x00'==0 to get something
4567 that's true only with -std. */
4568 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4570 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4571 inside strings and character constants. */
4572 #define FOO(x) 'x'
4573 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4575 int test (int i, double x);
4576 struct s1 {int (*f) (int a);};
4577 struct s2 {int (*f) (double a);};
4578 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4579 int argc;
4580 char **argv;
4582 main ()
4584 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4586 return 0;
4588 _ACEOF
4589 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4592 CC="$ac_save_CC $ac_arg"
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594 ac_cv_prog_cc_c89=$ac_arg
4596 rm -f core conftest.err conftest.$ac_objext
4597 test "x$ac_cv_prog_cc_c89" != "xno" && break
4598 done
4599 rm -f conftest.$ac_ext
4600 CC=$ac_save_CC
4603 # AC_CACHE_VAL
4604 case "x$ac_cv_prog_cc_c89" in
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4607 $as_echo "none needed" >&6; } ;;
4608 xno)
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4610 $as_echo "unsupported" >&6; } ;;
4612 CC="$CC $ac_cv_prog_cc_c89"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4614 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4615 esac
4616 if test "x$ac_cv_prog_cc_c89" != xno; then :
4620 ac_ext=c
4621 ac_cpp='$CPP $CPPFLAGS'
4622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626 ac_ext=cpp
4627 ac_cpp='$CXXCPP $CPPFLAGS'
4628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4631 if test -z "$CXX"; then
4632 if test -n "$CCC"; then
4633 CXX=$CCC
4634 else
4635 if test -n "$ac_tool_prefix"; then
4636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if ${ac_cv_prog_CXX+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$CXX"; then
4646 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4661 IFS=$as_save_IFS
4665 CXX=$ac_cv_prog_CXX
4666 if test -n "$CXX"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4668 $as_echo "$CXX" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4675 test -n "$CXX" && break
4676 done
4678 if test -z "$CXX"; then
4679 ac_ct_CXX=$CXX
4680 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4682 # Extract the first word of "$ac_prog", so it can be a program name with args.
4683 set dummy $ac_prog; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if test -n "$ac_ct_CXX"; then
4690 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699 ac_cv_prog_ac_ct_CXX="$ac_prog"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4703 done
4704 done
4705 IFS=$as_save_IFS
4709 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4710 if test -n "$ac_ct_CXX"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4712 $as_echo "$ac_ct_CXX" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4719 test -n "$ac_ct_CXX" && break
4720 done
4722 if test "x$ac_ct_CXX" = x; then
4723 CXX="g++"
4724 else
4725 case $cross_compiling:$ac_tool_warned in
4726 yes:)
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4729 ac_tool_warned=yes ;;
4730 esac
4731 CXX=$ac_ct_CXX
4737 # Provide some information about the compiler.
4738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4739 set X $ac_compile
4740 ac_compiler=$2
4741 for ac_option in --version -v -V -qversion; do
4742 { { ac_try="$ac_compiler $ac_option >&5"
4743 case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746 esac
4747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4748 $as_echo "$ac_try_echo"; } >&5
4749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4750 ac_status=$?
4751 if test -s conftest.err; then
4752 sed '10a\
4753 ... rest of stderr output deleted ...
4754 10q' conftest.err >conftest.er1
4755 cat conftest.er1 >&5
4757 rm -f conftest.er1 conftest.err
4758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4759 test $ac_status = 0; }
4760 done
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4763 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4764 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4771 main ()
4773 #ifndef __GNUC__
4774 choke me
4775 #endif
4778 return 0;
4780 _ACEOF
4781 if ac_fn_cxx_try_compile "$LINENO"; then :
4782 ac_compiler_gnu=yes
4783 else
4784 ac_compiler_gnu=no
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4791 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4792 if test $ac_compiler_gnu = yes; then
4793 GXX=yes
4794 else
4795 GXX=
4797 ac_test_CXXFLAGS=${CXXFLAGS+set}
4798 ac_save_CXXFLAGS=$CXXFLAGS
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4800 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4801 if ${ac_cv_prog_cxx_g+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4805 ac_cxx_werror_flag=yes
4806 ac_cv_prog_cxx_g=no
4807 CXXFLAGS="-g"
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4812 main ()
4816 return 0;
4818 _ACEOF
4819 if ac_fn_cxx_try_compile "$LINENO"; then :
4820 ac_cv_prog_cxx_g=yes
4821 else
4822 CXXFLAGS=""
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4827 main ()
4831 return 0;
4833 _ACEOF
4834 if ac_fn_cxx_try_compile "$LINENO"; then :
4836 else
4837 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4838 CXXFLAGS="-g"
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4843 main ()
4847 return 0;
4849 _ACEOF
4850 if ac_fn_cxx_try_compile "$LINENO"; then :
4851 ac_cv_prog_cxx_g=yes
4853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4861 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4862 if test "$ac_test_CXXFLAGS" = set; then
4863 CXXFLAGS=$ac_save_CXXFLAGS
4864 elif test $ac_cv_prog_cxx_g = yes; then
4865 if test "$GXX" = yes; then
4866 CXXFLAGS="-g -O2"
4867 else
4868 CXXFLAGS="-g"
4870 else
4871 if test "$GXX" = yes; then
4872 CXXFLAGS="-O2"
4873 else
4874 CXXFLAGS=
4877 ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886 if test -n "$ac_tool_prefix"; then
4887 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4888 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890 $as_echo_n "checking for $ac_word... " >&6; }
4891 if ${ac_cv_prog_GNATBIND+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 if test -n "$GNATBIND"; then
4895 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4908 done
4909 done
4910 IFS=$as_save_IFS
4914 GNATBIND=$ac_cv_prog_GNATBIND
4915 if test -n "$GNATBIND"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4917 $as_echo "$GNATBIND" >&6; }
4918 else
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4925 if test -z "$ac_cv_prog_GNATBIND"; then
4926 ac_ct_GNATBIND=$GNATBIND
4927 # Extract the first word of "gnatbind", so it can be a program name with args.
4928 set dummy gnatbind; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if test -n "$ac_ct_GNATBIND"; then
4935 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4954 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4955 if test -n "$ac_ct_GNATBIND"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4957 $as_echo "$ac_ct_GNATBIND" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4963 if test "x$ac_ct_GNATBIND" = x; then
4964 GNATBIND="no"
4965 else
4966 case $cross_compiling:$ac_tool_warned in
4967 yes:)
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970 ac_tool_warned=yes ;;
4971 esac
4972 GNATBIND=$ac_ct_GNATBIND
4974 else
4975 GNATBIND="$ac_cv_prog_GNATBIND"
4978 if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4980 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_GNATMAKE+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$GNATMAKE"; then
4987 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
5000 done
5001 done
5002 IFS=$as_save_IFS
5006 GNATMAKE=$ac_cv_prog_GNATMAKE
5007 if test -n "$GNATMAKE"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5009 $as_echo "$GNATMAKE" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5017 if test -z "$ac_cv_prog_GNATMAKE"; then
5018 ac_ct_GNATMAKE=$GNATMAKE
5019 # Extract the first word of "gnatmake", so it can be a program name with args.
5020 set dummy gnatmake; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 if test -n "$ac_ct_GNATMAKE"; then
5027 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5040 done
5041 done
5042 IFS=$as_save_IFS
5046 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5047 if test -n "$ac_ct_GNATMAKE"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5049 $as_echo "$ac_ct_GNATMAKE" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5055 if test "x$ac_ct_GNATMAKE" = x; then
5056 GNATMAKE="no"
5057 else
5058 case $cross_compiling:$ac_tool_warned in
5059 yes:)
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062 ac_tool_warned=yes ;;
5063 esac
5064 GNATMAKE=$ac_ct_GNATMAKE
5066 else
5067 GNATMAKE="$ac_cv_prog_GNATMAKE"
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5071 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5072 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 cat >conftest.adb <<EOF
5076 procedure conftest is begin null; end conftest;
5078 acx_cv_cc_gcc_supports_ada=no
5079 # There is a bug in old released versions of GCC which causes the
5080 # driver to exit successfully when the appropriate language module
5081 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5082 # Therefore we must check for the error message as well as an
5083 # unsuccessful exit.
5084 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5085 # given a .adb file, but produce no object file. So we must check
5086 # if an object file was really produced to guard against this.
5087 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5088 if test x"$errors" = x && test -f conftest.$ac_objext; then
5089 acx_cv_cc_gcc_supports_ada=yes
5091 rm -f conftest.*
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5094 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5096 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5097 have_gnat=yes
5098 else
5099 have_gnat=no
5103 # Do configure tests with the C++ compiler, since that's what we build with.
5104 ac_ext=cpp
5105 ac_cpp='$CXXCPP $CPPFLAGS'
5106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5111 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5112 # optimizations to be activated explicitly by the toplevel.
5113 case "$CC" in
5114 */prev-gcc/xgcc*) ;;
5115 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5116 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5117 esac
5121 # Determine PICFLAG for target gnatlib.
5126 case "${target}" in
5127 # PIC is the default on some targets or must not be used.
5128 *-*-darwin*)
5129 # For darwin, common symbols are not allowed in MH_DYLIB files
5130 case "${CFLAGS}" in
5131 # If we are using a compiler supporting mdynamic-no-pic
5132 # and the option has been tested as safe to add, then cancel
5133 # it here, since the code generated is incompatible with shared
5134 # libs.
5135 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5136 *) PICFLAG_FOR_TARGET=-fno-common ;;
5137 esac
5139 alpha*-dec-osf5*)
5140 # PIC is the default.
5142 hppa*64*-*-hpux*)
5143 # PIC is the default for 64-bit PA HP-UX.
5145 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5147 i[34567]86-*-mingw* | x86_64-*-mingw*)
5149 i[34567]86-*-interix[3-9]*)
5150 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5151 # Instead, we relocate shared libraries at runtime.
5153 i[34567]86-*-nto-qnx*)
5154 # QNX uses GNU C++, but need to define -shared option too, otherwise
5155 # it will coredump.
5156 PICFLAG_FOR_TARGET='-fPIC -shared'
5158 i[34567]86-pc-msdosdjgpp*)
5159 # DJGPP does not support shared libraries at all.
5161 ia64*-*-hpux*)
5162 # On IA64 HP-UX, PIC is the default but the pic flag
5163 # sets the default TLS model and affects inlining.
5164 PICFLAG_FOR_TARGET=-fPIC
5166 mips-sgi-irix6*)
5167 # PIC is the default.
5169 rs6000-ibm-aix* | powerpc-ibm-aix*)
5170 # All AIX code is PIC.
5173 # Some targets support both -fPIC and -fpic, but prefer the latter.
5174 # FIXME: Why?
5175 i[34567]86-*-* | x86_64-*-*)
5176 PICFLAG_FOR_TARGET=-fpic
5178 # FIXME: Override -fPIC default in libgcc only?
5179 sh-*-linux* | sh[2346lbe]*-*-linux*)
5180 PICFLAG_FOR_TARGET=-fpic
5182 # FIXME: Simplify to sh*-*-netbsd*?
5183 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5184 sh64-*-netbsd* | sh64l*-*-netbsd*)
5185 PICFLAG_FOR_TARGET=-fpic
5187 # Default to -fPIC unless specified otherwise.
5189 PICFLAG_FOR_TARGET=-fPIC
5191 esac
5193 # If the user explicitly uses -fpic/-fPIC, keep that.
5194 case "${CFLAGS_FOR_TARGET}" in
5195 *-fpic*)
5196 PICFLAG_FOR_TARGET=-fpic
5198 *-fPIC*)
5199 PICFLAG_FOR_TARGET=-fPIC
5201 esac
5205 # -------------------------
5206 # Check C compiler features
5207 # -------------------------
5210 ac_ext=cpp
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5216 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5217 if test -z "$CXXCPP"; then
5218 if ${ac_cv_prog_CXXCPP+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 # Double quotes because CXXCPP needs to be expanded
5222 for CXXCPP in "$CXX -E" "/lib/cpp"
5224 ac_preproc_ok=false
5225 for ac_cxx_preproc_warn_flag in '' yes
5227 # Use a header file that comes with gcc, so configuring glibc
5228 # with a fresh cross-compiler works.
5229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5230 # <limits.h> exists even on freestanding compilers.
5231 # On the NeXT, cc -E runs the code through the compiler's parser,
5232 # not just through cpp. "Syntax error" is here to catch this case.
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 #ifdef __STDC__
5236 # include <limits.h>
5237 #else
5238 # include <assert.h>
5239 #endif
5240 Syntax error
5241 _ACEOF
5242 if ac_fn_cxx_try_cpp "$LINENO"; then :
5244 else
5245 # Broken: fails on valid input.
5246 continue
5248 rm -f conftest.err conftest.i conftest.$ac_ext
5250 # OK, works on sane cases. Now check whether nonexistent headers
5251 # can be detected and how.
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 #include <ac_nonexistent.h>
5255 _ACEOF
5256 if ac_fn_cxx_try_cpp "$LINENO"; then :
5257 # Broken: success on invalid input.
5258 continue
5259 else
5260 # Passes both tests.
5261 ac_preproc_ok=:
5262 break
5264 rm -f conftest.err conftest.i conftest.$ac_ext
5266 done
5267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5268 rm -f conftest.i conftest.err conftest.$ac_ext
5269 if $ac_preproc_ok; then :
5270 break
5273 done
5274 ac_cv_prog_CXXCPP=$CXXCPP
5277 CXXCPP=$ac_cv_prog_CXXCPP
5278 else
5279 ac_cv_prog_CXXCPP=$CXXCPP
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5282 $as_echo "$CXXCPP" >&6; }
5283 ac_preproc_ok=false
5284 for ac_cxx_preproc_warn_flag in '' yes
5286 # Use a header file that comes with gcc, so configuring glibc
5287 # with a fresh cross-compiler works.
5288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5289 # <limits.h> exists even on freestanding compilers.
5290 # On the NeXT, cc -E runs the code through the compiler's parser,
5291 # not just through cpp. "Syntax error" is here to catch this case.
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 #ifdef __STDC__
5295 # include <limits.h>
5296 #else
5297 # include <assert.h>
5298 #endif
5299 Syntax error
5300 _ACEOF
5301 if ac_fn_cxx_try_cpp "$LINENO"; then :
5303 else
5304 # Broken: fails on valid input.
5305 continue
5307 rm -f conftest.err conftest.i conftest.$ac_ext
5309 # OK, works on sane cases. Now check whether nonexistent headers
5310 # can be detected and how.
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 #include <ac_nonexistent.h>
5314 _ACEOF
5315 if ac_fn_cxx_try_cpp "$LINENO"; then :
5316 # Broken: success on invalid input.
5317 continue
5318 else
5319 # Passes both tests.
5320 ac_preproc_ok=:
5321 break
5323 rm -f conftest.err conftest.i conftest.$ac_ext
5325 done
5326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5327 rm -f conftest.i conftest.err conftest.$ac_ext
5328 if $ac_preproc_ok; then :
5330 else
5331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5333 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5334 See \`config.log' for more details" "$LINENO" 5; }
5337 ac_ext=cpp
5338 ac_cpp='$CXXCPP $CPPFLAGS'
5339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5345 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5346 if ${ac_cv_path_GREP+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 if test -z "$GREP"; then
5350 ac_path_GREP_found=false
5351 # Loop through the user's path and test for each of PROGNAME-LIST
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_prog in grep ggrep; do
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5360 as_fn_executable_p "$ac_path_GREP" || continue
5361 # Check for GNU ac_path_GREP and select it if it is found.
5362 # Check for GNU $ac_path_GREP
5363 case `"$ac_path_GREP" --version 2>&1` in
5364 *GNU*)
5365 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5367 ac_count=0
5368 $as_echo_n 0123456789 >"conftest.in"
5369 while :
5371 cat "conftest.in" "conftest.in" >"conftest.tmp"
5372 mv "conftest.tmp" "conftest.in"
5373 cp "conftest.in" "conftest.nl"
5374 $as_echo 'GREP' >> "conftest.nl"
5375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5377 as_fn_arith $ac_count + 1 && ac_count=$as_val
5378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5379 # Best one so far, save it but keep looking for a better one
5380 ac_cv_path_GREP="$ac_path_GREP"
5381 ac_path_GREP_max=$ac_count
5383 # 10*(2^10) chars as input seems more than enough
5384 test $ac_count -gt 10 && break
5385 done
5386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5387 esac
5389 $ac_path_GREP_found && break 3
5390 done
5391 done
5392 done
5393 IFS=$as_save_IFS
5394 if test -z "$ac_cv_path_GREP"; then
5395 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5397 else
5398 ac_cv_path_GREP=$GREP
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5403 $as_echo "$ac_cv_path_GREP" >&6; }
5404 GREP="$ac_cv_path_GREP"
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5408 $as_echo_n "checking for egrep... " >&6; }
5409 if ${ac_cv_path_EGREP+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5413 then ac_cv_path_EGREP="$GREP -E"
5414 else
5415 if test -z "$EGREP"; then
5416 ac_path_EGREP_found=false
5417 # Loop through the user's path and test for each of PROGNAME-LIST
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_prog in egrep; do
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5426 as_fn_executable_p "$ac_path_EGREP" || continue
5427 # Check for GNU ac_path_EGREP and select it if it is found.
5428 # Check for GNU $ac_path_EGREP
5429 case `"$ac_path_EGREP" --version 2>&1` in
5430 *GNU*)
5431 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5433 ac_count=0
5434 $as_echo_n 0123456789 >"conftest.in"
5435 while :
5437 cat "conftest.in" "conftest.in" >"conftest.tmp"
5438 mv "conftest.tmp" "conftest.in"
5439 cp "conftest.in" "conftest.nl"
5440 $as_echo 'EGREP' >> "conftest.nl"
5441 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5443 as_fn_arith $ac_count + 1 && ac_count=$as_val
5444 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5445 # Best one so far, save it but keep looking for a better one
5446 ac_cv_path_EGREP="$ac_path_EGREP"
5447 ac_path_EGREP_max=$ac_count
5449 # 10*(2^10) chars as input seems more than enough
5450 test $ac_count -gt 10 && break
5451 done
5452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5453 esac
5455 $ac_path_EGREP_found && break 3
5456 done
5457 done
5458 done
5459 IFS=$as_save_IFS
5460 if test -z "$ac_cv_path_EGREP"; then
5461 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5463 else
5464 ac_cv_path_EGREP=$EGREP
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5470 $as_echo "$ac_cv_path_EGREP" >&6; }
5471 EGREP="$ac_cv_path_EGREP"
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5475 $as_echo_n "checking for ANSI C header files... " >&6; }
5476 if ${ac_cv_header_stdc+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 #include <stdlib.h>
5482 #include <stdarg.h>
5483 #include <string.h>
5484 #include <float.h>
5487 main ()
5491 return 0;
5493 _ACEOF
5494 if ac_fn_cxx_try_compile "$LINENO"; then :
5495 ac_cv_header_stdc=yes
5496 else
5497 ac_cv_header_stdc=no
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 if test $ac_cv_header_stdc = yes; then
5502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5505 #include <string.h>
5507 _ACEOF
5508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5509 $EGREP "memchr" >/dev/null 2>&1; then :
5511 else
5512 ac_cv_header_stdc=no
5514 rm -f conftest*
5518 if test $ac_cv_header_stdc = yes; then
5519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 #include <stdlib.h>
5524 _ACEOF
5525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526 $EGREP "free" >/dev/null 2>&1; then :
5528 else
5529 ac_cv_header_stdc=no
5531 rm -f conftest*
5535 if test $ac_cv_header_stdc = yes; then
5536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5537 if test "$cross_compiling" = yes; then :
5539 else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #include <ctype.h>
5543 #include <stdlib.h>
5544 #if ((' ' & 0x0FF) == 0x020)
5545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5547 #else
5548 # define ISLOWER(c) \
5549 (('a' <= (c) && (c) <= 'i') \
5550 || ('j' <= (c) && (c) <= 'r') \
5551 || ('s' <= (c) && (c) <= 'z'))
5552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5553 #endif
5555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5557 main ()
5559 int i;
5560 for (i = 0; i < 256; i++)
5561 if (XOR (islower (i), ISLOWER (i))
5562 || toupper (i) != TOUPPER (i))
5563 return 2;
5564 return 0;
5566 _ACEOF
5567 if ac_fn_cxx_try_run "$LINENO"; then :
5569 else
5570 ac_cv_header_stdc=no
5572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5573 conftest.$ac_objext conftest.beam conftest.$ac_ext
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5579 $as_echo "$ac_cv_header_stdc" >&6; }
5580 if test $ac_cv_header_stdc = yes; then
5582 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5586 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5587 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5588 inttypes.h stdint.h unistd.h
5589 do :
5590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5591 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5593 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5594 cat >>confdefs.h <<_ACEOF
5595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5596 _ACEOF
5600 done
5604 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5605 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5606 MINIX=yes
5607 else
5608 MINIX=
5612 if test "$MINIX" = yes; then
5614 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5617 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5620 $as_echo "#define _MINIX 1" >>confdefs.h
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5626 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5627 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5633 # define __EXTENSIONS__ 1
5634 $ac_includes_default
5636 main ()
5640 return 0;
5642 _ACEOF
5643 if ac_fn_cxx_try_compile "$LINENO"; then :
5644 ac_cv_safe_to_define___extensions__=yes
5645 else
5646 ac_cv_safe_to_define___extensions__=no
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5651 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5652 test $ac_cv_safe_to_define___extensions__ = yes &&
5653 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5657 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5659 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5661 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5664 ac_ext=c
5665 ac_cpp='$CPP $CPPFLAGS'
5666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5670 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5671 # On Suns, sometimes $CPP names a directory.
5672 if test -n "$CPP" && test -d "$CPP"; then
5673 CPP=
5675 if test -z "$CPP"; then
5676 if ${ac_cv_prog_CPP+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 # Double quotes because CPP needs to be expanded
5680 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5682 ac_preproc_ok=false
5683 for ac_c_preproc_warn_flag in '' yes
5685 # Use a header file that comes with gcc, so configuring glibc
5686 # with a fresh cross-compiler works.
5687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5688 # <limits.h> exists even on freestanding compilers.
5689 # On the NeXT, cc -E runs the code through the compiler's parser,
5690 # not just through cpp. "Syntax error" is here to catch this case.
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #ifdef __STDC__
5694 # include <limits.h>
5695 #else
5696 # include <assert.h>
5697 #endif
5698 Syntax error
5699 _ACEOF
5700 if ac_fn_c_try_cpp "$LINENO"; then :
5702 else
5703 # Broken: fails on valid input.
5704 continue
5706 rm -f conftest.err conftest.i conftest.$ac_ext
5708 # OK, works on sane cases. Now check whether nonexistent headers
5709 # can be detected and how.
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 #include <ac_nonexistent.h>
5713 _ACEOF
5714 if ac_fn_c_try_cpp "$LINENO"; then :
5715 # Broken: success on invalid input.
5716 continue
5717 else
5718 # Passes both tests.
5719 ac_preproc_ok=:
5720 break
5722 rm -f conftest.err conftest.i conftest.$ac_ext
5724 done
5725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5726 rm -f conftest.i conftest.err conftest.$ac_ext
5727 if $ac_preproc_ok; then :
5728 break
5731 done
5732 ac_cv_prog_CPP=$CPP
5735 CPP=$ac_cv_prog_CPP
5736 else
5737 ac_cv_prog_CPP=$CPP
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5740 $as_echo "$CPP" >&6; }
5741 ac_preproc_ok=false
5742 for ac_c_preproc_warn_flag in '' yes
5744 # Use a header file that comes with gcc, so configuring glibc
5745 # with a fresh cross-compiler works.
5746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5747 # <limits.h> exists even on freestanding compilers.
5748 # On the NeXT, cc -E runs the code through the compiler's parser,
5749 # not just through cpp. "Syntax error" is here to catch this case.
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 #ifdef __STDC__
5753 # include <limits.h>
5754 #else
5755 # include <assert.h>
5756 #endif
5757 Syntax error
5758 _ACEOF
5759 if ac_fn_c_try_cpp "$LINENO"; then :
5761 else
5762 # Broken: fails on valid input.
5763 continue
5765 rm -f conftest.err conftest.i conftest.$ac_ext
5767 # OK, works on sane cases. Now check whether nonexistent headers
5768 # can be detected and how.
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 #include <ac_nonexistent.h>
5772 _ACEOF
5773 if ac_fn_c_try_cpp "$LINENO"; then :
5774 # Broken: success on invalid input.
5775 continue
5776 else
5777 # Passes both tests.
5778 ac_preproc_ok=:
5779 break
5781 rm -f conftest.err conftest.i conftest.$ac_ext
5783 done
5784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5785 rm -f conftest.i conftest.err conftest.$ac_ext
5786 if $ac_preproc_ok; then :
5788 else
5789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5791 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5792 See \`config.log' for more details" "$LINENO" 5; }
5795 ac_ext=cpp
5796 ac_cpp='$CXXCPP $CPPFLAGS'
5797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5802 $as_echo_n "checking for inline... " >&6; }
5803 if ${ac_cv_c_inline+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 ac_cv_c_inline=no
5807 for ac_kw in inline __inline__ __inline; do
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #ifndef __cplusplus
5811 typedef int foo_t;
5812 static $ac_kw foo_t static_foo () {return 0; }
5813 $ac_kw foo_t foo () {return 0; }
5814 #endif
5816 _ACEOF
5817 if ac_fn_cxx_try_compile "$LINENO"; then :
5818 ac_cv_c_inline=$ac_kw
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 test "$ac_cv_c_inline" != no && break
5822 done
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5826 $as_echo "$ac_cv_c_inline" >&6; }
5828 case $ac_cv_c_inline in
5829 inline | yes) ;;
5831 case $ac_cv_c_inline in
5832 no) ac_val=;;
5833 *) ac_val=$ac_cv_c_inline;;
5834 esac
5835 cat >>confdefs.h <<_ACEOF
5836 #ifndef __cplusplus
5837 #define inline $ac_val
5838 #endif
5839 _ACEOF
5841 esac
5844 # Check whether --enable-largefile was given.
5845 if test "${enable_largefile+set}" = set; then :
5846 enableval=$enable_largefile;
5849 if test "$enable_largefile" != no; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5852 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5853 if ${ac_cv_sys_largefile_CC+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 ac_cv_sys_largefile_CC=no
5857 if test "$GCC" != yes; then
5858 ac_save_CC=$CC
5859 while :; do
5860 # IRIX 6.2 and later do not support large files by default,
5861 # so use the C compiler's -n32 option if that helps.
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 #include <sys/types.h>
5865 /* Check that off_t can represent 2**63 - 1 correctly.
5866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5867 since some C++ compilers masquerading as C compilers
5868 incorrectly reject 9223372036854775807. */
5869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5871 && LARGE_OFF_T % 2147483647 == 1)
5872 ? 1 : -1];
5874 main ()
5878 return 0;
5880 _ACEOF
5881 if ac_fn_cxx_try_compile "$LINENO"; then :
5882 break
5884 rm -f core conftest.err conftest.$ac_objext
5885 CC="$CC -n32"
5886 if ac_fn_cxx_try_compile "$LINENO"; then :
5887 ac_cv_sys_largefile_CC=' -n32'; break
5889 rm -f core conftest.err conftest.$ac_objext
5890 break
5891 done
5892 CC=$ac_save_CC
5893 rm -f conftest.$ac_ext
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5897 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5898 if test "$ac_cv_sys_largefile_CC" != no; then
5899 CC=$CC$ac_cv_sys_largefile_CC
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5903 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5904 if ${ac_cv_sys_file_offset_bits+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 while :; do
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 #include <sys/types.h>
5911 /* Check that off_t can represent 2**63 - 1 correctly.
5912 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5913 since some C++ compilers masquerading as C compilers
5914 incorrectly reject 9223372036854775807. */
5915 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5916 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5917 && LARGE_OFF_T % 2147483647 == 1)
5918 ? 1 : -1];
5920 main ()
5924 return 0;
5926 _ACEOF
5927 if ac_fn_cxx_try_compile "$LINENO"; then :
5928 ac_cv_sys_file_offset_bits=no; break
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 #define _FILE_OFFSET_BITS 64
5934 #include <sys/types.h>
5935 /* Check that off_t can represent 2**63 - 1 correctly.
5936 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5937 since some C++ compilers masquerading as C compilers
5938 incorrectly reject 9223372036854775807. */
5939 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5940 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5941 && LARGE_OFF_T % 2147483647 == 1)
5942 ? 1 : -1];
5944 main ()
5948 return 0;
5950 _ACEOF
5951 if ac_fn_cxx_try_compile "$LINENO"; then :
5952 ac_cv_sys_file_offset_bits=64; break
5954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955 ac_cv_sys_file_offset_bits=unknown
5956 break
5957 done
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5960 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5961 case $ac_cv_sys_file_offset_bits in #(
5962 no | unknown) ;;
5964 cat >>confdefs.h <<_ACEOF
5965 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5966 _ACEOF
5968 esac
5969 rm -rf conftest*
5970 if test $ac_cv_sys_file_offset_bits = unknown; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5972 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5973 if ${ac_cv_sys_large_files+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 while :; do
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 #include <sys/types.h>
5980 /* Check that off_t can represent 2**63 - 1 correctly.
5981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5982 since some C++ compilers masquerading as C compilers
5983 incorrectly reject 9223372036854775807. */
5984 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5986 && LARGE_OFF_T % 2147483647 == 1)
5987 ? 1 : -1];
5989 main ()
5993 return 0;
5995 _ACEOF
5996 if ac_fn_cxx_try_compile "$LINENO"; then :
5997 ac_cv_sys_large_files=no; break
5999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6002 #define _LARGE_FILES 1
6003 #include <sys/types.h>
6004 /* Check that off_t can represent 2**63 - 1 correctly.
6005 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6006 since some C++ compilers masquerading as C compilers
6007 incorrectly reject 9223372036854775807. */
6008 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6009 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6010 && LARGE_OFF_T % 2147483647 == 1)
6011 ? 1 : -1];
6013 main ()
6017 return 0;
6019 _ACEOF
6020 if ac_fn_cxx_try_compile "$LINENO"; then :
6021 ac_cv_sys_large_files=1; break
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 ac_cv_sys_large_files=unknown
6025 break
6026 done
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6029 $as_echo "$ac_cv_sys_large_files" >&6; }
6030 case $ac_cv_sys_large_files in #(
6031 no | unknown) ;;
6033 cat >>confdefs.h <<_ACEOF
6034 #define _LARGE_FILES $ac_cv_sys_large_files
6035 _ACEOF
6037 esac
6038 rm -rf conftest*
6045 # sizeof(char) is 1 by definition.
6046 # The cast to long int works around a bug in the HP C Compiler
6047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6049 # This bug is HP SR number 8606223364.
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6051 $as_echo_n "checking size of void *... " >&6; }
6052 if ${ac_cv_sizeof_void_p+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6057 else
6058 if test "$ac_cv_type_void_p" = yes; then
6059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6061 as_fn_error 77 "cannot compute sizeof (void *)
6062 See \`config.log' for more details" "$LINENO" 5; }
6063 else
6064 ac_cv_sizeof_void_p=0
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6070 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6074 cat >>confdefs.h <<_ACEOF
6075 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6076 _ACEOF
6079 # The cast to long int works around a bug in the HP C Compiler
6080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6082 # This bug is HP SR number 8606223364.
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6084 $as_echo_n "checking size of short... " >&6; }
6085 if ${ac_cv_sizeof_short+:} false; then :
6086 $as_echo_n "(cached) " >&6
6087 else
6088 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6090 else
6091 if test "$ac_cv_type_short" = yes; then
6092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6094 as_fn_error 77 "cannot compute sizeof (short)
6095 See \`config.log' for more details" "$LINENO" 5; }
6096 else
6097 ac_cv_sizeof_short=0
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6103 $as_echo "$ac_cv_sizeof_short" >&6; }
6107 cat >>confdefs.h <<_ACEOF
6108 #define SIZEOF_SHORT $ac_cv_sizeof_short
6109 _ACEOF
6112 # The cast to long int works around a bug in the HP C Compiler
6113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6114 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6115 # This bug is HP SR number 8606223364.
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6117 $as_echo_n "checking size of int... " >&6; }
6118 if ${ac_cv_sizeof_int+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6123 else
6124 if test "$ac_cv_type_int" = yes; then
6125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6127 as_fn_error 77 "cannot compute sizeof (int)
6128 See \`config.log' for more details" "$LINENO" 5; }
6129 else
6130 ac_cv_sizeof_int=0
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6136 $as_echo "$ac_cv_sizeof_int" >&6; }
6140 cat >>confdefs.h <<_ACEOF
6141 #define SIZEOF_INT $ac_cv_sizeof_int
6142 _ACEOF
6145 # The cast to long int works around a bug in the HP C Compiler
6146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6148 # This bug is HP SR number 8606223364.
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6150 $as_echo_n "checking size of long... " >&6; }
6151 if ${ac_cv_sizeof_long+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6156 else
6157 if test "$ac_cv_type_long" = yes; then
6158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6160 as_fn_error 77 "cannot compute sizeof (long)
6161 See \`config.log' for more details" "$LINENO" 5; }
6162 else
6163 ac_cv_sizeof_long=0
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6169 $as_echo "$ac_cv_sizeof_long" >&6; }
6173 cat >>confdefs.h <<_ACEOF
6174 #define SIZEOF_LONG $ac_cv_sizeof_long
6175 _ACEOF
6178 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6179 if test "x$ac_cv_type_long_long" = xyes; then :
6181 cat >>confdefs.h <<_ACEOF
6182 #define HAVE_LONG_LONG 1
6183 _ACEOF
6185 # The cast to long int works around a bug in the HP C Compiler
6186 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6187 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6188 # This bug is HP SR number 8606223364.
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6190 $as_echo_n "checking size of long long... " >&6; }
6191 if ${ac_cv_sizeof_long_long+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6196 else
6197 if test "$ac_cv_type_long_long" = yes; then
6198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6200 as_fn_error 77 "cannot compute sizeof (long long)
6201 See \`config.log' for more details" "$LINENO" 5; }
6202 else
6203 ac_cv_sizeof_long_long=0
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6209 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6213 cat >>confdefs.h <<_ACEOF
6214 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6215 _ACEOF
6220 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6221 case $ac_cv_c_int8_t in #(
6222 no|yes) ;; #(
6225 cat >>confdefs.h <<_ACEOF
6226 #define int8_t $ac_cv_c_int8_t
6227 _ACEOF
6229 esac
6231 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6232 case $ac_cv_c_int16_t in #(
6233 no|yes) ;; #(
6236 cat >>confdefs.h <<_ACEOF
6237 #define int16_t $ac_cv_c_int16_t
6238 _ACEOF
6240 esac
6242 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6243 case $ac_cv_c_int32_t in #(
6244 no|yes) ;; #(
6247 cat >>confdefs.h <<_ACEOF
6248 #define int32_t $ac_cv_c_int32_t
6249 _ACEOF
6251 esac
6253 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6254 case $ac_cv_c_int64_t in #(
6255 no|yes) ;; #(
6258 cat >>confdefs.h <<_ACEOF
6259 #define int64_t $ac_cv_c_int64_t
6260 _ACEOF
6262 esac
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6266 $as_echo_n "checking for unsigned long long int... " >&6; }
6267 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 ac_cv_type_unsigned_long_long_int=yes
6271 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6275 /* For now, do not test the preprocessor; as of 2007 there are too many
6276 implementations with broken preprocessors. Perhaps this can
6277 be revisited in 2012. In the meantime, code should not expect
6278 #if to work with literals wider than 32 bits. */
6279 /* Test literals. */
6280 long long int ll = 9223372036854775807ll;
6281 long long int nll = -9223372036854775807LL;
6282 unsigned long long int ull = 18446744073709551615ULL;
6283 /* Test constant expressions. */
6284 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6285 ? 1 : -1)];
6286 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6287 ? 1 : -1)];
6288 int i = 63;
6290 main ()
6292 /* Test availability of runtime routines for shift and division. */
6293 long long int llmax = 9223372036854775807ll;
6294 unsigned long long int ullmax = 18446744073709551615ull;
6295 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6296 | (llmax / ll) | (llmax % ll)
6297 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6298 | (ullmax / ull) | (ullmax % ull));
6300 return 0;
6303 _ACEOF
6304 if ac_fn_cxx_try_link "$LINENO"; then :
6306 else
6307 ac_cv_type_unsigned_long_long_int=no
6309 rm -f core conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6314 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6315 if test $ac_cv_type_unsigned_long_long_int = yes; then
6317 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6324 $as_echo_n "checking for long long int... " >&6; }
6325 if ${ac_cv_type_long_long_int+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 ac_cv_type_long_long_int=yes
6329 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6330 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6331 if test $ac_cv_type_long_long_int = yes; then
6332 if test "$cross_compiling" = yes; then :
6334 else
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 #include <limits.h>
6338 #ifndef LLONG_MAX
6339 # define HALF \
6340 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6341 # define LLONG_MAX (HALF - 1 + HALF)
6342 #endif
6344 main ()
6346 long long int n = 1;
6347 int i;
6348 for (i = 0; ; i++)
6350 long long int m = n << i;
6351 if (m >> i != n)
6352 return 1;
6353 if (LLONG_MAX / 2 < m)
6354 break;
6356 return 0;
6358 return 0;
6360 _ACEOF
6361 if ac_fn_cxx_try_run "$LINENO"; then :
6363 else
6364 ac_cv_type_long_long_int=no
6366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6367 conftest.$ac_objext conftest.beam conftest.$ac_ext
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6374 $as_echo "$ac_cv_type_long_long_int" >&6; }
6375 if test $ac_cv_type_long_long_int = yes; then
6377 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6383 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6384 if test "x$ac_cv_type_intmax_t" = xyes; then :
6386 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6388 else
6389 test $ac_cv_type_long_long_int = yes \
6390 && ac_type='long long int' \
6391 || ac_type='long int'
6393 cat >>confdefs.h <<_ACEOF
6394 #define intmax_t $ac_type
6395 _ACEOF
6401 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6402 if test "x$ac_cv_type_intptr_t" = xyes; then :
6404 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6406 else
6407 for ac_type in 'int' 'long int' 'long long int'; do
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 $ac_includes_default
6412 main ()
6414 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6415 test_array [0] = 0;
6416 return test_array [0];
6419 return 0;
6421 _ACEOF
6422 if ac_fn_cxx_try_compile "$LINENO"; then :
6424 cat >>confdefs.h <<_ACEOF
6425 #define intptr_t $ac_type
6426 _ACEOF
6428 ac_type=
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 test -z "$ac_type" && break
6432 done
6436 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6437 case $ac_cv_c_uint8_t in #(
6438 no|yes) ;; #(
6441 $as_echo "#define _UINT8_T 1" >>confdefs.h
6444 cat >>confdefs.h <<_ACEOF
6445 #define uint8_t $ac_cv_c_uint8_t
6446 _ACEOF
6448 esac
6450 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6451 case $ac_cv_c_uint16_t in #(
6452 no|yes) ;; #(
6456 cat >>confdefs.h <<_ACEOF
6457 #define uint16_t $ac_cv_c_uint16_t
6458 _ACEOF
6460 esac
6462 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6463 case $ac_cv_c_uint32_t in #(
6464 no|yes) ;; #(
6467 $as_echo "#define _UINT32_T 1" >>confdefs.h
6470 cat >>confdefs.h <<_ACEOF
6471 #define uint32_t $ac_cv_c_uint32_t
6472 _ACEOF
6474 esac
6476 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6477 case $ac_cv_c_uint64_t in #(
6478 no|yes) ;; #(
6481 $as_echo "#define _UINT64_T 1" >>confdefs.h
6484 cat >>confdefs.h <<_ACEOF
6485 #define uint64_t $ac_cv_c_uint64_t
6486 _ACEOF
6488 esac
6492 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6493 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6495 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6497 else
6498 test $ac_cv_type_unsigned_long_long_int = yes \
6499 && ac_type='unsigned long long int' \
6500 || ac_type='unsigned long int'
6502 cat >>confdefs.h <<_ACEOF
6503 #define uintmax_t $ac_type
6504 _ACEOF
6510 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6511 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6513 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6515 else
6516 for ac_type in 'unsigned int' 'unsigned long int' \
6517 'unsigned long long int'; do
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 $ac_includes_default
6522 main ()
6524 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6525 test_array [0] = 0;
6526 return test_array [0];
6529 return 0;
6531 _ACEOF
6532 if ac_fn_cxx_try_compile "$LINENO"; then :
6534 cat >>confdefs.h <<_ACEOF
6535 #define uintptr_t $ac_type
6536 _ACEOF
6538 ac_type=
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 test -z "$ac_type" && break
6542 done
6558 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6559 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6562 # check what underlying integer type int64_t uses
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6564 $as_echo_n "checking for int64_t underlying type... " >&6; }
6565 if ${ac_cv_int64_t_type+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6572 #ifdef HAVE_STDINT_H
6573 #include <stdint.h>
6574 #endif
6575 template <typename T> struct X { };
6576 template <>
6577 struct X<long> { typedef long t; };
6580 main ()
6582 X<int64_t>::t x;
6584 return 0;
6586 _ACEOF
6587 if ac_fn_cxx_try_compile "$LINENO"; then :
6588 ac_cv_int64_t_type=long
6589 else
6590 ac_cv_int64_t_type="long long"
6592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6595 $as_echo "$ac_cv_int64_t_type" >&6; }
6596 if test "$ac_cv_int64_t_type" = "long"; then
6598 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6600 else
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6604 #ifdef HAVE_STDINT_H
6605 #include <stdint.h>
6606 #endif
6607 template <typename T> struct X { };
6608 template <>
6609 struct X<long long> { typedef long long t; };
6612 main ()
6614 X<int64_t>::t x;
6616 return 0;
6618 _ACEOF
6619 if ac_fn_cxx_try_compile "$LINENO"; then :
6621 else
6622 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6628 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6629 if ${ac_cv_std_swap_in_utility+:} false; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6636 #include <utility>
6639 main ()
6641 int a, b; std::swap(a,b);
6643 return 0;
6645 _ACEOF
6646 if ac_fn_cxx_try_compile "$LINENO"; then :
6647 ac_cv_std_swap_in_utility=yes
6648 else
6649 ac_cv_std_swap_in_utility=no
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6654 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6655 if test $ac_cv_std_swap_in_utility = yes; then
6657 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6661 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6662 # If the host compiler is affected by the bug, and we build with optimization
6663 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6664 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6665 # Since there is no reliable feature check for the presence of this bug,
6666 # we simply use a GCC version number check. (This should never trigger for
6667 # stages 2 or 3 of a native bootstrap.)
6668 aliasing_flags=
6669 if test "$GCC" = yes; then
6670 saved_CXXFLAGS="$CXXFLAGS"
6672 # The following test compilation will succeed if and only if $CXX accepts
6673 # -fno-strict-aliasing *and* is older than GCC 4.3.
6674 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6676 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6680 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6681 #error compiler not affected by placement new aliasing bug
6682 #endif
6684 _ACEOF
6685 if ac_fn_cxx_try_compile "$LINENO"; then :
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6687 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 CXXFLAGS="$saved_CXXFLAGS"
6700 # ---------------------
6701 # Warnings and checking
6702 # ---------------------
6704 # Check $CC warning features (if it's GCC).
6705 # We want to use -pedantic, but we don't want warnings about
6706 # * 'long long'
6707 # * variadic macros
6708 # * overlong strings
6709 # * C++11 narrowing conversions in { }
6710 # So, we only use -pedantic if we can disable those warnings.
6712 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6713 # Check whether --enable-build-format-warnings was given.
6714 if test "${enable_build_format_warnings+set}" = set; then :
6715 enableval=$enable_build_format_warnings;
6716 else
6717 enable_build_format_warnings=yes
6720 if test $enable_build_format_warnings = no; then :
6721 wf_opt=-Wno-format
6722 else
6723 wf_opt=
6725 ac_ext=cpp
6726 ac_cpp='$CXXCPP $CPPFLAGS'
6727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6731 loose_warn=
6732 save_CXXFLAGS="$CXXFLAGS"
6733 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6734 # Do the check with the no- prefix removed since gcc silently
6735 # accepts any -Wno-* option on purpose
6736 case $real_option in
6737 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6738 *) option=$real_option ;;
6739 esac
6740 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6743 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6744 if eval \${$as_acx_Woption+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 CXXFLAGS="$option"
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6752 main ()
6756 return 0;
6758 _ACEOF
6759 if ac_fn_cxx_try_compile "$LINENO"; then :
6760 eval "$as_acx_Woption=yes"
6761 else
6762 eval "$as_acx_Woption=no"
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 eval ac_res=\$$as_acx_Woption
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6769 $as_echo "$ac_res" >&6; }
6770 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6771 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6773 done
6774 CXXFLAGS="$save_CXXFLAGS"
6775 ac_ext=cpp
6776 ac_cpp='$CXXCPP $CPPFLAGS'
6777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6783 ac_ext=c
6784 ac_cpp='$CPP $CPPFLAGS'
6785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6789 c_loose_warn=
6790 save_CFLAGS="$CFLAGS"
6791 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6792 # Do the check with the no- prefix removed since gcc silently
6793 # accepts any -Wno-* option on purpose
6794 case $real_option in
6795 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6796 *) option=$real_option ;;
6797 esac
6798 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6801 $as_echo_n "checking whether $CC supports $option... " >&6; }
6802 if eval \${$as_acx_Woption+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 CFLAGS="$option"
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6810 main ()
6814 return 0;
6816 _ACEOF
6817 if ac_fn_c_try_compile "$LINENO"; then :
6818 eval "$as_acx_Woption=yes"
6819 else
6820 eval "$as_acx_Woption=no"
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 eval ac_res=\$$as_acx_Woption
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6827 $as_echo "$ac_res" >&6; }
6828 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6829 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6831 done
6832 CFLAGS="$save_CFLAGS"
6833 ac_ext=cpp
6834 ac_cpp='$CXXCPP $CPPFLAGS'
6835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6840 ac_ext=cpp
6841 ac_cpp='$CXXCPP $CPPFLAGS'
6842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6846 strict_warn=
6847 save_CXXFLAGS="$CXXFLAGS"
6848 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6849 # Do the check with the no- prefix removed since gcc silently
6850 # accepts any -Wno-* option on purpose
6851 case $real_option in
6852 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6853 *) option=$real_option ;;
6854 esac
6855 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6858 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6859 if eval \${$as_acx_Woption+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 CXXFLAGS="$option"
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6867 main ()
6871 return 0;
6873 _ACEOF
6874 if ac_fn_cxx_try_compile "$LINENO"; then :
6875 eval "$as_acx_Woption=yes"
6876 else
6877 eval "$as_acx_Woption=no"
6879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 eval ac_res=\$$as_acx_Woption
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6884 $as_echo "$ac_res" >&6; }
6885 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6886 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6888 done
6889 CXXFLAGS="$save_CXXFLAGS"
6890 ac_ext=cpp
6891 ac_cpp='$CXXCPP $CPPFLAGS'
6892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6897 ac_ext=c
6898 ac_cpp='$CPP $CPPFLAGS'
6899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6903 c_strict_warn=
6904 save_CFLAGS="$CFLAGS"
6905 for real_option in -Wold-style-definition -Wc++-compat; do
6906 # Do the check with the no- prefix removed since gcc silently
6907 # accepts any -Wno-* option on purpose
6908 case $real_option in
6909 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6910 *) option=$real_option ;;
6911 esac
6912 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6915 $as_echo_n "checking whether $CC supports $option... " >&6; }
6916 if eval \${$as_acx_Woption+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 CFLAGS="$option"
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6924 main ()
6928 return 0;
6930 _ACEOF
6931 if ac_fn_c_try_compile "$LINENO"; then :
6932 eval "$as_acx_Woption=yes"
6933 else
6934 eval "$as_acx_Woption=no"
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 eval ac_res=\$$as_acx_Woption
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6941 $as_echo "$ac_res" >&6; }
6942 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6943 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6945 done
6946 CFLAGS="$save_CFLAGS"
6947 ac_ext=cpp
6948 ac_cpp='$CXXCPP $CPPFLAGS'
6949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6954 ac_ext=cpp
6955 ac_cpp='$CXXCPP $CPPFLAGS'
6956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6960 # Do the check with the no- prefix removed from the warning options
6961 # since gcc silently accepts any -Wno-* option on purpose
6962 if test "$GXX" = yes; then :
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6964 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6965 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 save_CXXFLAGS="$CXXFLAGS"
6969 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6974 main ()
6978 return 0;
6980 _ACEOF
6981 if ac_fn_cxx_try_compile "$LINENO"; then :
6982 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6983 else
6984 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 CXXFLAGS="$save_CXXFLAGS"
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6990 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6991 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6992 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6996 ac_ext=cpp
6997 ac_cpp='$CXXCPP $CPPFLAGS'
6998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7003 ac_ext=cpp
7004 ac_cpp='$CXXCPP $CPPFLAGS'
7005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7009 # Check whether --enable-werror-always was given.
7010 if test "${enable_werror_always+set}" = set; then :
7011 enableval=$enable_werror_always;
7012 else
7013 enable_werror_always=no
7016 if test $enable_werror_always = yes; then :
7017 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7020 ac_ext=cpp
7021 ac_cpp='$CXXCPP $CPPFLAGS'
7022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7028 # The above macros do nothing if the compiler is not GCC. However, the
7029 # Makefile has more goo to add other flags, so these variables are used
7030 # to enable warnings only for GCC.
7031 warn_cflags=
7032 warn_cxxflags=
7033 if test "x$GCC" = "xyes"; then
7034 warn_cflags='$(GCC_WARN_CFLAGS)'
7035 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7040 # Disable exceptions and RTTI if building with g++
7041 ac_ext=c
7042 ac_cpp='$CPP $CPPFLAGS'
7043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7047 noexception_flags=
7048 save_CFLAGS="$CFLAGS"
7049 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7050 # Do the check with the no- prefix removed since gcc silently
7051 # accepts any -Wno-* option on purpose
7052 case $real_option in
7053 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7054 *) option=$real_option ;;
7055 esac
7056 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7059 $as_echo_n "checking whether $CC supports $option... " >&6; }
7060 if eval \${$as_acx_Woption+:} false; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 CFLAGS="$option"
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7068 main ()
7072 return 0;
7074 _ACEOF
7075 if ac_fn_c_try_compile "$LINENO"; then :
7076 eval "$as_acx_Woption=yes"
7077 else
7078 eval "$as_acx_Woption=no"
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 eval ac_res=\$$as_acx_Woption
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7085 $as_echo "$ac_res" >&6; }
7086 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7087 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7089 done
7090 CFLAGS="$save_CFLAGS"
7091 ac_ext=cpp
7092 ac_cpp='$CXXCPP $CPPFLAGS'
7093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7099 # Enable expensive internal checks
7100 is_release=
7101 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7102 is_release=yes
7105 # Check whether --enable-checking was given.
7106 if test "${enable_checking+set}" = set; then :
7107 enableval=$enable_checking; ac_checking_flags="${enableval}"
7108 else
7110 # Determine the default checks.
7111 if test x$is_release = x ; then
7112 ac_checking_flags=yes,extra
7113 else
7114 ac_checking_flags=release
7118 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7119 for check in release $ac_checking_flags
7121 case $check in
7122 # these set all the flags to specific states
7123 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7124 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7125 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7126 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7127 ac_tree_checking=1 ; ac_valgrind_checking= ;
7128 ac_types_checking=1 ;;
7129 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7130 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7131 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7132 ac_rtlflag_checking= ; ac_runtime_checking= ;
7133 ac_tree_checking= ; ac_valgrind_checking= ;
7134 ac_types_checking= ;;
7135 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7136 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7137 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7138 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7139 ac_tree_checking=1 ; ac_valgrind_checking= ;
7140 ac_types_checking=1 ;;
7141 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7142 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7143 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7144 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7145 ac_tree_checking= ; ac_valgrind_checking= ;
7146 ac_types_checking= ;;
7147 # these enable particular checks
7148 assert) ac_assert_checking=1 ;;
7149 df) ac_df_checking=1 ;;
7150 extra) ac_extra_checking=1 ;;
7151 fold) ac_fold_checking=1 ;;
7152 gc) ac_gc_checking=1 ;;
7153 gcac) ac_gc_always_collect=1 ;;
7154 gimple) ac_gimple_checking=1 ;;
7155 misc) ac_checking=1 ;;
7156 rtl) ac_rtl_checking=1 ;;
7157 rtlflag) ac_rtlflag_checking=1 ;;
7158 runtime) ac_runtime_checking=1 ;;
7159 tree) ac_tree_checking=1 ;;
7160 types) ac_types_checking=1 ;;
7161 valgrind) ac_valgrind_checking=1 ;;
7162 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7163 esac
7164 done
7165 IFS="$ac_save_IFS"
7167 nocommon_flag=""
7168 if test x$ac_checking != x ; then
7170 $as_echo "#define CHECKING_P 1" >>confdefs.h
7172 nocommon_flag=-fno-common
7173 else
7174 $as_echo "#define CHECKING_P 0" >>confdefs.h
7178 if test x$ac_extra_checking != x ; then
7180 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7182 else
7183 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7186 if test x$ac_df_checking != x ; then
7188 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7191 if test x$ac_assert_checking != x ; then
7193 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7196 if test x$ac_gimple_checking != x ; then
7198 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7202 if test x$ac_runtime_checking != x ; then
7204 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7207 if test x$ac_tree_checking != x ; then
7209 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7211 TREECHECKING=yes
7213 if test x$ac_types_checking != x ; then
7215 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7219 if test x$ac_rtl_checking != x ; then
7221 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7224 if test x$ac_rtlflag_checking != x ; then
7226 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7229 if test x$ac_gc_checking != x ; then
7231 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7234 if test x$ac_gc_always_collect != x ; then
7236 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7239 if test x$ac_fold_checking != x ; then
7241 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7244 valgrind_path_defines=
7245 valgrind_command=
7247 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7248 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7249 have_valgrind_h=yes
7250 else
7251 have_valgrind_h=no
7256 # It is certainly possible that there's valgrind but no valgrind.h.
7257 # GCC relies on making annotations so we must have both.
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7259 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 #include <valgrind/memcheck.h>
7263 #ifndef VALGRIND_DISCARD
7264 #error VALGRIND_DISCARD not defined
7265 #endif
7266 _ACEOF
7267 if ac_fn_cxx_try_cpp "$LINENO"; then :
7268 gcc_cv_header_valgrind_memcheck_h=yes
7269 else
7270 gcc_cv_header_valgrind_memcheck_h=no
7272 rm -f conftest.err conftest.i conftest.$ac_ext
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7274 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7276 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 #include <memcheck.h>
7280 #ifndef VALGRIND_DISCARD
7281 #error VALGRIND_DISCARD not defined
7282 #endif
7283 _ACEOF
7284 if ac_fn_cxx_try_cpp "$LINENO"; then :
7285 gcc_cv_header_memcheck_h=yes
7286 else
7287 gcc_cv_header_memcheck_h=no
7289 rm -f conftest.err conftest.i conftest.$ac_ext
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7291 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7292 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7294 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7297 if test $gcc_cv_header_memcheck_h = yes; then
7299 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7303 if test x$ac_valgrind_checking != x ; then
7305 # Prepare PATH_SEPARATOR.
7306 # The user is always right.
7307 if test "${PATH_SEPARATOR+set}" != set; then
7308 echo "#! /bin/sh" >conf$$.sh
7309 echo "exit 0" >>conf$$.sh
7310 chmod +x conf$$.sh
7311 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7312 PATH_SEPARATOR=';'
7313 else
7314 PATH_SEPARATOR=:
7316 rm -f conf$$.sh
7319 # Find out how to test for executable files. Don't use a zero-byte file,
7320 # as systems may use methods other than mode bits to determine executability.
7321 cat >conf$$.file <<_ASEOF
7322 #! /bin/sh
7323 exit 0
7324 _ASEOF
7325 chmod +x conf$$.file
7326 if test -x conf$$.file >/dev/null 2>&1; then
7327 ac_executable_p="test -x"
7328 else
7329 ac_executable_p="test -f"
7331 rm -f conf$$.file
7333 # Extract the first word of "valgrind", so it can be a program name with args.
7334 set dummy valgrind; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_path_valgrind_path+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 case "$valgrind_path" in
7341 [\\/]* | ?:[\\/]*)
7342 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7345 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7346 for ac_dir in $PATH; do
7347 IFS="$ac_save_IFS"
7348 test -z "$ac_dir" && ac_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7351 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7352 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7353 break 2
7356 done
7357 done
7358 IFS="$ac_save_IFS"
7360 esac
7362 valgrind_path="$ac_cv_path_valgrind_path"
7363 if test -n "$valgrind_path"; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7365 $as_echo "$valgrind_path" >&6; }
7366 else
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7371 if test "x$valgrind_path" = "x" \
7372 || (test $have_valgrind_h = no \
7373 && test $gcc_cv_header_memcheck_h = no \
7374 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7375 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7377 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7378 valgrind_command="$valgrind_path -q"
7380 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7386 # Enable code coverage collection
7387 # Check whether --enable-coverage was given.
7388 if test "${enable_coverage+set}" = set; then :
7389 enableval=$enable_coverage; case "${enableval}" in
7390 yes|noopt)
7391 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7393 opt)
7394 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7397 # a.k.a. --disable-coverage
7398 coverage_flags=""
7401 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7403 esac
7404 else
7405 coverage_flags=""
7410 # Check whether --enable-gather-detailed-mem-stats was given.
7411 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7412 enableval=$enable_gather_detailed_mem_stats;
7413 else
7414 enable_gather_detailed_mem_stats=no
7417 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7419 cat >>confdefs.h <<_ACEOF
7420 #define GATHER_STATISTICS $gather_stats
7421 _ACEOF
7424 # Check whether --enable-valgrind-annotations was given.
7425 if test "${enable_valgrind_annotations+set}" = set; then :
7426 enableval=$enable_valgrind_annotations;
7427 else
7428 enable_valgrind_annotations=no
7431 if test x$enable_valgrind_annotations != xno \
7432 || test x$ac_valgrind_checking != x; then
7433 if (test $have_valgrind_h = no \
7434 && test $gcc_cv_header_memcheck_h = no \
7435 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7436 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7439 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7443 # -------------------------------
7444 # Miscenalleous configure options
7445 # -------------------------------
7447 # With stabs
7449 # Check whether --with-stabs was given.
7450 if test "${with_stabs+set}" = set; then :
7451 withval=$with_stabs; stabs="$with_stabs"
7452 else
7453 stabs=no
7457 # Determine whether or not multilibs are enabled.
7458 # Check whether --enable-multilib was given.
7459 if test "${enable_multilib+set}" = set; then :
7460 enableval=$enable_multilib;
7461 else
7462 enable_multilib=yes
7467 # Determine whether or not multiarch is enabled.
7468 # Check whether --enable-multiarch was given.
7469 if test "${enable_multiarch+set}" = set; then :
7470 enableval=$enable_multiarch; case "${enableval}" in
7471 yes|no|auto) enable_multiarch=$enableval;;
7472 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7473 esac
7474 else
7475 enable_multiarch=auto
7478 if test x${enable_multiarch} = xauto; then
7479 if test x${with_native_system_header_dir} != x; then
7480 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7481 enable_multiarch=no
7483 if test x$host != x$target && test "x$with_sysroot" = x; then
7484 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7485 enable_multiarch=no
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7489 $as_echo_n "checking for multiarch configuration... " >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7492 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7494 # needed for setting the multiarch name for soft-float/hard-float ABIs
7498 # default stack clash protection guard size as power of twos in bytes.
7499 # Please keep these in sync with params.def.
7500 stk_clash_min=12
7501 stk_clash_max=30
7503 # Keep the default value when the option is not used to 0, this allows us to
7504 # distinguish between the cases where the user specifially set a value via
7505 # configure and when the normal default value is used.
7507 # Check whether --with-stack-clash-protection-guard-size was given.
7508 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7509 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7510 else
7511 DEFAULT_STK_CLASH_GUARD_SIZE=0
7514 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7515 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7516 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7517 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
7521 cat >>confdefs.h <<_ACEOF
7522 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7523 _ACEOF
7526 # Enable __cxa_atexit for C++.
7527 # Check whether --enable-__cxa_atexit was given.
7528 if test "${enable___cxa_atexit+set}" = set; then :
7529 enableval=$enable___cxa_atexit;
7533 # Enable C extension for decimal float if target supports it.
7535 # Check whether --enable-decimal-float was given.
7536 if test "${enable_decimal_float+set}" = set; then :
7537 enableval=$enable_decimal_float;
7538 case $enable_decimal_float in
7539 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7540 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7541 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7542 esac
7544 else
7546 case $target in
7547 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7548 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7549 i?86*-*-mingw* | x86_64*-*-mingw* | \
7550 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7551 enable_decimal_float=yes
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7555 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7556 enable_decimal_float=no
7558 esac
7563 # x86's use BID format instead of DPD
7564 case x$enable_decimal_float in
7565 xyes)
7566 case $target in
7567 i?86*-*-* | x86_64*-*-*)
7568 enable_decimal_float=bid
7571 enable_decimal_float=dpd
7573 esac
7574 default_decimal_float=$enable_decimal_float
7576 xno)
7577 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7578 # dependency on libdecnumber.
7579 default_decimal_float=dpd
7581 esac
7586 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7588 cat >>confdefs.h <<_ACEOF
7589 #define ENABLE_DECIMAL_FLOAT $dfp
7590 _ACEOF
7593 # Use default_decimal_float for dependency.
7594 enable_decimal_float=$default_decimal_float
7596 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7598 cat >>confdefs.h <<_ACEOF
7599 #define ENABLE_DECIMAL_BID_FORMAT $bid
7600 _ACEOF
7603 # Enable C extension for fixed-point arithmetic.
7604 # Check whether --enable-fixed-point was given.
7605 if test "${enable_fixed_point+set}" = set; then :
7606 enableval=$enable_fixed_point;
7607 else
7609 case $target in
7610 arm*)
7611 enable_fixed_point=yes
7614 mips*-*-*)
7615 enable_fixed_point=yes
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7619 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7620 enable_fixed_point=no
7622 esac
7628 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7630 cat >>confdefs.h <<_ACEOF
7631 #define ENABLE_FIXED_POINT $fixedpoint
7632 _ACEOF
7635 # Enable threads
7636 # Pass with no value to take the default
7637 # Pass with a value to specify a thread package
7638 # Check whether --enable-threads was given.
7639 if test "${enable_threads+set}" = set; then :
7640 enableval=$enable_threads;
7641 else
7642 enable_threads=''
7646 # Check whether --enable-tls was given.
7647 if test "${enable_tls+set}" = set; then :
7648 enableval=$enable_tls;
7649 case $enable_tls in
7650 yes | no) ;;
7651 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7652 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7653 esac
7655 else
7656 enable_tls=''
7660 # Check whether --enable-vtable-verify was given.
7661 if test "${enable_vtable_verify+set}" = set; then :
7662 enableval=$enable_vtable_verify;
7663 else
7664 enable_vtable_verify=no
7667 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7669 cat >>confdefs.h <<_ACEOF
7670 #define ENABLE_VTABLE_VERIFY $vtable_verify
7671 _ACEOF
7674 # Check whether --enable-objc-gc was given.
7675 if test "${enable_objc_gc+set}" = set; then :
7676 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7677 objc_boehm_gc=''
7678 else
7679 objc_boehm_gc=1
7681 else
7682 objc_boehm_gc=''
7687 # Check whether --with-dwarf2 was given.
7688 if test "${with_dwarf2+set}" = set; then :
7689 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7690 else
7691 dwarf2=no
7695 # Check whether --enable-shared was given.
7696 if test "${enable_shared+set}" = set; then :
7697 enableval=$enable_shared;
7698 case $enable_shared in
7699 yes | no) ;;
7701 enable_shared=no
7702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7703 for pkg in $enableval; do
7704 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7705 enable_shared=yes
7707 done
7708 IFS="$ac_save_ifs"
7710 esac
7712 else
7713 enable_shared=yes
7718 # Check whether --enable-gcov was given.
7719 if test "${enable_gcov+set}" = set; then :
7720 enableval=$enable_gcov;
7721 else
7722 enable_gcov=yes
7728 # Check whether --with-specs was given.
7729 if test "${with_specs+set}" = set; then :
7730 withval=$with_specs; CONFIGURE_SPECS=$withval
7731 else
7732 CONFIGURE_SPECS=
7740 # Check whether --with-pkgversion was given.
7741 if test "${with_pkgversion+set}" = set; then :
7742 withval=$with_pkgversion; case "$withval" in
7743 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7744 no) PKGVERSION= ;;
7745 *) PKGVERSION="($withval) " ;;
7746 esac
7747 else
7748 PKGVERSION="(GCC) "
7756 # Check whether --with-bugurl was given.
7757 if test "${with_bugurl+set}" = set; then :
7758 withval=$with_bugurl; case "$withval" in
7759 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7760 no) BUGURL=
7762 *) BUGURL="$withval"
7764 esac
7765 else
7766 BUGURL="https://gcc.gnu.org/bugs/"
7770 case ${BUGURL} in
7772 REPORT_BUGS_TO=
7773 REPORT_BUGS_TEXI=
7776 REPORT_BUGS_TO="<$BUGURL>"
7777 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7779 esac;
7784 # Sanity check enable_languages in case someone does not run the toplevel
7785 # configure # script.
7786 # Check whether --enable-languages was given.
7787 if test "${enable_languages+set}" = set; then :
7788 enableval=$enable_languages; case ,${enable_languages}, in
7789 ,,|,yes,)
7790 # go safe -- we cannot be much sure without the toplevel
7791 # configure's
7792 # analysis of which target libs are present and usable
7793 enable_languages=c
7795 *,all,*)
7796 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7798 *,c,*)
7801 enable_languages=c,${enable_languages}
7803 esac
7804 else
7805 enable_languages=c
7809 if test x"$enable_as_accelerator_for" != x; then
7811 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7813 enable_as_accelerator=yes
7814 case "${target}" in
7815 *-intelmicemul-*)
7816 # In this case we expect offload compiler to be built as native, so we
7817 # need to rename the driver to avoid clashes with host's drivers.
7818 program_transform_name="s&^&${target}-&" ;;
7819 esac
7820 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7821 program_transform_name=`echo $program_transform_name | sed $sedscript`
7822 accel_dir_suffix=/accel/${target_noncanonical}
7823 real_target_noncanonical=${enable_as_accelerator_for}
7829 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7830 tgt=`echo $tgt | sed 's/=.*//'`
7832 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7833 enable_hsa=1
7834 else
7835 enable_offloading=1
7838 if test x"$offload_targets" = x; then
7839 offload_targets=$tgt
7840 else
7841 offload_targets="$offload_targets,$tgt"
7843 done
7845 cat >>confdefs.h <<_ACEOF
7846 #define OFFLOAD_TARGETS "$offload_targets"
7847 _ACEOF
7849 if test x"$enable_offloading" != x; then
7851 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7853 else
7855 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7859 if test x"$enable_hsa" = x1 ; then
7861 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7866 # Check whether --with-multilib-list was given.
7867 if test "${with_multilib_list+set}" = set; then :
7868 withval=$with_multilib_list; :
7869 else
7870 with_multilib_list=default
7874 # -------------------------
7875 # Checks for other programs
7876 # -------------------------
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7879 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7880 set x ${MAKE-make}
7881 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7882 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 cat >conftest.make <<\_ACEOF
7886 SHELL = /bin/sh
7887 all:
7888 @echo '@@@%%%=$(MAKE)=@@@%%%'
7889 _ACEOF
7890 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7891 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7892 *@@@%%%=?*=@@@%%%*)
7893 eval ac_cv_prog_make_${ac_make}_set=yes;;
7895 eval ac_cv_prog_make_${ac_make}_set=no;;
7896 esac
7897 rm -f conftest.make
7899 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7901 $as_echo "yes" >&6; }
7902 SET_MAKE=
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 SET_MAKE="MAKE=${MAKE-make}"
7910 # Find some useful tools
7911 for ac_prog in gawk mawk nawk awk
7913 # Extract the first word of "$ac_prog", so it can be a program name with args.
7914 set dummy $ac_prog; ac_word=$2
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 $as_echo_n "checking for $ac_word... " >&6; }
7917 if ${ac_cv_prog_AWK+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 if test -n "$AWK"; then
7921 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7922 else
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930 ac_cv_prog_AWK="$ac_prog"
7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 break 2
7934 done
7935 done
7936 IFS=$as_save_IFS
7940 AWK=$ac_cv_prog_AWK
7941 if test -n "$AWK"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7943 $as_echo "$AWK" >&6; }
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7950 test -n "$AWK" && break
7951 done
7953 # We need awk to create options.c and options.h.
7954 # Bail out if it's missing.
7955 case ${AWK} in
7956 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
7957 esac
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7960 $as_echo_n "checking whether ln -s works... " >&6; }
7961 if ${gcc_cv_prog_LN_S+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 rm -f conftestdata_t
7965 echo >conftestdata_f
7966 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7967 then
7968 gcc_cv_prog_LN_S="ln -s"
7969 else
7970 if ln conftestdata_f conftestdata_t 2>/dev/null
7971 then
7972 gcc_cv_prog_LN_S=ln
7973 else
7974 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7975 then
7976 gcc_cv_prog_LN_S="cp -p"
7977 else
7978 gcc_cv_prog_LN_S=cp
7982 rm -f conftestdata_f conftestdata_t
7985 LN_S="$gcc_cv_prog_LN_S"
7986 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7988 $as_echo "yes" >&6; }
7989 else
7990 if test "$gcc_cv_prog_LN_S" = "ln"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7992 $as_echo "no, using ln" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7995 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8000 $as_echo_n "checking whether ln works... " >&6; }
8001 if ${acx_cv_prog_LN+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 rm -f conftestdata_t
8005 echo >conftestdata_f
8006 if ln conftestdata_f conftestdata_t 2>/dev/null
8007 then
8008 acx_cv_prog_LN=ln
8009 else
8010 acx_cv_prog_LN=no
8012 rm -f conftestdata_f conftestdata_t
8015 if test $acx_cv_prog_LN = no; then
8016 LN="$LN_S"
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8018 $as_echo "no, using $LN" >&6; }
8019 else
8020 LN="$acx_cv_prog_LN"
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8022 $as_echo "yes" >&6; }
8025 if test -n "$ac_tool_prefix"; then
8026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8027 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if ${ac_cv_prog_RANLIB+:} false; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 if test -n "$RANLIB"; then
8034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8035 else
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 break 2
8047 done
8048 done
8049 IFS=$as_save_IFS
8053 RANLIB=$ac_cv_prog_RANLIB
8054 if test -n "$RANLIB"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8056 $as_echo "$RANLIB" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8064 if test -z "$ac_cv_prog_RANLIB"; then
8065 ac_ct_RANLIB=$RANLIB
8066 # Extract the first word of "ranlib", so it can be a program name with args.
8067 set dummy ranlib; ac_word=$2
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 $as_echo_n "checking for $ac_word... " >&6; }
8070 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 if test -n "$ac_ct_RANLIB"; then
8074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_prog_ac_ct_RANLIB="ranlib"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8087 done
8088 done
8089 IFS=$as_save_IFS
8093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8094 if test -n "$ac_ct_RANLIB"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8096 $as_echo "$ac_ct_RANLIB" >&6; }
8097 else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8102 if test "x$ac_ct_RANLIB" = x; then
8103 RANLIB=":"
8104 else
8105 case $cross_compiling:$ac_tool_warned in
8106 yes:)
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8109 ac_tool_warned=yes ;;
8110 esac
8111 RANLIB=$ac_ct_RANLIB
8113 else
8114 RANLIB="$ac_cv_prog_RANLIB"
8117 ranlib_flags=""
8120 # Find a good install program. We prefer a C program (faster),
8121 # so one script is as good as another. But avoid the broken or
8122 # incompatible versions:
8123 # SysV /etc/install, /usr/sbin/install
8124 # SunOS /usr/etc/install
8125 # IRIX /sbin/install
8126 # AIX /bin/install
8127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8129 # ./install, which can be erroneously created by make from ./install.sh.
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8131 $as_echo_n "checking for a BSD compatible install... " >&6; }
8132 if test -z "$INSTALL"; then
8133 if ${ac_cv_path_install+:} false; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8137 for ac_dir in $PATH; do
8138 # Account for people who put trailing slashes in PATH elements.
8139 case "$ac_dir/" in
8140 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8142 # OSF1 and SCO ODT 3.0 have their own names for install.
8143 for ac_prog in ginstall scoinst install; do
8144 if test -f $ac_dir/$ac_prog; then
8145 if test $ac_prog = install &&
8146 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8147 # AIX install. It has an incompatible calling convention.
8148 # OSF/1 installbsd also uses dspmsg, but is usable.
8150 else
8151 ac_cv_path_install="$ac_dir/$ac_prog -c"
8152 break 2
8155 done
8157 esac
8158 done
8159 IFS="$ac_save_IFS"
8162 if test "${ac_cv_path_install+set}" = set; then
8163 INSTALL="$ac_cv_path_install"
8164 else
8165 # As a last resort, use the slow shell script. We don't cache a
8166 # path for INSTALL within a source directory, because that will
8167 # break other packages using the cache if that directory is
8168 # removed, or if the path is relative.
8169 INSTALL="$ac_install_sh"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8173 $as_echo "$INSTALL" >&6; }
8175 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8176 # It thinks the first close brace ends the variable substitution.
8177 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8179 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8182 # See if cmp has --ignore-initial.
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8184 $as_echo_n "checking for cmp's capabilities... " >&6; }
8185 if ${gcc_cv_prog_cmp_skip+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 echo abfoo >t1
8189 echo cdfoo >t2
8190 gcc_cv_prog_cmp_skip=slowcompare
8191 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8192 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8194 else
8195 gcc_cv_prog_cmp_skip=gnucompare
8198 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8199 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8200 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8202 else
8203 gcc_cv_prog_cmp_skip=fastcompare
8207 rm t1 t2
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8211 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8212 make_compare_target=$gcc_cv_prog_cmp_skip
8216 # See if we have the mktemp command.
8217 # Extract the first word of "mktemp", so it can be a program name with args.
8218 set dummy mktemp; ac_word=$2
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220 $as_echo_n "checking for $ac_word... " >&6; }
8221 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 if test -n "$have_mktemp_command"; then
8225 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8234 ac_cv_prog_have_mktemp_command="yes"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8238 done
8239 done
8240 IFS=$as_save_IFS
8242 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8245 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8246 if test -n "$have_mktemp_command"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8248 $as_echo "$have_mktemp_command" >&6; }
8249 else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8256 # See if makeinfo has been installed and is modern enough
8257 # that we can use it.
8259 # Extract the first word of "makeinfo", so it can be a program name with args.
8260 set dummy makeinfo; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if ${ac_cv_prog_MAKEINFO+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 if test -n "$MAKEINFO"; then
8267 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_MAKEINFO="makeinfo"
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8280 done
8281 done
8282 IFS=$as_save_IFS
8286 MAKEINFO=$ac_cv_prog_MAKEINFO
8287 if test -n "$MAKEINFO"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8289 $as_echo "$MAKEINFO" >&6; }
8290 else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8296 if test -n "$MAKEINFO"; then
8297 # Found it, now check the version.
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8299 $as_echo_n "checking for modern makeinfo... " >&6; }
8300 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8304 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8306 case $ac_prog_version in
8307 '') gcc_cv_prog_makeinfo_modern=no;;
8308 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8309 *) gcc_cv_prog_makeinfo_modern=no;;
8310 esac
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8314 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8315 else
8316 gcc_cv_prog_makeinfo_modern=no
8318 if test $gcc_cv_prog_makeinfo_modern = no; then
8319 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8322 if test $gcc_cv_prog_makeinfo_modern = no; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8324 *** Makeinfo is missing or too old.
8325 *** Info documentation will not be built." >&5
8326 $as_echo "$as_me: WARNING:
8327 *** Makeinfo is missing or too old.
8328 *** Info documentation will not be built." >&2;}
8329 BUILD_INFO=
8330 else
8331 BUILD_INFO=info
8335 # Is pod2man recent enough to regenerate manpages?
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8337 $as_echo_n "checking for recent Pod::Man... " >&6; }
8338 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8340 $as_echo "yes" >&6; }
8341 GENERATED_MANPAGES=generated-manpages
8342 else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8345 GENERATED_MANPAGES=
8349 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8351 # How about lex?
8352 for ac_prog in flex
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355 set dummy $ac_prog; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_FLEX+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$FLEX"; then
8362 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_FLEX="$ac_prog"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8375 done
8376 done
8377 IFS=$as_save_IFS
8381 FLEX=$ac_cv_prog_FLEX
8382 if test -n "$FLEX"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8384 $as_echo "$FLEX" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8391 test -n "$FLEX" && break
8392 done
8393 test -n "$FLEX" || FLEX="$MISSING flex"
8396 # Bison?
8397 for ac_prog in bison
8399 # Extract the first word of "$ac_prog", so it can be a program name with args.
8400 set dummy $ac_prog; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_prog_BISON+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 if test -n "$BISON"; then
8407 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8408 else
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8416 ac_cv_prog_BISON="$ac_prog"
8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 break 2
8420 done
8421 done
8422 IFS=$as_save_IFS
8426 BISON=$ac_cv_prog_BISON
8427 if test -n "$BISON"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8429 $as_echo "$BISON" >&6; }
8430 else
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8436 test -n "$BISON" && break
8437 done
8438 test -n "$BISON" || BISON="$MISSING bison"
8441 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8442 # check for build == host before using them.
8444 # NM
8445 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8446 && test -d ../binutils ; then
8447 NM='${objdir}/../binutils/nm-new'
8448 else
8449 # Extract the first word of "nm", so it can be a program name with args.
8450 set dummy nm; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if ${ac_cv_prog_NM+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 if test -n "$NM"; then
8457 ac_cv_prog_NM="$NM" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8466 ac_cv_prog_NM="nm"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8470 done
8471 done
8472 IFS=$as_save_IFS
8474 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8477 NM=$ac_cv_prog_NM
8478 if test -n "$NM"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8480 $as_echo "$NM" >&6; }
8481 else
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8489 # AR
8490 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8491 && test -d ../binutils ; then
8492 AR='${objdir}/../binutils/ar'
8493 else
8494 # Extract the first word of "ar", so it can be a program name with args.
8495 set dummy ar; ac_word=$2
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497 $as_echo_n "checking for $ac_word... " >&6; }
8498 if ${ac_cv_prog_AR+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 if test -n "$AR"; then
8502 ac_cv_prog_AR="$AR" # Let the user override the test.
8503 else
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511 ac_cv_prog_AR="ar"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8515 done
8516 done
8517 IFS=$as_save_IFS
8519 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8522 AR=$ac_cv_prog_AR
8523 if test -n "$AR"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8525 $as_echo "$AR" >&6; }
8526 else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8534 # The jit documentation looks better if built with sphinx, but can be
8535 # built with texinfo if sphinx is not available.
8536 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8537 # Extract the first word of "sphinx-build", so it can be a program name with args.
8538 set dummy sphinx-build; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_doc_build_sys+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 if test -n "$doc_build_sys"; then
8545 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8546 else
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_doc_build_sys="sphinx"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8558 done
8559 done
8560 IFS=$as_save_IFS
8562 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8565 doc_build_sys=$ac_cv_prog_doc_build_sys
8566 if test -n "$doc_build_sys"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8568 $as_echo "$doc_build_sys" >&6; }
8569 else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8576 # --------------------
8577 # Checks for C headers
8578 # --------------------
8580 # Need to reject headers which give warnings, so that the -Werror bootstrap
8581 # works later. *sigh* This needs to come before all header checks.
8583 ac_c_preproc_warn_flag=yes
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8586 $as_echo_n "checking for ANSI C header files... " >&6; }
8587 if ${ac_cv_header_stdc+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 #include <stdlib.h>
8593 #include <stdarg.h>
8594 #include <string.h>
8595 #include <float.h>
8598 main ()
8602 return 0;
8604 _ACEOF
8605 if ac_fn_cxx_try_compile "$LINENO"; then :
8606 ac_cv_header_stdc=yes
8607 else
8608 ac_cv_header_stdc=no
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 if test $ac_cv_header_stdc = yes; then
8613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <string.h>
8618 _ACEOF
8619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8620 $EGREP "memchr" >/dev/null 2>&1; then :
8622 else
8623 ac_cv_header_stdc=no
8625 rm -f conftest*
8629 if test $ac_cv_header_stdc = yes; then
8630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 #include <stdlib.h>
8635 _ACEOF
8636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8637 $EGREP "free" >/dev/null 2>&1; then :
8639 else
8640 ac_cv_header_stdc=no
8642 rm -f conftest*
8646 if test $ac_cv_header_stdc = yes; then
8647 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8648 if test "$cross_compiling" = yes; then :
8650 else
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #include <ctype.h>
8654 #include <stdlib.h>
8655 #if ((' ' & 0x0FF) == 0x020)
8656 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8657 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8658 #else
8659 # define ISLOWER(c) \
8660 (('a' <= (c) && (c) <= 'i') \
8661 || ('j' <= (c) && (c) <= 'r') \
8662 || ('s' <= (c) && (c) <= 'z'))
8663 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8664 #endif
8666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8668 main ()
8670 int i;
8671 for (i = 0; i < 256; i++)
8672 if (XOR (islower (i), ISLOWER (i))
8673 || toupper (i) != TOUPPER (i))
8674 return 2;
8675 return 0;
8677 _ACEOF
8678 if ac_fn_cxx_try_run "$LINENO"; then :
8680 else
8681 ac_cv_header_stdc=no
8683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8684 conftest.$ac_objext conftest.beam conftest.$ac_ext
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8690 $as_echo "$ac_cv_header_stdc" >&6; }
8691 if test $ac_cv_header_stdc = yes; then
8693 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8698 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8699 if ${ac_cv_header_time+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 #include <sys/types.h>
8705 #include <sys/time.h>
8706 #include <time.h>
8709 main ()
8711 if ((struct tm *) 0)
8712 return 0;
8714 return 0;
8716 _ACEOF
8717 if ac_fn_cxx_try_compile "$LINENO"; then :
8718 ac_cv_header_time=yes
8719 else
8720 ac_cv_header_time=no
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8725 $as_echo "$ac_cv_header_time" >&6; }
8726 if test $ac_cv_header_time = yes; then
8728 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8733 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8734 if ${gcc_cv_header_string+:} false; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #include <string.h>
8740 #include <strings.h>
8742 main ()
8746 return 0;
8748 _ACEOF
8749 if ac_fn_cxx_try_compile "$LINENO"; then :
8750 gcc_cv_header_string=yes
8751 else
8752 gcc_cv_header_string=no
8754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8757 $as_echo "$gcc_cv_header_string" >&6; }
8758 if test $gcc_cv_header_string = yes; then
8760 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8765 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8766 if ${ac_cv_header_sys_wait_h+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 #include <sys/types.h>
8772 #include <sys/wait.h>
8773 #ifndef WEXITSTATUS
8774 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8775 #endif
8776 #ifndef WIFEXITED
8777 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8778 #endif
8781 main ()
8783 int s;
8784 wait (&s);
8785 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8787 return 0;
8789 _ACEOF
8790 if ac_fn_cxx_try_compile "$LINENO"; then :
8791 ac_cv_header_sys_wait_h=yes
8792 else
8793 ac_cv_header_sys_wait_h=no
8795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8798 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8799 if test $ac_cv_header_sys_wait_h = yes; then
8801 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8806 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8807 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 #include <sys/types.h>
8813 #include <termios.h>
8814 #ifdef TIOCGWINSZ
8816 #endif
8818 _ACEOF
8819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8820 $EGREP "yes" >/dev/null 2>&1; then :
8821 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8822 else
8823 ac_cv_sys_tiocgwinsz_in_termios_h=no
8825 rm -f conftest*
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8829 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8831 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8833 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8834 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839 #include <sys/types.h>
8840 #include <sys/ioctl.h>
8841 #ifdef TIOCGWINSZ
8843 #endif
8845 _ACEOF
8846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8847 $EGREP "yes" >/dev/null 2>&1; then :
8848 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8849 else
8850 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8852 rm -f conftest*
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8856 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8858 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8860 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8865 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8866 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8867 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8868 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8869 do :
8870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8871 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8873 cat >>confdefs.h <<_ACEOF
8874 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8875 _ACEOF
8878 done
8881 # Check for thread headers.
8882 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8883 if test "x$ac_cv_header_thread_h" = xyes; then :
8884 have_thread_h=yes
8885 else
8886 have_thread_h=
8889 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8890 if test "x$ac_cv_header_pthread_h" = xyes; then :
8891 have_pthread_h=yes
8892 else
8893 have_pthread_h=
8897 # These tests can't be done till we know if we have limits.h.
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8899 $as_echo_n "checking for CHAR_BIT... " >&6; }
8900 if ${gcc_cv_decl_char_bit+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 #ifdef HAVE_LIMITS_H
8906 #include <limits.h>
8907 #endif
8908 #ifdef CHAR_BIT
8909 found
8910 #endif
8911 _ACEOF
8912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8913 $EGREP "found" >/dev/null 2>&1; then :
8914 gcc_cv_decl_char_bit=yes
8915 else
8916 gcc_cv_decl_char_bit=no
8918 rm -f conftest*
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8923 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8924 if test $gcc_cv_decl_char_bit = no; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8926 $as_echo_n "checking number of bits in a byte... " >&6; }
8927 if ${gcc_cv_c_nbby+:} false; then :
8928 $as_echo_n "(cached) " >&6
8929 else
8931 gcc_cv_c_nbby=
8932 while test $i -lt 65; do
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8937 main ()
8939 switch(0) {
8940 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8941 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8944 return 0;
8946 _ACEOF
8947 if ac_fn_cxx_try_compile "$LINENO"; then :
8948 gcc_cv_c_nbby=$i; break
8950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8951 i=`expr $i + 1`
8952 done
8953 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8957 $as_echo "$gcc_cv_c_nbby" >&6; }
8958 if test $gcc_cv_c_nbby = failed; then
8959 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
8960 else
8962 cat >>confdefs.h <<_ACEOF
8963 #define CHAR_BIT $gcc_cv_c_nbby
8964 _ACEOF
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8969 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8970 if ${ac_cv_c_bigendian+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 ac_cv_c_bigendian=unknown
8974 # See if we're dealing with a universal compiler.
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 #ifndef __APPLE_CC__
8978 not a universal capable compiler
8979 #endif
8980 typedef int dummy;
8982 _ACEOF
8983 if ac_fn_cxx_try_compile "$LINENO"; then :
8985 # Check for potential -arch flags. It is not universal unless
8986 # there are at least two -arch flags with different values.
8987 ac_arch=
8988 ac_prev=
8989 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8990 if test -n "$ac_prev"; then
8991 case $ac_word in
8992 i?86 | x86_64 | ppc | ppc64)
8993 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8994 ac_arch=$ac_word
8995 else
8996 ac_cv_c_bigendian=universal
8997 break
9000 esac
9001 ac_prev=
9002 elif test "x$ac_word" = "x-arch"; then
9003 ac_prev=arch
9005 done
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 if test $ac_cv_c_bigendian = unknown; then
9009 # See if sys/param.h defines the BYTE_ORDER macro.
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9012 #include <sys/types.h>
9013 #include <sys/param.h>
9016 main ()
9018 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9019 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9020 && LITTLE_ENDIAN)
9021 bogus endian macros
9022 #endif
9025 return 0;
9027 _ACEOF
9028 if ac_fn_cxx_try_compile "$LINENO"; then :
9029 # It does; now see whether it defined to BIG_ENDIAN or not.
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 #include <sys/types.h>
9033 #include <sys/param.h>
9036 main ()
9038 #if BYTE_ORDER != BIG_ENDIAN
9039 not big endian
9040 #endif
9043 return 0;
9045 _ACEOF
9046 if ac_fn_cxx_try_compile "$LINENO"; then :
9047 ac_cv_c_bigendian=yes
9048 else
9049 ac_cv_c_bigendian=no
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055 if test $ac_cv_c_bigendian = unknown; then
9056 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9059 #include <limits.h>
9062 main ()
9064 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9065 bogus endian macros
9066 #endif
9069 return 0;
9071 _ACEOF
9072 if ac_fn_cxx_try_compile "$LINENO"; then :
9073 # It does; now see whether it defined to _BIG_ENDIAN or not.
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #include <limits.h>
9079 main ()
9081 #ifndef _BIG_ENDIAN
9082 not big endian
9083 #endif
9086 return 0;
9088 _ACEOF
9089 if ac_fn_cxx_try_compile "$LINENO"; then :
9090 ac_cv_c_bigendian=yes
9091 else
9092 ac_cv_c_bigendian=no
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 if test $ac_cv_c_bigendian = unknown; then
9099 # Compile a test program.
9100 if test "$cross_compiling" = yes; then :
9101 # Try to guess by grepping values from an object file.
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 short int ascii_mm[] =
9105 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9106 short int ascii_ii[] =
9107 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9108 int use_ascii (int i) {
9109 return ascii_mm[i] + ascii_ii[i];
9111 short int ebcdic_ii[] =
9112 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9113 short int ebcdic_mm[] =
9114 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9115 int use_ebcdic (int i) {
9116 return ebcdic_mm[i] + ebcdic_ii[i];
9118 extern int foo;
9121 main ()
9123 return use_ascii (foo) == use_ebcdic (foo);
9125 return 0;
9127 _ACEOF
9128 if ac_fn_cxx_try_compile "$LINENO"; then :
9129 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9130 ac_cv_c_bigendian=yes
9132 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9133 if test "$ac_cv_c_bigendian" = unknown; then
9134 ac_cv_c_bigendian=no
9135 else
9136 # finding both strings is unlikely to happen, but who knows?
9137 ac_cv_c_bigendian=unknown
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 else
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 $ac_includes_default
9147 main ()
9150 /* Are we little or big endian? From Harbison&Steele. */
9151 union
9153 long int l;
9154 char c[sizeof (long int)];
9155 } u;
9156 u.l = 1;
9157 return u.c[sizeof (long int) - 1] == 1;
9160 return 0;
9162 _ACEOF
9163 if ac_fn_cxx_try_run "$LINENO"; then :
9164 ac_cv_c_bigendian=no
9165 else
9166 ac_cv_c_bigendian=yes
9168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9169 conftest.$ac_objext conftest.beam conftest.$ac_ext
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9175 $as_echo "$ac_cv_c_bigendian" >&6; }
9176 case $ac_cv_c_bigendian in #(
9177 yes)
9178 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9179 ;; #(
9181 ;; #(
9182 universal)
9184 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9186 ;; #(
9188 as_fn_error $? "unknown endianness
9189 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9190 esac
9193 # ----------------------
9194 # Checks for C++ headers
9195 # ----------------------
9197 ac_ext=cpp
9198 ac_cpp='$CXXCPP $CPPFLAGS'
9199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9203 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9204 if test -z "$CXXCPP"; then
9205 if ${ac_cv_prog_CXXCPP+:} false; then :
9206 $as_echo_n "(cached) " >&6
9207 else
9208 # Double quotes because CXXCPP needs to be expanded
9209 for CXXCPP in "$CXX -E" "/lib/cpp"
9211 ac_preproc_ok=false
9212 for ac_cxx_preproc_warn_flag in '' yes
9214 # Use a header file that comes with gcc, so configuring glibc
9215 # with a fresh cross-compiler works.
9216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9217 # <limits.h> exists even on freestanding compilers.
9218 # On the NeXT, cc -E runs the code through the compiler's parser,
9219 # not just through cpp. "Syntax error" is here to catch this case.
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 #ifdef __STDC__
9223 # include <limits.h>
9224 #else
9225 # include <assert.h>
9226 #endif
9227 Syntax error
9228 _ACEOF
9229 if ac_fn_cxx_try_cpp "$LINENO"; then :
9231 else
9232 # Broken: fails on valid input.
9233 continue
9235 rm -f conftest.err conftest.i conftest.$ac_ext
9237 # OK, works on sane cases. Now check whether nonexistent headers
9238 # can be detected and how.
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241 #include <ac_nonexistent.h>
9242 _ACEOF
9243 if ac_fn_cxx_try_cpp "$LINENO"; then :
9244 # Broken: success on invalid input.
9245 continue
9246 else
9247 # Passes both tests.
9248 ac_preproc_ok=:
9249 break
9251 rm -f conftest.err conftest.i conftest.$ac_ext
9253 done
9254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9255 rm -f conftest.i conftest.err conftest.$ac_ext
9256 if $ac_preproc_ok; then :
9257 break
9260 done
9261 ac_cv_prog_CXXCPP=$CXXCPP
9264 CXXCPP=$ac_cv_prog_CXXCPP
9265 else
9266 ac_cv_prog_CXXCPP=$CXXCPP
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9269 $as_echo "$CXXCPP" >&6; }
9270 ac_preproc_ok=false
9271 for ac_cxx_preproc_warn_flag in '' yes
9273 # Use a header file that comes with gcc, so configuring glibc
9274 # with a fresh cross-compiler works.
9275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9276 # <limits.h> exists even on freestanding compilers.
9277 # On the NeXT, cc -E runs the code through the compiler's parser,
9278 # not just through cpp. "Syntax error" is here to catch this case.
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 #ifdef __STDC__
9282 # include <limits.h>
9283 #else
9284 # include <assert.h>
9285 #endif
9286 Syntax error
9287 _ACEOF
9288 if ac_fn_cxx_try_cpp "$LINENO"; then :
9290 else
9291 # Broken: fails on valid input.
9292 continue
9294 rm -f conftest.err conftest.i conftest.$ac_ext
9296 # OK, works on sane cases. Now check whether nonexistent headers
9297 # can be detected and how.
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 #include <ac_nonexistent.h>
9301 _ACEOF
9302 if ac_fn_cxx_try_cpp "$LINENO"; then :
9303 # Broken: success on invalid input.
9304 continue
9305 else
9306 # Passes both tests.
9307 ac_preproc_ok=:
9308 break
9310 rm -f conftest.err conftest.i conftest.$ac_ext
9312 done
9313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9314 rm -f conftest.i conftest.err conftest.$ac_ext
9315 if $ac_preproc_ok; then :
9317 else
9318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9321 See \`config.log' for more details" >&5
9322 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9323 See \`config.log' for more details" >&2;}; }
9326 ac_ext=cpp
9327 ac_cpp='$CXXCPP $CPPFLAGS'
9328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9333 for ac_header in unordered_map
9334 do :
9335 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9336 if test "x$ac_cv_header_unordered_map" = xyes; then :
9337 cat >>confdefs.h <<_ACEOF
9338 #define HAVE_UNORDERED_MAP 1
9339 _ACEOF
9342 done
9344 for ac_header in tr1/unordered_map
9345 do :
9346 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9347 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9348 cat >>confdefs.h <<_ACEOF
9349 #define HAVE_TR1_UNORDERED_MAP 1
9350 _ACEOF
9353 done
9355 for ac_header in ext/hash_map
9356 do :
9357 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9358 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9359 cat >>confdefs.h <<_ACEOF
9360 #define HAVE_EXT_HASH_MAP 1
9361 _ACEOF
9364 done
9367 # --------
9368 # Dependency checking.
9369 # --------
9371 rm -rf .tst 2>/dev/null
9372 mkdir .tst 2>/dev/null
9373 if test -d .tst; then
9374 am__leading_dot=.
9375 else
9376 am__leading_dot=_
9378 rmdir .tst 2>/dev/null
9380 DEPDIR="${am__leading_dot}deps"
9382 ac_config_commands="$ac_config_commands depdir"
9385 ac_config_commands="$ac_config_commands gccdepdir"
9388 depcc="$CXX" am_compiler_list=
9390 am_depcomp=$ac_aux_dir/depcomp
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9392 $as_echo_n "checking dependency style of $depcc... " >&6; }
9393 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 if test -f "$am_depcomp"; then
9397 # We make a subdir and do the tests there. Otherwise we can end up
9398 # making bogus files that we don't know about and never remove. For
9399 # instance it was reported that on HP-UX the gcc test will end up
9400 # making a dummy file named `D' -- because `-MD' means `put the output
9401 # in D'.
9402 mkdir conftest.dir
9403 # Copy depcomp to subdir because otherwise we won't find it if we're
9404 # using a relative directory.
9405 cp "$am_depcomp" conftest.dir
9406 cd conftest.dir
9407 # We will build objects and dependencies in a subdirectory because
9408 # it helps to detect inapplicable dependency modes. For instance
9409 # both Tru64's cc and ICC support -MD to output dependencies as a
9410 # side effect of compilation, but ICC will put the dependencies in
9411 # the current directory while Tru64 will put them in the object
9412 # directory.
9413 mkdir sub
9415 am_cv_CXX_dependencies_compiler_type=none
9416 if test "$am_compiler_list" = ""; then
9417 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9419 for depmode in $am_compiler_list; do
9420 if test $depmode = none; then break; fi
9422 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9423 # Setup a source with many dependencies, because some compilers
9424 # like to wrap large dependency lists on column 80 (with \), and
9425 # we should not choose a depcomp mode which is confused by this.
9427 # We need to recreate these files for each test, as the compiler may
9428 # overwrite some of them when testing with obscure command lines.
9429 # This happens at least with the AIX C compiler.
9430 : > sub/conftest.c
9431 for i in 1 2 3 4 5 6; do
9432 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9433 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9434 # Solaris 8's {/usr,}/bin/sh.
9435 touch sub/conftst$i.h
9436 done
9437 echo "include sub/conftest.Po" > confmf
9439 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9440 # mode. It turns out that the SunPro C++ compiler does not properly
9441 # handle `-M -o', and we need to detect this.
9442 depcmd="depmode=$depmode \
9443 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9444 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9445 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9446 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9447 if env $depcmd > conftest.err 2>&1 &&
9448 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9449 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9450 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9451 # icc doesn't choke on unknown options, it will just issue warnings
9452 # or remarks (even with -Werror). So we grep stderr for any message
9453 # that says an option was ignored or not supported.
9454 # When given -MP, icc 7.0 and 7.1 complain thusly:
9455 # icc: Command line warning: ignoring option '-M'; no argument required
9456 # The diagnosis changed in icc 8.0:
9457 # icc: Command line remark: option '-MP' not supported
9458 if (grep 'ignoring option' conftest.err ||
9459 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9460 am_cv_CXX_dependencies_compiler_type=$depmode
9461 $as_echo "$as_me:$LINENO: success" >&5
9462 break
9465 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9466 sed -e 's/^/| /' < conftest.err >&5
9467 done
9469 cd ..
9470 rm -rf conftest.dir
9471 else
9472 am_cv_CXX_dependencies_compiler_type=none
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9477 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9478 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9479 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9480 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9485 # --------
9486 # UNSORTED
9487 # --------
9490 # These libraries may be used by collect2.
9491 # We may need a special search path to get them linked.
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9493 $as_echo_n "checking for collect2 libraries... " >&6; }
9494 if ${gcc_cv_collect2_libs+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 save_LIBS="$LIBS"
9498 for libs in '' -lld -lmld \
9499 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9500 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9502 LIBS="$libs"
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9506 /* Override any GCC internal prototype to avoid an error.
9507 Use char because int might match the return type of a GCC
9508 builtin and then its argument prototype would still apply. */
9509 #ifdef __cplusplus
9510 extern "C"
9511 #endif
9512 char ldopen ();
9514 main ()
9516 return ldopen ();
9518 return 0;
9520 _ACEOF
9521 if ac_fn_cxx_try_link "$LINENO"; then :
9522 gcc_cv_collect2_libs="$libs"; break
9524 rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526 done
9527 LIBS="$save_LIBS"
9528 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9531 $as_echo "$gcc_cv_collect2_libs" >&6; }
9532 case $gcc_cv_collect2_libs in
9533 "none required") ;;
9534 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9535 esac
9538 # When building Ada code on Alpha, we need exc_resume which is usually in
9539 # -lexc. So test for it.
9540 save_LIBS="$LIBS"
9541 LIBS=
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9543 $as_echo_n "checking for library containing exc_resume... " >&6; }
9544 if ${ac_cv_search_exc_resume+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 ac_func_search_save_LIBS=$LIBS
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9551 /* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9554 #ifdef __cplusplus
9555 extern "C"
9556 #endif
9557 char exc_resume ();
9559 main ()
9561 return exc_resume ();
9563 return 0;
9565 _ACEOF
9566 for ac_lib in '' exc; do
9567 if test -z "$ac_lib"; then
9568 ac_res="none required"
9569 else
9570 ac_res=-l$ac_lib
9571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9573 if ac_fn_cxx_try_link "$LINENO"; then :
9574 ac_cv_search_exc_resume=$ac_res
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext
9578 if ${ac_cv_search_exc_resume+:} false; then :
9579 break
9581 done
9582 if ${ac_cv_search_exc_resume+:} false; then :
9584 else
9585 ac_cv_search_exc_resume=no
9587 rm conftest.$ac_ext
9588 LIBS=$ac_func_search_save_LIBS
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9591 $as_echo "$ac_cv_search_exc_resume" >&6; }
9592 ac_res=$ac_cv_search_exc_resume
9593 if test "$ac_res" != no; then :
9594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9598 GNAT_LIBEXC="$LIBS"
9599 LIBS="$save_LIBS"
9602 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9603 save_LIBS="$LIBS"
9604 LIBS=
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9606 $as_echo_n "checking for library containing kstat_open... " >&6; }
9607 if ${ac_cv_search_kstat_open+:} false; then :
9608 $as_echo_n "(cached) " >&6
9609 else
9610 ac_func_search_save_LIBS=$LIBS
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9614 /* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */
9617 #ifdef __cplusplus
9618 extern "C"
9619 #endif
9620 char kstat_open ();
9622 main ()
9624 return kstat_open ();
9626 return 0;
9628 _ACEOF
9629 for ac_lib in '' kstat; do
9630 if test -z "$ac_lib"; then
9631 ac_res="none required"
9632 else
9633 ac_res=-l$ac_lib
9634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9636 if ac_fn_cxx_try_link "$LINENO"; then :
9637 ac_cv_search_kstat_open=$ac_res
9639 rm -f core conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext
9641 if ${ac_cv_search_kstat_open+:} false; then :
9642 break
9644 done
9645 if ${ac_cv_search_kstat_open+:} false; then :
9647 else
9648 ac_cv_search_kstat_open=no
9650 rm conftest.$ac_ext
9651 LIBS=$ac_func_search_save_LIBS
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9654 $as_echo "$ac_cv_search_kstat_open" >&6; }
9655 ac_res=$ac_cv_search_kstat_open
9656 if test "$ac_res" != no; then :
9657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9661 EXTRA_GCC_LIBS="$LIBS"
9662 LIBS="$save_LIBS"
9665 # Some systems put ldexp and frexp in libm instead of libc; assume
9666 # they're both in the same place. jcf-dump needs them.
9667 save_LIBS="$LIBS"
9668 LIBS=
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9670 $as_echo_n "checking for library containing ldexp... " >&6; }
9671 if ${ac_cv_search_ldexp+:} false; then :
9672 $as_echo_n "(cached) " >&6
9673 else
9674 ac_func_search_save_LIBS=$LIBS
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9678 /* Override any GCC internal prototype to avoid an error.
9679 Use char because int might match the return type of a GCC
9680 builtin and then its argument prototype would still apply. */
9681 #ifdef __cplusplus
9682 extern "C"
9683 #endif
9684 char ldexp ();
9686 main ()
9688 return ldexp ();
9690 return 0;
9692 _ACEOF
9693 for ac_lib in '' m; do
9694 if test -z "$ac_lib"; then
9695 ac_res="none required"
9696 else
9697 ac_res=-l$ac_lib
9698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9700 if ac_fn_cxx_try_link "$LINENO"; then :
9701 ac_cv_search_ldexp=$ac_res
9703 rm -f core conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext
9705 if ${ac_cv_search_ldexp+:} false; then :
9706 break
9708 done
9709 if ${ac_cv_search_ldexp+:} false; then :
9711 else
9712 ac_cv_search_ldexp=no
9714 rm conftest.$ac_ext
9715 LIBS=$ac_func_search_save_LIBS
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9718 $as_echo "$ac_cv_search_ldexp" >&6; }
9719 ac_res=$ac_cv_search_ldexp
9720 if test "$ac_res" != no; then :
9721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9725 LDEXP_LIB="$LIBS"
9726 LIBS="$save_LIBS"
9729 # Use <inttypes.h> only if it exists,
9730 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9731 # PRId64
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9733 $as_echo_n "checking for inttypes.h... " >&6; }
9734 if ${gcc_cv_header_inttypes_h+:} false; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9739 #define __STDC_FORMAT_MACROS
9740 #include <sys/types.h>
9741 #include <inttypes.h>
9743 main ()
9745 intmax_t i = -1;
9746 #ifndef PRId64
9747 choke me
9748 #endif
9750 return 0;
9752 _ACEOF
9753 if ac_fn_cxx_try_compile "$LINENO"; then :
9754 gcc_cv_header_inttypes_h=yes
9755 else
9756 gcc_cv_header_inttypes_h=no
9758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9762 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9763 if test $gcc_cv_header_inttypes_h = yes; then
9765 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9771 for ac_func in times clock kill getrlimit setrlimit atoq \
9772 popen sysconf strsignal getrusage nl_langinfo \
9773 gettimeofday mbstowcs wcswidth mmap setlocale \
9774 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
9775 do :
9776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9777 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9778 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9779 cat >>confdefs.h <<_ACEOF
9780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9781 _ACEOF
9784 done
9787 if test x$ac_cv_func_mbstowcs = xyes; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9789 $as_echo_n "checking whether mbstowcs works... " >&6; }
9790 if ${gcc_cv_func_mbstowcs_works+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 if test "$cross_compiling" = yes; then :
9794 gcc_cv_func_mbstowcs_works=yes
9795 else
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 #include <stdlib.h>
9799 int main()
9801 mbstowcs(0, "", 0);
9802 return 0;
9804 _ACEOF
9805 if ac_fn_cxx_try_run "$LINENO"; then :
9806 gcc_cv_func_mbstowcs_works=yes
9807 else
9808 gcc_cv_func_mbstowcs_works=no
9810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9811 conftest.$ac_objext conftest.beam conftest.$ac_ext
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9816 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9817 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9819 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9824 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9825 if test "x$ac_cv_type_ssize_t" = xyes; then :
9827 else
9829 cat >>confdefs.h <<_ACEOF
9830 #define ssize_t int
9831 _ACEOF
9835 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9836 if test "x$ac_cv_type_caddr_t" = xyes; then :
9838 else
9840 cat >>confdefs.h <<_ACEOF
9841 #define caddr_t char *
9842 _ACEOF
9848 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9849 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9850 gcc_header_sys_mman_h=yes
9851 else
9852 gcc_header_sys_mman_h=no
9855 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9856 if test "x$ac_cv_func_mmap" = xyes; then :
9857 gcc_func_mmap=yes
9858 else
9859 gcc_func_mmap=no
9862 if test "$gcc_header_sys_mman_h" != yes \
9863 || test "$gcc_func_mmap" != yes; then
9864 gcc_cv_func_mmap_file=no
9865 gcc_cv_func_mmap_dev_zero=no
9866 gcc_cv_func_mmap_anon=no
9867 else
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9869 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9870 if ${gcc_cv_func_mmap_file+:} false; then :
9871 $as_echo_n "(cached) " >&6
9872 else
9873 # Add a system to this blacklist if
9874 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9875 # memory area containing the same data that you'd get if you applied
9876 # read() to the same fd. The only system known to have a problem here
9877 # is VMS, where text files have record structure.
9878 case "$host_os" in
9879 *vms* | ultrix*)
9880 gcc_cv_func_mmap_file=no ;;
9882 gcc_cv_func_mmap_file=yes;;
9883 esac
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9886 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9888 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9889 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 # Add a system to this blacklist if it has mmap() but /dev/zero
9893 # does not exist, or if mmapping /dev/zero does not give anonymous
9894 # zeroed pages with both the following properties:
9895 # 1. If you map N consecutive pages in with one call, and then
9896 # unmap any subset of those pages, the pages that were not
9897 # explicitly unmapped remain accessible.
9898 # 2. If you map two adjacent blocks of memory and then unmap them
9899 # both at once, they must both go away.
9900 # Systems known to be in this category are Windows (all variants),
9901 # VMS, and Darwin.
9902 case "$host_os" in
9903 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9904 gcc_cv_func_mmap_dev_zero=no ;;
9906 gcc_cv_func_mmap_dev_zero=yes;;
9907 esac
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9910 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9912 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9914 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9915 if ${gcc_cv_decl_map_anon+:} false; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9920 #include <sys/types.h>
9921 #include <sys/mman.h>
9922 #include <unistd.h>
9924 #ifndef MAP_ANONYMOUS
9925 #define MAP_ANONYMOUS MAP_ANON
9926 #endif
9929 main ()
9931 int n = MAP_ANONYMOUS;
9933 return 0;
9935 _ACEOF
9936 if ac_fn_cxx_try_compile "$LINENO"; then :
9937 gcc_cv_decl_map_anon=yes
9938 else
9939 gcc_cv_decl_map_anon=no
9941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9944 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9946 if test $gcc_cv_decl_map_anon = no; then
9947 gcc_cv_func_mmap_anon=no
9948 else
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9950 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9951 if ${gcc_cv_func_mmap_anon+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9955 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9956 # doesn't give anonymous zeroed pages with the same properties listed
9957 # above for use of /dev/zero.
9958 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9959 case "$host_os" in
9960 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9961 gcc_cv_func_mmap_anon=no ;;
9963 gcc_cv_func_mmap_anon=yes;;
9964 esac
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9967 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9971 if test $gcc_cv_func_mmap_file = yes; then
9973 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9976 if test $gcc_cv_func_mmap_dev_zero = yes; then
9978 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9981 if test $gcc_cv_func_mmap_anon = yes; then
9983 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9988 case "${host}" in
9989 *-*-*vms*)
9990 # Under VMS, vfork works very differently than on Unix. The standard test
9991 # won't work, and it isn't easily adaptable. It makes more sense to
9992 # just force it.
9993 ac_cv_func_vfork_works=yes
9995 esac
9996 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9997 if test "x$ac_cv_type_pid_t" = xyes; then :
9999 else
10001 cat >>confdefs.h <<_ACEOF
10002 #define pid_t int
10003 _ACEOF
10007 for ac_header in vfork.h
10008 do :
10009 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10010 if test "x$ac_cv_header_vfork_h" = xyes; then :
10011 cat >>confdefs.h <<_ACEOF
10012 #define HAVE_VFORK_H 1
10013 _ACEOF
10016 done
10018 for ac_func in fork vfork
10019 do :
10020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10021 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10022 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10023 cat >>confdefs.h <<_ACEOF
10024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10025 _ACEOF
10028 done
10030 if test "x$ac_cv_func_fork" = xyes; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10032 $as_echo_n "checking for working fork... " >&6; }
10033 if ${ac_cv_func_fork_works+:} false; then :
10034 $as_echo_n "(cached) " >&6
10035 else
10036 if test "$cross_compiling" = yes; then :
10037 ac_cv_func_fork_works=cross
10038 else
10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10041 $ac_includes_default
10043 main ()
10046 /* By Ruediger Kuhlmann. */
10047 return fork () < 0;
10050 return 0;
10052 _ACEOF
10053 if ac_fn_cxx_try_run "$LINENO"; then :
10054 ac_cv_func_fork_works=yes
10055 else
10056 ac_cv_func_fork_works=no
10058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10059 conftest.$ac_objext conftest.beam conftest.$ac_ext
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10064 $as_echo "$ac_cv_func_fork_works" >&6; }
10066 else
10067 ac_cv_func_fork_works=$ac_cv_func_fork
10069 if test "x$ac_cv_func_fork_works" = xcross; then
10070 case $host in
10071 *-*-amigaos* | *-*-msdosdjgpp*)
10072 # Override, as these systems have only a dummy fork() stub
10073 ac_cv_func_fork_works=no
10076 ac_cv_func_fork_works=yes
10078 esac
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10080 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10082 ac_cv_func_vfork_works=$ac_cv_func_vfork
10083 if test "x$ac_cv_func_vfork" = xyes; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10085 $as_echo_n "checking for working vfork... " >&6; }
10086 if ${ac_cv_func_vfork_works+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 if test "$cross_compiling" = yes; then :
10090 ac_cv_func_vfork_works=cross
10091 else
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10094 /* Thanks to Paul Eggert for this test. */
10095 $ac_includes_default
10096 #include <sys/wait.h>
10097 #ifdef HAVE_VFORK_H
10098 # include <vfork.h>
10099 #endif
10100 /* On some sparc systems, changes by the child to local and incoming
10101 argument registers are propagated back to the parent. The compiler
10102 is told about this with #include <vfork.h>, but some compilers
10103 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10104 static variable whose address is put into a register that is
10105 clobbered by the vfork. */
10106 static void
10107 #ifdef __cplusplus
10108 sparc_address_test (int arg)
10109 # else
10110 sparc_address_test (arg) int arg;
10111 #endif
10113 static pid_t child;
10114 if (!child) {
10115 child = vfork ();
10116 if (child < 0) {
10117 perror ("vfork");
10118 _exit(2);
10120 if (!child) {
10121 arg = getpid();
10122 write(-1, "", 0);
10123 _exit (arg);
10129 main ()
10131 pid_t parent = getpid ();
10132 pid_t child;
10134 sparc_address_test (0);
10136 child = vfork ();
10138 if (child == 0) {
10139 /* Here is another test for sparc vfork register problems. This
10140 test uses lots of local variables, at least as many local
10141 variables as main has allocated so far including compiler
10142 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10143 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10144 reuse the register of parent for one of the local variables,
10145 since it will think that parent can't possibly be used any more
10146 in this routine. Assigning to the local variable will thus
10147 munge parent in the parent process. */
10148 pid_t
10149 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10150 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10151 /* Convince the compiler that p..p7 are live; otherwise, it might
10152 use the same hardware register for all 8 local variables. */
10153 if (p != p1 || p != p2 || p != p3 || p != p4
10154 || p != p5 || p != p6 || p != p7)
10155 _exit(1);
10157 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10158 from child file descriptors. If the child closes a descriptor
10159 before it execs or exits, this munges the parent's descriptor
10160 as well. Test for this by closing stdout in the child. */
10161 _exit(close(fileno(stdout)) != 0);
10162 } else {
10163 int status;
10164 struct stat st;
10166 while (wait(&status) != child)
10168 return (
10169 /* Was there some problem with vforking? */
10170 child < 0
10172 /* Did the child fail? (This shouldn't happen.) */
10173 || status
10175 /* Did the vfork/compiler bug occur? */
10176 || parent != getpid()
10178 /* Did the file descriptor bug occur? */
10179 || fstat(fileno(stdout), &st) != 0
10183 _ACEOF
10184 if ac_fn_cxx_try_run "$LINENO"; then :
10185 ac_cv_func_vfork_works=yes
10186 else
10187 ac_cv_func_vfork_works=no
10189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10190 conftest.$ac_objext conftest.beam conftest.$ac_ext
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10195 $as_echo "$ac_cv_func_vfork_works" >&6; }
10198 if test "x$ac_cv_func_fork_works" = xcross; then
10199 ac_cv_func_vfork_works=$ac_cv_func_vfork
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10201 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10204 if test "x$ac_cv_func_vfork_works" = xyes; then
10206 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10208 else
10210 $as_echo "#define vfork fork" >>confdefs.h
10213 if test "x$ac_cv_func_fork_works" = xyes; then
10215 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10221 if test "X$prefix" = "XNONE"; then
10222 acl_final_prefix="$ac_default_prefix"
10223 else
10224 acl_final_prefix="$prefix"
10226 if test "X$exec_prefix" = "XNONE"; then
10227 acl_final_exec_prefix='${prefix}'
10228 else
10229 acl_final_exec_prefix="$exec_prefix"
10231 acl_save_prefix="$prefix"
10232 prefix="$acl_final_prefix"
10233 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10234 prefix="$acl_save_prefix"
10237 # Check whether --with-gnu-ld was given.
10238 if test "${with_gnu_ld+set}" = set; then :
10239 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10240 else
10241 with_gnu_ld=no
10244 # Prepare PATH_SEPARATOR.
10245 # The user is always right.
10246 if test "${PATH_SEPARATOR+set}" != set; then
10247 echo "#! /bin/sh" >conf$$.sh
10248 echo "exit 0" >>conf$$.sh
10249 chmod +x conf$$.sh
10250 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10251 PATH_SEPARATOR=';'
10252 else
10253 PATH_SEPARATOR=:
10255 rm -f conf$$.sh
10257 ac_prog=ld
10258 if test "$GCC" = yes; then
10259 # Check if gcc -print-prog-name=ld gives a path.
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10261 $as_echo_n "checking for ld used by GCC... " >&6; }
10262 case $host in
10263 *-*-mingw*)
10264 # gcc leaves a trailing carriage return which upsets mingw
10265 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10267 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10268 esac
10269 case $ac_prog in
10270 # Accept absolute paths.
10271 [\\/]* | [A-Za-z]:[\\/]*)
10272 re_direlt='/[^/][^/]*/\.\./'
10273 # Canonicalize the path of ld
10274 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10275 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10276 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10277 done
10278 test -z "$LD" && LD="$ac_prog"
10281 # If it fails, then pretend we aren't using GCC.
10282 ac_prog=ld
10285 # If it is relative, then search for the first ld in PATH.
10286 with_gnu_ld=unknown
10288 esac
10289 elif test "$with_gnu_ld" = yes; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10291 $as_echo_n "checking for GNU ld... " >&6; }
10292 else
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10294 $as_echo_n "checking for non-GNU ld... " >&6; }
10296 if ${acl_cv_path_LD+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 if test -z "$LD"; then
10300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10301 for ac_dir in $PATH; do
10302 test -z "$ac_dir" && ac_dir=.
10303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10304 acl_cv_path_LD="$ac_dir/$ac_prog"
10305 # Check to see if the program is GNU ld. I'd rather use --version,
10306 # but apparently some GNU ld's only accept -v.
10307 # Break only if it was the GNU/non-GNU ld that we prefer.
10308 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10309 test "$with_gnu_ld" != no && break
10310 else
10311 test "$with_gnu_ld" != yes && break
10314 done
10315 IFS="$ac_save_ifs"
10316 else
10317 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10321 LD="$acl_cv_path_LD"
10322 if test -n "$LD"; then
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10324 $as_echo "$LD" >&6; }
10325 else
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10327 $as_echo "no" >&6; }
10329 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10331 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10332 if ${acl_cv_prog_gnu_ld+:} false; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10336 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10337 acl_cv_prog_gnu_ld=yes
10338 else
10339 acl_cv_prog_gnu_ld=no
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10343 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10344 with_gnu_ld=$acl_cv_prog_gnu_ld
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10349 $as_echo_n "checking for shared library run path origin... " >&6; }
10350 if ${acl_cv_rpath+:} false; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10354 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10355 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10356 . ./conftest.sh
10357 rm -f ./conftest.sh
10358 acl_cv_rpath=done
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10362 $as_echo "$acl_cv_rpath" >&6; }
10363 wl="$acl_cv_wl"
10364 libext="$acl_cv_libext"
10365 shlibext="$acl_cv_shlibext"
10366 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10367 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10368 hardcode_direct="$acl_cv_hardcode_direct"
10369 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10370 # Check whether --enable-rpath was given.
10371 if test "${enable_rpath+set}" = set; then :
10372 enableval=$enable_rpath; :
10373 else
10374 enable_rpath=yes
10384 use_additional=yes
10386 acl_save_prefix="$prefix"
10387 prefix="$acl_final_prefix"
10388 acl_save_exec_prefix="$exec_prefix"
10389 exec_prefix="$acl_final_exec_prefix"
10391 eval additional_includedir=\"$includedir\"
10392 eval additional_libdir=\"$libdir\"
10394 exec_prefix="$acl_save_exec_prefix"
10395 prefix="$acl_save_prefix"
10398 # Check whether --with-libiconv-prefix was given.
10399 if test "${with_libiconv_prefix+set}" = set; then :
10400 withval=$with_libiconv_prefix;
10401 if test "X$withval" = "Xno"; then
10402 use_additional=no
10403 else
10404 if test "X$withval" = "X"; then
10406 acl_save_prefix="$prefix"
10407 prefix="$acl_final_prefix"
10408 acl_save_exec_prefix="$exec_prefix"
10409 exec_prefix="$acl_final_exec_prefix"
10411 eval additional_includedir=\"$includedir\"
10412 eval additional_libdir=\"$libdir\"
10414 exec_prefix="$acl_save_exec_prefix"
10415 prefix="$acl_save_prefix"
10417 else
10418 additional_includedir="$withval/include"
10419 additional_libdir="$withval/lib"
10425 LIBICONV=
10426 LTLIBICONV=
10427 INCICONV=
10428 rpathdirs=
10429 ltrpathdirs=
10430 names_already_handled=
10431 names_next_round='iconv '
10432 while test -n "$names_next_round"; do
10433 names_this_round="$names_next_round"
10434 names_next_round=
10435 for name in $names_this_round; do
10436 already_handled=
10437 for n in $names_already_handled; do
10438 if test "$n" = "$name"; then
10439 already_handled=yes
10440 break
10442 done
10443 if test -z "$already_handled"; then
10444 names_already_handled="$names_already_handled $name"
10445 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10446 eval value=\"\$HAVE_LIB$uppername\"
10447 if test -n "$value"; then
10448 if test "$value" = yes; then
10449 eval value=\"\$LIB$uppername\"
10450 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10451 eval value=\"\$LTLIB$uppername\"
10452 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10453 else
10456 else
10457 found_dir=
10458 found_la=
10459 found_so=
10460 found_a=
10461 if test $use_additional = yes; then
10462 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10463 found_dir="$additional_libdir"
10464 found_so="$additional_libdir/lib$name.$shlibext"
10465 if test -f "$additional_libdir/lib$name.la"; then
10466 found_la="$additional_libdir/lib$name.la"
10468 else
10469 if test -f "$additional_libdir/lib$name.$libext"; then
10470 found_dir="$additional_libdir"
10471 found_a="$additional_libdir/lib$name.$libext"
10472 if test -f "$additional_libdir/lib$name.la"; then
10473 found_la="$additional_libdir/lib$name.la"
10478 if test "X$found_dir" = "X"; then
10479 for x in $LDFLAGS $LTLIBICONV; do
10481 acl_save_prefix="$prefix"
10482 prefix="$acl_final_prefix"
10483 acl_save_exec_prefix="$exec_prefix"
10484 exec_prefix="$acl_final_exec_prefix"
10485 eval x=\"$x\"
10486 exec_prefix="$acl_save_exec_prefix"
10487 prefix="$acl_save_prefix"
10489 case "$x" in
10490 -L*)
10491 dir=`echo "X$x" | sed -e 's/^X-L//'`
10492 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10493 found_dir="$dir"
10494 found_so="$dir/lib$name.$shlibext"
10495 if test -f "$dir/lib$name.la"; then
10496 found_la="$dir/lib$name.la"
10498 else
10499 if test -f "$dir/lib$name.$libext"; then
10500 found_dir="$dir"
10501 found_a="$dir/lib$name.$libext"
10502 if test -f "$dir/lib$name.la"; then
10503 found_la="$dir/lib$name.la"
10508 esac
10509 if test "X$found_dir" != "X"; then
10510 break
10512 done
10514 if test "X$found_dir" != "X"; then
10515 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10516 if test "X$found_so" != "X"; then
10517 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10518 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10519 else
10520 haveit=
10521 for x in $ltrpathdirs; do
10522 if test "X$x" = "X$found_dir"; then
10523 haveit=yes
10524 break
10526 done
10527 if test -z "$haveit"; then
10528 ltrpathdirs="$ltrpathdirs $found_dir"
10530 if test "$hardcode_direct" = yes; then
10531 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10532 else
10533 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10534 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10535 haveit=
10536 for x in $rpathdirs; do
10537 if test "X$x" = "X$found_dir"; then
10538 haveit=yes
10539 break
10541 done
10542 if test -z "$haveit"; then
10543 rpathdirs="$rpathdirs $found_dir"
10545 else
10546 haveit=
10547 for x in $LDFLAGS $LIBICONV; do
10549 acl_save_prefix="$prefix"
10550 prefix="$acl_final_prefix"
10551 acl_save_exec_prefix="$exec_prefix"
10552 exec_prefix="$acl_final_exec_prefix"
10553 eval x=\"$x\"
10554 exec_prefix="$acl_save_exec_prefix"
10555 prefix="$acl_save_prefix"
10557 if test "X$x" = "X-L$found_dir"; then
10558 haveit=yes
10559 break
10561 done
10562 if test -z "$haveit"; then
10563 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10565 if test "$hardcode_minus_L" != no; then
10566 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10567 else
10568 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10573 else
10574 if test "X$found_a" != "X"; then
10575 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10576 else
10577 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10580 additional_includedir=
10581 case "$found_dir" in
10582 */lib | */lib/)
10583 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10584 additional_includedir="$basedir/include"
10586 esac
10587 if test "X$additional_includedir" != "X"; then
10588 if test "X$additional_includedir" != "X/usr/include"; then
10589 haveit=
10590 if test "X$additional_includedir" = "X/usr/local/include"; then
10591 if test -n "$GCC"; then
10592 case $host_os in
10593 linux*) haveit=yes;;
10594 esac
10597 if test -z "$haveit"; then
10598 for x in $CPPFLAGS $INCICONV; do
10600 acl_save_prefix="$prefix"
10601 prefix="$acl_final_prefix"
10602 acl_save_exec_prefix="$exec_prefix"
10603 exec_prefix="$acl_final_exec_prefix"
10604 eval x=\"$x\"
10605 exec_prefix="$acl_save_exec_prefix"
10606 prefix="$acl_save_prefix"
10608 if test "X$x" = "X-I$additional_includedir"; then
10609 haveit=yes
10610 break
10612 done
10613 if test -z "$haveit"; then
10614 if test -d "$additional_includedir"; then
10615 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10621 if test -n "$found_la"; then
10622 save_libdir="$libdir"
10623 case "$found_la" in
10624 */* | *\\*) . "$found_la" ;;
10625 *) . "./$found_la" ;;
10626 esac
10627 libdir="$save_libdir"
10628 for dep in $dependency_libs; do
10629 case "$dep" in
10630 -L*)
10631 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10632 if test "X$additional_libdir" != "X/usr/lib"; then
10633 haveit=
10634 if test "X$additional_libdir" = "X/usr/local/lib"; then
10635 if test -n "$GCC"; then
10636 case $host_os in
10637 linux*) haveit=yes;;
10638 esac
10641 if test -z "$haveit"; then
10642 haveit=
10643 for x in $LDFLAGS $LIBICONV; do
10645 acl_save_prefix="$prefix"
10646 prefix="$acl_final_prefix"
10647 acl_save_exec_prefix="$exec_prefix"
10648 exec_prefix="$acl_final_exec_prefix"
10649 eval x=\"$x\"
10650 exec_prefix="$acl_save_exec_prefix"
10651 prefix="$acl_save_prefix"
10653 if test "X$x" = "X-L$additional_libdir"; then
10654 haveit=yes
10655 break
10657 done
10658 if test -z "$haveit"; then
10659 if test -d "$additional_libdir"; then
10660 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10663 haveit=
10664 for x in $LDFLAGS $LTLIBICONV; do
10666 acl_save_prefix="$prefix"
10667 prefix="$acl_final_prefix"
10668 acl_save_exec_prefix="$exec_prefix"
10669 exec_prefix="$acl_final_exec_prefix"
10670 eval x=\"$x\"
10671 exec_prefix="$acl_save_exec_prefix"
10672 prefix="$acl_save_prefix"
10674 if test "X$x" = "X-L$additional_libdir"; then
10675 haveit=yes
10676 break
10678 done
10679 if test -z "$haveit"; then
10680 if test -d "$additional_libdir"; then
10681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10687 -R*)
10688 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10689 if test "$enable_rpath" != no; then
10690 haveit=
10691 for x in $rpathdirs; do
10692 if test "X$x" = "X$dir"; then
10693 haveit=yes
10694 break
10696 done
10697 if test -z "$haveit"; then
10698 rpathdirs="$rpathdirs $dir"
10700 haveit=
10701 for x in $ltrpathdirs; do
10702 if test "X$x" = "X$dir"; then
10703 haveit=yes
10704 break
10706 done
10707 if test -z "$haveit"; then
10708 ltrpathdirs="$ltrpathdirs $dir"
10712 -l*)
10713 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10715 *.la)
10716 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10719 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10720 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10722 esac
10723 done
10725 else
10726 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10727 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10731 done
10732 done
10733 if test "X$rpathdirs" != "X"; then
10734 if test -n "$hardcode_libdir_separator"; then
10735 alldirs=
10736 for found_dir in $rpathdirs; do
10737 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10738 done
10739 acl_save_libdir="$libdir"
10740 libdir="$alldirs"
10741 eval flag=\"$hardcode_libdir_flag_spec\"
10742 libdir="$acl_save_libdir"
10743 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10744 else
10745 for found_dir in $rpathdirs; do
10746 acl_save_libdir="$libdir"
10747 libdir="$found_dir"
10748 eval flag=\"$hardcode_libdir_flag_spec\"
10749 libdir="$acl_save_libdir"
10750 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10751 done
10754 if test "X$ltrpathdirs" != "X"; then
10755 for found_dir in $ltrpathdirs; do
10756 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10757 done
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10767 $as_echo_n "checking for iconv... " >&6; }
10768 if ${am_cv_func_iconv+:} false; then :
10769 $as_echo_n "(cached) " >&6
10770 else
10772 am_cv_func_iconv="no, consider installing GNU libiconv"
10773 am_cv_lib_iconv=no
10774 am_save_CPPFLAGS="$CPPFLAGS"
10775 CPPFLAGS="$CPPFLAGS $INCICONV"
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778 #include <stdlib.h>
10779 #include <iconv.h>
10781 main ()
10783 iconv_t cd = iconv_open("","");
10784 iconv(cd,NULL,NULL,NULL,NULL);
10785 iconv_close(cd);
10787 return 0;
10789 _ACEOF
10790 if ac_fn_cxx_try_link "$LINENO"; then :
10791 am_cv_func_iconv=yes
10793 rm -f core conftest.err conftest.$ac_objext \
10794 conftest$ac_exeext conftest.$ac_ext
10795 CPPFLAGS="$am_save_CPPFLAGS"
10797 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10798 for _libs in .libs _libs; do
10799 am_save_CPPFLAGS="$CPPFLAGS"
10800 am_save_LIBS="$LIBS"
10801 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10802 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10805 #include <stdlib.h>
10806 #include <iconv.h>
10808 main ()
10810 iconv_t cd = iconv_open("","");
10811 iconv(cd,NULL,NULL,NULL,NULL);
10812 iconv_close(cd);
10814 return 0;
10816 _ACEOF
10817 if ac_fn_cxx_try_link "$LINENO"; then :
10818 INCICONV="-I../libiconv/include"
10819 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10820 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10821 am_cv_lib_iconv=yes
10822 am_cv_func_iconv=yes
10824 rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10826 CPPFLAGS="$am_save_CPPFLAGS"
10827 LIBS="$am_save_LIBS"
10828 if test "$am_cv_func_iconv" = "yes"; then
10829 break
10831 done
10834 if test "$am_cv_func_iconv" != yes; then
10835 am_save_CPPFLAGS="$CPPFLAGS"
10836 am_save_LIBS="$LIBS"
10837 CPPFLAGS="$CPPFLAGS $INCICONV"
10838 LIBS="$LIBS $LIBICONV"
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10841 #include <stdlib.h>
10842 #include <iconv.h>
10844 main ()
10846 iconv_t cd = iconv_open("","");
10847 iconv(cd,NULL,NULL,NULL,NULL);
10848 iconv_close(cd);
10850 return 0;
10852 _ACEOF
10853 if ac_fn_cxx_try_link "$LINENO"; then :
10854 am_cv_lib_iconv=yes
10855 am_cv_func_iconv=yes
10857 rm -f core conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10859 CPPFLAGS="$am_save_CPPFLAGS"
10860 LIBS="$am_save_LIBS"
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10865 $as_echo "$am_cv_func_iconv" >&6; }
10866 if test "$am_cv_func_iconv" = yes; then
10868 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10871 if test "$am_cv_lib_iconv" = yes; then
10873 for element in $INCICONV; do
10874 haveit=
10875 for x in $CPPFLAGS; do
10877 acl_save_prefix="$prefix"
10878 prefix="$acl_final_prefix"
10879 acl_save_exec_prefix="$exec_prefix"
10880 exec_prefix="$acl_final_exec_prefix"
10881 eval x=\"$x\"
10882 exec_prefix="$acl_save_exec_prefix"
10883 prefix="$acl_save_prefix"
10885 if test "X$x" = "X$element"; then
10886 haveit=yes
10887 break
10889 done
10890 if test -z "$haveit"; then
10891 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10893 done
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10896 $as_echo_n "checking how to link with libiconv... " >&6; }
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10898 $as_echo "$LIBICONV" >&6; }
10899 else
10900 LIBICONV=
10901 LTLIBICONV=
10906 if test "$am_cv_func_iconv" = yes; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10908 $as_echo_n "checking for iconv declaration... " >&6; }
10909 if ${am_cv_proto_iconv+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10916 #include <stdlib.h>
10917 #include <iconv.h>
10918 extern
10919 #ifdef __cplusplus
10921 #endif
10922 #if defined(__STDC__) || defined(__cplusplus)
10923 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10924 #else
10925 size_t iconv();
10926 #endif
10929 main ()
10933 return 0;
10935 _ACEOF
10936 if ac_fn_cxx_try_compile "$LINENO"; then :
10937 am_cv_proto_iconv_arg1=""
10938 else
10939 am_cv_proto_iconv_arg1="const"
10941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10942 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);"
10945 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10947 }$am_cv_proto_iconv" >&5
10948 $as_echo "${ac_t:-
10949 }$am_cv_proto_iconv" >&6; }
10951 cat >>confdefs.h <<_ACEOF
10952 #define ICONV_CONST $am_cv_proto_iconv_arg1
10953 _ACEOF
10958 # Until we have in-tree GNU iconv:
10959 LIBICONV_DEP=
10960 if test -f "$LTLIBICONV"; then
10961 LIBICONV_DEP=$LTLIBICONV
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10967 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10968 if ${am_cv_val_LC_MESSAGES+:} false; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973 #include <locale.h>
10975 main ()
10977 return LC_MESSAGES
10979 return 0;
10981 _ACEOF
10982 if ac_fn_cxx_try_link "$LINENO"; then :
10983 am_cv_val_LC_MESSAGES=yes
10984 else
10985 am_cv_val_LC_MESSAGES=no
10987 rm -f core conftest.err conftest.$ac_objext \
10988 conftest$ac_exeext conftest.$ac_ext
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10991 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10992 if test $am_cv_val_LC_MESSAGES = yes; then
10994 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11001 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11002 if ${am_cv_langinfo_codeset+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11007 #include <langinfo.h>
11009 main ()
11011 char* cs = nl_langinfo(CODESET);
11013 return 0;
11015 _ACEOF
11016 if ac_fn_cxx_try_link "$LINENO"; then :
11017 am_cv_langinfo_codeset=yes
11018 else
11019 am_cv_langinfo_codeset=no
11021 rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11026 $as_echo "$am_cv_langinfo_codeset" >&6; }
11027 if test $am_cv_langinfo_codeset = yes; then
11029 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11034 # We will need to find libiberty.h and ansidecl.h
11035 saved_CFLAGS="$CFLAGS"
11036 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11037 saved_CXXFLAGS="$CXXFLAGS"
11038 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11040 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11041 # normal autoconf function for these. But force definition of
11042 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11043 # basename handling in libiberty.h.
11044 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11045 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11046 #undef HAVE_DECL_BASENAME
11047 #define HAVE_DECL_BASENAME 1
11048 #include \"ansidecl.h\"
11049 #include \"system.h\"
11051 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11052 ac_have_decl=1
11053 else
11054 ac_have_decl=0
11057 cat >>confdefs.h <<_ACEOF
11058 #define HAVE_DECL_BASENAME $ac_have_decl
11059 _ACEOF
11060 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11061 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11062 #undef HAVE_DECL_BASENAME
11063 #define HAVE_DECL_BASENAME 1
11064 #include \"ansidecl.h\"
11065 #include \"system.h\"
11067 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11068 ac_have_decl=1
11069 else
11070 ac_have_decl=0
11073 cat >>confdefs.h <<_ACEOF
11074 #define HAVE_DECL_STRSTR $ac_have_decl
11075 _ACEOF
11078 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11079 madvise stpcpy strnlen strsignal strverscmp \
11080 strtol strtoul strtoll strtoull setenv unsetenv \
11081 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11082 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
11084 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11086 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11087 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092 #undef $ac_tr_decl
11093 #define $ac_tr_decl 1
11095 #include "ansidecl.h"
11096 #include "system.h"
11099 main ()
11101 #ifndef $ac_func
11102 char *(*pfn) = (char *(*)) $ac_func ;
11103 #endif
11105 return 0;
11107 _ACEOF
11108 if ac_fn_cxx_try_compile "$LINENO"; then :
11109 eval "gcc_cv_have_decl_$ac_func=yes"
11110 else
11111 eval "gcc_cv_have_decl_$ac_func=no"
11113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11116 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11118 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11119 #define $ac_tr_decl 1
11120 _ACEOF
11122 else
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11125 #define $ac_tr_decl 0
11126 _ACEOF
11130 done
11133 for ac_func in getrlimit setrlimit getrusage
11135 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11137 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11138 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11143 #undef $ac_tr_decl
11144 #define $ac_tr_decl 1
11146 #include "ansidecl.h"
11147 #include "system.h"
11148 #ifdef HAVE_SYS_RESOURCE_H
11149 #include <sys/resource.h>
11150 #endif
11154 main ()
11156 #ifndef $ac_func
11157 char *(*pfn) = (char *(*)) $ac_func ;
11158 #endif
11160 return 0;
11162 _ACEOF
11163 if ac_fn_cxx_try_compile "$LINENO"; then :
11164 eval "gcc_cv_have_decl_$ac_func=yes"
11165 else
11166 eval "gcc_cv_have_decl_$ac_func=no"
11168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11173 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11174 #define $ac_tr_decl 1
11175 _ACEOF
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11180 #define $ac_tr_decl 0
11181 _ACEOF
11185 done
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11191 #include "ansidecl.h"
11192 #include "system.h"
11193 #ifdef HAVE_SYS_RESOURCE_H
11194 #include <sys/resource.h>
11195 #endif
11198 main ()
11200 rlim_t l = 0;
11202 return 0;
11204 _ACEOF
11205 if ac_fn_cxx_try_compile "$LINENO"; then :
11207 else
11209 $as_echo "#define rlim_t long" >>confdefs.h
11212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11215 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11216 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11217 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11218 for ac_func in ldgetname
11220 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11222 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11223 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 #undef $ac_tr_decl
11229 #define $ac_tr_decl 1
11231 #include "ansidecl.h"
11232 #include "system.h"
11233 #ifdef HAVE_LDFCN_H
11234 #undef FREAD
11235 #undef FWRITE
11236 #include <ldfcn.h>
11237 #endif
11241 main ()
11243 #ifndef $ac_func
11244 char *(*pfn) = (char *(*)) $ac_func ;
11245 #endif
11247 return 0;
11249 _ACEOF
11250 if ac_fn_cxx_try_compile "$LINENO"; then :
11251 eval "gcc_cv_have_decl_$ac_func=yes"
11252 else
11253 eval "gcc_cv_have_decl_$ac_func=no"
11255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11260 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11261 #define $ac_tr_decl 1
11262 _ACEOF
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11267 #define $ac_tr_decl 0
11268 _ACEOF
11272 done
11275 for ac_func in times
11277 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11279 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11280 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11285 #undef $ac_tr_decl
11286 #define $ac_tr_decl 1
11288 #include "ansidecl.h"
11289 #include "system.h"
11290 #ifdef HAVE_SYS_TIMES_H
11291 #include <sys/times.h>
11292 #endif
11296 main ()
11298 #ifndef $ac_func
11299 char *(*pfn) = (char *(*)) $ac_func ;
11300 #endif
11302 return 0;
11304 _ACEOF
11305 if ac_fn_cxx_try_compile "$LINENO"; then :
11306 eval "gcc_cv_have_decl_$ac_func=yes"
11307 else
11308 eval "gcc_cv_have_decl_$ac_func=no"
11310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11313 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11316 #define $ac_tr_decl 1
11317 _ACEOF
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11322 #define $ac_tr_decl 0
11323 _ACEOF
11327 done
11330 for ac_func in sigaltstack
11332 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11334 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11335 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11340 #undef $ac_tr_decl
11341 #define $ac_tr_decl 1
11343 #include "ansidecl.h"
11344 #include "system.h"
11345 #include <signal.h>
11349 main ()
11351 #ifndef $ac_func
11352 char *(*pfn) = (char *(*)) $ac_func ;
11353 #endif
11355 return 0;
11357 _ACEOF
11358 if ac_fn_cxx_try_compile "$LINENO"; then :
11359 eval "gcc_cv_have_decl_$ac_func=yes"
11360 else
11361 eval "gcc_cv_have_decl_$ac_func=no"
11363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11368 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11369 #define $ac_tr_decl 1
11370 _ACEOF
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11375 #define $ac_tr_decl 0
11376 _ACEOF
11380 done
11383 # More time-related stuff.
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11385 $as_echo_n "checking for struct tms... " >&6; }
11386 if ${ac_cv_struct_tms+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11393 #include "ansidecl.h"
11394 #include "system.h"
11395 #ifdef HAVE_SYS_TIMES_H
11396 #include <sys/times.h>
11397 #endif
11400 main ()
11402 struct tms tms;
11404 return 0;
11406 _ACEOF
11407 if ac_fn_cxx_try_compile "$LINENO"; then :
11408 ac_cv_struct_tms=yes
11409 else
11410 ac_cv_struct_tms=no
11412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11415 $as_echo "$ac_cv_struct_tms" >&6; }
11416 if test $ac_cv_struct_tms = yes; then
11418 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11422 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11423 # revisit after autoconf 2.50.
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11425 $as_echo_n "checking for clock_t... " >&6; }
11426 if ${gcc_cv_type_clock_t+:} false; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11433 #include "ansidecl.h"
11434 #include "system.h"
11437 main ()
11439 clock_t x;
11441 return 0;
11443 _ACEOF
11444 if ac_fn_cxx_try_compile "$LINENO"; then :
11445 gcc_cv_type_clock_t=yes
11446 else
11447 gcc_cv_type_clock_t=no
11449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11452 $as_echo "$gcc_cv_type_clock_t" >&6; }
11453 if test $gcc_cv_type_clock_t = yes; then
11455 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11459 # Check if F_SETLKW is supported by fcntl.
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11461 $as_echo_n "checking for F_SETLKW... " >&6; }
11462 if ${ac_cv_f_setlkw+:} false; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11469 #include <fcntl.h>
11471 main ()
11474 struct flock fl;
11475 fl.l_whence = 0;
11476 fl.l_start = 0;
11477 fl.l_len = 0;
11478 fl.l_pid = 0;
11479 return fcntl (1, F_SETLKW, &fl);
11481 return 0;
11483 _ACEOF
11484 if ac_fn_cxx_try_compile "$LINENO"; then :
11485 ac_cv_f_setlkw=yes
11486 else
11487 ac_cv_f_setlkw=no
11489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11492 $as_echo "$ac_cv_f_setlkw" >&6; }
11493 if test $ac_cv_f_setlkw = yes; then
11495 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11499 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11500 CFLAGS="$saved_CFLAGS"
11501 CXXFLAGS="$saved_CXXFLAGS"
11503 # mkdir takes a single argument on some systems.
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11505 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11506 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11512 #include <sys/types.h>
11513 #ifdef HAVE_SYS_STAT_H
11514 # include <sys/stat.h>
11515 #endif
11516 #ifdef HAVE_UNISTD_H
11517 # include <unistd.h>
11518 #endif
11519 #ifdef HAVE_DIRECT_H
11520 # include <direct.h>
11521 #endif
11523 main ()
11525 mkdir ("foo", 0);
11527 return 0;
11529 _ACEOF
11530 if ac_fn_cxx_try_compile "$LINENO"; then :
11531 gcc_cv_mkdir_takes_one_arg=no
11532 else
11533 gcc_cv_mkdir_takes_one_arg=yes
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11538 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11539 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11541 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11546 # File extensions
11547 manext='.1'
11548 objext='.o'
11552 # With Setjmp/Longjmp based exception handling.
11553 # Check whether --enable-sjlj-exceptions was given.
11554 if test "${enable_sjlj_exceptions+set}" = set; then :
11555 enableval=$enable_sjlj_exceptions; case $target in
11556 *-*-hpux10*)
11557 if test $enableval != yes; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11559 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11560 enableval=yes
11563 esac
11564 force_sjlj_exceptions=yes
11565 else
11566 case $target in
11567 *-*-hpux10*)
11568 force_sjlj_exceptions=yes
11569 enableval=yes
11571 lm32*-*-*)
11572 force_sjlj_exceptions=yes
11573 enableval=yes
11576 force_sjlj_exceptions=no
11578 esac
11581 if test $force_sjlj_exceptions = yes; then
11582 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11584 cat >>confdefs.h <<_ACEOF
11585 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11586 _ACEOF
11590 # --------------------------------------------------------
11591 # Build, host, and target specific configuration fragments
11592 # --------------------------------------------------------
11594 # Collect build-machine-specific information.
11595 . ${srcdir}/config.build || exit 1
11597 # Collect host-machine-specific information.
11598 . ${srcdir}/config.host || exit 1
11600 target_gtfiles=
11602 # Collect target-machine-specific information.
11603 . ${srcdir}/config.gcc || exit 1
11605 extra_objs="${host_extra_objs} ${extra_objs}"
11606 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11608 # Default the target-machine variables that were not explicitly set.
11609 if test x"$tm_file" = x
11610 then tm_file=$cpu_type/$cpu_type.h; fi
11612 if test x"$extra_headers" = x
11613 then extra_headers=; fi
11615 if test x$md_file = x
11616 then md_file=$cpu_type/$cpu_type.md; fi
11618 if test x$out_file = x
11619 then out_file=$cpu_type/$cpu_type.c; fi
11621 if test x"$tmake_file" = x
11622 then tmake_file=$cpu_type/t-$cpu_type
11625 # Support --enable-initfini-array.
11626 if test x$enable_initfini_array != xno; then
11627 tm_file="${tm_file} initfini-array.h"
11630 if test x"$dwarf2" = xyes
11631 then tm_file="$tm_file tm-dwarf2.h"
11634 # Say what files are being used for the output code and MD file.
11635 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11636 echo "Using \`$srcdir/config/$md_file' as machine description file."
11638 # If any of the xm_file variables contain nonexistent files, warn
11639 # about them and drop them.
11642 for x in $build_xm_file; do
11643 if test -f $srcdir/config/$x
11644 then bx="$bx $x"
11645 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11646 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11648 done
11649 build_xm_file="$bx"
11652 for x in $host_xm_file; do
11653 if test -f $srcdir/config/$x
11654 then hx="$hx $x"
11655 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11656 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11658 done
11659 host_xm_file="$hx"
11662 for x in $xm_file; do
11663 if test -f $srcdir/config/$x
11664 then tx="$tx $x"
11665 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11666 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11668 done
11669 xm_file="$tx"
11671 count=a
11672 for f in $tm_file; do
11673 count=${count}x
11674 done
11675 if test $count = ax; then
11676 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11677 else
11678 echo "Using the following target machine macro files:"
11679 for f in $tm_file; do
11680 echo " $srcdir/config/$f"
11681 done
11684 if test x$use_long_long_for_widest_fast_int = xyes; then
11686 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11690 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11692 cat >>confdefs.h <<_ACEOF
11693 #define HAVE_GNU_LD $gnu_ld_bool
11694 _ACEOF
11697 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11699 cat >>confdefs.h <<_ACEOF
11700 #define HAVE_GNU_AS $gnu_as_bool
11701 _ACEOF
11704 count=a
11705 for f in $host_xm_file; do
11706 count=${count}x
11707 done
11708 if test $count = a; then
11710 elif test $count = ax; then
11711 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11712 else
11713 echo "Using the following host machine macro files:"
11714 for f in $host_xm_file; do
11715 echo " $srcdir/config/$f"
11716 done
11718 echo "Using ${out_host_hook_obj} for host machine hooks."
11720 if test "$host_xm_file" != "$build_xm_file"; then
11721 count=a
11722 for f in $build_xm_file; do
11723 count=${count}x
11724 done
11725 if test $count = a; then
11727 elif test $count = ax; then
11728 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11729 else
11730 echo "Using the following build machine macro files:"
11731 for f in $build_xm_file; do
11732 echo " $srcdir/config/$f"
11733 done
11737 if test -n "$configured_native_system_header_dir"; then
11738 native_system_header_dir=$configured_native_system_header_dir
11740 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11743 case ${host} in
11744 powerpc*-*-darwin*)
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11746 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11747 if ${gcc_cv_mcontext_underscores+:} false; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11753 #include <sys/cdefs.h>
11754 #include <sys/signal.h>
11755 #include <ucontext.h>
11756 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11758 _ACEOF
11759 if ac_fn_cxx_try_compile "$LINENO"; then :
11760 gcc_cv_mcontext_underscores=no
11761 else
11762 gcc_cv_mcontext_underscores=yes
11764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11767 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11768 if test $gcc_cv_mcontext_underscores = yes; then
11770 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11774 esac
11776 # ---------
11777 # Threading
11778 # ---------
11780 # Check if a valid thread package
11781 case ${enable_threads} in
11782 "" | no)
11783 # No threads
11784 target_thread_file='single'
11786 yes)
11787 # default
11788 target_thread_file='single'
11790 aix | dce | lynx | mipssde | posix | rtems | \
11791 single | tpf | vxworks | win32)
11792 target_thread_file=${enable_threads}
11795 echo "${enable_threads} is an unknown thread package" 1>&2
11796 exit 1
11798 esac
11800 if test x${thread_file} = x; then
11801 # No thread file set by target-specific clauses in config.gcc,
11802 # so use file chosen by default logic above
11803 thread_file=${target_thread_file}
11806 # --------
11807 # UNSORTED
11808 # --------
11810 use_cxa_atexit=no
11811 if test x$enable___cxa_atexit = xyes || \
11812 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11813 if test x$host = x$target; then
11814 case $host in
11815 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11816 # keyed to flag_use_cxa_atexit
11817 *-*-mingw32*)
11818 use_cxa_atexit=yes
11820 powerpc-ibm-aix*)
11821 use_cxa_atexit=yes
11824 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11825 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
11826 use_cxa_atexit=yes
11827 else
11828 echo "__cxa_atexit can't be enabled on this target"
11832 esac
11833 else
11834 # We can't check for __cxa_atexit when building a cross, so assume
11835 # it is available
11836 use_cxa_atexit=yes
11838 if test x$use_cxa_atexit = xyes; then
11840 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11845 # Look for a file containing extra machine modes.
11846 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11847 extra_modes_file='$(srcdir)'/config/${extra_modes}
11850 cat >>confdefs.h <<_ACEOF
11851 #define EXTRA_MODES_FILE "config/$extra_modes"
11852 _ACEOF
11856 # Convert extra_options into a form suitable for Makefile use.
11857 extra_opt_files=
11858 all_opt_files=
11859 for f in $extra_options; do
11860 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11861 all_opt_files="$all_opt_files $srcdir/config/$f"
11862 done
11865 # auto-host.h is the file containing items generated by autoconf and is
11866 # the first file included by config.h.
11867 # If host=build, it is correct to have bconfig include auto-host.h
11868 # as well. If host!=build, we are in error and need to do more
11869 # work to find out the build config parameters.
11870 if test x$host = x$build
11871 then
11872 build_auto=auto-host.h
11873 else
11874 # We create a subdir, then run autoconf in the subdir.
11875 # To prevent recursion we set host and build for the new
11876 # invocation of configure to the build for this invocation
11877 # of configure.
11878 tempdir=build.$$
11879 rm -rf $tempdir
11880 mkdir $tempdir
11881 cd $tempdir
11882 case ${srcdir} in
11883 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11884 *) realsrcdir=../${srcdir};;
11885 esac
11886 # Clearing GMPINC is necessary to prevent host headers being
11887 # used by the build compiler. Defining GENERATOR_FILE stops
11888 # system.h from including gmp.h.
11889 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11890 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11891 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11892 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11893 ${realsrcdir}/configure \
11894 --enable-languages=${enable_languages-all} \
11895 --target=$target_alias --host=$build_alias --build=$build_alias
11897 # We just finished tests for the build machine, so rename
11898 # the file auto-build.h in the gcc directory.
11899 mv auto-host.h ../auto-build.h
11900 cd ..
11901 rm -rf $tempdir
11902 build_auto=auto-build.h
11906 tm_file="${tm_file} defaults.h"
11907 tm_p_file="${tm_p_file} tm-preds.h"
11908 tm_d_file="${tm_d_file} defaults.h"
11909 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11910 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11911 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11912 # put this back in temporarily.
11913 xm_file="auto-host.h ansidecl.h ${xm_file}"
11915 # --------
11916 # UNSORTED
11917 # --------
11919 # Compile in configure arguments.
11920 if test -f configargs.h ; then
11921 # Being re-configured.
11922 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11923 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11924 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11925 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11927 else
11928 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11931 # Double all backslashes and backslash all quotes to turn
11932 # gcc_config_arguments into a C string.
11933 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11934 $gcc_config_arguments
11936 gcc_config_arguments_str=`cat conftest.out`
11937 rm -f conftest.out
11939 cat > configargs.h <<EOF
11940 /* Generated automatically. */
11941 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11942 static const char thread_model[] = "$thread_file";
11944 static const struct {
11945 const char *name, *value;
11946 } configure_default_options[] = $configure_default_options;
11949 gcc_BASEVER=`cat $srcdir/BASE-VER`
11950 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11951 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11952 if test -f $srcdir/REVISION ; then
11953 gcc_REVISION=`cat $srcdir/REVISION`
11954 else
11955 gcc_REVISION=""
11957 cat > plugin-version.h <<EOF
11958 #include "configargs.h"
11960 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11961 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11962 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11963 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11965 static char basever[] = "$gcc_BASEVER";
11966 static char datestamp[] = "$gcc_DATESTAMP";
11967 static char devphase[] = "$gcc_DEVPHASE";
11968 static char revision[] = "$gcc_REVISION";
11970 /* FIXME plugins: We should make the version information more precise.
11971 One way to do is to add a checksum. */
11973 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11974 devphase, revision,
11975 configuration_arguments};
11978 # Determine what GCC version number to use in filesystem paths.
11980 get_gcc_base_ver="cat"
11982 # Check whether --with-gcc-major-version-only was given.
11983 if test "${with_gcc_major_version_only+set}" = set; then :
11984 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11985 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11993 # Internationalization
11994 # If we haven't got the data from the intl directory,
11995 # assume NLS is disabled.
11996 USE_NLS=no
11997 LIBINTL=
11998 LIBINTL_DEP=
11999 INCINTL=
12000 XGETTEXT=
12001 GMSGFMT=
12002 POSUB=
12004 if test -f ../intl/config.intl; then
12005 . ../intl/config.intl
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12008 $as_echo_n "checking whether NLS is requested... " >&6; }
12009 if test x"$USE_NLS" != xyes; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011 $as_echo "no" >&6; }
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12014 $as_echo "yes" >&6; }
12016 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12020 $as_echo_n "checking for catalogs to be installed... " >&6; }
12021 # Look for .po and .gmo files in the source directory.
12022 CATALOGS=
12023 XLINGUAS=
12024 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12025 # If there aren't any .gmo files the shell will give us the
12026 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12027 # weeded out.
12028 case "$cat" in *\**)
12029 continue;;
12030 esac
12031 # The quadruple backslash is collapsed to a double backslash
12032 # by the backticks, then collapsed again by the double quotes,
12033 # leaving us with one backslash in the sed expression (right
12034 # before the dot that mustn't act as a wildcard).
12035 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12036 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12037 # The user is allowed to set LINGUAS to a list of languages to
12038 # install catalogs for. If it's empty that means "all of them."
12039 if test "x$LINGUAS" = x; then
12040 CATALOGS="$CATALOGS $cat"
12041 XLINGUAS="$XLINGUAS $lang"
12042 else
12043 case "$LINGUAS" in *$lang*)
12044 CATALOGS="$CATALOGS $cat"
12045 XLINGUAS="$XLINGUAS $lang"
12047 esac
12049 done
12050 LINGUAS="$XLINGUAS"
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12052 $as_echo "$LINGUAS" >&6; }
12055 DATADIRNAME=share
12057 INSTOBJEXT=.mo
12059 GENCAT=gencat
12061 CATOBJEXT=.gmo
12065 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12066 # -liconv on the link line twice.
12067 case "$LIBINTL" in *$LIBICONV*)
12068 LIBICONV= ;;
12069 esac
12071 # Check whether --enable-secureplt was given.
12072 if test "${enable_secureplt+set}" = set; then :
12073 enableval=$enable_secureplt;
12077 # Check whether --enable-mingw-wildcard was given.
12078 if test "${enable_mingw_wildcard+set}" = set; then :
12079 enableval=$enable_mingw_wildcard;
12080 else
12081 enable_mingw_wildcard=platform
12084 if test x"$enable_mingw_wildcard" != xplatform ; then :
12086 cat >>confdefs.h <<_ACEOF
12087 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12088 _ACEOF
12092 # Check whether --enable-large-address-aware was given.
12093 if test "${enable_large_address_aware+set}" = set; then :
12094 enableval=$enable_large_address_aware;
12097 if test x"$enable_large_address_aware" = xyes; then :
12099 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12103 # Check whether --enable-leading-mingw64-underscores was given.
12104 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12105 enableval=$enable_leading_mingw64_underscores;
12108 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12110 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12114 # Check whether --enable-cld was given.
12115 if test "${enable_cld+set}" = set; then :
12116 enableval=$enable_cld;
12117 else
12118 enable_cld=no
12122 # Check whether --enable-frame-pointer was given.
12123 if test "${enable_frame_pointer+set}" = set; then :
12124 enableval=$enable_frame_pointer;
12125 else
12127 case $target_os in
12128 linux* | darwin[8912]*)
12129 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12130 # DWARF2.
12131 enable_frame_pointer=no
12134 enable_frame_pointer=yes
12136 esac
12141 # Windows32 Registry support for specifying GCC installation paths.
12142 # Check whether --enable-win32-registry was given.
12143 if test "${enable_win32_registry+set}" = set; then :
12144 enableval=$enable_win32_registry;
12148 case $host_os in
12149 win32 | pe | cygwin* | mingw32*)
12150 if test "x$enable_win32_registry" != xno; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12152 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12153 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 ac_func_search_save_LIBS=$LIBS
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12160 /* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 char RegOpenKeyExA ();
12168 main ()
12170 return RegOpenKeyExA ();
12172 return 0;
12174 _ACEOF
12175 for ac_lib in '' advapi32; do
12176 if test -z "$ac_lib"; then
12177 ac_res="none required"
12178 else
12179 ac_res=-l$ac_lib
12180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12182 if ac_fn_cxx_try_link "$LINENO"; then :
12183 ac_cv_search_RegOpenKeyExA=$ac_res
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext
12187 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12188 break
12190 done
12191 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12193 else
12194 ac_cv_search_RegOpenKeyExA=no
12196 rm conftest.$ac_ext
12197 LIBS=$ac_func_search_save_LIBS
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12200 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12201 ac_res=$ac_cv_search_RegOpenKeyExA
12202 if test "$ac_res" != no; then :
12203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12205 else
12206 enable_win32_registry=no
12211 if test "x$enable_win32_registry" != xno; then
12213 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12216 if test "x$enable_win32_registry" != xyes \
12217 && test "x$enable_win32_registry" != x; then
12219 cat >>confdefs.h <<_ACEOF
12220 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12221 _ACEOF
12226 esac
12228 # Get an absolute path to the GCC top-level source directory
12229 holddir=`${PWDCMD-pwd}`
12230 cd $srcdir
12231 topdir=`${PWDCMD-pwd}`
12232 cd $holddir
12234 # Conditionalize the makefile for this host machine.
12235 xmake_file=
12236 for f in ${host_xmake_file}
12238 if test -f ${srcdir}/config/$f
12239 then
12240 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12242 done
12244 # Conditionalize the makefile for this target machine.
12245 tmake_file_=
12246 for f in ${tmake_file}
12248 if test -f ${srcdir}/config/$f
12249 then
12250 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12252 done
12253 tmake_file="${tmake_file_}"
12255 out_object_file=`basename $out_file .c`.o
12256 common_out_object_file=`basename $common_out_file .c`.o
12258 tm_file_list="options.h"
12259 tm_include_list="options.h insn-constants.h"
12260 for f in $tm_file; do
12261 case $f in
12262 ./* )
12263 f=`echo $f | sed 's/^..//'`
12264 tm_file_list="${tm_file_list} $f"
12265 tm_include_list="${tm_include_list} $f"
12267 defaults.h )
12268 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12269 tm_include_list="${tm_include_list} $f"
12272 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12273 tm_include_list="${tm_include_list} config/$f"
12275 esac
12276 done
12278 tm_p_file_list=
12279 tm_p_include_list=
12280 for f in $tm_p_file; do
12281 case $f in
12282 tm-preds.h )
12283 tm_p_file_list="${tm_p_file_list} $f"
12284 tm_p_include_list="${tm_p_include_list} $f"
12287 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12288 tm_p_include_list="${tm_p_include_list} config/$f"
12289 esac
12290 done
12292 tm_d_file_list=
12293 tm_d_include_list="options.h insn-constants.h"
12294 for f in $tm_d_file; do
12295 case $f in
12296 defaults.h )
12297 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12298 tm_d_include_list="${tm_d_include_list} $f"
12301 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12302 tm_d_include_list="${tm_d_include_list} config/$f"
12304 esac
12305 done
12307 xm_file_list=
12308 xm_include_list=
12309 for f in $xm_file; do
12310 case $f in
12311 ansidecl.h )
12312 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12313 xm_include_list="${xm_include_list} $f"
12315 auto-host.h )
12316 xm_file_list="${xm_file_list} $f"
12317 xm_include_list="${xm_include_list} $f"
12320 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12321 xm_include_list="${xm_include_list} config/$f"
12323 esac
12324 done
12326 host_xm_file_list=
12327 host_xm_include_list=
12328 for f in $host_xm_file; do
12329 case $f in
12330 ansidecl.h )
12331 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12332 host_xm_include_list="${host_xm_include_list} $f"
12334 auto-host.h )
12335 host_xm_file_list="${host_xm_file_list} $f"
12336 host_xm_include_list="${host_xm_include_list} $f"
12339 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12340 host_xm_include_list="${host_xm_include_list} config/$f"
12342 esac
12343 done
12345 build_xm_file_list=
12346 for f in $build_xm_file; do
12347 case $f in
12348 ansidecl.h )
12349 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12350 build_xm_include_list="${build_xm_include_list} $f"
12352 auto-build.h | auto-host.h )
12353 build_xm_file_list="${build_xm_file_list} $f"
12354 build_xm_include_list="${build_xm_include_list} $f"
12357 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12358 build_xm_include_list="${build_xm_include_list} config/$f"
12360 esac
12361 done
12363 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12364 # cross-compiler which does not use the native headers and libraries.
12365 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12366 CROSS=
12367 ALL=all.internal
12368 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12369 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12371 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12372 test x$build != x$host || test "x$with_build_sysroot" != x; then
12373 if test "x$with_build_sysroot" != x; then
12374 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12375 else
12376 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12379 if test x$host != x$target
12380 then
12381 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12382 ALL=all.cross
12383 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12384 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12385 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12388 if test "x$with_build_sysroot" != "x"; then
12389 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12390 elif test "x$with_sysroot" = x; then
12391 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12392 elif test "x$with_sysroot" = xyes; then
12393 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12394 else
12395 target_header_dir="${with_sysroot}${native_system_header_dir}"
12397 else
12398 target_header_dir=${native_system_header_dir}
12401 # If this is a cross-compiler that does not
12402 # have its own set of headers then define
12403 # inhibit_libc
12405 # If this is using newlib, without having the headers available now,
12406 # then define inhibit_libc in LIBGCC2_CFLAGS.
12407 # This prevents libgcc2 from containing any code which requires libc
12408 # support.
12409 : ${inhibit_libc=false}
12410 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12411 test x$with_newlib = xyes ; } &&
12412 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12413 inhibit_libc=true
12417 # When building gcc with a cross-compiler, we need to adjust things so
12418 # that the generator programs are still built with the native compiler.
12419 # Also, we cannot run fixincludes.
12421 # These are the normal (build=host) settings:
12422 CC_FOR_BUILD='$(CC)'
12423 CXX_FOR_BUILD='$(CXX)'
12424 BUILD_CFLAGS='$(ALL_CFLAGS)'
12425 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12426 BUILD_LDFLAGS='$(LDFLAGS)'
12427 STMP_FIXINC=stmp-fixinc
12429 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12430 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12432 # And these apply if build != host, or we are generating coverage data
12433 if test x$build != x$host || test "x$coverage_flags" != x
12434 then
12435 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12436 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12437 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12439 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12440 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12441 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12442 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12447 # Expand extra_headers to include complete path.
12448 # This substitutes for lots of t-* files.
12449 extra_headers_list=
12450 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12451 for file in ${extra_headers} ; do
12452 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12453 done
12455 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12456 if test x"$use_gcc_tgmath" = xyes
12457 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12460 # Define collect2 in Makefile.
12461 case $host_can_use_collect2 in
12462 no) collect2= ;;
12463 *) collect2='collect2$(exeext)' ;;
12464 esac
12467 # Add a definition of USE_COLLECT2 if system wants one.
12468 case $use_collect2 in
12469 no) use_collect2= ;;
12470 "") ;;
12472 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12473 xm_defines="${xm_defines} USE_COLLECT2"
12474 case $host_can_use_collect2 in
12476 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12478 esac
12480 esac
12483 cat >>confdefs.h <<_ACEOF
12484 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12485 _ACEOF
12488 # ---------------------------
12489 # Assembler & linker features
12490 # ---------------------------
12492 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12493 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12494 # However when ld-new is first executed from the build tree, libtool will
12495 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12496 # to the build tree. While doing this we need to use the previous-stage
12497 # linker, or we have an infinite loop. The presence of a shell script as
12498 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12499 # the gcc/collect-ld script. So we need to know how libtool works, or
12500 # exec-tool will fail.
12503 case `pwd` in
12504 *\ * | *\ *)
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12506 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12507 esac
12511 macro_version='2.2.7a'
12512 macro_revision='1.3134'
12526 ltmain="$ac_aux_dir/ltmain.sh"
12528 # Backslashify metacharacters that are still active within
12529 # double-quoted strings.
12530 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12532 # Same as above, but do not quote variable references.
12533 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12535 # Sed substitution to delay expansion of an escaped shell variable in a
12536 # double_quote_subst'ed string.
12537 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12539 # Sed substitution to delay expansion of an escaped single quote.
12540 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12542 # Sed substitution to avoid accidental globbing in evaled expressions
12543 no_glob_subst='s/\*/\\\*/g'
12545 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12546 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12547 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12550 $as_echo_n "checking how to print strings... " >&6; }
12551 # Test print first, because it will be a builtin if present.
12552 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12553 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12554 ECHO='print -r --'
12555 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12556 ECHO='printf %s\n'
12557 else
12558 # Use this function as a fallback that always works.
12559 func_fallback_echo ()
12561 eval 'cat <<_LTECHO_EOF
12563 _LTECHO_EOF'
12565 ECHO='func_fallback_echo'
12568 # func_echo_all arg...
12569 # Invoke $ECHO with all args, space-separated.
12570 func_echo_all ()
12572 $ECHO ""
12575 case "$ECHO" in
12576 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12577 $as_echo "printf" >&6; } ;;
12578 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12579 $as_echo "print -r" >&6; } ;;
12580 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12581 $as_echo "cat" >&6; } ;;
12582 esac
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12598 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12599 if ${ac_cv_path_SED+:} false; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12603 for ac_i in 1 2 3 4 5 6 7; do
12604 ac_script="$ac_script$as_nl$ac_script"
12605 done
12606 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12607 { ac_script=; unset ac_script;}
12608 if test -z "$SED"; then
12609 ac_path_SED_found=false
12610 # Loop through the user's path and test for each of PROGNAME-LIST
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
12616 for ac_prog in sed gsed; do
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12619 as_fn_executable_p "$ac_path_SED" || continue
12620 # Check for GNU ac_path_SED and select it if it is found.
12621 # Check for GNU $ac_path_SED
12622 case `"$ac_path_SED" --version 2>&1` in
12623 *GNU*)
12624 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12626 ac_count=0
12627 $as_echo_n 0123456789 >"conftest.in"
12628 while :
12630 cat "conftest.in" "conftest.in" >"conftest.tmp"
12631 mv "conftest.tmp" "conftest.in"
12632 cp "conftest.in" "conftest.nl"
12633 $as_echo '' >> "conftest.nl"
12634 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12636 as_fn_arith $ac_count + 1 && ac_count=$as_val
12637 if test $ac_count -gt ${ac_path_SED_max-0}; then
12638 # Best one so far, save it but keep looking for a better one
12639 ac_cv_path_SED="$ac_path_SED"
12640 ac_path_SED_max=$ac_count
12642 # 10*(2^10) chars as input seems more than enough
12643 test $ac_count -gt 10 && break
12644 done
12645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12646 esac
12648 $ac_path_SED_found && break 3
12649 done
12650 done
12651 done
12652 IFS=$as_save_IFS
12653 if test -z "$ac_cv_path_SED"; then
12654 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12656 else
12657 ac_cv_path_SED=$SED
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12662 $as_echo "$ac_cv_path_SED" >&6; }
12663 SED="$ac_cv_path_SED"
12664 rm -f conftest.sed
12666 test -z "$SED" && SED=sed
12667 Xsed="$SED -e 1s/^X//"
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12680 $as_echo_n "checking for fgrep... " >&6; }
12681 if ${ac_cv_path_FGREP+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12685 then ac_cv_path_FGREP="$GREP -F"
12686 else
12687 if test -z "$FGREP"; then
12688 ac_path_FGREP_found=false
12689 # Loop through the user's path and test for each of PROGNAME-LIST
12690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12693 IFS=$as_save_IFS
12694 test -z "$as_dir" && as_dir=.
12695 for ac_prog in fgrep; do
12696 for ac_exec_ext in '' $ac_executable_extensions; do
12697 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12698 as_fn_executable_p "$ac_path_FGREP" || continue
12699 # Check for GNU ac_path_FGREP and select it if it is found.
12700 # Check for GNU $ac_path_FGREP
12701 case `"$ac_path_FGREP" --version 2>&1` in
12702 *GNU*)
12703 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12705 ac_count=0
12706 $as_echo_n 0123456789 >"conftest.in"
12707 while :
12709 cat "conftest.in" "conftest.in" >"conftest.tmp"
12710 mv "conftest.tmp" "conftest.in"
12711 cp "conftest.in" "conftest.nl"
12712 $as_echo 'FGREP' >> "conftest.nl"
12713 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12715 as_fn_arith $ac_count + 1 && ac_count=$as_val
12716 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12717 # Best one so far, save it but keep looking for a better one
12718 ac_cv_path_FGREP="$ac_path_FGREP"
12719 ac_path_FGREP_max=$ac_count
12721 # 10*(2^10) chars as input seems more than enough
12722 test $ac_count -gt 10 && break
12723 done
12724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12725 esac
12727 $ac_path_FGREP_found && break 3
12728 done
12729 done
12730 done
12731 IFS=$as_save_IFS
12732 if test -z "$ac_cv_path_FGREP"; then
12733 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12735 else
12736 ac_cv_path_FGREP=$FGREP
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12742 $as_echo "$ac_cv_path_FGREP" >&6; }
12743 FGREP="$ac_cv_path_FGREP"
12746 test -z "$GREP" && GREP=grep
12766 # Check whether --with-gnu-ld was given.
12767 if test "${with_gnu_ld+set}" = set; then :
12768 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12769 else
12770 with_gnu_ld=no
12773 ac_prog=ld
12774 if test "$GCC" = yes; then
12775 # Check if gcc -print-prog-name=ld gives a path.
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12777 $as_echo_n "checking for ld used by $CC... " >&6; }
12778 case $host in
12779 *-*-mingw*)
12780 # gcc leaves a trailing carriage return which upsets mingw
12781 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12783 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12784 esac
12785 case $ac_prog in
12786 # Accept absolute paths.
12787 [\\/]* | ?:[\\/]*)
12788 re_direlt='/[^/][^/]*/\.\./'
12789 # Canonicalize the pathname of ld
12790 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12791 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12792 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12793 done
12794 test -z "$LD" && LD="$ac_prog"
12797 # If it fails, then pretend we aren't using GCC.
12798 ac_prog=ld
12801 # If it is relative, then search for the first ld in PATH.
12802 with_gnu_ld=unknown
12804 esac
12805 elif test "$with_gnu_ld" = yes; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12807 $as_echo_n "checking for GNU ld... " >&6; }
12808 else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12810 $as_echo_n "checking for non-GNU ld... " >&6; }
12812 if ${lt_cv_path_LD+:} false; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 if test -z "$LD"; then
12816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12817 for ac_dir in $PATH; do
12818 IFS="$lt_save_ifs"
12819 test -z "$ac_dir" && ac_dir=.
12820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12821 lt_cv_path_LD="$ac_dir/$ac_prog"
12822 # Check to see if the program is GNU ld. I'd rather use --version,
12823 # but apparently some variants of GNU ld only accept -v.
12824 # Break only if it was the GNU/non-GNU ld that we prefer.
12825 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12826 *GNU* | *'with BFD'*)
12827 test "$with_gnu_ld" != no && break
12830 test "$with_gnu_ld" != yes && break
12832 esac
12834 done
12835 IFS="$lt_save_ifs"
12836 else
12837 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12841 LD="$lt_cv_path_LD"
12842 if test -n "$LD"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12844 $as_echo "$LD" >&6; }
12845 else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12849 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12851 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12852 if ${lt_cv_prog_gnu_ld+:} false; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12856 case `$LD -v 2>&1 </dev/null` in
12857 *GNU* | *'with BFD'*)
12858 lt_cv_prog_gnu_ld=yes
12861 lt_cv_prog_gnu_ld=no
12863 esac
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12866 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12867 with_gnu_ld=$lt_cv_prog_gnu_ld
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12878 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12879 if ${lt_cv_path_NM+:} false; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 if test -n "$NM"; then
12883 # Let the user override the test.
12884 lt_cv_path_NM="$NM"
12885 else
12886 lt_nm_to_check="${ac_tool_prefix}nm"
12887 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12888 lt_nm_to_check="$lt_nm_to_check nm"
12890 for lt_tmp_nm in $lt_nm_to_check; do
12891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12892 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12893 IFS="$lt_save_ifs"
12894 test -z "$ac_dir" && ac_dir=.
12895 tmp_nm="$ac_dir/$lt_tmp_nm"
12896 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12897 # Check to see if the nm accepts a BSD-compat flag.
12898 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12899 # nm: unknown option "B" ignored
12900 # Tru64's nm complains that /dev/null is an invalid object file
12901 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12902 */dev/null* | *'Invalid file or object type'*)
12903 lt_cv_path_NM="$tmp_nm -B"
12904 break
12907 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12908 */dev/null*)
12909 lt_cv_path_NM="$tmp_nm -p"
12910 break
12913 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12914 continue # so that we can try to find one that supports BSD flags
12916 esac
12918 esac
12920 done
12921 IFS="$lt_save_ifs"
12922 done
12923 : ${lt_cv_path_NM=no}
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12927 $as_echo "$lt_cv_path_NM" >&6; }
12928 if test "$lt_cv_path_NM" != "no"; then
12929 NM="$lt_cv_path_NM"
12930 else
12931 # Didn't find any BSD compatible name lister, look for dumpbin.
12932 if test -n "$DUMPBIN"; then :
12933 # Let the user override the test.
12934 else
12935 if test -n "$ac_tool_prefix"; then
12936 for ac_prog in dumpbin "link -dump"
12938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if ${ac_cv_prog_DUMPBIN+:} false; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 if test -n "$DUMPBIN"; then
12946 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12947 else
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12955 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12959 done
12960 done
12961 IFS=$as_save_IFS
12965 DUMPBIN=$ac_cv_prog_DUMPBIN
12966 if test -n "$DUMPBIN"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12968 $as_echo "$DUMPBIN" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12975 test -n "$DUMPBIN" && break
12976 done
12978 if test -z "$DUMPBIN"; then
12979 ac_ct_DUMPBIN=$DUMPBIN
12980 for ac_prog in dumpbin "link -dump"
12982 # Extract the first word of "$ac_prog", so it can be a program name with args.
12983 set dummy $ac_prog; ac_word=$2
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12985 $as_echo_n "checking for $ac_word... " >&6; }
12986 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
12987 $as_echo_n "(cached) " >&6
12988 else
12989 if test -n "$ac_ct_DUMPBIN"; then
12990 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12991 else
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993 for as_dir in $PATH
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
12997 for ac_exec_ext in '' $ac_executable_extensions; do
12998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12999 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13001 break 2
13003 done
13004 done
13005 IFS=$as_save_IFS
13009 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13010 if test -n "$ac_ct_DUMPBIN"; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13012 $as_echo "$ac_ct_DUMPBIN" >&6; }
13013 else
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015 $as_echo "no" >&6; }
13019 test -n "$ac_ct_DUMPBIN" && break
13020 done
13022 if test "x$ac_ct_DUMPBIN" = x; then
13023 DUMPBIN=":"
13024 else
13025 case $cross_compiling:$ac_tool_warned in
13026 yes:)
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13029 ac_tool_warned=yes ;;
13030 esac
13031 DUMPBIN=$ac_ct_DUMPBIN
13035 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13036 *COFF*)
13037 DUMPBIN="$DUMPBIN -symbols"
13040 DUMPBIN=:
13042 esac
13045 if test "$DUMPBIN" != ":"; then
13046 NM="$DUMPBIN"
13049 test -z "$NM" && NM=nm
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13057 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13058 if ${lt_cv_nm_interface+:} false; then :
13059 $as_echo_n "(cached) " >&6
13060 else
13061 lt_cv_nm_interface="BSD nm"
13062 echo "int some_variable = 0;" > conftest.$ac_ext
13063 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13064 (eval "$ac_compile" 2>conftest.err)
13065 cat conftest.err >&5
13066 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13067 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13068 cat conftest.err >&5
13069 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13070 cat conftest.out >&5
13071 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13072 lt_cv_nm_interface="MS dumpbin"
13074 rm -f conftest*
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13077 $as_echo "$lt_cv_nm_interface" >&6; }
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13080 $as_echo_n "checking whether ln -s works... " >&6; }
13081 LN_S=$as_ln_s
13082 if test "$LN_S" = "ln -s"; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13084 $as_echo "yes" >&6; }
13085 else
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13087 $as_echo "no, using $LN_S" >&6; }
13090 # find the maximum length of command line arguments
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13092 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13093 if ${lt_cv_sys_max_cmd_len+:} false; then :
13094 $as_echo_n "(cached) " >&6
13095 else
13097 teststring="ABCD"
13099 case $build_os in
13100 msdosdjgpp*)
13101 # On DJGPP, this test can blow up pretty badly due to problems in libc
13102 # (any single argument exceeding 2000 bytes causes a buffer overrun
13103 # during glob expansion). Even if it were fixed, the result of this
13104 # check would be larger than it should be.
13105 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13108 gnu*)
13109 # Under GNU Hurd, this test is not required because there is
13110 # no limit to the length of command line arguments.
13111 # Libtool will interpret -1 as no limit whatsoever
13112 lt_cv_sys_max_cmd_len=-1;
13115 cygwin* | mingw* | cegcc*)
13116 # On Win9x/ME, this test blows up -- it succeeds, but takes
13117 # about 5 minutes as the teststring grows exponentially.
13118 # Worse, since 9x/ME are not pre-emptively multitasking,
13119 # you end up with a "frozen" computer, even though with patience
13120 # the test eventually succeeds (with a max line length of 256k).
13121 # Instead, let's just punt: use the minimum linelength reported by
13122 # all of the supported platforms: 8192 (on NT/2K/XP).
13123 lt_cv_sys_max_cmd_len=8192;
13126 mint*)
13127 # On MiNT this can take a long time and run out of memory.
13128 lt_cv_sys_max_cmd_len=8192;
13131 amigaos*)
13132 # On AmigaOS with pdksh, this test takes hours, literally.
13133 # So we just punt and use a minimum line length of 8192.
13134 lt_cv_sys_max_cmd_len=8192;
13137 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13138 # This has been around since 386BSD, at least. Likely further.
13139 if test -x /sbin/sysctl; then
13140 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13141 elif test -x /usr/sbin/sysctl; then
13142 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13143 else
13144 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13146 # And add a safety zone
13147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13151 interix*)
13152 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13153 lt_cv_sys_max_cmd_len=196608
13156 osf*)
13157 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13158 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13159 # nice to cause kernel panics so lets avoid the loop below.
13160 # First set a reasonable default.
13161 lt_cv_sys_max_cmd_len=16384
13163 if test -x /sbin/sysconfig; then
13164 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13165 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13166 esac
13169 sco3.2v5*)
13170 lt_cv_sys_max_cmd_len=102400
13172 sysv5* | sco5v6* | sysv4.2uw2*)
13173 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13174 if test -n "$kargmax"; then
13175 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13176 else
13177 lt_cv_sys_max_cmd_len=32768
13181 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13182 if test -n "$lt_cv_sys_max_cmd_len"; then
13183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13185 else
13186 # Make teststring a little bigger before we do anything with it.
13187 # a 1K string should be a reasonable start.
13188 for i in 1 2 3 4 5 6 7 8 ; do
13189 teststring=$teststring$teststring
13190 done
13191 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13192 # If test is not a shell built-in, we'll probably end up computing a
13193 # maximum length that is only half of the actual maximum length, but
13194 # we can't tell.
13195 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13196 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13197 test $i != 17 # 1/2 MB should be enough
13199 i=`expr $i + 1`
13200 teststring=$teststring$teststring
13201 done
13202 # Only check the string length outside the loop.
13203 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13204 teststring=
13205 # Add a significant safety factor because C++ compilers can tack on
13206 # massive amounts of additional arguments before passing them to the
13207 # linker. It appears as though 1/2 is a usable value.
13208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13211 esac
13215 if test -n $lt_cv_sys_max_cmd_len ; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13217 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13218 else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13220 $as_echo "none" >&6; }
13222 max_cmd_len=$lt_cv_sys_max_cmd_len
13229 : ${CP="cp -f"}
13230 : ${MV="mv -f"}
13231 : ${RM="rm -f"}
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13234 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13235 # Try some XSI features
13236 xsi_shell=no
13237 ( _lt_dummy="a/b/c"
13238 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13239 = c,a/b,, \
13240 && eval 'test $(( 1 + 1 )) -eq 2 \
13241 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13242 && xsi_shell=yes
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13244 $as_echo "$xsi_shell" >&6; }
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13248 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13249 lt_shell_append=no
13250 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13251 >/dev/null 2>&1 \
13252 && lt_shell_append=yes
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13254 $as_echo "$lt_shell_append" >&6; }
13257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13258 lt_unset=unset
13259 else
13260 lt_unset=false
13267 # test EBCDIC or ASCII
13268 case `echo X|tr X '\101'` in
13269 A) # ASCII based system
13270 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13271 lt_SP2NL='tr \040 \012'
13272 lt_NL2SP='tr \015\012 \040\040'
13274 *) # EBCDIC based system
13275 lt_SP2NL='tr \100 \n'
13276 lt_NL2SP='tr \r\n \100\100'
13278 esac
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13289 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13290 if ${lt_cv_ld_reload_flag+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 lt_cv_ld_reload_flag='-r'
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13296 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13297 reload_flag=$lt_cv_ld_reload_flag
13298 case $reload_flag in
13299 "" | " "*) ;;
13300 *) reload_flag=" $reload_flag" ;;
13301 esac
13302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13303 case $host_os in
13304 darwin*)
13305 if test "$GCC" = yes; then
13306 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13307 else
13308 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13311 esac
13321 if test -n "$ac_tool_prefix"; then
13322 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13323 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13325 $as_echo_n "checking for $ac_word... " >&6; }
13326 if ${ac_cv_prog_OBJDUMP+:} false; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329 if test -n "$OBJDUMP"; then
13330 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13331 else
13332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH
13335 IFS=$as_save_IFS
13336 test -z "$as_dir" && as_dir=.
13337 for ac_exec_ext in '' $ac_executable_extensions; do
13338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13339 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13341 break 2
13343 done
13344 done
13345 IFS=$as_save_IFS
13349 OBJDUMP=$ac_cv_prog_OBJDUMP
13350 if test -n "$OBJDUMP"; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13352 $as_echo "$OBJDUMP" >&6; }
13353 else
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355 $as_echo "no" >&6; }
13360 if test -z "$ac_cv_prog_OBJDUMP"; then
13361 ac_ct_OBJDUMP=$OBJDUMP
13362 # Extract the first word of "objdump", so it can be a program name with args.
13363 set dummy objdump; ac_word=$2
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13365 $as_echo_n "checking for $ac_word... " >&6; }
13366 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13367 $as_echo_n "(cached) " >&6
13368 else
13369 if test -n "$ac_ct_OBJDUMP"; then
13370 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13371 else
13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13375 IFS=$as_save_IFS
13376 test -z "$as_dir" && as_dir=.
13377 for ac_exec_ext in '' $ac_executable_extensions; do
13378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13379 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381 break 2
13383 done
13384 done
13385 IFS=$as_save_IFS
13389 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13390 if test -n "$ac_ct_OBJDUMP"; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13392 $as_echo "$ac_ct_OBJDUMP" >&6; }
13393 else
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 $as_echo "no" >&6; }
13398 if test "x$ac_ct_OBJDUMP" = x; then
13399 OBJDUMP="false"
13400 else
13401 case $cross_compiling:$ac_tool_warned in
13402 yes:)
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13405 ac_tool_warned=yes ;;
13406 esac
13407 OBJDUMP=$ac_ct_OBJDUMP
13409 else
13410 OBJDUMP="$ac_cv_prog_OBJDUMP"
13413 test -z "$OBJDUMP" && OBJDUMP=objdump
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13424 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13425 if ${lt_cv_deplibs_check_method+:} false; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 lt_cv_file_magic_cmd='$MAGIC_CMD'
13429 lt_cv_file_magic_test_file=
13430 lt_cv_deplibs_check_method='unknown'
13431 # Need to set the preceding variable on all platforms that support
13432 # interlibrary dependencies.
13433 # 'none' -- dependencies not supported.
13434 # `unknown' -- same as none, but documents that we really don't know.
13435 # 'pass_all' -- all dependencies passed with no checks.
13436 # 'test_compile' -- check by making test program.
13437 # 'file_magic [[regex]]' -- check by looking for files in library path
13438 # which responds to the $file_magic_cmd with a given extended regex.
13439 # If you have `file' or equivalent on your system and you're not sure
13440 # whether `pass_all' will *always* work, you probably want this one.
13442 case $host_os in
13443 aix[4-9]*)
13444 lt_cv_deplibs_check_method=pass_all
13447 beos*)
13448 lt_cv_deplibs_check_method=pass_all
13451 bsdi[45]*)
13452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13453 lt_cv_file_magic_cmd='/usr/bin/file -L'
13454 lt_cv_file_magic_test_file=/shlib/libc.so
13457 cygwin*)
13458 # func_win32_libid is a shell function defined in ltmain.sh
13459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13460 lt_cv_file_magic_cmd='func_win32_libid'
13463 mingw* | pw32*)
13464 # Base MSYS/MinGW do not provide the 'file' command needed by
13465 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13466 # unless we find 'file', for example because we are cross-compiling.
13467 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13468 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13470 lt_cv_file_magic_cmd='func_win32_libid'
13471 else
13472 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13473 lt_cv_file_magic_cmd='$OBJDUMP -f'
13477 cegcc*)
13478 # use the weaker test based on 'objdump'. See mingw*.
13479 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13480 lt_cv_file_magic_cmd='$OBJDUMP -f'
13483 darwin* | rhapsody*)
13484 lt_cv_deplibs_check_method=pass_all
13487 freebsd* | dragonfly*)
13488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13489 case $host_cpu in
13490 i*86 )
13491 # Not sure whether the presence of OpenBSD here was a mistake.
13492 # Let's accept both of them until this is cleared up.
13493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13494 lt_cv_file_magic_cmd=/usr/bin/file
13495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13497 esac
13498 else
13499 lt_cv_deplibs_check_method=pass_all
13503 gnu*)
13504 lt_cv_deplibs_check_method=pass_all
13507 haiku*)
13508 lt_cv_deplibs_check_method=pass_all
13511 hpux10.20* | hpux11*)
13512 lt_cv_file_magic_cmd=/usr/bin/file
13513 case $host_cpu in
13514 ia64*)
13515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13518 hppa*64*)
13519 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]'
13520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13524 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13526 esac
13529 interix[3-9]*)
13530 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13534 irix5* | irix6* | nonstopux*)
13535 case $LD in
13536 *-32|*"-32 ") libmagic=32-bit;;
13537 *-n32|*"-n32 ") libmagic=N32;;
13538 *-64|*"-64 ") libmagic=64-bit;;
13539 *) libmagic=never-match;;
13540 esac
13541 lt_cv_deplibs_check_method=pass_all
13544 # This must be Linux ELF.
13545 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13546 lt_cv_deplibs_check_method=pass_all
13549 netbsd*)
13550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13552 else
13553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13557 newos6*)
13558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13559 lt_cv_file_magic_cmd=/usr/bin/file
13560 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13563 *nto* | *qnx*)
13564 lt_cv_deplibs_check_method=pass_all
13567 openbsd*)
13568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13570 else
13571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13575 osf3* | osf4* | osf5*)
13576 lt_cv_deplibs_check_method=pass_all
13579 rdos*)
13580 lt_cv_deplibs_check_method=pass_all
13583 solaris*)
13584 lt_cv_deplibs_check_method=pass_all
13587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13588 lt_cv_deplibs_check_method=pass_all
13591 sysv4 | sysv4.3*)
13592 case $host_vendor in
13593 motorola)
13594 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]'
13595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13597 ncr)
13598 lt_cv_deplibs_check_method=pass_all
13600 sequent)
13601 lt_cv_file_magic_cmd='/bin/file'
13602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13604 sni)
13605 lt_cv_file_magic_cmd='/bin/file'
13606 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13607 lt_cv_file_magic_test_file=/lib/libc.so
13609 siemens)
13610 lt_cv_deplibs_check_method=pass_all
13613 lt_cv_deplibs_check_method=pass_all
13615 esac
13618 tpf*)
13619 lt_cv_deplibs_check_method=pass_all
13621 esac
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13625 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13626 file_magic_cmd=$lt_cv_file_magic_cmd
13627 deplibs_check_method=$lt_cv_deplibs_check_method
13628 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13641 if test -n "$ac_tool_prefix"; then
13642 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13643 set dummy ${ac_tool_prefix}ar; ac_word=$2
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645 $as_echo_n "checking for $ac_word... " >&6; }
13646 if ${ac_cv_prog_AR+:} false; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 if test -n "$AR"; then
13650 ac_cv_prog_AR="$AR" # Let the user override the test.
13651 else
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13655 IFS=$as_save_IFS
13656 test -z "$as_dir" && as_dir=.
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13659 ac_cv_prog_AR="${ac_tool_prefix}ar"
13660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661 break 2
13663 done
13664 done
13665 IFS=$as_save_IFS
13669 AR=$ac_cv_prog_AR
13670 if test -n "$AR"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13672 $as_echo "$AR" >&6; }
13673 else
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13680 if test -z "$ac_cv_prog_AR"; then
13681 ac_ct_AR=$AR
13682 # Extract the first word of "ar", so it can be a program name with args.
13683 set dummy ar; ac_word=$2
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13685 $as_echo_n "checking for $ac_word... " >&6; }
13686 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 if test -n "$ac_ct_AR"; then
13690 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13691 else
13692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13693 for as_dir in $PATH
13695 IFS=$as_save_IFS
13696 test -z "$as_dir" && as_dir=.
13697 for ac_exec_ext in '' $ac_executable_extensions; do
13698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13699 ac_cv_prog_ac_ct_AR="ar"
13700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13701 break 2
13703 done
13704 done
13705 IFS=$as_save_IFS
13709 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13710 if test -n "$ac_ct_AR"; then
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13712 $as_echo "$ac_ct_AR" >&6; }
13713 else
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715 $as_echo "no" >&6; }
13718 if test "x$ac_ct_AR" = x; then
13719 AR="false"
13720 else
13721 case $cross_compiling:$ac_tool_warned in
13722 yes:)
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13725 ac_tool_warned=yes ;;
13726 esac
13727 AR=$ac_ct_AR
13729 else
13730 AR="$ac_cv_prog_AR"
13733 test -z "$AR" && AR=ar
13734 test -z "$AR_FLAGS" && AR_FLAGS=cru
13746 if test -n "$ac_tool_prefix"; then
13747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13748 set dummy ${ac_tool_prefix}strip; ac_word=$2
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13750 $as_echo_n "checking for $ac_word... " >&6; }
13751 if ${ac_cv_prog_STRIP+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 if test -n "$STRIP"; then
13755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13756 else
13757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13758 for as_dir in $PATH
13760 IFS=$as_save_IFS
13761 test -z "$as_dir" && as_dir=.
13762 for ac_exec_ext in '' $ac_executable_extensions; do
13763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13766 break 2
13768 done
13769 done
13770 IFS=$as_save_IFS
13774 STRIP=$ac_cv_prog_STRIP
13775 if test -n "$STRIP"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13777 $as_echo "$STRIP" >&6; }
13778 else
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780 $as_echo "no" >&6; }
13785 if test -z "$ac_cv_prog_STRIP"; then
13786 ac_ct_STRIP=$STRIP
13787 # Extract the first word of "strip", so it can be a program name with args.
13788 set dummy strip; ac_word=$2
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790 $as_echo_n "checking for $ac_word... " >&6; }
13791 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13792 $as_echo_n "(cached) " >&6
13793 else
13794 if test -n "$ac_ct_STRIP"; then
13795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13796 else
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_prog_ac_ct_STRIP="strip"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13808 done
13809 done
13810 IFS=$as_save_IFS
13814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13815 if test -n "$ac_ct_STRIP"; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13817 $as_echo "$ac_ct_STRIP" >&6; }
13818 else
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820 $as_echo "no" >&6; }
13823 if test "x$ac_ct_STRIP" = x; then
13824 STRIP=":"
13825 else
13826 case $cross_compiling:$ac_tool_warned in
13827 yes:)
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13830 ac_tool_warned=yes ;;
13831 esac
13832 STRIP=$ac_ct_STRIP
13834 else
13835 STRIP="$ac_cv_prog_STRIP"
13838 test -z "$STRIP" && STRIP=:
13845 if test -n "$ac_tool_prefix"; then
13846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13849 $as_echo_n "checking for $ac_word... " >&6; }
13850 if ${ac_cv_prog_RANLIB+:} false; then :
13851 $as_echo_n "(cached) " >&6
13852 else
13853 if test -n "$RANLIB"; then
13854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13855 else
13856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857 for as_dir in $PATH
13859 IFS=$as_save_IFS
13860 test -z "$as_dir" && as_dir=.
13861 for ac_exec_ext in '' $ac_executable_extensions; do
13862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13865 break 2
13867 done
13868 done
13869 IFS=$as_save_IFS
13873 RANLIB=$ac_cv_prog_RANLIB
13874 if test -n "$RANLIB"; then
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13876 $as_echo "$RANLIB" >&6; }
13877 else
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879 $as_echo "no" >&6; }
13884 if test -z "$ac_cv_prog_RANLIB"; then
13885 ac_ct_RANLIB=$RANLIB
13886 # Extract the first word of "ranlib", so it can be a program name with args.
13887 set dummy ranlib; ac_word=$2
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13889 $as_echo_n "checking for $ac_word... " >&6; }
13890 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 if test -n "$ac_ct_RANLIB"; then
13894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13895 else
13896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13897 for as_dir in $PATH
13899 IFS=$as_save_IFS
13900 test -z "$as_dir" && as_dir=.
13901 for ac_exec_ext in '' $ac_executable_extensions; do
13902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13903 ac_cv_prog_ac_ct_RANLIB="ranlib"
13904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13905 break 2
13907 done
13908 done
13909 IFS=$as_save_IFS
13913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13914 if test -n "$ac_ct_RANLIB"; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13916 $as_echo "$ac_ct_RANLIB" >&6; }
13917 else
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13922 if test "x$ac_ct_RANLIB" = x; then
13923 RANLIB=":"
13924 else
13925 case $cross_compiling:$ac_tool_warned in
13926 yes:)
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13929 ac_tool_warned=yes ;;
13930 esac
13931 RANLIB=$ac_ct_RANLIB
13933 else
13934 RANLIB="$ac_cv_prog_RANLIB"
13937 test -z "$RANLIB" && RANLIB=:
13944 # Determine commands to create old-style static archives.
13945 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13946 old_postinstall_cmds='chmod 644 $oldlib'
13947 old_postuninstall_cmds=
13949 if test -n "$RANLIB"; then
13950 case $host_os in
13951 openbsd*)
13952 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13955 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13957 esac
13958 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13961 case $host_os in
13962 darwin*)
13963 lock_old_archive_extraction=yes ;;
13965 lock_old_archive_extraction=no ;;
13966 esac
14006 # If no C compiler was specified, use CC.
14007 LTCC=${LTCC-"$CC"}
14009 # If no C compiler flags were specified, use CFLAGS.
14010 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14012 # Allow CC to be a program name with arguments.
14013 compiler=$CC
14016 # Check for command to grab the raw symbol name followed by C symbol from nm.
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14018 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14019 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14023 # These are sane defaults that work on at least a few old systems.
14024 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14026 # Character class describing NM global symbol codes.
14027 symcode='[BCDEGRST]'
14029 # Regexp to match symbols that can be accessed directly from C.
14030 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14032 # Define system-specific variables.
14033 case $host_os in
14034 aix*)
14035 symcode='[BCDT]'
14037 cygwin* | mingw* | pw32* | cegcc*)
14038 symcode='[ABCDGISTW]'
14040 hpux*)
14041 if test "$host_cpu" = ia64; then
14042 symcode='[ABCDEGRST]'
14045 irix* | nonstopux*)
14046 symcode='[BCDEGRST]'
14048 osf*)
14049 symcode='[BCDEGQRST]'
14051 solaris*)
14052 symcode='[BDRT]'
14054 sco3.2v5*)
14055 symcode='[DT]'
14057 sysv4.2uw2*)
14058 symcode='[DT]'
14060 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14061 symcode='[ABDT]'
14063 sysv4)
14064 symcode='[DFNSTU]'
14066 esac
14068 # If we're using GNU nm, then use its standard symbol codes.
14069 case `$NM -V 2>&1` in
14070 *GNU* | *'with BFD'*)
14071 symcode='[ABCDGIRSTW]' ;;
14072 esac
14074 # Transform an extracted symbol line into a proper C declaration.
14075 # Some systems (esp. on ia64) link data and code symbols differently,
14076 # so use this general approach.
14077 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14079 # Transform an extracted symbol line into symbol name and symbol address
14080 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14081 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'"
14083 # Handle CRLF in mingw tool chain
14084 opt_cr=
14085 case $build_os in
14086 mingw*)
14087 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14089 esac
14091 # Try without a prefix underscore, then with it.
14092 for ac_symprfx in "" "_"; do
14094 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14095 symxfrm="\\1 $ac_symprfx\\2 \\2"
14097 # Write the raw and C identifiers.
14098 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14099 # Fake it for dumpbin and say T for any non-static function
14100 # and D for any global variable.
14101 # Also find C++ and __fastcall symbols from MSVC++,
14102 # which start with @ or ?.
14103 lt_cv_sys_global_symbol_pipe="$AWK '"\
14104 " {last_section=section; section=\$ 3};"\
14105 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14106 " \$ 0!~/External *\|/{next};"\
14107 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14108 " {if(hide[section]) next};"\
14109 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14110 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14111 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14112 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14113 " ' prfx=^$ac_symprfx"
14114 else
14115 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14118 # Check to see that the pipe works correctly.
14119 pipe_works=no
14121 rm -f conftest*
14122 cat > conftest.$ac_ext <<_LT_EOF
14123 #ifdef __cplusplus
14124 extern "C" {
14125 #endif
14126 char nm_test_var;
14127 void nm_test_func(void);
14128 void nm_test_func(void){}
14129 #ifdef __cplusplus
14131 #endif
14132 int main(){nm_test_var='a';nm_test_func();return(0);}
14133 _LT_EOF
14135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14136 (eval $ac_compile) 2>&5
14137 ac_status=$?
14138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139 test $ac_status = 0; }; then
14140 # Now try to grab the symbols.
14141 nlist=conftest.nm
14142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14143 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14144 ac_status=$?
14145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14146 test $ac_status = 0; } && test -s "$nlist"; then
14147 # Try sorting and uniquifying the output.
14148 if sort "$nlist" | uniq > "$nlist"T; then
14149 mv -f "$nlist"T "$nlist"
14150 else
14151 rm -f "$nlist"T
14154 # Make sure that we snagged all the symbols we need.
14155 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14156 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14157 cat <<_LT_EOF > conftest.$ac_ext
14158 #ifdef __cplusplus
14159 extern "C" {
14160 #endif
14162 _LT_EOF
14163 # Now generate the symbol file.
14164 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14166 cat <<_LT_EOF >> conftest.$ac_ext
14168 /* The mapping between symbol names and symbols. */
14169 const struct {
14170 const char *name;
14171 void *address;
14173 lt__PROGRAM__LTX_preloaded_symbols[] =
14175 { "@PROGRAM@", (void *) 0 },
14176 _LT_EOF
14177 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14178 cat <<\_LT_EOF >> conftest.$ac_ext
14179 {0, (void *) 0}
14182 /* This works around a problem in FreeBSD linker */
14183 #ifdef FREEBSD_WORKAROUND
14184 static const void *lt_preloaded_setup() {
14185 return lt__PROGRAM__LTX_preloaded_symbols;
14187 #endif
14189 #ifdef __cplusplus
14191 #endif
14192 _LT_EOF
14193 # Now try linking the two files.
14194 mv conftest.$ac_objext conftstm.$ac_objext
14195 lt_save_LIBS="$LIBS"
14196 lt_save_CFLAGS="$CFLAGS"
14197 LIBS="conftstm.$ac_objext"
14198 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14200 (eval $ac_link) 2>&5
14201 ac_status=$?
14202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14203 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14204 pipe_works=yes
14206 LIBS="$lt_save_LIBS"
14207 CFLAGS="$lt_save_CFLAGS"
14208 else
14209 echo "cannot find nm_test_func in $nlist" >&5
14211 else
14212 echo "cannot find nm_test_var in $nlist" >&5
14214 else
14215 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14217 else
14218 echo "$progname: failed program was:" >&5
14219 cat conftest.$ac_ext >&5
14221 rm -rf conftest* conftst*
14223 # Do not use the global_symbol_pipe unless it works.
14224 if test "$pipe_works" = yes; then
14225 break
14226 else
14227 lt_cv_sys_global_symbol_pipe=
14229 done
14233 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14234 lt_cv_sys_global_symbol_to_cdecl=
14236 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14238 $as_echo "failed" >&6; }
14239 else
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14241 $as_echo "ok" >&6; }
14265 # Check whether --enable-libtool-lock was given.
14266 if test "${enable_libtool_lock+set}" = set; then :
14267 enableval=$enable_libtool_lock;
14270 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14272 # Some flags need to be propagated to the compiler or linker for good
14273 # libtool support.
14274 case $host in
14275 ia64-*-hpux*)
14276 # Find out which ABI we are using.
14277 echo 'int i;' > conftest.$ac_ext
14278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14279 (eval $ac_compile) 2>&5
14280 ac_status=$?
14281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14282 test $ac_status = 0; }; then
14283 case `/usr/bin/file conftest.$ac_objext` in
14284 *ELF-32*)
14285 HPUX_IA64_MODE="32"
14287 *ELF-64*)
14288 HPUX_IA64_MODE="64"
14290 esac
14292 rm -rf conftest*
14294 *-*-irix6*)
14295 # Find out which ABI we are using.
14296 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14298 (eval $ac_compile) 2>&5
14299 ac_status=$?
14300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14301 test $ac_status = 0; }; then
14302 if test "$lt_cv_prog_gnu_ld" = yes; then
14303 case `/usr/bin/file conftest.$ac_objext` in
14304 *32-bit*)
14305 LD="${LD-ld} -melf32bsmip"
14307 *N32*)
14308 LD="${LD-ld} -melf32bmipn32"
14310 *64-bit*)
14311 LD="${LD-ld} -melf64bmip"
14313 esac
14314 else
14315 case `/usr/bin/file conftest.$ac_objext` in
14316 *32-bit*)
14317 LD="${LD-ld} -32"
14319 *N32*)
14320 LD="${LD-ld} -n32"
14322 *64-bit*)
14323 LD="${LD-ld} -64"
14325 esac
14328 rm -rf conftest*
14331 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14332 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14333 # Find out which ABI we are using.
14334 echo 'int i;' > conftest.$ac_ext
14335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14336 (eval $ac_compile) 2>&5
14337 ac_status=$?
14338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14339 test $ac_status = 0; }; then
14340 case `/usr/bin/file conftest.o` in
14341 *32-bit*)
14342 case $host in
14343 x86_64-*kfreebsd*-gnu)
14344 LD="${LD-ld} -m elf_i386_fbsd"
14346 x86_64-*linux*)
14347 case `/usr/bin/file conftest.o` in
14348 *x86-64*)
14349 LD="${LD-ld} -m elf32_x86_64"
14352 LD="${LD-ld} -m elf_i386"
14354 esac
14356 powerpc64le-*linux*)
14357 LD="${LD-ld} -m elf32lppclinux"
14359 powerpc64-*linux*)
14360 LD="${LD-ld} -m elf32ppclinux"
14362 s390x-*linux*)
14363 LD="${LD-ld} -m elf_s390"
14365 sparc64-*linux*)
14366 LD="${LD-ld} -m elf32_sparc"
14368 esac
14370 *64-bit*)
14371 case $host in
14372 x86_64-*kfreebsd*-gnu)
14373 LD="${LD-ld} -m elf_x86_64_fbsd"
14375 x86_64-*linux*)
14376 LD="${LD-ld} -m elf_x86_64"
14378 powerpcle-*linux*)
14379 LD="${LD-ld} -m elf64lppc"
14381 powerpc-*linux*)
14382 LD="${LD-ld} -m elf64ppc"
14384 s390*-*linux*|s390*-*tpf*)
14385 LD="${LD-ld} -m elf64_s390"
14387 sparc*-*linux*)
14388 LD="${LD-ld} -m elf64_sparc"
14390 esac
14392 esac
14394 rm -rf conftest*
14397 *-*-sco3.2v5*)
14398 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14399 SAVE_CFLAGS="$CFLAGS"
14400 CFLAGS="$CFLAGS -belf"
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14402 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14403 if ${lt_cv_cc_needs_belf+:} false; then :
14404 $as_echo_n "(cached) " >&6
14405 else
14406 ac_ext=c
14407 ac_cpp='$CPP $CPPFLAGS'
14408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14416 main ()
14420 return 0;
14422 _ACEOF
14423 if ac_fn_c_try_link "$LINENO"; then :
14424 lt_cv_cc_needs_belf=yes
14425 else
14426 lt_cv_cc_needs_belf=no
14428 rm -f core conftest.err conftest.$ac_objext \
14429 conftest$ac_exeext conftest.$ac_ext
14430 ac_ext=c
14431 ac_cpp='$CPP $CPPFLAGS'
14432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14438 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14439 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14440 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14441 CFLAGS="$SAVE_CFLAGS"
14444 sparc*-*solaris*)
14445 # Find out which ABI we are using.
14446 echo 'int i;' > conftest.$ac_ext
14447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14448 (eval $ac_compile) 2>&5
14449 ac_status=$?
14450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14451 test $ac_status = 0; }; then
14452 case `/usr/bin/file conftest.o` in
14453 *64-bit*)
14454 case $lt_cv_prog_gnu_ld in
14455 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14457 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14458 LD="${LD-ld} -64"
14461 esac
14463 esac
14465 rm -rf conftest*
14467 esac
14469 need_locks="$enable_libtool_lock"
14472 case $host_os in
14473 rhapsody* | darwin*)
14474 if test -n "$ac_tool_prefix"; then
14475 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14476 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14478 $as_echo_n "checking for $ac_word... " >&6; }
14479 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14480 $as_echo_n "(cached) " >&6
14481 else
14482 if test -n "$DSYMUTIL"; then
14483 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14484 else
14485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14486 for as_dir in $PATH
14488 IFS=$as_save_IFS
14489 test -z "$as_dir" && as_dir=.
14490 for ac_exec_ext in '' $ac_executable_extensions; do
14491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14492 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14494 break 2
14496 done
14497 done
14498 IFS=$as_save_IFS
14502 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14503 if test -n "$DSYMUTIL"; then
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14505 $as_echo "$DSYMUTIL" >&6; }
14506 else
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14508 $as_echo "no" >&6; }
14513 if test -z "$ac_cv_prog_DSYMUTIL"; then
14514 ac_ct_DSYMUTIL=$DSYMUTIL
14515 # Extract the first word of "dsymutil", so it can be a program name with args.
14516 set dummy dsymutil; ac_word=$2
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14518 $as_echo_n "checking for $ac_word... " >&6; }
14519 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14520 $as_echo_n "(cached) " >&6
14521 else
14522 if test -n "$ac_ct_DSYMUTIL"; then
14523 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14524 else
14525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14526 for as_dir in $PATH
14528 IFS=$as_save_IFS
14529 test -z "$as_dir" && as_dir=.
14530 for ac_exec_ext in '' $ac_executable_extensions; do
14531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14532 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14534 break 2
14536 done
14537 done
14538 IFS=$as_save_IFS
14542 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14543 if test -n "$ac_ct_DSYMUTIL"; then
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14545 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14546 else
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14548 $as_echo "no" >&6; }
14551 if test "x$ac_ct_DSYMUTIL" = x; then
14552 DSYMUTIL=":"
14553 else
14554 case $cross_compiling:$ac_tool_warned in
14555 yes:)
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14558 ac_tool_warned=yes ;;
14559 esac
14560 DSYMUTIL=$ac_ct_DSYMUTIL
14562 else
14563 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14566 if test -n "$ac_tool_prefix"; then
14567 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14568 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14570 $as_echo_n "checking for $ac_word... " >&6; }
14571 if ${ac_cv_prog_NMEDIT+:} false; then :
14572 $as_echo_n "(cached) " >&6
14573 else
14574 if test -n "$NMEDIT"; then
14575 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14576 else
14577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14578 for as_dir in $PATH
14580 IFS=$as_save_IFS
14581 test -z "$as_dir" && as_dir=.
14582 for ac_exec_ext in '' $ac_executable_extensions; do
14583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14584 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14586 break 2
14588 done
14589 done
14590 IFS=$as_save_IFS
14594 NMEDIT=$ac_cv_prog_NMEDIT
14595 if test -n "$NMEDIT"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14597 $as_echo "$NMEDIT" >&6; }
14598 else
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600 $as_echo "no" >&6; }
14605 if test -z "$ac_cv_prog_NMEDIT"; then
14606 ac_ct_NMEDIT=$NMEDIT
14607 # Extract the first word of "nmedit", so it can be a program name with args.
14608 set dummy nmedit; ac_word=$2
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14610 $as_echo_n "checking for $ac_word... " >&6; }
14611 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 if test -n "$ac_ct_NMEDIT"; then
14615 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14616 else
14617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14618 for as_dir in $PATH
14620 IFS=$as_save_IFS
14621 test -z "$as_dir" && as_dir=.
14622 for ac_exec_ext in '' $ac_executable_extensions; do
14623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14624 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14626 break 2
14628 done
14629 done
14630 IFS=$as_save_IFS
14634 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14635 if test -n "$ac_ct_NMEDIT"; then
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14637 $as_echo "$ac_ct_NMEDIT" >&6; }
14638 else
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640 $as_echo "no" >&6; }
14643 if test "x$ac_ct_NMEDIT" = x; then
14644 NMEDIT=":"
14645 else
14646 case $cross_compiling:$ac_tool_warned in
14647 yes:)
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14650 ac_tool_warned=yes ;;
14651 esac
14652 NMEDIT=$ac_ct_NMEDIT
14654 else
14655 NMEDIT="$ac_cv_prog_NMEDIT"
14658 if test -n "$ac_tool_prefix"; then
14659 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14660 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14662 $as_echo_n "checking for $ac_word... " >&6; }
14663 if ${ac_cv_prog_LIPO+:} false; then :
14664 $as_echo_n "(cached) " >&6
14665 else
14666 if test -n "$LIPO"; then
14667 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14668 else
14669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14670 for as_dir in $PATH
14672 IFS=$as_save_IFS
14673 test -z "$as_dir" && as_dir=.
14674 for ac_exec_ext in '' $ac_executable_extensions; do
14675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14676 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14678 break 2
14680 done
14681 done
14682 IFS=$as_save_IFS
14686 LIPO=$ac_cv_prog_LIPO
14687 if test -n "$LIPO"; then
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14689 $as_echo "$LIPO" >&6; }
14690 else
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 $as_echo "no" >&6; }
14697 if test -z "$ac_cv_prog_LIPO"; then
14698 ac_ct_LIPO=$LIPO
14699 # Extract the first word of "lipo", so it can be a program name with args.
14700 set dummy lipo; ac_word=$2
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14702 $as_echo_n "checking for $ac_word... " >&6; }
14703 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 if test -n "$ac_ct_LIPO"; then
14707 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14708 else
14709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710 for as_dir in $PATH
14712 IFS=$as_save_IFS
14713 test -z "$as_dir" && as_dir=.
14714 for ac_exec_ext in '' $ac_executable_extensions; do
14715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14716 ac_cv_prog_ac_ct_LIPO="lipo"
14717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14718 break 2
14720 done
14721 done
14722 IFS=$as_save_IFS
14726 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14727 if test -n "$ac_ct_LIPO"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14729 $as_echo "$ac_ct_LIPO" >&6; }
14730 else
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14732 $as_echo "no" >&6; }
14735 if test "x$ac_ct_LIPO" = x; then
14736 LIPO=":"
14737 else
14738 case $cross_compiling:$ac_tool_warned in
14739 yes:)
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14742 ac_tool_warned=yes ;;
14743 esac
14744 LIPO=$ac_ct_LIPO
14746 else
14747 LIPO="$ac_cv_prog_LIPO"
14750 if test -n "$ac_tool_prefix"; then
14751 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14752 set dummy ${ac_tool_prefix}otool; ac_word=$2
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14754 $as_echo_n "checking for $ac_word... " >&6; }
14755 if ${ac_cv_prog_OTOOL+:} false; then :
14756 $as_echo_n "(cached) " >&6
14757 else
14758 if test -n "$OTOOL"; then
14759 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14760 else
14761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14762 for as_dir in $PATH
14764 IFS=$as_save_IFS
14765 test -z "$as_dir" && as_dir=.
14766 for ac_exec_ext in '' $ac_executable_extensions; do
14767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14768 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14770 break 2
14772 done
14773 done
14774 IFS=$as_save_IFS
14778 OTOOL=$ac_cv_prog_OTOOL
14779 if test -n "$OTOOL"; then
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14781 $as_echo "$OTOOL" >&6; }
14782 else
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14784 $as_echo "no" >&6; }
14789 if test -z "$ac_cv_prog_OTOOL"; then
14790 ac_ct_OTOOL=$OTOOL
14791 # Extract the first word of "otool", so it can be a program name with args.
14792 set dummy otool; ac_word=$2
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14794 $as_echo_n "checking for $ac_word... " >&6; }
14795 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14796 $as_echo_n "(cached) " >&6
14797 else
14798 if test -n "$ac_ct_OTOOL"; then
14799 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14800 else
14801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14802 for as_dir in $PATH
14804 IFS=$as_save_IFS
14805 test -z "$as_dir" && as_dir=.
14806 for ac_exec_ext in '' $ac_executable_extensions; do
14807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14808 ac_cv_prog_ac_ct_OTOOL="otool"
14809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14810 break 2
14812 done
14813 done
14814 IFS=$as_save_IFS
14818 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14819 if test -n "$ac_ct_OTOOL"; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14821 $as_echo "$ac_ct_OTOOL" >&6; }
14822 else
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14824 $as_echo "no" >&6; }
14827 if test "x$ac_ct_OTOOL" = x; then
14828 OTOOL=":"
14829 else
14830 case $cross_compiling:$ac_tool_warned in
14831 yes:)
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14834 ac_tool_warned=yes ;;
14835 esac
14836 OTOOL=$ac_ct_OTOOL
14838 else
14839 OTOOL="$ac_cv_prog_OTOOL"
14842 if test -n "$ac_tool_prefix"; then
14843 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14844 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14846 $as_echo_n "checking for $ac_word... " >&6; }
14847 if ${ac_cv_prog_OTOOL64+:} false; then :
14848 $as_echo_n "(cached) " >&6
14849 else
14850 if test -n "$OTOOL64"; then
14851 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14852 else
14853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14854 for as_dir in $PATH
14856 IFS=$as_save_IFS
14857 test -z "$as_dir" && as_dir=.
14858 for ac_exec_ext in '' $ac_executable_extensions; do
14859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14860 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14862 break 2
14864 done
14865 done
14866 IFS=$as_save_IFS
14870 OTOOL64=$ac_cv_prog_OTOOL64
14871 if test -n "$OTOOL64"; then
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14873 $as_echo "$OTOOL64" >&6; }
14874 else
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14876 $as_echo "no" >&6; }
14881 if test -z "$ac_cv_prog_OTOOL64"; then
14882 ac_ct_OTOOL64=$OTOOL64
14883 # Extract the first word of "otool64", so it can be a program name with args.
14884 set dummy otool64; ac_word=$2
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14886 $as_echo_n "checking for $ac_word... " >&6; }
14887 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14888 $as_echo_n "(cached) " >&6
14889 else
14890 if test -n "$ac_ct_OTOOL64"; then
14891 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14892 else
14893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14894 for as_dir in $PATH
14896 IFS=$as_save_IFS
14897 test -z "$as_dir" && as_dir=.
14898 for ac_exec_ext in '' $ac_executable_extensions; do
14899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14900 ac_cv_prog_ac_ct_OTOOL64="otool64"
14901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14902 break 2
14904 done
14905 done
14906 IFS=$as_save_IFS
14910 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14911 if test -n "$ac_ct_OTOOL64"; then
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14913 $as_echo "$ac_ct_OTOOL64" >&6; }
14914 else
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14916 $as_echo "no" >&6; }
14919 if test "x$ac_ct_OTOOL64" = x; then
14920 OTOOL64=":"
14921 else
14922 case $cross_compiling:$ac_tool_warned in
14923 yes:)
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14926 ac_tool_warned=yes ;;
14927 esac
14928 OTOOL64=$ac_ct_OTOOL64
14930 else
14931 OTOOL64="$ac_cv_prog_OTOOL64"
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14961 $as_echo_n "checking for -single_module linker flag... " >&6; }
14962 if ${lt_cv_apple_cc_single_mod+:} false; then :
14963 $as_echo_n "(cached) " >&6
14964 else
14965 lt_cv_apple_cc_single_mod=no
14966 if test -z "${LT_MULTI_MODULE}"; then
14967 # By default we will add the -single_module flag. You can override
14968 # by either setting the environment variable LT_MULTI_MODULE
14969 # non-empty at configure time, or by adding -multi_module to the
14970 # link flags.
14971 rm -rf libconftest.dylib*
14972 echo "int foo(void){return 1;}" > conftest.c
14973 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14974 -dynamiclib -Wl,-single_module conftest.c" >&5
14975 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14976 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14977 _lt_result=$?
14978 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14979 lt_cv_apple_cc_single_mod=yes
14980 else
14981 cat conftest.err >&5
14983 rm -rf libconftest.dylib*
14984 rm -f conftest.*
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14988 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14990 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14991 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14992 $as_echo_n "(cached) " >&6
14993 else
14994 lt_cv_ld_exported_symbols_list=no
14995 save_LDFLAGS=$LDFLAGS
14996 echo "_main" > conftest.sym
14997 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999 /* end confdefs.h. */
15002 main ()
15006 return 0;
15008 _ACEOF
15009 if ac_fn_c_try_link "$LINENO"; then :
15010 lt_cv_ld_exported_symbols_list=yes
15011 else
15012 lt_cv_ld_exported_symbols_list=no
15014 rm -f core conftest.err conftest.$ac_objext \
15015 conftest$ac_exeext conftest.$ac_ext
15016 LDFLAGS="$save_LDFLAGS"
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15020 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15022 $as_echo_n "checking for -force_load linker flag... " >&6; }
15023 if ${lt_cv_ld_force_load+:} false; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15026 lt_cv_ld_force_load=no
15027 cat > conftest.c << _LT_EOF
15028 int forced_loaded() { return 2;}
15029 _LT_EOF
15030 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15031 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15032 echo "$AR cru libconftest.a conftest.o" >&5
15033 $AR cru libconftest.a conftest.o 2>&5
15034 cat > conftest.c << _LT_EOF
15035 int main() { return 0;}
15036 _LT_EOF
15037 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15038 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15039 _lt_result=$?
15040 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15041 lt_cv_ld_force_load=yes
15042 else
15043 cat conftest.err >&5
15045 rm -f conftest.err libconftest.a conftest conftest.c
15046 rm -rf conftest.dSYM
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15050 $as_echo "$lt_cv_ld_force_load" >&6; }
15051 case $host_os in
15052 rhapsody* | darwin1.[012])
15053 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15054 darwin1.*)
15055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15056 darwin*) # darwin 5.x on
15057 # if running on 10.5 or later, the deployment target defaults
15058 # to the OS version, if on x86, and 10.4, the deployment
15059 # target defaults to 10.4. Don't you love it?
15060 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15061 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15062 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15063 10.[012][,.]*)
15064 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15065 10.*)
15066 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15067 esac
15069 esac
15070 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15071 _lt_dar_single_mod='$single_module'
15073 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15074 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15075 else
15076 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15078 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15079 _lt_dsymutil='~$DSYMUTIL $lib || :'
15080 else
15081 _lt_dsymutil=
15084 esac
15087 for ac_header in dlfcn.h
15088 do :
15089 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15090 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15091 cat >>confdefs.h <<_ACEOF
15092 #define HAVE_DLFCN_H 1
15093 _ACEOF
15096 done
15102 # Set options
15106 enable_dlopen=no
15109 enable_win32_dll=no
15112 # Check whether --enable-shared was given.
15113 if test "${enable_shared+set}" = set; then :
15114 enableval=$enable_shared; p=${PACKAGE-default}
15115 case $enableval in
15116 yes) enable_shared=yes ;;
15117 no) enable_shared=no ;;
15119 enable_shared=no
15120 # Look at the argument we got. We use all the common list separators.
15121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15122 for pkg in $enableval; do
15123 IFS="$lt_save_ifs"
15124 if test "X$pkg" = "X$p"; then
15125 enable_shared=yes
15127 done
15128 IFS="$lt_save_ifs"
15130 esac
15131 else
15132 enable_shared=yes
15143 # Check whether --enable-static was given.
15144 if test "${enable_static+set}" = set; then :
15145 enableval=$enable_static; p=${PACKAGE-default}
15146 case $enableval in
15147 yes) enable_static=yes ;;
15148 no) enable_static=no ;;
15150 enable_static=no
15151 # Look at the argument we got. We use all the common list separators.
15152 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15153 for pkg in $enableval; do
15154 IFS="$lt_save_ifs"
15155 if test "X$pkg" = "X$p"; then
15156 enable_static=yes
15158 done
15159 IFS="$lt_save_ifs"
15161 esac
15162 else
15163 enable_static=yes
15175 # Check whether --with-pic was given.
15176 if test "${with_pic+set}" = set; then :
15177 withval=$with_pic; pic_mode="$withval"
15178 else
15179 pic_mode=default
15183 test -z "$pic_mode" && pic_mode=default
15191 # Check whether --enable-fast-install was given.
15192 if test "${enable_fast_install+set}" = set; then :
15193 enableval=$enable_fast_install; p=${PACKAGE-default}
15194 case $enableval in
15195 yes) enable_fast_install=yes ;;
15196 no) enable_fast_install=no ;;
15198 enable_fast_install=no
15199 # Look at the argument we got. We use all the common list separators.
15200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15201 for pkg in $enableval; do
15202 IFS="$lt_save_ifs"
15203 if test "X$pkg" = "X$p"; then
15204 enable_fast_install=yes
15206 done
15207 IFS="$lt_save_ifs"
15209 esac
15210 else
15211 enable_fast_install=yes
15224 # This can be used to rebuild libtool when needed
15225 LIBTOOL_DEPS="$ltmain"
15227 # Always use our own libtool.
15228 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15255 test -z "$LN_S" && LN_S="ln -s"
15270 if test -n "${ZSH_VERSION+set}" ; then
15271 setopt NO_GLOB_SUBST
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15275 $as_echo_n "checking for objdir... " >&6; }
15276 if ${lt_cv_objdir+:} false; then :
15277 $as_echo_n "(cached) " >&6
15278 else
15279 rm -f .libs 2>/dev/null
15280 mkdir .libs 2>/dev/null
15281 if test -d .libs; then
15282 lt_cv_objdir=.libs
15283 else
15284 # MS-DOS does not allow filenames that begin with a dot.
15285 lt_cv_objdir=_libs
15287 rmdir .libs 2>/dev/null
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15290 $as_echo "$lt_cv_objdir" >&6; }
15291 objdir=$lt_cv_objdir
15297 cat >>confdefs.h <<_ACEOF
15298 #define LT_OBJDIR "$lt_cv_objdir/"
15299 _ACEOF
15304 case $host_os in
15305 aix3*)
15306 # AIX sometimes has problems with the GCC collect2 program. For some
15307 # reason, if we set the COLLECT_NAMES environment variable, the problems
15308 # vanish in a puff of smoke.
15309 if test "X${COLLECT_NAMES+set}" != Xset; then
15310 COLLECT_NAMES=
15311 export COLLECT_NAMES
15314 esac
15316 # Global variables:
15317 ofile=libtool
15318 can_build_shared=yes
15320 # All known linkers require a `.a' archive for static linking (except MSVC,
15321 # which needs '.lib').
15322 libext=a
15324 with_gnu_ld="$lt_cv_prog_gnu_ld"
15326 old_CC="$CC"
15327 old_CFLAGS="$CFLAGS"
15329 # Set sane defaults for various variables
15330 test -z "$CC" && CC=cc
15331 test -z "$LTCC" && LTCC=$CC
15332 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15333 test -z "$LD" && LD=ld
15334 test -z "$ac_objext" && ac_objext=o
15336 for cc_temp in $compiler""; do
15337 case $cc_temp in
15338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15340 \-*) ;;
15341 *) break;;
15342 esac
15343 done
15344 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15347 # Only perform the check for file, if the check method requires it
15348 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15349 case $deplibs_check_method in
15350 file_magic*)
15351 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15353 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15354 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15355 $as_echo_n "(cached) " >&6
15356 else
15357 case $MAGIC_CMD in
15358 [\\/*] | ?:[\\/]*)
15359 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15362 lt_save_MAGIC_CMD="$MAGIC_CMD"
15363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15364 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15365 for ac_dir in $ac_dummy; do
15366 IFS="$lt_save_ifs"
15367 test -z "$ac_dir" && ac_dir=.
15368 if test -f $ac_dir/${ac_tool_prefix}file; then
15369 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15370 if test -n "$file_magic_test_file"; then
15371 case $deplibs_check_method in
15372 "file_magic "*)
15373 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15375 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15376 $EGREP "$file_magic_regex" > /dev/null; then
15378 else
15379 cat <<_LT_EOF 1>&2
15381 *** Warning: the command libtool uses to detect shared libraries,
15382 *** $file_magic_cmd, produces output that libtool cannot recognize.
15383 *** The result is that libtool may fail to recognize shared libraries
15384 *** as such. This will affect the creation of libtool libraries that
15385 *** depend on shared libraries, but programs linked with such libtool
15386 *** libraries will work regardless of this problem. Nevertheless, you
15387 *** may want to report the problem to your system manager and/or to
15388 *** bug-libtool@gnu.org
15390 _LT_EOF
15391 fi ;;
15392 esac
15394 break
15396 done
15397 IFS="$lt_save_ifs"
15398 MAGIC_CMD="$lt_save_MAGIC_CMD"
15400 esac
15403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15404 if test -n "$MAGIC_CMD"; then
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15406 $as_echo "$MAGIC_CMD" >&6; }
15407 else
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15409 $as_echo "no" >&6; }
15416 if test -z "$lt_cv_path_MAGIC_CMD"; then
15417 if test -n "$ac_tool_prefix"; then
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15419 $as_echo_n "checking for file... " >&6; }
15420 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15421 $as_echo_n "(cached) " >&6
15422 else
15423 case $MAGIC_CMD in
15424 [\\/*] | ?:[\\/]*)
15425 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15428 lt_save_MAGIC_CMD="$MAGIC_CMD"
15429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15430 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15431 for ac_dir in $ac_dummy; do
15432 IFS="$lt_save_ifs"
15433 test -z "$ac_dir" && ac_dir=.
15434 if test -f $ac_dir/file; then
15435 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15436 if test -n "$file_magic_test_file"; then
15437 case $deplibs_check_method in
15438 "file_magic "*)
15439 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15441 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15442 $EGREP "$file_magic_regex" > /dev/null; then
15444 else
15445 cat <<_LT_EOF 1>&2
15447 *** Warning: the command libtool uses to detect shared libraries,
15448 *** $file_magic_cmd, produces output that libtool cannot recognize.
15449 *** The result is that libtool may fail to recognize shared libraries
15450 *** as such. This will affect the creation of libtool libraries that
15451 *** depend on shared libraries, but programs linked with such libtool
15452 *** libraries will work regardless of this problem. Nevertheless, you
15453 *** may want to report the problem to your system manager and/or to
15454 *** bug-libtool@gnu.org
15456 _LT_EOF
15457 fi ;;
15458 esac
15460 break
15462 done
15463 IFS="$lt_save_ifs"
15464 MAGIC_CMD="$lt_save_MAGIC_CMD"
15466 esac
15469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15470 if test -n "$MAGIC_CMD"; then
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15472 $as_echo "$MAGIC_CMD" >&6; }
15473 else
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15475 $as_echo "no" >&6; }
15479 else
15480 MAGIC_CMD=:
15486 esac
15488 # Use C for the default configuration in the libtool script
15490 lt_save_CC="$CC"
15491 ac_ext=c
15492 ac_cpp='$CPP $CPPFLAGS'
15493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15498 # Source file extension for C test sources.
15499 ac_ext=c
15501 # Object file extension for compiled C test sources.
15502 objext=o
15503 objext=$objext
15505 # Code to be used in simple compile tests
15506 lt_simple_compile_test_code="int some_variable = 0;"
15508 # Code to be used in simple link tests
15509 lt_simple_link_test_code='int main(){return(0);}'
15517 # If no C compiler was specified, use CC.
15518 LTCC=${LTCC-"$CC"}
15520 # If no C compiler flags were specified, use CFLAGS.
15521 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15523 # Allow CC to be a program name with arguments.
15524 compiler=$CC
15526 # Save the default compiler, since it gets overwritten when the other
15527 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15528 compiler_DEFAULT=$CC
15530 # save warnings/boilerplate of simple test code
15531 ac_outfile=conftest.$ac_objext
15532 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15533 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15534 _lt_compiler_boilerplate=`cat conftest.err`
15535 $RM conftest*
15537 ac_outfile=conftest.$ac_objext
15538 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15539 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15540 _lt_linker_boilerplate=`cat conftest.err`
15541 $RM -r conftest*
15544 ## CAVEAT EMPTOR:
15545 ## There is no encapsulation within the following macros, do not change
15546 ## the running order or otherwise move them around unless you know exactly
15547 ## what you are doing...
15548 if test -n "$compiler"; then
15550 lt_prog_compiler_no_builtin_flag=
15552 if test "$GCC" = yes; then
15553 case $cc_basename in
15554 nvcc*)
15555 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15557 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15558 esac
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15561 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15562 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15565 lt_cv_prog_compiler_rtti_exceptions=no
15566 ac_outfile=conftest.$ac_objext
15567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15568 lt_compiler_flag="-fno-rtti -fno-exceptions"
15569 # Insert the option either (1) after the last *FLAGS variable, or
15570 # (2) before a word containing "conftest.", or (3) at the end.
15571 # Note that $ac_compile itself does not contain backslashes and begins
15572 # with a dollar sign (not a hyphen), so the echo should work correctly.
15573 # The option is referenced via a variable to avoid confusing sed.
15574 lt_compile=`echo "$ac_compile" | $SED \
15575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15577 -e 's:$: $lt_compiler_flag:'`
15578 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15579 (eval "$lt_compile" 2>conftest.err)
15580 ac_status=$?
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 if (exit $ac_status) && test -s "$ac_outfile"; then
15584 # The compiler can only warn and ignore the option if not recognized
15585 # So say no if there are warnings other than the usual output.
15586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15588 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15589 lt_cv_prog_compiler_rtti_exceptions=yes
15592 $RM conftest*
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15596 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15598 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15599 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15600 else
15611 lt_prog_compiler_wl=
15612 lt_prog_compiler_pic=
15613 lt_prog_compiler_static=
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15616 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15618 if test "$GCC" = yes; then
15619 lt_prog_compiler_wl='-Wl,'
15620 lt_prog_compiler_static='-static'
15622 case $host_os in
15623 aix*)
15624 # All AIX code is PIC.
15625 if test "$host_cpu" = ia64; then
15626 # AIX 5 now supports IA64 processor
15627 lt_prog_compiler_static='-Bstatic'
15629 lt_prog_compiler_pic='-fPIC'
15632 amigaos*)
15633 case $host_cpu in
15634 powerpc)
15635 # see comment about AmigaOS4 .so support
15636 lt_prog_compiler_pic='-fPIC'
15638 m68k)
15639 # FIXME: we need at least 68020 code to build shared libraries, but
15640 # adding the `-m68020' flag to GCC prevents building anything better,
15641 # like `-m68040'.
15642 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15644 esac
15647 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15648 # PIC is the default for these OSes.
15651 mingw* | cygwin* | pw32* | os2* | cegcc*)
15652 # This hack is so that the source file can tell whether it is being
15653 # built for inclusion in a dll (and should export symbols for example).
15654 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15655 # (--disable-auto-import) libraries
15656 lt_prog_compiler_pic='-DDLL_EXPORT'
15659 darwin* | rhapsody*)
15660 # PIC is the default on this platform
15661 # Common symbols not allowed in MH_DYLIB files
15662 lt_prog_compiler_pic='-fno-common'
15665 haiku*)
15666 # PIC is the default for Haiku.
15667 # The "-static" flag exists, but is broken.
15668 lt_prog_compiler_static=
15671 hpux*)
15672 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15673 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15674 # sets the default TLS model and affects inlining.
15675 case $host_cpu in
15676 hppa*64*)
15677 # +Z the default
15680 lt_prog_compiler_pic='-fPIC'
15682 esac
15685 interix[3-9]*)
15686 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15687 # Instead, we relocate shared libraries at runtime.
15690 msdosdjgpp*)
15691 # Just because we use GCC doesn't mean we suddenly get shared libraries
15692 # on systems that don't support them.
15693 lt_prog_compiler_can_build_shared=no
15694 enable_shared=no
15697 *nto* | *qnx*)
15698 # QNX uses GNU C++, but need to define -shared option too, otherwise
15699 # it will coredump.
15700 lt_prog_compiler_pic='-fPIC -shared'
15703 sysv4*MP*)
15704 if test -d /usr/nec; then
15705 lt_prog_compiler_pic=-Kconform_pic
15710 lt_prog_compiler_pic='-fPIC'
15712 esac
15714 case $cc_basename in
15715 nvcc*) # Cuda Compiler Driver 2.2
15716 lt_prog_compiler_wl='-Xlinker '
15717 lt_prog_compiler_pic='-Xcompiler -fPIC'
15719 esac
15720 else
15721 # PORTME Check for flag to pass linker flags through the system compiler.
15722 case $host_os in
15723 aix*)
15724 lt_prog_compiler_wl='-Wl,'
15725 if test "$host_cpu" = ia64; then
15726 # AIX 5 now supports IA64 processor
15727 lt_prog_compiler_static='-Bstatic'
15728 else
15729 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15733 mingw* | cygwin* | pw32* | os2* | cegcc*)
15734 # This hack is so that the source file can tell whether it is being
15735 # built for inclusion in a dll (and should export symbols for example).
15736 lt_prog_compiler_pic='-DDLL_EXPORT'
15739 hpux9* | hpux10* | hpux11*)
15740 lt_prog_compiler_wl='-Wl,'
15741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15742 # not for PA HP-UX.
15743 case $host_cpu in
15744 hppa*64*|ia64*)
15745 # +Z the default
15748 lt_prog_compiler_pic='+Z'
15750 esac
15751 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15752 lt_prog_compiler_static='${wl}-a ${wl}archive'
15755 irix5* | irix6* | nonstopux*)
15756 lt_prog_compiler_wl='-Wl,'
15757 # PIC (with -KPIC) is the default.
15758 lt_prog_compiler_static='-non_shared'
15761 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15762 case $cc_basename in
15763 # old Intel for x86_64 which still supported -KPIC.
15764 ecc*)
15765 lt_prog_compiler_wl='-Wl,'
15766 lt_prog_compiler_pic='-KPIC'
15767 lt_prog_compiler_static='-static'
15769 # icc used to be incompatible with GCC.
15770 # ICC 10 doesn't accept -KPIC any more.
15771 icc* | ifort*)
15772 lt_prog_compiler_wl='-Wl,'
15773 lt_prog_compiler_pic='-fPIC'
15774 lt_prog_compiler_static='-static'
15776 # Lahey Fortran 8.1.
15777 lf95*)
15778 lt_prog_compiler_wl='-Wl,'
15779 lt_prog_compiler_pic='--shared'
15780 lt_prog_compiler_static='--static'
15782 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15783 # Portland Group compilers (*not* the Pentium gcc compiler,
15784 # which looks to be a dead project)
15785 lt_prog_compiler_wl='-Wl,'
15786 lt_prog_compiler_pic='-fpic'
15787 lt_prog_compiler_static='-Bstatic'
15789 ccc*)
15790 lt_prog_compiler_wl='-Wl,'
15791 # All Alpha code is PIC.
15792 lt_prog_compiler_static='-non_shared'
15794 xl* | bgxl* | bgf* | mpixl*)
15795 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15796 lt_prog_compiler_wl='-Wl,'
15797 lt_prog_compiler_pic='-qpic'
15798 lt_prog_compiler_static='-qstaticlink'
15801 case `$CC -V 2>&1 | sed 5q` in
15802 *Sun\ F* | *Sun*Fortran*)
15803 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15804 lt_prog_compiler_pic='-KPIC'
15805 lt_prog_compiler_static='-Bstatic'
15806 lt_prog_compiler_wl=''
15808 *Sun\ C*)
15809 # Sun C 5.9
15810 lt_prog_compiler_pic='-KPIC'
15811 lt_prog_compiler_static='-Bstatic'
15812 lt_prog_compiler_wl='-Wl,'
15814 esac
15816 esac
15819 newsos6)
15820 lt_prog_compiler_pic='-KPIC'
15821 lt_prog_compiler_static='-Bstatic'
15824 *nto* | *qnx*)
15825 # QNX uses GNU C++, but need to define -shared option too, otherwise
15826 # it will coredump.
15827 lt_prog_compiler_pic='-fPIC -shared'
15830 osf3* | osf4* | osf5*)
15831 lt_prog_compiler_wl='-Wl,'
15832 # All OSF/1 code is PIC.
15833 lt_prog_compiler_static='-non_shared'
15836 rdos*)
15837 lt_prog_compiler_static='-non_shared'
15840 solaris*)
15841 lt_prog_compiler_pic='-KPIC'
15842 lt_prog_compiler_static='-Bstatic'
15843 case $cc_basename in
15844 f77* | f90* | f95*)
15845 lt_prog_compiler_wl='-Qoption ld ';;
15847 lt_prog_compiler_wl='-Wl,';;
15848 esac
15851 sunos4*)
15852 lt_prog_compiler_wl='-Qoption ld '
15853 lt_prog_compiler_pic='-PIC'
15854 lt_prog_compiler_static='-Bstatic'
15857 sysv4 | sysv4.2uw2* | sysv4.3*)
15858 lt_prog_compiler_wl='-Wl,'
15859 lt_prog_compiler_pic='-KPIC'
15860 lt_prog_compiler_static='-Bstatic'
15863 sysv4*MP*)
15864 if test -d /usr/nec ;then
15865 lt_prog_compiler_pic='-Kconform_pic'
15866 lt_prog_compiler_static='-Bstatic'
15870 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15871 lt_prog_compiler_wl='-Wl,'
15872 lt_prog_compiler_pic='-KPIC'
15873 lt_prog_compiler_static='-Bstatic'
15876 unicos*)
15877 lt_prog_compiler_wl='-Wl,'
15878 lt_prog_compiler_can_build_shared=no
15881 uts4*)
15882 lt_prog_compiler_pic='-pic'
15883 lt_prog_compiler_static='-Bstatic'
15887 lt_prog_compiler_can_build_shared=no
15889 esac
15892 case $host_os in
15893 # For platforms which do not support PIC, -DPIC is meaningless:
15894 *djgpp*)
15895 lt_prog_compiler_pic=
15898 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15900 esac
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15902 $as_echo "$lt_prog_compiler_pic" >&6; }
15910 # Check to make sure the PIC flag actually works.
15912 if test -n "$lt_prog_compiler_pic"; then
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15914 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15915 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15916 $as_echo_n "(cached) " >&6
15917 else
15918 lt_cv_prog_compiler_pic_works=no
15919 ac_outfile=conftest.$ac_objext
15920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15921 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15922 # Insert the option either (1) after the last *FLAGS variable, or
15923 # (2) before a word containing "conftest.", or (3) at the end.
15924 # Note that $ac_compile itself does not contain backslashes and begins
15925 # with a dollar sign (not a hyphen), so the echo should work correctly.
15926 # The option is referenced via a variable to avoid confusing sed.
15927 lt_compile=`echo "$ac_compile" | $SED \
15928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15930 -e 's:$: $lt_compiler_flag:'`
15931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15932 (eval "$lt_compile" 2>conftest.err)
15933 ac_status=$?
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 if (exit $ac_status) && test -s "$ac_outfile"; then
15937 # The compiler can only warn and ignore the option if not recognized
15938 # So say no if there are warnings other than the usual output.
15939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15941 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15942 lt_cv_prog_compiler_pic_works=yes
15945 $RM conftest*
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15949 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15951 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15952 case $lt_prog_compiler_pic in
15953 "" | " "*) ;;
15954 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15955 esac
15956 else
15957 lt_prog_compiler_pic=
15958 lt_prog_compiler_can_build_shared=no
15969 # Check to make sure the static flag actually works.
15971 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15973 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15974 if ${lt_cv_prog_compiler_static_works+:} false; then :
15975 $as_echo_n "(cached) " >&6
15976 else
15977 lt_cv_prog_compiler_static_works=no
15978 save_LDFLAGS="$LDFLAGS"
15979 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15980 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15981 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15982 # The linker can only warn and ignore the option if not recognized
15983 # So say no if there are warnings
15984 if test -s conftest.err; then
15985 # Append any errors to the config.log.
15986 cat conftest.err 1>&5
15987 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15989 if diff conftest.exp conftest.er2 >/dev/null; then
15990 lt_cv_prog_compiler_static_works=yes
15992 else
15993 lt_cv_prog_compiler_static_works=yes
15996 $RM -r conftest*
15997 LDFLAGS="$save_LDFLAGS"
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16001 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16003 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16005 else
16006 lt_prog_compiler_static=
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16017 if ${lt_cv_prog_compiler_c_o+:} false; then :
16018 $as_echo_n "(cached) " >&6
16019 else
16020 lt_cv_prog_compiler_c_o=no
16021 $RM -r conftest 2>/dev/null
16022 mkdir conftest
16023 cd conftest
16024 mkdir out
16025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16027 lt_compiler_flag="-o out/conftest2.$ac_objext"
16028 # Insert the option either (1) after the last *FLAGS variable, or
16029 # (2) before a word containing "conftest.", or (3) at the end.
16030 # Note that $ac_compile itself does not contain backslashes and begins
16031 # with a dollar sign (not a hyphen), so the echo should work correctly.
16032 lt_compile=`echo "$ac_compile" | $SED \
16033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16035 -e 's:$: $lt_compiler_flag:'`
16036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16037 (eval "$lt_compile" 2>out/conftest.err)
16038 ac_status=$?
16039 cat out/conftest.err >&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16042 then
16043 # The compiler can only warn and ignore the option if not recognized
16044 # So say no if there are warnings
16045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16048 lt_cv_prog_compiler_c_o=yes
16051 chmod u+w . 2>&5
16052 $RM conftest*
16053 # SGI C++ compiler will create directory out/ii_files/ for
16054 # template instantiation
16055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16056 $RM out/* && rmdir out
16057 cd ..
16058 $RM -r conftest
16059 $RM conftest*
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16063 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16071 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16072 if ${lt_cv_prog_compiler_c_o+:} false; then :
16073 $as_echo_n "(cached) " >&6
16074 else
16075 lt_cv_prog_compiler_c_o=no
16076 $RM -r conftest 2>/dev/null
16077 mkdir conftest
16078 cd conftest
16079 mkdir out
16080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16082 lt_compiler_flag="-o out/conftest2.$ac_objext"
16083 # Insert the option either (1) after the last *FLAGS variable, or
16084 # (2) before a word containing "conftest.", or (3) at the end.
16085 # Note that $ac_compile itself does not contain backslashes and begins
16086 # with a dollar sign (not a hyphen), so the echo should work correctly.
16087 lt_compile=`echo "$ac_compile" | $SED \
16088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16090 -e 's:$: $lt_compiler_flag:'`
16091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16092 (eval "$lt_compile" 2>out/conftest.err)
16093 ac_status=$?
16094 cat out/conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16097 then
16098 # The compiler can only warn and ignore the option if not recognized
16099 # So say no if there are warnings
16100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16103 lt_cv_prog_compiler_c_o=yes
16106 chmod u+w . 2>&5
16107 $RM conftest*
16108 # SGI C++ compiler will create directory out/ii_files/ for
16109 # template instantiation
16110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16111 $RM out/* && rmdir out
16112 cd ..
16113 $RM -r conftest
16114 $RM conftest*
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16118 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16123 hard_links="nottested"
16124 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16125 # do not overwrite the value of need_locks provided by the user
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16127 $as_echo_n "checking if we can lock with hard links... " >&6; }
16128 hard_links=yes
16129 $RM conftest*
16130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16131 touch conftest.a
16132 ln conftest.a conftest.b 2>&5 || hard_links=no
16133 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16135 $as_echo "$hard_links" >&6; }
16136 if test "$hard_links" = no; then
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16138 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16139 need_locks=warn
16141 else
16142 need_locks=no
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16151 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16153 runpath_var=
16154 allow_undefined_flag=
16155 always_export_symbols=no
16156 archive_cmds=
16157 archive_expsym_cmds=
16158 compiler_needs_object=no
16159 enable_shared_with_static_runtimes=no
16160 export_dynamic_flag_spec=
16161 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16162 hardcode_automatic=no
16163 hardcode_direct=no
16164 hardcode_direct_absolute=no
16165 hardcode_libdir_flag_spec=
16166 hardcode_libdir_flag_spec_ld=
16167 hardcode_libdir_separator=
16168 hardcode_minus_L=no
16169 hardcode_shlibpath_var=unsupported
16170 inherit_rpath=no
16171 link_all_deplibs=unknown
16172 module_cmds=
16173 module_expsym_cmds=
16174 old_archive_from_new_cmds=
16175 old_archive_from_expsyms_cmds=
16176 thread_safe_flag_spec=
16177 whole_archive_flag_spec=
16178 # include_expsyms should be a list of space-separated symbols to be *always*
16179 # included in the symbol list
16180 include_expsyms=
16181 # exclude_expsyms can be an extended regexp of symbols to exclude
16182 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16183 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16184 # as well as any symbol that contains `d'.
16185 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16186 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16187 # platforms (ab)use it in PIC code, but their linkers get confused if
16188 # the symbol is explicitly referenced. Since portable code cannot
16189 # rely on this symbol name, it's probably fine to never include it in
16190 # preloaded symbol tables.
16191 # Exclude shared library initialization/finalization symbols.
16192 extract_expsyms_cmds=
16194 case $host_os in
16195 cygwin* | mingw* | pw32* | cegcc*)
16196 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16197 # When not using gcc, we currently assume that we are using
16198 # Microsoft Visual C++.
16199 if test "$GCC" != yes; then
16200 with_gnu_ld=no
16203 interix*)
16204 # we just hope/assume this is gcc and not c89 (= MSVC++)
16205 with_gnu_ld=yes
16207 openbsd*)
16208 with_gnu_ld=no
16210 esac
16212 ld_shlibs=yes
16214 # On some targets, GNU ld is compatible enough with the native linker
16215 # that we're better off using the native interface for both.
16216 lt_use_gnu_ld_interface=no
16217 if test "$with_gnu_ld" = yes; then
16218 case $host_os in
16219 aix*)
16220 # The AIX port of GNU ld has always aspired to compatibility
16221 # with the native linker. However, as the warning in the GNU ld
16222 # block says, versions before 2.19.5* couldn't really create working
16223 # shared libraries, regardless of the interface used.
16224 case `$LD -v 2>&1` in
16225 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16226 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16227 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16229 lt_use_gnu_ld_interface=yes
16231 esac
16234 lt_use_gnu_ld_interface=yes
16236 esac
16239 if test "$lt_use_gnu_ld_interface" = yes; then
16240 # If archive_cmds runs LD, not CC, wlarc should be empty
16241 wlarc='${wl}'
16243 # Set some defaults for GNU ld with shared library support. These
16244 # are reset later if shared libraries are not supported. Putting them
16245 # here allows them to be overridden if necessary.
16246 runpath_var=LD_RUN_PATH
16247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16248 export_dynamic_flag_spec='${wl}--export-dynamic'
16249 # ancient GNU ld didn't support --whole-archive et. al.
16250 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16251 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16252 else
16253 whole_archive_flag_spec=
16255 supports_anon_versioning=no
16256 case `$LD -v 2>&1` in
16257 *GNU\ gold*) supports_anon_versioning=yes ;;
16258 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16259 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16260 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16261 *\ 2.11.*) ;; # other 2.11 versions
16262 *) supports_anon_versioning=yes ;;
16263 esac
16265 # See if GNU ld supports shared libraries.
16266 case $host_os in
16267 aix[3-9]*)
16268 # On AIX/PPC, the GNU linker is very broken
16269 if test "$host_cpu" != ia64; then
16270 ld_shlibs=no
16271 cat <<_LT_EOF 1>&2
16273 *** Warning: the GNU linker, at least up to release 2.19, is reported
16274 *** to be unable to reliably create shared libraries on AIX.
16275 *** Therefore, libtool is disabling shared libraries support. If you
16276 *** really care for shared libraries, you may want to install binutils
16277 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16278 *** You will then need to restart the configuration process.
16280 _LT_EOF
16284 amigaos*)
16285 case $host_cpu in
16286 powerpc)
16287 # see comment about AmigaOS4 .so support
16288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16289 archive_expsym_cmds=''
16291 m68k)
16292 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)'
16293 hardcode_libdir_flag_spec='-L$libdir'
16294 hardcode_minus_L=yes
16296 esac
16299 beos*)
16300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16301 allow_undefined_flag=unsupported
16302 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16303 # support --undefined. This deserves some investigation. FIXME
16304 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16305 else
16306 ld_shlibs=no
16310 cygwin* | mingw* | pw32* | cegcc*)
16311 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16312 # as there is no search path for DLLs.
16313 hardcode_libdir_flag_spec='-L$libdir'
16314 export_dynamic_flag_spec='${wl}--export-all-symbols'
16315 allow_undefined_flag=unsupported
16316 always_export_symbols=no
16317 enable_shared_with_static_runtimes=yes
16318 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16320 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16322 # If the export-symbols file already is a .def file (1st line
16323 # is EXPORTS), use it as is; otherwise, prepend...
16324 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16325 cp $export_symbols $output_objdir/$soname.def;
16326 else
16327 echo EXPORTS > $output_objdir/$soname.def;
16328 cat $export_symbols >> $output_objdir/$soname.def;
16330 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16331 else
16332 ld_shlibs=no
16336 haiku*)
16337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16338 link_all_deplibs=yes
16341 interix[3-9]*)
16342 hardcode_direct=no
16343 hardcode_shlibpath_var=no
16344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16345 export_dynamic_flag_spec='${wl}-E'
16346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16347 # Instead, shared libraries are loaded at an image base (0x10000000 by
16348 # default) and relocated if they conflict, which is a slow very memory
16349 # consuming and fragmenting process. To avoid this, we pick a random,
16350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16351 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16352 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16353 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'
16356 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16357 tmp_diet=no
16358 if test "$host_os" = linux-dietlibc; then
16359 case $cc_basename in
16360 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16361 esac
16363 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16364 && test "$tmp_diet" = no
16365 then
16366 tmp_addflag=' $pic_flag'
16367 tmp_sharedflag='-shared'
16368 case $cc_basename,$host_cpu in
16369 pgcc*) # Portland Group C compiler
16370 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'
16371 tmp_addflag=' $pic_flag'
16373 pgf77* | pgf90* | pgf95* | pgfortran*)
16374 # Portland Group f77 and f90 compilers
16375 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'
16376 tmp_addflag=' $pic_flag -Mnomain' ;;
16377 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16378 tmp_addflag=' -i_dynamic' ;;
16379 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16380 tmp_addflag=' -i_dynamic -nofor_main' ;;
16381 ifc* | ifort*) # Intel Fortran compiler
16382 tmp_addflag=' -nofor_main' ;;
16383 lf95*) # Lahey Fortran 8.1
16384 whole_archive_flag_spec=
16385 tmp_sharedflag='--shared' ;;
16386 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16387 tmp_sharedflag='-qmkshrobj'
16388 tmp_addflag= ;;
16389 nvcc*) # Cuda Compiler Driver 2.2
16390 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'
16391 compiler_needs_object=yes
16393 esac
16394 case `$CC -V 2>&1 | sed 5q` in
16395 *Sun\ C*) # Sun C 5.9
16396 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'
16397 compiler_needs_object=yes
16398 tmp_sharedflag='-G' ;;
16399 *Sun\ F*) # Sun Fortran 8.3
16400 tmp_sharedflag='-G' ;;
16401 esac
16402 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16404 if test "x$supports_anon_versioning" = xyes; then
16405 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16406 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16407 echo "local: *; };" >> $output_objdir/$libname.ver~
16408 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16411 case $cc_basename in
16412 xlf* | bgf* | bgxlf* | mpixlf*)
16413 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16414 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16415 hardcode_libdir_flag_spec=
16416 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16417 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16418 if test "x$supports_anon_versioning" = xyes; then
16419 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16420 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16421 echo "local: *; };" >> $output_objdir/$libname.ver~
16422 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16425 esac
16426 else
16427 ld_shlibs=no
16431 netbsd*)
16432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16433 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16434 wlarc=
16435 else
16436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16441 solaris*)
16442 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16443 ld_shlibs=no
16444 cat <<_LT_EOF 1>&2
16446 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16447 *** create shared libraries on Solaris systems. Therefore, libtool
16448 *** is disabling shared libraries support. We urge you to upgrade GNU
16449 *** binutils to release 2.9.1 or newer. Another option is to modify
16450 *** your PATH or compiler configuration so that the native linker is
16451 *** used, and then restart.
16453 _LT_EOF
16454 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16457 else
16458 ld_shlibs=no
16462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16463 case `$LD -v 2>&1` in
16464 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16465 ld_shlibs=no
16466 cat <<_LT_EOF 1>&2
16468 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16469 *** reliably create shared libraries on SCO systems. Therefore, libtool
16470 *** is disabling shared libraries support. We urge you to upgrade GNU
16471 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16472 *** your PATH or compiler configuration so that the native linker is
16473 *** used, and then restart.
16475 _LT_EOF
16478 # For security reasons, it is highly recommended that you always
16479 # use absolute paths for naming shared libraries, and exclude the
16480 # DT_RUNPATH tag from executables and libraries. But doing so
16481 # requires that you compile everything twice, which is a pain.
16482 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16486 else
16487 ld_shlibs=no
16490 esac
16493 sunos4*)
16494 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16495 wlarc=
16496 hardcode_direct=yes
16497 hardcode_shlibpath_var=no
16501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16504 else
16505 ld_shlibs=no
16508 esac
16510 if test "$ld_shlibs" = no; then
16511 runpath_var=
16512 hardcode_libdir_flag_spec=
16513 export_dynamic_flag_spec=
16514 whole_archive_flag_spec=
16516 else
16517 # PORTME fill in a description of your system's linker (not GNU ld)
16518 case $host_os in
16519 aix3*)
16520 allow_undefined_flag=unsupported
16521 always_export_symbols=yes
16522 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'
16523 # Note: this linker hardcodes the directories in LIBPATH if there
16524 # are no directories specified by -L.
16525 hardcode_minus_L=yes
16526 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16527 # Neither direct hardcoding nor static linking is supported with a
16528 # broken collect2.
16529 hardcode_direct=unsupported
16533 aix[4-9]*)
16534 if test "$host_cpu" = ia64; then
16535 # On IA64, the linker does run time linking by default, so we don't
16536 # have to do anything special.
16537 aix_use_runtimelinking=no
16538 exp_sym_flag='-Bexport'
16539 no_entry_flag=""
16540 else
16541 # If we're using GNU nm, then we don't want the "-C" option.
16542 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16543 # Also, AIX nm treats weak defined symbols like other global
16544 # defined symbols, whereas GNU nm marks them as "W".
16545 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16546 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'
16547 else
16548 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'
16550 aix_use_runtimelinking=no
16552 # Test if we are trying to use run time linking or normal
16553 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16554 # need to do runtime linking.
16555 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16556 for ld_flag in $LDFLAGS; do
16557 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16558 aix_use_runtimelinking=yes
16559 break
16561 done
16563 esac
16565 exp_sym_flag='-bexport'
16566 no_entry_flag='-bnoentry'
16569 # When large executables or shared objects are built, AIX ld can
16570 # have problems creating the table of contents. If linking a library
16571 # or program results in "error TOC overflow" add -mminimal-toc to
16572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16575 archive_cmds=''
16576 hardcode_direct=yes
16577 hardcode_direct_absolute=yes
16578 hardcode_libdir_separator=':'
16579 link_all_deplibs=yes
16580 file_list_spec='${wl}-f,'
16582 if test "$GCC" = yes; then
16583 case $host_os in aix4.[012]|aix4.[012].*)
16584 # We only want to do this on AIX 4.2 and lower, the check
16585 # below for broken collect2 doesn't work under 4.3+
16586 collect2name=`${CC} -print-prog-name=collect2`
16587 if test -f "$collect2name" &&
16588 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16589 then
16590 # We have reworked collect2
16592 else
16593 # We have old collect2
16594 hardcode_direct=unsupported
16595 # It fails to find uninstalled libraries when the uninstalled
16596 # path is not listed in the libpath. Setting hardcode_minus_L
16597 # to unsupported forces relinking
16598 hardcode_minus_L=yes
16599 hardcode_libdir_flag_spec='-L$libdir'
16600 hardcode_libdir_separator=
16603 esac
16604 shared_flag='-shared'
16605 if test "$aix_use_runtimelinking" = yes; then
16606 shared_flag="$shared_flag "'${wl}-G'
16608 else
16609 # not using gcc
16610 if test "$host_cpu" = ia64; then
16611 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16612 # chokes on -Wl,-G. The following line is correct:
16613 shared_flag='-G'
16614 else
16615 if test "$aix_use_runtimelinking" = yes; then
16616 shared_flag='${wl}-G'
16617 else
16618 shared_flag='${wl}-bM:SRE'
16623 export_dynamic_flag_spec='${wl}-bexpall'
16624 # It seems that -bexpall does not export symbols beginning with
16625 # underscore (_), so it is better to generate a list of symbols to export.
16626 always_export_symbols=yes
16627 if test "$aix_use_runtimelinking" = yes; then
16628 # Warning - without using the other runtime loading flags (-brtl),
16629 # -berok will link without error, but may produce a broken library.
16630 allow_undefined_flag='-berok'
16631 # Determine the default libpath from the value encoded in an
16632 # empty executable.
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16637 main ()
16641 return 0;
16643 _ACEOF
16644 if ac_fn_c_try_link "$LINENO"; then :
16646 lt_aix_libpath_sed='
16647 /Import File Strings/,/^$/ {
16648 /^0/ {
16649 s/^0 *\(.*\)$/\1/
16653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16654 # Check for a 64-bit object if we didn't find anything.
16655 if test -z "$aix_libpath"; then
16656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16659 rm -f core conftest.err conftest.$ac_objext \
16660 conftest$ac_exeext conftest.$ac_ext
16661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16663 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16664 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"
16665 else
16666 if test "$host_cpu" = ia64; then
16667 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16668 allow_undefined_flag="-z nodefs"
16669 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"
16670 else
16671 # Determine the default libpath from the value encoded in an
16672 # empty executable.
16673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16677 main ()
16681 return 0;
16683 _ACEOF
16684 if ac_fn_c_try_link "$LINENO"; then :
16686 lt_aix_libpath_sed='
16687 /Import File Strings/,/^$/ {
16688 /^0/ {
16689 s/^0 *\(.*\)$/\1/
16693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16694 # Check for a 64-bit object if we didn't find anything.
16695 if test -z "$aix_libpath"; then
16696 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16699 rm -f core conftest.err conftest.$ac_objext \
16700 conftest$ac_exeext conftest.$ac_ext
16701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16703 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16704 # Warning - without using the other run time loading flags,
16705 # -berok will link without error, but may produce a broken library.
16706 no_undefined_flag=' ${wl}-bernotok'
16707 allow_undefined_flag=' ${wl}-berok'
16708 if test "$with_gnu_ld" = yes; then
16709 # We only use this code for GNU lds that support --whole-archive.
16710 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16711 else
16712 # Exported symbols can be pulled into shared objects from archives
16713 whole_archive_flag_spec='$convenience'
16715 archive_cmds_need_lc=yes
16716 # This is similar to how AIX traditionally builds its shared libraries.
16717 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'
16722 amigaos*)
16723 case $host_cpu in
16724 powerpc)
16725 # see comment about AmigaOS4 .so support
16726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16727 archive_expsym_cmds=''
16729 m68k)
16730 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)'
16731 hardcode_libdir_flag_spec='-L$libdir'
16732 hardcode_minus_L=yes
16734 esac
16737 bsdi[45]*)
16738 export_dynamic_flag_spec=-rdynamic
16741 cygwin* | mingw* | pw32* | cegcc*)
16742 # When not using gcc, we currently assume that we are using
16743 # Microsoft Visual C++.
16744 # hardcode_libdir_flag_spec is actually meaningless, as there is
16745 # no search path for DLLs.
16746 hardcode_libdir_flag_spec=' '
16747 allow_undefined_flag=unsupported
16748 # Tell ltmain to make .lib files, not .a files.
16749 libext=lib
16750 # Tell ltmain to make .dll files, not .so files.
16751 shrext_cmds=".dll"
16752 # FIXME: Setting linknames here is a bad hack.
16753 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16754 # The linker will automatically build a .lib file if we build a DLL.
16755 old_archive_from_new_cmds='true'
16756 # FIXME: Should let the user specify the lib program.
16757 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16758 fix_srcfile_path='`cygpath -w "$srcfile"`'
16759 enable_shared_with_static_runtimes=yes
16762 darwin* | rhapsody*)
16765 archive_cmds_need_lc=no
16766 hardcode_direct=no
16767 hardcode_automatic=yes
16768 hardcode_shlibpath_var=unsupported
16769 if test "$lt_cv_ld_force_load" = "yes"; then
16770 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\"`'
16771 else
16772 whole_archive_flag_spec=''
16774 link_all_deplibs=yes
16775 allow_undefined_flag="$_lt_dar_allow_undefined"
16776 case $cc_basename in
16777 ifort*) _lt_dar_can_shared=yes ;;
16778 *) _lt_dar_can_shared=$GCC ;;
16779 esac
16780 if test "$_lt_dar_can_shared" = "yes"; then
16781 output_verbose_link_cmd=func_echo_all
16782 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16783 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16784 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}"
16785 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}"
16787 else
16788 ld_shlibs=no
16793 dgux*)
16794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16795 hardcode_libdir_flag_spec='-L$libdir'
16796 hardcode_shlibpath_var=no
16799 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16800 # support. Future versions do this automatically, but an explicit c++rt0.o
16801 # does not break anything, and helps significantly (at the cost of a little
16802 # extra space).
16803 freebsd2.2*)
16804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16805 hardcode_libdir_flag_spec='-R$libdir'
16806 hardcode_direct=yes
16807 hardcode_shlibpath_var=no
16810 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16811 freebsd2.*)
16812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16813 hardcode_direct=yes
16814 hardcode_minus_L=yes
16815 hardcode_shlibpath_var=no
16818 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16819 freebsd* | dragonfly*)
16820 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16821 hardcode_libdir_flag_spec='-R$libdir'
16822 hardcode_direct=yes
16823 hardcode_shlibpath_var=no
16826 hpux9*)
16827 if test "$GCC" = yes; then
16828 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'
16829 else
16830 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'
16832 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16833 hardcode_libdir_separator=:
16834 hardcode_direct=yes
16836 # hardcode_minus_L: Not really in the search PATH,
16837 # but as the default location of the library.
16838 hardcode_minus_L=yes
16839 export_dynamic_flag_spec='${wl}-E'
16842 hpux10*)
16843 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16844 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16845 else
16846 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16848 if test "$with_gnu_ld" = no; then
16849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16850 hardcode_libdir_flag_spec_ld='+b $libdir'
16851 hardcode_libdir_separator=:
16852 hardcode_direct=yes
16853 hardcode_direct_absolute=yes
16854 export_dynamic_flag_spec='${wl}-E'
16855 # hardcode_minus_L: Not really in the search PATH,
16856 # but as the default location of the library.
16857 hardcode_minus_L=yes
16861 hpux11*)
16862 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16863 case $host_cpu in
16864 hppa*64*)
16865 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16867 ia64*)
16868 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16871 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16873 esac
16874 else
16875 case $host_cpu in
16876 hppa*64*)
16877 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16879 ia64*)
16880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16884 # Older versions of the 11.00 compiler do not understand -b yet
16885 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16887 $as_echo_n "checking if $CC understands -b... " >&6; }
16888 if ${lt_cv_prog_compiler__b+:} false; then :
16889 $as_echo_n "(cached) " >&6
16890 else
16891 lt_cv_prog_compiler__b=no
16892 save_LDFLAGS="$LDFLAGS"
16893 LDFLAGS="$LDFLAGS -b"
16894 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16895 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16896 # The linker can only warn and ignore the option if not recognized
16897 # So say no if there are warnings
16898 if test -s conftest.err; then
16899 # Append any errors to the config.log.
16900 cat conftest.err 1>&5
16901 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16902 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16903 if diff conftest.exp conftest.er2 >/dev/null; then
16904 lt_cv_prog_compiler__b=yes
16906 else
16907 lt_cv_prog_compiler__b=yes
16910 $RM -r conftest*
16911 LDFLAGS="$save_LDFLAGS"
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16915 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16917 if test x"$lt_cv_prog_compiler__b" = xyes; then
16918 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16919 else
16920 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16924 esac
16926 if test "$with_gnu_ld" = no; then
16927 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16928 hardcode_libdir_separator=:
16930 case $host_cpu in
16931 hppa*64*|ia64*)
16932 hardcode_direct=no
16933 hardcode_shlibpath_var=no
16936 hardcode_direct=yes
16937 hardcode_direct_absolute=yes
16938 export_dynamic_flag_spec='${wl}-E'
16940 # hardcode_minus_L: Not really in the search PATH,
16941 # but as the default location of the library.
16942 hardcode_minus_L=yes
16944 esac
16948 irix5* | irix6* | nonstopux*)
16949 if test "$GCC" = yes; then
16950 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'
16951 # Try to use the -exported_symbol ld option, if it does not
16952 # work, assume that -exports_file does not work either and
16953 # implicitly export all symbols.
16954 save_LDFLAGS="$LDFLAGS"
16955 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h. */
16958 int foo(void) {}
16959 _ACEOF
16960 if ac_fn_c_try_link "$LINENO"; then :
16961 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'
16964 rm -f core conftest.err conftest.$ac_objext \
16965 conftest$ac_exeext conftest.$ac_ext
16966 LDFLAGS="$save_LDFLAGS"
16967 else
16968 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'
16969 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'
16971 archive_cmds_need_lc='no'
16972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16973 hardcode_libdir_separator=:
16974 inherit_rpath=yes
16975 link_all_deplibs=yes
16978 netbsd*)
16979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16981 else
16982 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16984 hardcode_libdir_flag_spec='-R$libdir'
16985 hardcode_direct=yes
16986 hardcode_shlibpath_var=no
16989 newsos6)
16990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16991 hardcode_direct=yes
16992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16993 hardcode_libdir_separator=:
16994 hardcode_shlibpath_var=no
16997 *nto* | *qnx*)
17000 openbsd*)
17001 if test -f /usr/libexec/ld.so; then
17002 hardcode_direct=yes
17003 hardcode_shlibpath_var=no
17004 hardcode_direct_absolute=yes
17005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17007 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17009 export_dynamic_flag_spec='${wl}-E'
17010 else
17011 case $host_os in
17012 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17014 hardcode_libdir_flag_spec='-R$libdir'
17017 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17018 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17020 esac
17022 else
17023 ld_shlibs=no
17027 os2*)
17028 hardcode_libdir_flag_spec='-L$libdir'
17029 hardcode_minus_L=yes
17030 allow_undefined_flag=unsupported
17031 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'
17032 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17035 osf3*)
17036 if test "$GCC" = yes; then
17037 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17038 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'
17039 else
17040 allow_undefined_flag=' -expect_unresolved \*'
17041 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'
17043 archive_cmds_need_lc='no'
17044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17045 hardcode_libdir_separator=:
17048 osf4* | osf5*) # as osf3* with the addition of -msym flag
17049 if test "$GCC" = yes; then
17050 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17051 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'
17052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17053 else
17054 allow_undefined_flag=' -expect_unresolved \*'
17055 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'
17056 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~
17057 $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'
17059 # Both c and cxx compiler support -rpath directly
17060 hardcode_libdir_flag_spec='-rpath $libdir'
17062 archive_cmds_need_lc='no'
17063 hardcode_libdir_separator=:
17066 solaris*)
17067 no_undefined_flag=' -z defs'
17068 if test "$GCC" = yes; then
17069 wlarc='${wl}'
17070 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17072 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17073 else
17074 case `$CC -V 2>&1` in
17075 *"Compilers 5.0"*)
17076 wlarc=''
17077 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17079 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17082 wlarc='${wl}'
17083 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17084 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17085 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17087 esac
17089 hardcode_libdir_flag_spec='-R$libdir'
17090 hardcode_shlibpath_var=no
17091 case $host_os in
17092 solaris2.[0-5] | solaris2.[0-5].*) ;;
17094 # The compiler driver will combine and reorder linker options,
17095 # but understands `-z linker_flag'. GCC discards it without `$wl',
17096 # but is careful enough not to reorder.
17097 # Supported since Solaris 2.6 (maybe 2.5.1?)
17098 if test "$GCC" = yes; then
17099 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17100 else
17101 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17104 esac
17105 link_all_deplibs=yes
17108 sunos4*)
17109 if test "x$host_vendor" = xsequent; then
17110 # Use $CC to link under sequent, because it throws in some extra .o
17111 # files that make .init and .fini sections work.
17112 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17113 else
17114 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17116 hardcode_libdir_flag_spec='-L$libdir'
17117 hardcode_direct=yes
17118 hardcode_minus_L=yes
17119 hardcode_shlibpath_var=no
17122 sysv4)
17123 case $host_vendor in
17124 sni)
17125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17126 hardcode_direct=yes # is this really true???
17128 siemens)
17129 ## LD is ld it makes a PLAMLIB
17130 ## CC just makes a GrossModule.
17131 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17132 reload_cmds='$CC -r -o $output$reload_objs'
17133 hardcode_direct=no
17135 motorola)
17136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17137 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17139 esac
17140 runpath_var='LD_RUN_PATH'
17141 hardcode_shlibpath_var=no
17144 sysv4.3*)
17145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17146 hardcode_shlibpath_var=no
17147 export_dynamic_flag_spec='-Bexport'
17150 sysv4*MP*)
17151 if test -d /usr/nec; then
17152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17153 hardcode_shlibpath_var=no
17154 runpath_var=LD_RUN_PATH
17155 hardcode_runpath_var=yes
17156 ld_shlibs=yes
17160 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17161 no_undefined_flag='${wl}-z,text'
17162 archive_cmds_need_lc=no
17163 hardcode_shlibpath_var=no
17164 runpath_var='LD_RUN_PATH'
17166 if test "$GCC" = yes; then
17167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17168 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17169 else
17170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17171 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17175 sysv5* | sco3.2v5* | sco5v6*)
17176 # Note: We can NOT use -z defs as we might desire, because we do not
17177 # link with -lc, and that would cause any symbols used from libc to
17178 # always be unresolved, which means just about no library would
17179 # ever link correctly. If we're not using GNU ld we use -z text
17180 # though, which does catch some bad symbols but isn't as heavy-handed
17181 # as -z defs.
17182 no_undefined_flag='${wl}-z,text'
17183 allow_undefined_flag='${wl}-z,nodefs'
17184 archive_cmds_need_lc=no
17185 hardcode_shlibpath_var=no
17186 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17187 hardcode_libdir_separator=':'
17188 link_all_deplibs=yes
17189 export_dynamic_flag_spec='${wl}-Bexport'
17190 runpath_var='LD_RUN_PATH'
17192 if test "$GCC" = yes; then
17193 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17194 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17195 else
17196 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17197 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17201 uts4*)
17202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17203 hardcode_libdir_flag_spec='-L$libdir'
17204 hardcode_shlibpath_var=no
17208 ld_shlibs=no
17210 esac
17212 if test x$host_vendor = xsni; then
17213 case $host in
17214 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17215 export_dynamic_flag_spec='${wl}-Blargedynsym'
17217 esac
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17222 $as_echo "$ld_shlibs" >&6; }
17223 test "$ld_shlibs" = no && can_build_shared=no
17225 with_gnu_ld=$with_gnu_ld
17242 # Do we need to explicitly link libc?
17244 case "x$archive_cmds_need_lc" in
17245 x|xyes)
17246 # Assume -lc should be added
17247 archive_cmds_need_lc=yes
17249 if test "$enable_shared" = yes && test "$GCC" = yes; then
17250 case $archive_cmds in
17251 *'~'*)
17252 # FIXME: we may have to deal with multi-command sequences.
17254 '$CC '*)
17255 # Test whether the compiler implicitly links with -lc since on some
17256 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17257 # to ld, don't add -lc before -lgcc.
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17259 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17260 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17261 $as_echo_n "(cached) " >&6
17262 else
17263 $RM conftest*
17264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17267 (eval $ac_compile) 2>&5
17268 ac_status=$?
17269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17270 test $ac_status = 0; } 2>conftest.err; then
17271 soname=conftest
17272 lib=conftest
17273 libobjs=conftest.$ac_objext
17274 deplibs=
17275 wl=$lt_prog_compiler_wl
17276 pic_flag=$lt_prog_compiler_pic
17277 compiler_flags=-v
17278 linker_flags=-v
17279 verstring=
17280 output_objdir=.
17281 libname=conftest
17282 lt_save_allow_undefined_flag=$allow_undefined_flag
17283 allow_undefined_flag=
17284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17285 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17286 ac_status=$?
17287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17288 test $ac_status = 0; }
17289 then
17290 lt_cv_archive_cmds_need_lc=no
17291 else
17292 lt_cv_archive_cmds_need_lc=yes
17294 allow_undefined_flag=$lt_save_allow_undefined_flag
17295 else
17296 cat conftest.err 1>&5
17298 $RM conftest*
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17302 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17303 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17305 esac
17308 esac
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17467 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17469 if test "$GCC" = yes; then
17470 case $host_os in
17471 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17472 *) lt_awk_arg="/^libraries:/" ;;
17473 esac
17474 case $host_os in
17475 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17476 *) lt_sed_strip_eq="s,=/,/,g" ;;
17477 esac
17478 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17479 case $lt_search_path_spec in
17480 *\;*)
17481 # if the path contains ";" then we assume it to be the separator
17482 # otherwise default to the standard path separator (i.e. ":") - it is
17483 # assumed that no part of a normal pathname contains ";" but that should
17484 # okay in the real world where ";" in dirpaths is itself problematic.
17485 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17488 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17490 esac
17491 # Ok, now we have the path, separated by spaces, we can step through it
17492 # and add multilib dir if necessary.
17493 lt_tmp_lt_search_path_spec=
17494 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17495 for lt_sys_path in $lt_search_path_spec; do
17496 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17497 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17498 else
17499 test -d "$lt_sys_path" && \
17500 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17502 done
17503 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17504 BEGIN {RS=" "; FS="/|\n";} {
17505 lt_foo="";
17506 lt_count=0;
17507 for (lt_i = NF; lt_i > 0; lt_i--) {
17508 if ($lt_i != "" && $lt_i != ".") {
17509 if ($lt_i == "..") {
17510 lt_count++;
17511 } else {
17512 if (lt_count == 0) {
17513 lt_foo="/" $lt_i lt_foo;
17514 } else {
17515 lt_count--;
17520 if (lt_foo != "") { lt_freq[lt_foo]++; }
17521 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17523 # AWK program above erroneously prepends '/' to C:/dos/paths
17524 # for these hosts.
17525 case $host_os in
17526 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17527 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17528 esac
17529 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17530 else
17531 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17533 library_names_spec=
17534 libname_spec='lib$name'
17535 soname_spec=
17536 shrext_cmds=".so"
17537 postinstall_cmds=
17538 postuninstall_cmds=
17539 finish_cmds=
17540 finish_eval=
17541 shlibpath_var=
17542 shlibpath_overrides_runpath=unknown
17543 version_type=none
17544 dynamic_linker="$host_os ld.so"
17545 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17546 need_lib_prefix=unknown
17547 hardcode_into_libs=no
17549 # when you set need_version to no, make sure it does not cause -set_version
17550 # flags to be left without arguments
17551 need_version=unknown
17553 case $host_os in
17554 aix3*)
17555 version_type=linux
17556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17557 shlibpath_var=LIBPATH
17559 # AIX 3 has no versioning support, so we append a major version to the name.
17560 soname_spec='${libname}${release}${shared_ext}$major'
17563 aix[4-9]*)
17564 version_type=linux
17565 need_lib_prefix=no
17566 need_version=no
17567 hardcode_into_libs=yes
17568 if test "$host_cpu" = ia64; then
17569 # AIX 5 supports IA64
17570 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17571 shlibpath_var=LD_LIBRARY_PATH
17572 else
17573 # With GCC up to 2.95.x, collect2 would create an import file
17574 # for dependence libraries. The import file would start with
17575 # the line `#! .'. This would cause the generated library to
17576 # depend on `.', always an invalid library. This was fixed in
17577 # development snapshots of GCC prior to 3.0.
17578 case $host_os in
17579 aix4 | aix4.[01] | aix4.[01].*)
17580 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17581 echo ' yes '
17582 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17584 else
17585 can_build_shared=no
17588 esac
17589 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17590 # soname into executable. Probably we can add versioning support to
17591 # collect2, so additional links can be useful in future.
17592 if test "$aix_use_runtimelinking" = yes; then
17593 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17594 # instead of lib<name>.a to let people know that these are not
17595 # typical AIX shared libraries.
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597 else
17598 # We preserve .a as extension for shared libraries through AIX4.2
17599 # and later when we are not doing run time linking.
17600 library_names_spec='${libname}${release}.a $libname.a'
17601 soname_spec='${libname}${release}${shared_ext}$major'
17603 shlibpath_var=LIBPATH
17607 amigaos*)
17608 case $host_cpu in
17609 powerpc)
17610 # Since July 2007 AmigaOS4 officially supports .so libraries.
17611 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17614 m68k)
17615 library_names_spec='$libname.ixlibrary $libname.a'
17616 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17617 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'
17619 esac
17622 beos*)
17623 library_names_spec='${libname}${shared_ext}'
17624 dynamic_linker="$host_os ld.so"
17625 shlibpath_var=LIBRARY_PATH
17628 bsdi[45]*)
17629 version_type=linux
17630 need_version=no
17631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632 soname_spec='${libname}${release}${shared_ext}$major'
17633 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17634 shlibpath_var=LD_LIBRARY_PATH
17635 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17636 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17637 # the default ld.so.conf also contains /usr/contrib/lib and
17638 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17639 # libtool to hard-code these into programs
17642 cygwin* | mingw* | pw32* | cegcc*)
17643 version_type=windows
17644 shrext_cmds=".dll"
17645 need_version=no
17646 need_lib_prefix=no
17648 case $GCC,$host_os in
17649 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17650 library_names_spec='$libname.dll.a'
17651 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17652 postinstall_cmds='base_file=`basename \${file}`~
17653 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17654 dldir=$destdir/`dirname \$dlpath`~
17655 test -d \$dldir || mkdir -p \$dldir~
17656 $install_prog $dir/$dlname \$dldir/$dlname~
17657 chmod a+x \$dldir/$dlname~
17658 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17659 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17662 dlpath=$dir/\$dldll~
17663 $RM \$dlpath'
17664 shlibpath_overrides_runpath=yes
17666 case $host_os in
17667 cygwin*)
17668 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17669 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17671 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17673 mingw* | cegcc*)
17674 # MinGW DLLs use traditional 'lib' prefix
17675 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17677 pw32*)
17678 # pw32 DLLs use 'pw' prefix rather than 'lib'
17679 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17681 esac
17685 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17687 esac
17688 dynamic_linker='Win32 ld.exe'
17689 # FIXME: first we should search . and the directory the executable is in
17690 shlibpath_var=PATH
17693 darwin* | rhapsody*)
17694 dynamic_linker="$host_os dyld"
17695 version_type=darwin
17696 need_lib_prefix=no
17697 need_version=no
17698 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17699 soname_spec='${libname}${release}${major}$shared_ext'
17700 shlibpath_overrides_runpath=yes
17701 shlibpath_var=DYLD_LIBRARY_PATH
17702 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17704 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17708 dgux*)
17709 version_type=linux
17710 need_lib_prefix=no
17711 need_version=no
17712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17713 soname_spec='${libname}${release}${shared_ext}$major'
17714 shlibpath_var=LD_LIBRARY_PATH
17717 freebsd* | dragonfly*)
17718 # DragonFly does not have aout. When/if they implement a new
17719 # versioning mechanism, adjust this.
17720 if test -x /usr/bin/objformat; then
17721 objformat=`/usr/bin/objformat`
17722 else
17723 case $host_os in
17724 freebsd[23].*) objformat=aout ;;
17725 *) objformat=elf ;;
17726 esac
17728 version_type=freebsd-$objformat
17729 case $version_type in
17730 freebsd-elf*)
17731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17732 need_version=no
17733 need_lib_prefix=no
17735 freebsd-*)
17736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17737 need_version=yes
17739 esac
17740 shlibpath_var=LD_LIBRARY_PATH
17741 case $host_os in
17742 freebsd2.*)
17743 shlibpath_overrides_runpath=yes
17745 freebsd3.[01]* | freebsdelf3.[01]*)
17746 shlibpath_overrides_runpath=yes
17747 hardcode_into_libs=yes
17749 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17750 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17751 shlibpath_overrides_runpath=no
17752 hardcode_into_libs=yes
17754 *) # from 4.6 on, and DragonFly
17755 shlibpath_overrides_runpath=yes
17756 hardcode_into_libs=yes
17758 esac
17761 gnu*)
17762 version_type=linux
17763 need_lib_prefix=no
17764 need_version=no
17765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17766 soname_spec='${libname}${release}${shared_ext}$major'
17767 shlibpath_var=LD_LIBRARY_PATH
17768 hardcode_into_libs=yes
17771 haiku*)
17772 version_type=linux
17773 need_lib_prefix=no
17774 need_version=no
17775 dynamic_linker="$host_os runtime_loader"
17776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17777 soname_spec='${libname}${release}${shared_ext}$major'
17778 shlibpath_var=LIBRARY_PATH
17779 shlibpath_overrides_runpath=yes
17780 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17781 hardcode_into_libs=yes
17784 hpux9* | hpux10* | hpux11*)
17785 # Give a soname corresponding to the major version so that dld.sl refuses to
17786 # link against other versions.
17787 version_type=sunos
17788 need_lib_prefix=no
17789 need_version=no
17790 case $host_cpu in
17791 ia64*)
17792 shrext_cmds='.so'
17793 hardcode_into_libs=yes
17794 dynamic_linker="$host_os dld.so"
17795 shlibpath_var=LD_LIBRARY_PATH
17796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798 soname_spec='${libname}${release}${shared_ext}$major'
17799 if test "X$HPUX_IA64_MODE" = X32; then
17800 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17801 else
17802 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17806 hppa*64*)
17807 shrext_cmds='.sl'
17808 hardcode_into_libs=yes
17809 dynamic_linker="$host_os dld.sl"
17810 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17813 soname_spec='${libname}${release}${shared_ext}$major'
17814 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17818 shrext_cmds='.sl'
17819 dynamic_linker="$host_os dld.sl"
17820 shlibpath_var=SHLIB_PATH
17821 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17823 soname_spec='${libname}${release}${shared_ext}$major'
17825 esac
17826 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17827 postinstall_cmds='chmod 555 $lib'
17828 # or fails outright, so override atomically:
17829 install_override_mode=555
17832 interix[3-9]*)
17833 version_type=linux
17834 need_lib_prefix=no
17835 need_version=no
17836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17837 soname_spec='${libname}${release}${shared_ext}$major'
17838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17839 shlibpath_var=LD_LIBRARY_PATH
17840 shlibpath_overrides_runpath=no
17841 hardcode_into_libs=yes
17844 irix5* | irix6* | nonstopux*)
17845 case $host_os in
17846 nonstopux*) version_type=nonstopux ;;
17848 if test "$lt_cv_prog_gnu_ld" = yes; then
17849 version_type=linux
17850 else
17851 version_type=irix
17852 fi ;;
17853 esac
17854 need_lib_prefix=no
17855 need_version=no
17856 soname_spec='${libname}${release}${shared_ext}$major'
17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17858 case $host_os in
17859 irix5* | nonstopux*)
17860 libsuff= shlibsuff=
17863 case $LD in # libtool.m4 will add one of these switches to LD
17864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17865 libsuff= shlibsuff= libmagic=32-bit;;
17866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17867 libsuff=32 shlibsuff=N32 libmagic=N32;;
17868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17870 *) libsuff= shlibsuff= libmagic=never-match;;
17871 esac
17873 esac
17874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17875 shlibpath_overrides_runpath=no
17876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17878 hardcode_into_libs=yes
17881 # No shared lib support for Linux oldld, aout, or coff.
17882 linux*oldld* | linux*aout* | linux*coff*)
17883 dynamic_linker=no
17886 # This must be Linux ELF.
17887 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17888 version_type=linux
17889 need_lib_prefix=no
17890 need_version=no
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17892 soname_spec='${libname}${release}${shared_ext}$major'
17893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17894 shlibpath_var=LD_LIBRARY_PATH
17895 shlibpath_overrides_runpath=no
17897 # Some binutils ld are patched to set DT_RUNPATH
17898 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17899 $as_echo_n "(cached) " >&6
17900 else
17901 lt_cv_shlibpath_overrides_runpath=no
17902 save_LDFLAGS=$LDFLAGS
17903 save_libdir=$libdir
17904 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17905 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907 /* end confdefs.h. */
17910 main ()
17914 return 0;
17916 _ACEOF
17917 if ac_fn_c_try_link "$LINENO"; then :
17918 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17919 lt_cv_shlibpath_overrides_runpath=yes
17922 rm -f core conftest.err conftest.$ac_objext \
17923 conftest$ac_exeext conftest.$ac_ext
17924 LDFLAGS=$save_LDFLAGS
17925 libdir=$save_libdir
17929 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17931 # This implies no fast_install, which is unacceptable.
17932 # Some rework will be needed to allow for fast_install
17933 # before this can be enabled.
17934 hardcode_into_libs=yes
17936 # Append ld.so.conf contents to the search path
17937 if test -f /etc/ld.so.conf; then
17938 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' ' '`
17939 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17942 # We used to test for /lib/ld.so.1 and disable shared libraries on
17943 # powerpc, because MkLinux only supported shared libraries with the
17944 # GNU dynamic linker. Since this was broken with cross compilers,
17945 # most powerpc-linux boxes support dynamic linking these days and
17946 # people can always --disable-shared, the test was removed, and we
17947 # assume the GNU/Linux dynamic linker is in use.
17948 dynamic_linker='GNU/Linux ld.so'
17951 netbsd*)
17952 version_type=sunos
17953 need_lib_prefix=no
17954 need_version=no
17955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17958 dynamic_linker='NetBSD (a.out) ld.so'
17959 else
17960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17961 soname_spec='${libname}${release}${shared_ext}$major'
17962 dynamic_linker='NetBSD ld.elf_so'
17964 shlibpath_var=LD_LIBRARY_PATH
17965 shlibpath_overrides_runpath=yes
17966 hardcode_into_libs=yes
17969 newsos6)
17970 version_type=linux
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972 shlibpath_var=LD_LIBRARY_PATH
17973 shlibpath_overrides_runpath=yes
17976 *nto* | *qnx*)
17977 version_type=qnx
17978 need_lib_prefix=no
17979 need_version=no
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17981 soname_spec='${libname}${release}${shared_ext}$major'
17982 shlibpath_var=LD_LIBRARY_PATH
17983 shlibpath_overrides_runpath=no
17984 hardcode_into_libs=yes
17985 dynamic_linker='ldqnx.so'
17988 openbsd*)
17989 version_type=sunos
17990 sys_lib_dlsearch_path_spec="/usr/lib"
17991 need_lib_prefix=no
17992 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17993 case $host_os in
17994 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17995 *) need_version=no ;;
17996 esac
17997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17999 shlibpath_var=LD_LIBRARY_PATH
18000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18001 case $host_os in
18002 openbsd2.[89] | openbsd2.[89].*)
18003 shlibpath_overrides_runpath=no
18006 shlibpath_overrides_runpath=yes
18008 esac
18009 else
18010 shlibpath_overrides_runpath=yes
18014 os2*)
18015 libname_spec='$name'
18016 shrext_cmds=".dll"
18017 need_lib_prefix=no
18018 library_names_spec='$libname${shared_ext} $libname.a'
18019 dynamic_linker='OS/2 ld.exe'
18020 shlibpath_var=LIBPATH
18023 osf3* | osf4* | osf5*)
18024 version_type=osf
18025 need_lib_prefix=no
18026 need_version=no
18027 soname_spec='${libname}${release}${shared_ext}$major'
18028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18029 shlibpath_var=LD_LIBRARY_PATH
18030 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18031 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18034 rdos*)
18035 dynamic_linker=no
18038 solaris*)
18039 version_type=linux
18040 need_lib_prefix=no
18041 need_version=no
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043 soname_spec='${libname}${release}${shared_ext}$major'
18044 shlibpath_var=LD_LIBRARY_PATH
18045 shlibpath_overrides_runpath=yes
18046 hardcode_into_libs=yes
18047 # ldd complains unless libraries are executable
18048 postinstall_cmds='chmod +x $lib'
18051 sunos4*)
18052 version_type=sunos
18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18055 shlibpath_var=LD_LIBRARY_PATH
18056 shlibpath_overrides_runpath=yes
18057 if test "$with_gnu_ld" = yes; then
18058 need_lib_prefix=no
18060 need_version=yes
18063 sysv4 | sysv4.3*)
18064 version_type=linux
18065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18066 soname_spec='${libname}${release}${shared_ext}$major'
18067 shlibpath_var=LD_LIBRARY_PATH
18068 case $host_vendor in
18069 sni)
18070 shlibpath_overrides_runpath=no
18071 need_lib_prefix=no
18072 runpath_var=LD_RUN_PATH
18074 siemens)
18075 need_lib_prefix=no
18077 motorola)
18078 need_lib_prefix=no
18079 need_version=no
18080 shlibpath_overrides_runpath=no
18081 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18083 esac
18086 sysv4*MP*)
18087 if test -d /usr/nec ;then
18088 version_type=linux
18089 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18090 soname_spec='$libname${shared_ext}.$major'
18091 shlibpath_var=LD_LIBRARY_PATH
18095 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18096 version_type=freebsd-elf
18097 need_lib_prefix=no
18098 need_version=no
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18101 shlibpath_var=LD_LIBRARY_PATH
18102 shlibpath_overrides_runpath=yes
18103 hardcode_into_libs=yes
18104 if test "$with_gnu_ld" = yes; then
18105 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18106 else
18107 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18108 case $host_os in
18109 sco3.2v5*)
18110 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18112 esac
18114 sys_lib_dlsearch_path_spec='/usr/lib'
18117 tpf*)
18118 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18119 version_type=linux
18120 need_lib_prefix=no
18121 need_version=no
18122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18123 shlibpath_var=LD_LIBRARY_PATH
18124 shlibpath_overrides_runpath=no
18125 hardcode_into_libs=yes
18128 uts4*)
18129 version_type=linux
18130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18131 soname_spec='${libname}${release}${shared_ext}$major'
18132 shlibpath_var=LD_LIBRARY_PATH
18136 dynamic_linker=no
18138 esac
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18140 $as_echo "$dynamic_linker" >&6; }
18141 test "$dynamic_linker" = no && can_build_shared=no
18143 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18144 if test "$GCC" = yes; then
18145 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18148 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18149 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18151 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18152 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18247 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18248 hardcode_action=
18249 if test -n "$hardcode_libdir_flag_spec" ||
18250 test -n "$runpath_var" ||
18251 test "X$hardcode_automatic" = "Xyes" ; then
18253 # We can hardcode non-existent directories.
18254 if test "$hardcode_direct" != no &&
18255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18256 # have to relink, otherwise we might link with an installed library
18257 # when we should be linking with a yet-to-be-installed one
18258 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18259 test "$hardcode_minus_L" != no; then
18260 # Linking always hardcodes the temporary library directory.
18261 hardcode_action=relink
18262 else
18263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18264 hardcode_action=immediate
18266 else
18267 # We cannot hardcode anything, or else we can only hardcode existing
18268 # directories.
18269 hardcode_action=unsupported
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18272 $as_echo "$hardcode_action" >&6; }
18274 if test "$hardcode_action" = relink ||
18275 test "$inherit_rpath" = yes; then
18276 # Fast installation is not supported
18277 enable_fast_install=no
18278 elif test "$shlibpath_overrides_runpath" = yes ||
18279 test "$enable_shared" = no; then
18280 # Fast installation is not necessary
18281 enable_fast_install=needless
18289 if test "x$enable_dlopen" != xyes; then
18290 enable_dlopen=unknown
18291 enable_dlopen_self=unknown
18292 enable_dlopen_self_static=unknown
18293 else
18294 lt_cv_dlopen=no
18295 lt_cv_dlopen_libs=
18297 case $host_os in
18298 beos*)
18299 lt_cv_dlopen="load_add_on"
18300 lt_cv_dlopen_libs=
18301 lt_cv_dlopen_self=yes
18304 mingw* | pw32* | cegcc*)
18305 lt_cv_dlopen="LoadLibrary"
18306 lt_cv_dlopen_libs=
18309 cygwin*)
18310 lt_cv_dlopen="dlopen"
18311 lt_cv_dlopen_libs=
18314 darwin*)
18315 # if libdl is installed we need to link against it
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18317 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18318 if ${ac_cv_lib_dl_dlopen+:} false; then :
18319 $as_echo_n "(cached) " >&6
18320 else
18321 ac_check_lib_save_LIBS=$LIBS
18322 LIBS="-ldl $LIBS"
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18326 /* Override any GCC internal prototype to avoid an error.
18327 Use char because int might match the return type of a GCC
18328 builtin and then its argument prototype would still apply. */
18329 #ifdef __cplusplus
18330 extern "C"
18331 #endif
18332 char dlopen ();
18334 main ()
18336 return dlopen ();
18338 return 0;
18340 _ACEOF
18341 if ac_fn_c_try_link "$LINENO"; then :
18342 ac_cv_lib_dl_dlopen=yes
18343 else
18344 ac_cv_lib_dl_dlopen=no
18346 rm -f core conftest.err conftest.$ac_objext \
18347 conftest$ac_exeext conftest.$ac_ext
18348 LIBS=$ac_check_lib_save_LIBS
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18351 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18352 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18354 else
18356 lt_cv_dlopen="dyld"
18357 lt_cv_dlopen_libs=
18358 lt_cv_dlopen_self=yes
18365 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18366 if test "x$ac_cv_func_shl_load" = xyes; then :
18367 lt_cv_dlopen="shl_load"
18368 else
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18370 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18371 if ${ac_cv_lib_dld_shl_load+:} false; then :
18372 $as_echo_n "(cached) " >&6
18373 else
18374 ac_check_lib_save_LIBS=$LIBS
18375 LIBS="-ldld $LIBS"
18376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18377 /* end confdefs.h. */
18379 /* Override any GCC internal prototype to avoid an error.
18380 Use char because int might match the return type of a GCC
18381 builtin and then its argument prototype would still apply. */
18382 #ifdef __cplusplus
18383 extern "C"
18384 #endif
18385 char shl_load ();
18387 main ()
18389 return shl_load ();
18391 return 0;
18393 _ACEOF
18394 if ac_fn_c_try_link "$LINENO"; then :
18395 ac_cv_lib_dld_shl_load=yes
18396 else
18397 ac_cv_lib_dld_shl_load=no
18399 rm -f core conftest.err conftest.$ac_objext \
18400 conftest$ac_exeext conftest.$ac_ext
18401 LIBS=$ac_check_lib_save_LIBS
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18404 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18405 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18406 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18407 else
18408 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18409 if test "x$ac_cv_func_dlopen" = xyes; then :
18410 lt_cv_dlopen="dlopen"
18411 else
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18413 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18414 if ${ac_cv_lib_dl_dlopen+:} false; then :
18415 $as_echo_n "(cached) " >&6
18416 else
18417 ac_check_lib_save_LIBS=$LIBS
18418 LIBS="-ldl $LIBS"
18419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18420 /* end confdefs.h. */
18422 /* Override any GCC internal prototype to avoid an error.
18423 Use char because int might match the return type of a GCC
18424 builtin and then its argument prototype would still apply. */
18425 #ifdef __cplusplus
18426 extern "C"
18427 #endif
18428 char dlopen ();
18430 main ()
18432 return dlopen ();
18434 return 0;
18436 _ACEOF
18437 if ac_fn_c_try_link "$LINENO"; then :
18438 ac_cv_lib_dl_dlopen=yes
18439 else
18440 ac_cv_lib_dl_dlopen=no
18442 rm -f core conftest.err conftest.$ac_objext \
18443 conftest$ac_exeext conftest.$ac_ext
18444 LIBS=$ac_check_lib_save_LIBS
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18447 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18448 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18450 else
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18452 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18453 if ${ac_cv_lib_svld_dlopen+:} false; then :
18454 $as_echo_n "(cached) " >&6
18455 else
18456 ac_check_lib_save_LIBS=$LIBS
18457 LIBS="-lsvld $LIBS"
18458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18461 /* Override any GCC internal prototype to avoid an error.
18462 Use char because int might match the return type of a GCC
18463 builtin and then its argument prototype would still apply. */
18464 #ifdef __cplusplus
18465 extern "C"
18466 #endif
18467 char dlopen ();
18469 main ()
18471 return dlopen ();
18473 return 0;
18475 _ACEOF
18476 if ac_fn_c_try_link "$LINENO"; then :
18477 ac_cv_lib_svld_dlopen=yes
18478 else
18479 ac_cv_lib_svld_dlopen=no
18481 rm -f core conftest.err conftest.$ac_objext \
18482 conftest$ac_exeext conftest.$ac_ext
18483 LIBS=$ac_check_lib_save_LIBS
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18486 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18487 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18489 else
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18491 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18492 if ${ac_cv_lib_dld_dld_link+:} false; then :
18493 $as_echo_n "(cached) " >&6
18494 else
18495 ac_check_lib_save_LIBS=$LIBS
18496 LIBS="-ldld $LIBS"
18497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h. */
18500 /* Override any GCC internal prototype to avoid an error.
18501 Use char because int might match the return type of a GCC
18502 builtin and then its argument prototype would still apply. */
18503 #ifdef __cplusplus
18504 extern "C"
18505 #endif
18506 char dld_link ();
18508 main ()
18510 return dld_link ();
18512 return 0;
18514 _ACEOF
18515 if ac_fn_c_try_link "$LINENO"; then :
18516 ac_cv_lib_dld_dld_link=yes
18517 else
18518 ac_cv_lib_dld_dld_link=no
18520 rm -f core conftest.err conftest.$ac_objext \
18521 conftest$ac_exeext conftest.$ac_ext
18522 LIBS=$ac_check_lib_save_LIBS
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18525 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18526 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18527 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18546 esac
18548 if test "x$lt_cv_dlopen" != xno; then
18549 enable_dlopen=yes
18550 else
18551 enable_dlopen=no
18554 case $lt_cv_dlopen in
18555 dlopen)
18556 save_CPPFLAGS="$CPPFLAGS"
18557 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18559 save_LDFLAGS="$LDFLAGS"
18560 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18562 save_LIBS="$LIBS"
18563 LIBS="$lt_cv_dlopen_libs $LIBS"
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18566 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18567 if ${lt_cv_dlopen_self+:} false; then :
18568 $as_echo_n "(cached) " >&6
18569 else
18570 if test "$cross_compiling" = yes; then :
18571 lt_cv_dlopen_self=cross
18572 else
18573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18574 lt_status=$lt_dlunknown
18575 cat > conftest.$ac_ext <<_LT_EOF
18576 #line 18576 "configure"
18577 #include "confdefs.h"
18579 #if HAVE_DLFCN_H
18580 #include <dlfcn.h>
18581 #endif
18583 #include <stdio.h>
18585 #ifdef RTLD_GLOBAL
18586 # define LT_DLGLOBAL RTLD_GLOBAL
18587 #else
18588 # ifdef DL_GLOBAL
18589 # define LT_DLGLOBAL DL_GLOBAL
18590 # else
18591 # define LT_DLGLOBAL 0
18592 # endif
18593 #endif
18595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18596 find out it does not work in some platform. */
18597 #ifndef LT_DLLAZY_OR_NOW
18598 # ifdef RTLD_LAZY
18599 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18600 # else
18601 # ifdef DL_LAZY
18602 # define LT_DLLAZY_OR_NOW DL_LAZY
18603 # else
18604 # ifdef RTLD_NOW
18605 # define LT_DLLAZY_OR_NOW RTLD_NOW
18606 # else
18607 # ifdef DL_NOW
18608 # define LT_DLLAZY_OR_NOW DL_NOW
18609 # else
18610 # define LT_DLLAZY_OR_NOW 0
18611 # endif
18612 # endif
18613 # endif
18614 # endif
18615 #endif
18617 /* When -fvisbility=hidden is used, assume the code has been annotated
18618 correspondingly for the symbols needed. */
18619 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18620 void fnord () __attribute__((visibility("default")));
18621 #endif
18623 void fnord () { int i=42; }
18624 int main ()
18626 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18627 int status = $lt_dlunknown;
18629 if (self)
18631 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18632 else
18634 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18635 else puts (dlerror ());
18637 /* dlclose (self); */
18639 else
18640 puts (dlerror ());
18642 return status;
18644 _LT_EOF
18645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18646 (eval $ac_link) 2>&5
18647 ac_status=$?
18648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18649 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18650 (./conftest; exit; ) >&5 2>/dev/null
18651 lt_status=$?
18652 case x$lt_status in
18653 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18654 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18655 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18656 esac
18657 else :
18658 # compilation failed
18659 lt_cv_dlopen_self=no
18662 rm -fr conftest*
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18667 $as_echo "$lt_cv_dlopen_self" >&6; }
18669 if test "x$lt_cv_dlopen_self" = xyes; then
18670 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18672 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18673 if ${lt_cv_dlopen_self_static+:} false; then :
18674 $as_echo_n "(cached) " >&6
18675 else
18676 if test "$cross_compiling" = yes; then :
18677 lt_cv_dlopen_self_static=cross
18678 else
18679 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18680 lt_status=$lt_dlunknown
18681 cat > conftest.$ac_ext <<_LT_EOF
18682 #line 18682 "configure"
18683 #include "confdefs.h"
18685 #if HAVE_DLFCN_H
18686 #include <dlfcn.h>
18687 #endif
18689 #include <stdio.h>
18691 #ifdef RTLD_GLOBAL
18692 # define LT_DLGLOBAL RTLD_GLOBAL
18693 #else
18694 # ifdef DL_GLOBAL
18695 # define LT_DLGLOBAL DL_GLOBAL
18696 # else
18697 # define LT_DLGLOBAL 0
18698 # endif
18699 #endif
18701 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18702 find out it does not work in some platform. */
18703 #ifndef LT_DLLAZY_OR_NOW
18704 # ifdef RTLD_LAZY
18705 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18706 # else
18707 # ifdef DL_LAZY
18708 # define LT_DLLAZY_OR_NOW DL_LAZY
18709 # else
18710 # ifdef RTLD_NOW
18711 # define LT_DLLAZY_OR_NOW RTLD_NOW
18712 # else
18713 # ifdef DL_NOW
18714 # define LT_DLLAZY_OR_NOW DL_NOW
18715 # else
18716 # define LT_DLLAZY_OR_NOW 0
18717 # endif
18718 # endif
18719 # endif
18720 # endif
18721 #endif
18723 /* When -fvisbility=hidden is used, assume the code has been annotated
18724 correspondingly for the symbols needed. */
18725 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18726 void fnord () __attribute__((visibility("default")));
18727 #endif
18729 void fnord () { int i=42; }
18730 int main ()
18732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18733 int status = $lt_dlunknown;
18735 if (self)
18737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18738 else
18740 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18741 else puts (dlerror ());
18743 /* dlclose (self); */
18745 else
18746 puts (dlerror ());
18748 return status;
18750 _LT_EOF
18751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18752 (eval $ac_link) 2>&5
18753 ac_status=$?
18754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18755 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18756 (./conftest; exit; ) >&5 2>/dev/null
18757 lt_status=$?
18758 case x$lt_status in
18759 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18760 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18761 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18762 esac
18763 else :
18764 # compilation failed
18765 lt_cv_dlopen_self_static=no
18768 rm -fr conftest*
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18773 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18776 CPPFLAGS="$save_CPPFLAGS"
18777 LDFLAGS="$save_LDFLAGS"
18778 LIBS="$save_LIBS"
18780 esac
18782 case $lt_cv_dlopen_self in
18783 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18784 *) enable_dlopen_self=unknown ;;
18785 esac
18787 case $lt_cv_dlopen_self_static in
18788 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18789 *) enable_dlopen_self_static=unknown ;;
18790 esac
18809 striplib=
18810 old_striplib=
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18812 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18813 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18814 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18815 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18817 $as_echo "yes" >&6; }
18818 else
18819 # FIXME - insert some real tests, host_os isn't really good enough
18820 case $host_os in
18821 darwin*)
18822 if test -n "$STRIP" ; then
18823 striplib="$STRIP -x"
18824 old_striplib="$STRIP -S"
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18826 $as_echo "yes" >&6; }
18827 else
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18829 $as_echo "no" >&6; }
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18834 $as_echo "no" >&6; }
18836 esac
18850 # Report which library types will actually be built
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18852 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18854 $as_echo "$can_build_shared" >&6; }
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18857 $as_echo_n "checking whether to build shared libraries... " >&6; }
18858 test "$can_build_shared" = "no" && enable_shared=no
18860 # On AIX, shared libraries and static libraries use the same namespace, and
18861 # are all built from PIC.
18862 case $host_os in
18863 aix3*)
18864 test "$enable_shared" = yes && enable_static=no
18865 if test -n "$RANLIB"; then
18866 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18867 postinstall_cmds='$RANLIB $lib'
18871 aix[4-9]*)
18872 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18873 test "$enable_shared" = yes && enable_static=no
18876 esac
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18878 $as_echo "$enable_shared" >&6; }
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18881 $as_echo_n "checking whether to build static libraries... " >&6; }
18882 # Make sure either enable_shared or enable_static is yes.
18883 test "$enable_shared" = yes || enable_static=yes
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18885 $as_echo "$enable_static" >&6; }
18891 ac_ext=cpp
18892 ac_cpp='$CXXCPP $CPPFLAGS'
18893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18897 CC="$lt_save_CC"
18899 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18900 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18901 (test "X$CXX" != "Xg++"))) ; then
18902 ac_ext=cpp
18903 ac_cpp='$CXXCPP $CPPFLAGS'
18904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18908 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18909 if test -z "$CXXCPP"; then
18910 if ${ac_cv_prog_CXXCPP+:} false; then :
18911 $as_echo_n "(cached) " >&6
18912 else
18913 # Double quotes because CXXCPP needs to be expanded
18914 for CXXCPP in "$CXX -E" "/lib/cpp"
18916 ac_preproc_ok=false
18917 for ac_cxx_preproc_warn_flag in '' yes
18919 # Use a header file that comes with gcc, so configuring glibc
18920 # with a fresh cross-compiler works.
18921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18922 # <limits.h> exists even on freestanding compilers.
18923 # On the NeXT, cc -E runs the code through the compiler's parser,
18924 # not just through cpp. "Syntax error" is here to catch this case.
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18927 #ifdef __STDC__
18928 # include <limits.h>
18929 #else
18930 # include <assert.h>
18931 #endif
18932 Syntax error
18933 _ACEOF
18934 if ac_fn_cxx_try_cpp "$LINENO"; then :
18936 else
18937 # Broken: fails on valid input.
18938 continue
18940 rm -f conftest.err conftest.i conftest.$ac_ext
18942 # OK, works on sane cases. Now check whether nonexistent headers
18943 # can be detected and how.
18944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18945 /* end confdefs.h. */
18946 #include <ac_nonexistent.h>
18947 _ACEOF
18948 if ac_fn_cxx_try_cpp "$LINENO"; then :
18949 # Broken: success on invalid input.
18950 continue
18951 else
18952 # Passes both tests.
18953 ac_preproc_ok=:
18954 break
18956 rm -f conftest.err conftest.i conftest.$ac_ext
18958 done
18959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18960 rm -f conftest.i conftest.err conftest.$ac_ext
18961 if $ac_preproc_ok; then :
18962 break
18965 done
18966 ac_cv_prog_CXXCPP=$CXXCPP
18969 CXXCPP=$ac_cv_prog_CXXCPP
18970 else
18971 ac_cv_prog_CXXCPP=$CXXCPP
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18974 $as_echo "$CXXCPP" >&6; }
18975 ac_preproc_ok=false
18976 for ac_cxx_preproc_warn_flag in '' yes
18978 # Use a header file that comes with gcc, so configuring glibc
18979 # with a fresh cross-compiler works.
18980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18981 # <limits.h> exists even on freestanding compilers.
18982 # On the NeXT, cc -E runs the code through the compiler's parser,
18983 # not just through cpp. "Syntax error" is here to catch this case.
18984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985 /* end confdefs.h. */
18986 #ifdef __STDC__
18987 # include <limits.h>
18988 #else
18989 # include <assert.h>
18990 #endif
18991 Syntax error
18992 _ACEOF
18993 if ac_fn_cxx_try_cpp "$LINENO"; then :
18995 else
18996 # Broken: fails on valid input.
18997 continue
18999 rm -f conftest.err conftest.i conftest.$ac_ext
19001 # OK, works on sane cases. Now check whether nonexistent headers
19002 # can be detected and how.
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19005 #include <ac_nonexistent.h>
19006 _ACEOF
19007 if ac_fn_cxx_try_cpp "$LINENO"; then :
19008 # Broken: success on invalid input.
19009 continue
19010 else
19011 # Passes both tests.
19012 ac_preproc_ok=:
19013 break
19015 rm -f conftest.err conftest.i conftest.$ac_ext
19017 done
19018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19019 rm -f conftest.i conftest.err conftest.$ac_ext
19020 if $ac_preproc_ok; then :
19022 else
19023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19025 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19026 See \`config.log' for more details" "$LINENO" 5; }
19029 ac_ext=cpp
19030 ac_cpp='$CXXCPP $CPPFLAGS'
19031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19035 else
19036 _lt_caught_CXX_error=yes
19039 ac_ext=cpp
19040 ac_cpp='$CXXCPP $CPPFLAGS'
19041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19045 archive_cmds_need_lc_CXX=no
19046 allow_undefined_flag_CXX=
19047 always_export_symbols_CXX=no
19048 archive_expsym_cmds_CXX=
19049 compiler_needs_object_CXX=no
19050 export_dynamic_flag_spec_CXX=
19051 hardcode_direct_CXX=no
19052 hardcode_direct_absolute_CXX=no
19053 hardcode_libdir_flag_spec_CXX=
19054 hardcode_libdir_flag_spec_ld_CXX=
19055 hardcode_libdir_separator_CXX=
19056 hardcode_minus_L_CXX=no
19057 hardcode_shlibpath_var_CXX=unsupported
19058 hardcode_automatic_CXX=no
19059 inherit_rpath_CXX=no
19060 module_cmds_CXX=
19061 module_expsym_cmds_CXX=
19062 link_all_deplibs_CXX=unknown
19063 old_archive_cmds_CXX=$old_archive_cmds
19064 reload_flag_CXX=$reload_flag
19065 reload_cmds_CXX=$reload_cmds
19066 no_undefined_flag_CXX=
19067 whole_archive_flag_spec_CXX=
19068 enable_shared_with_static_runtimes_CXX=no
19070 # Source file extension for C++ test sources.
19071 ac_ext=cpp
19073 # Object file extension for compiled C++ test sources.
19074 objext=o
19075 objext_CXX=$objext
19077 # No sense in running all these tests if we already determined that
19078 # the CXX compiler isn't working. Some variables (like enable_shared)
19079 # are currently assumed to apply to all compilers on this platform,
19080 # and will be corrupted by setting them based on a non-working compiler.
19081 if test "$_lt_caught_CXX_error" != yes; then
19082 # Code to be used in simple compile tests
19083 lt_simple_compile_test_code="int some_variable = 0;"
19085 # Code to be used in simple link tests
19086 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19095 # If no C compiler was specified, use CC.
19096 LTCC=${LTCC-"$CC"}
19098 # If no C compiler flags were specified, use CFLAGS.
19099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19101 # Allow CC to be a program name with arguments.
19102 compiler=$CC
19105 # save warnings/boilerplate of simple test code
19106 ac_outfile=conftest.$ac_objext
19107 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19109 _lt_compiler_boilerplate=`cat conftest.err`
19110 $RM conftest*
19112 ac_outfile=conftest.$ac_objext
19113 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19115 _lt_linker_boilerplate=`cat conftest.err`
19116 $RM -r conftest*
19119 # Allow CC to be a program name with arguments.
19120 lt_save_CC=$CC
19121 lt_save_LD=$LD
19122 lt_save_GCC=$GCC
19123 GCC=$GXX
19124 lt_save_with_gnu_ld=$with_gnu_ld
19125 lt_save_path_LD=$lt_cv_path_LD
19126 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19127 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19128 else
19129 $as_unset lt_cv_prog_gnu_ld
19131 if test -n "${lt_cv_path_LDCXX+set}"; then
19132 lt_cv_path_LD=$lt_cv_path_LDCXX
19133 else
19134 $as_unset lt_cv_path_LD
19136 test -z "${LDCXX+set}" || LD=$LDCXX
19137 CC=${CXX-"c++"}
19138 compiler=$CC
19139 compiler_CXX=$CC
19140 for cc_temp in $compiler""; do
19141 case $cc_temp in
19142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19144 \-*) ;;
19145 *) break;;
19146 esac
19147 done
19148 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19151 if test -n "$compiler"; then
19152 # We don't want -fno-exception when compiling C++ code, so set the
19153 # no_builtin_flag separately
19154 if test "$GXX" = yes; then
19155 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19156 else
19157 lt_prog_compiler_no_builtin_flag_CXX=
19160 if test "$GXX" = yes; then
19161 # Set up default GNU C++ configuration
19165 # Check whether --with-gnu-ld was given.
19166 if test "${with_gnu_ld+set}" = set; then :
19167 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19168 else
19169 with_gnu_ld=no
19172 ac_prog=ld
19173 if test "$GCC" = yes; then
19174 # Check if gcc -print-prog-name=ld gives a path.
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19176 $as_echo_n "checking for ld used by $CC... " >&6; }
19177 case $host in
19178 *-*-mingw*)
19179 # gcc leaves a trailing carriage return which upsets mingw
19180 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19182 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19183 esac
19184 case $ac_prog in
19185 # Accept absolute paths.
19186 [\\/]* | ?:[\\/]*)
19187 re_direlt='/[^/][^/]*/\.\./'
19188 # Canonicalize the pathname of ld
19189 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19190 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19191 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19192 done
19193 test -z "$LD" && LD="$ac_prog"
19196 # If it fails, then pretend we aren't using GCC.
19197 ac_prog=ld
19200 # If it is relative, then search for the first ld in PATH.
19201 with_gnu_ld=unknown
19203 esac
19204 elif test "$with_gnu_ld" = yes; then
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19206 $as_echo_n "checking for GNU ld... " >&6; }
19207 else
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19209 $as_echo_n "checking for non-GNU ld... " >&6; }
19211 if ${lt_cv_path_LD+:} false; then :
19212 $as_echo_n "(cached) " >&6
19213 else
19214 if test -z "$LD"; then
19215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19216 for ac_dir in $PATH; do
19217 IFS="$lt_save_ifs"
19218 test -z "$ac_dir" && ac_dir=.
19219 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19220 lt_cv_path_LD="$ac_dir/$ac_prog"
19221 # Check to see if the program is GNU ld. I'd rather use --version,
19222 # but apparently some variants of GNU ld only accept -v.
19223 # Break only if it was the GNU/non-GNU ld that we prefer.
19224 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19225 *GNU* | *'with BFD'*)
19226 test "$with_gnu_ld" != no && break
19229 test "$with_gnu_ld" != yes && break
19231 esac
19233 done
19234 IFS="$lt_save_ifs"
19235 else
19236 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19240 LD="$lt_cv_path_LD"
19241 if test -n "$LD"; then
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19243 $as_echo "$LD" >&6; }
19244 else
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19246 $as_echo "no" >&6; }
19248 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19250 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19251 if ${lt_cv_prog_gnu_ld+:} false; then :
19252 $as_echo_n "(cached) " >&6
19253 else
19254 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19255 case `$LD -v 2>&1 </dev/null` in
19256 *GNU* | *'with BFD'*)
19257 lt_cv_prog_gnu_ld=yes
19260 lt_cv_prog_gnu_ld=no
19262 esac
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19265 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19266 with_gnu_ld=$lt_cv_prog_gnu_ld
19274 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19275 # archiving commands below assume that GNU ld is being used.
19276 if test "$with_gnu_ld" = yes; then
19277 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19278 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'
19280 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19281 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19283 # If archive_cmds runs LD, not CC, wlarc should be empty
19284 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19285 # investigate it a little bit more. (MM)
19286 wlarc='${wl}'
19288 # ancient GNU ld didn't support --whole-archive et. al.
19289 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19290 $GREP 'no-whole-archive' > /dev/null; then
19291 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19292 else
19293 whole_archive_flag_spec_CXX=
19295 else
19296 with_gnu_ld=no
19297 wlarc=
19299 # A generic and very simple default shared library creation
19300 # command for GNU C++ for the case where it uses the native
19301 # linker, instead of GNU ld. If possible, this setting should
19302 # overridden to take advantage of the native linker features on
19303 # the platform it is being used on.
19304 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19307 # Commands to make compiler produce verbose output that lists
19308 # what "hidden" libraries, object files and flags are used when
19309 # linking a shared library.
19310 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19312 else
19313 GXX=no
19314 with_gnu_ld=no
19315 wlarc=
19318 # PORTME: fill in a description of your system's C++ link characteristics
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19320 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19321 ld_shlibs_CXX=yes
19322 case $host_os in
19323 aix3*)
19324 # FIXME: insert proper C++ library support
19325 ld_shlibs_CXX=no
19327 aix[4-9]*)
19328 if test "$host_cpu" = ia64; then
19329 # On IA64, the linker does run time linking by default, so we don't
19330 # have to do anything special.
19331 aix_use_runtimelinking=no
19332 exp_sym_flag='-Bexport'
19333 no_entry_flag=""
19334 else
19335 aix_use_runtimelinking=no
19337 # Test if we are trying to use run time linking or normal
19338 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19339 # need to do runtime linking.
19340 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19341 for ld_flag in $LDFLAGS; do
19342 case $ld_flag in
19343 *-brtl*)
19344 aix_use_runtimelinking=yes
19345 break
19347 esac
19348 done
19350 esac
19352 exp_sym_flag='-bexport'
19353 no_entry_flag='-bnoentry'
19356 # When large executables or shared objects are built, AIX ld can
19357 # have problems creating the table of contents. If linking a library
19358 # or program results in "error TOC overflow" add -mminimal-toc to
19359 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19360 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19362 archive_cmds_CXX=''
19363 hardcode_direct_CXX=yes
19364 hardcode_direct_absolute_CXX=yes
19365 hardcode_libdir_separator_CXX=':'
19366 link_all_deplibs_CXX=yes
19367 file_list_spec_CXX='${wl}-f,'
19369 if test "$GXX" = yes; then
19370 case $host_os in aix4.[012]|aix4.[012].*)
19371 # We only want to do this on AIX 4.2 and lower, the check
19372 # below for broken collect2 doesn't work under 4.3+
19373 collect2name=`${CC} -print-prog-name=collect2`
19374 if test -f "$collect2name" &&
19375 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19376 then
19377 # We have reworked collect2
19379 else
19380 # We have old collect2
19381 hardcode_direct_CXX=unsupported
19382 # It fails to find uninstalled libraries when the uninstalled
19383 # path is not listed in the libpath. Setting hardcode_minus_L
19384 # to unsupported forces relinking
19385 hardcode_minus_L_CXX=yes
19386 hardcode_libdir_flag_spec_CXX='-L$libdir'
19387 hardcode_libdir_separator_CXX=
19389 esac
19390 shared_flag='-shared'
19391 if test "$aix_use_runtimelinking" = yes; then
19392 shared_flag="$shared_flag "'${wl}-G'
19394 else
19395 # not using gcc
19396 if test "$host_cpu" = ia64; then
19397 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19398 # chokes on -Wl,-G. The following line is correct:
19399 shared_flag='-G'
19400 else
19401 if test "$aix_use_runtimelinking" = yes; then
19402 shared_flag='${wl}-G'
19403 else
19404 shared_flag='${wl}-bM:SRE'
19409 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19410 # It seems that -bexpall does not export symbols beginning with
19411 # underscore (_), so it is better to generate a list of symbols to
19412 # export.
19413 always_export_symbols_CXX=yes
19414 if test "$aix_use_runtimelinking" = yes; then
19415 # Warning - without using the other runtime loading flags (-brtl),
19416 # -berok will link without error, but may produce a broken library.
19417 allow_undefined_flag_CXX='-berok'
19418 # Determine the default libpath from the value encoded in an empty
19419 # executable.
19420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421 /* end confdefs.h. */
19424 main ()
19428 return 0;
19430 _ACEOF
19431 if ac_fn_cxx_try_link "$LINENO"; then :
19433 lt_aix_libpath_sed='
19434 /Import File Strings/,/^$/ {
19435 /^0/ {
19436 s/^0 *\(.*\)$/\1/
19440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19441 # Check for a 64-bit object if we didn't find anything.
19442 if test -z "$aix_libpath"; then
19443 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19446 rm -f core conftest.err conftest.$ac_objext \
19447 conftest$ac_exeext conftest.$ac_ext
19448 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19450 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19452 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"
19453 else
19454 if test "$host_cpu" = ia64; then
19455 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19456 allow_undefined_flag_CXX="-z nodefs"
19457 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"
19458 else
19459 # Determine the default libpath from the value encoded in an
19460 # empty executable.
19461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19462 /* end confdefs.h. */
19465 main ()
19469 return 0;
19471 _ACEOF
19472 if ac_fn_cxx_try_link "$LINENO"; then :
19474 lt_aix_libpath_sed='
19475 /Import File Strings/,/^$/ {
19476 /^0/ {
19477 s/^0 *\(.*\)$/\1/
19481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19482 # Check for a 64-bit object if we didn't find anything.
19483 if test -z "$aix_libpath"; then
19484 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19487 rm -f core conftest.err conftest.$ac_objext \
19488 conftest$ac_exeext conftest.$ac_ext
19489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19491 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19492 # Warning - without using the other run time loading flags,
19493 # -berok will link without error, but may produce a broken library.
19494 no_undefined_flag_CXX=' ${wl}-bernotok'
19495 allow_undefined_flag_CXX=' ${wl}-berok'
19496 if test "$with_gnu_ld" = yes; then
19497 # We only use this code for GNU lds that support --whole-archive.
19498 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19499 else
19500 # Exported symbols can be pulled into shared objects from archives
19501 whole_archive_flag_spec_CXX='$convenience'
19503 archive_cmds_need_lc_CXX=yes
19504 # This is similar to how AIX traditionally builds its shared
19505 # libraries.
19506 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'
19511 beos*)
19512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19513 allow_undefined_flag_CXX=unsupported
19514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19515 # support --undefined. This deserves some investigation. FIXME
19516 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19517 else
19518 ld_shlibs_CXX=no
19522 chorus*)
19523 case $cc_basename in
19525 # FIXME: insert proper C++ library support
19526 ld_shlibs_CXX=no
19528 esac
19531 cygwin* | mingw* | pw32* | cegcc*)
19532 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19533 # as there is no search path for DLLs.
19534 hardcode_libdir_flag_spec_CXX='-L$libdir'
19535 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19536 allow_undefined_flag_CXX=unsupported
19537 always_export_symbols_CXX=no
19538 enable_shared_with_static_runtimes_CXX=yes
19540 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19541 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'
19542 # If the export-symbols file already is a .def file (1st line
19543 # is EXPORTS), use it as is; otherwise, prepend...
19544 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19545 cp $export_symbols $output_objdir/$soname.def;
19546 else
19547 echo EXPORTS > $output_objdir/$soname.def;
19548 cat $export_symbols >> $output_objdir/$soname.def;
19550 $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'
19551 else
19552 ld_shlibs_CXX=no
19555 darwin* | rhapsody*)
19558 archive_cmds_need_lc_CXX=no
19559 hardcode_direct_CXX=no
19560 hardcode_automatic_CXX=yes
19561 hardcode_shlibpath_var_CXX=unsupported
19562 if test "$lt_cv_ld_force_load" = "yes"; then
19563 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\"`'
19564 else
19565 whole_archive_flag_spec_CXX=''
19567 link_all_deplibs_CXX=yes
19568 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19569 case $cc_basename in
19570 ifort*) _lt_dar_can_shared=yes ;;
19571 *) _lt_dar_can_shared=$GCC ;;
19572 esac
19573 if test "$_lt_dar_can_shared" = "yes"; then
19574 output_verbose_link_cmd=func_echo_all
19575 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}"
19576 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19577 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}"
19578 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}"
19579 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19580 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}"
19581 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}"
19584 else
19585 ld_shlibs_CXX=no
19590 dgux*)
19591 case $cc_basename in
19592 ec++*)
19593 # FIXME: insert proper C++ library support
19594 ld_shlibs_CXX=no
19596 ghcx*)
19597 # Green Hills C++ Compiler
19598 # FIXME: insert proper C++ library support
19599 ld_shlibs_CXX=no
19602 # FIXME: insert proper C++ library support
19603 ld_shlibs_CXX=no
19605 esac
19608 freebsd2.*)
19609 # C++ shared libraries reported to be fairly broken before
19610 # switch to ELF
19611 ld_shlibs_CXX=no
19614 freebsd-elf*)
19615 archive_cmds_need_lc_CXX=no
19618 freebsd* | dragonfly*)
19619 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19620 # conventions
19621 ld_shlibs_CXX=yes
19624 gnu*)
19627 haiku*)
19628 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19629 link_all_deplibs_CXX=yes
19632 hpux9*)
19633 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19634 hardcode_libdir_separator_CXX=:
19635 export_dynamic_flag_spec_CXX='${wl}-E'
19636 hardcode_direct_CXX=yes
19637 hardcode_minus_L_CXX=yes # Not in the search PATH,
19638 # but as the default
19639 # location of the library.
19641 case $cc_basename in
19642 CC*)
19643 # FIXME: insert proper C++ library support
19644 ld_shlibs_CXX=no
19646 aCC*)
19647 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'
19648 # Commands to make compiler produce verbose output that lists
19649 # what "hidden" libraries, object files and flags are used when
19650 # linking a shared library.
19652 # There doesn't appear to be a way to prevent this compiler from
19653 # explicitly linking system object files so we need to strip them
19654 # from the output so that they don't get included in the library
19655 # dependencies.
19656 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"'
19659 if test "$GXX" = yes; then
19660 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'
19661 else
19662 # FIXME: insert proper C++ library support
19663 ld_shlibs_CXX=no
19666 esac
19669 hpux10*|hpux11*)
19670 if test $with_gnu_ld = no; then
19671 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19672 hardcode_libdir_separator_CXX=:
19674 case $host_cpu in
19675 hppa*64*|ia64*)
19678 export_dynamic_flag_spec_CXX='${wl}-E'
19680 esac
19682 case $host_cpu in
19683 hppa*64*|ia64*)
19684 hardcode_direct_CXX=no
19685 hardcode_shlibpath_var_CXX=no
19688 hardcode_direct_CXX=yes
19689 hardcode_direct_absolute_CXX=yes
19690 hardcode_minus_L_CXX=yes # Not in the search PATH,
19691 # but as the default
19692 # location of the library.
19694 esac
19696 case $cc_basename in
19697 CC*)
19698 # FIXME: insert proper C++ library support
19699 ld_shlibs_CXX=no
19701 aCC*)
19702 case $host_cpu in
19703 hppa*64*)
19704 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19706 ia64*)
19707 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19710 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19712 esac
19713 # Commands to make compiler produce verbose output that lists
19714 # what "hidden" libraries, object files and flags are used when
19715 # linking a shared library.
19717 # There doesn't appear to be a way to prevent this compiler from
19718 # explicitly linking system object files so we need to strip them
19719 # from the output so that they don't get included in the library
19720 # dependencies.
19721 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"'
19724 if test "$GXX" = yes; then
19725 if test $with_gnu_ld = no; then
19726 case $host_cpu in
19727 hppa*64*)
19728 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19730 ia64*)
19731 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19734 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'
19736 esac
19738 else
19739 # FIXME: insert proper C++ library support
19740 ld_shlibs_CXX=no
19743 esac
19746 interix[3-9]*)
19747 hardcode_direct_CXX=no
19748 hardcode_shlibpath_var_CXX=no
19749 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19750 export_dynamic_flag_spec_CXX='${wl}-E'
19751 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19752 # Instead, shared libraries are loaded at an image base (0x10000000 by
19753 # default) and relocated if they conflict, which is a slow very memory
19754 # consuming and fragmenting process. To avoid this, we pick a random,
19755 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19756 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19757 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'
19758 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'
19760 irix5* | irix6*)
19761 case $cc_basename in
19762 CC*)
19763 # SGI C++
19764 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'
19766 # Archives containing C++ object files must be created using
19767 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19768 # necessary to make sure instantiated templates are included
19769 # in the archive.
19770 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19773 if test "$GXX" = yes; then
19774 if test "$with_gnu_ld" = no; then
19775 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'
19776 else
19777 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'
19780 link_all_deplibs_CXX=yes
19782 esac
19783 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19784 hardcode_libdir_separator_CXX=:
19785 inherit_rpath_CXX=yes
19788 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19789 case $cc_basename in
19790 KCC*)
19791 # Kuck and Associates, Inc. (KAI) C++ Compiler
19793 # KCC will only create a shared library if the output file
19794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19795 # to its proper name (with version) after linking.
19796 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'
19797 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'
19798 # Commands to make compiler produce verbose output that lists
19799 # what "hidden" libraries, object files and flags are used when
19800 # linking a shared library.
19802 # There doesn't appear to be a way to prevent this compiler from
19803 # explicitly linking system object files so we need to strip them
19804 # from the output so that they don't get included in the library
19805 # dependencies.
19806 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"'
19808 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19809 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19811 # Archives containing C++ object files must be created using
19812 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19813 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19815 icpc* | ecpc* )
19816 # Intel C++
19817 with_gnu_ld=yes
19818 # version 8.0 and above of icpc choke on multiply defined symbols
19819 # if we add $predep_objects and $postdep_objects, however 7.1 and
19820 # earlier do not add the objects themselves.
19821 case `$CC -V 2>&1` in
19822 *"Version 7."*)
19823 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19824 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'
19826 *) # Version 8.0 or newer
19827 tmp_idyn=
19828 case $host_cpu in
19829 ia64*) tmp_idyn=' -i_dynamic';;
19830 esac
19831 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19832 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'
19834 esac
19835 archive_cmds_need_lc_CXX=no
19836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19838 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19840 pgCC* | pgcpp*)
19841 # Portland Group C++ compiler
19842 case `$CC -V` in
19843 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19844 prelink_cmds_CXX='tpldir=Template.dir~
19845 rm -rf $tpldir~
19846 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19847 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19848 old_archive_cmds_CXX='tpldir=Template.dir~
19849 rm -rf $tpldir~
19850 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19851 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19852 $RANLIB $oldlib'
19853 archive_cmds_CXX='tpldir=Template.dir~
19854 rm -rf $tpldir~
19855 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19856 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19857 archive_expsym_cmds_CXX='tpldir=Template.dir~
19858 rm -rf $tpldir~
19859 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19860 $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'
19862 *) # Version 6 and above use weak symbols
19863 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19864 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'
19866 esac
19868 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19869 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19870 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'
19872 cxx*)
19873 # Compaq C++
19874 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19875 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'
19877 runpath_var=LD_RUN_PATH
19878 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19879 hardcode_libdir_separator_CXX=:
19881 # Commands to make compiler produce verbose output that lists
19882 # what "hidden" libraries, object files and flags are used when
19883 # linking a shared library.
19885 # There doesn't appear to be a way to prevent this compiler from
19886 # explicitly linking system object files so we need to strip them
19887 # from the output so that they don't get included in the library
19888 # dependencies.
19889 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'
19891 xl* | mpixl* | bgxl*)
19892 # IBM XL 8.0 on PPC, with GNU ld
19893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19895 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19896 if test "x$supports_anon_versioning" = xyes; then
19897 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19899 echo "local: *; };" >> $output_objdir/$libname.ver~
19900 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19904 case `$CC -V 2>&1 | sed 5q` in
19905 *Sun\ C*)
19906 # Sun C++ 5.9
19907 no_undefined_flag_CXX=' -zdefs'
19908 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19909 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'
19910 hardcode_libdir_flag_spec_CXX='-R$libdir'
19911 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'
19912 compiler_needs_object_CXX=yes
19914 # Not sure whether something based on
19915 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19916 # would be better.
19917 output_verbose_link_cmd='func_echo_all'
19919 # Archives containing C++ object files must be created using
19920 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19921 # necessary to make sure instantiated templates are included
19922 # in the archive.
19923 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19925 esac
19927 esac
19930 lynxos*)
19931 # FIXME: insert proper C++ library support
19932 ld_shlibs_CXX=no
19935 m88k*)
19936 # FIXME: insert proper C++ library support
19937 ld_shlibs_CXX=no
19940 mvs*)
19941 case $cc_basename in
19942 cxx*)
19943 # FIXME: insert proper C++ library support
19944 ld_shlibs_CXX=no
19947 # FIXME: insert proper C++ library support
19948 ld_shlibs_CXX=no
19950 esac
19953 netbsd*)
19954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19955 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19956 wlarc=
19957 hardcode_libdir_flag_spec_CXX='-R$libdir'
19958 hardcode_direct_CXX=yes
19959 hardcode_shlibpath_var_CXX=no
19961 # Workaround some broken pre-1.5 toolchains
19962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19965 *nto* | *qnx*)
19966 ld_shlibs_CXX=yes
19969 openbsd2*)
19970 # C++ shared libraries are fairly broken
19971 ld_shlibs_CXX=no
19974 openbsd*)
19975 if test -f /usr/libexec/ld.so; then
19976 hardcode_direct_CXX=yes
19977 hardcode_shlibpath_var_CXX=no
19978 hardcode_direct_absolute_CXX=yes
19979 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19982 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19983 export_dynamic_flag_spec_CXX='${wl}-E'
19984 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19986 output_verbose_link_cmd=func_echo_all
19987 else
19988 ld_shlibs_CXX=no
19992 osf3* | osf4* | osf5*)
19993 case $cc_basename in
19994 KCC*)
19995 # Kuck and Associates, Inc. (KAI) C++ Compiler
19997 # KCC will only create a shared library if the output file
19998 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19999 # to its proper name (with version) after linking.
20000 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'
20002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20003 hardcode_libdir_separator_CXX=:
20005 # Archives containing C++ object files must be created using
20006 # the KAI C++ compiler.
20007 case $host in
20008 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20009 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20010 esac
20012 RCC*)
20013 # Rational C++ 2.4.1
20014 # FIXME: insert proper C++ library support
20015 ld_shlibs_CXX=no
20017 cxx*)
20018 case $host in
20019 osf3*)
20020 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20021 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'
20022 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20025 allow_undefined_flag_CXX=' -expect_unresolved \*'
20026 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'
20027 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20028 echo "-hidden">> $lib.exp~
20029 $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~
20030 $RM $lib.exp'
20031 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20033 esac
20035 hardcode_libdir_separator_CXX=:
20037 # Commands to make compiler produce verbose output that lists
20038 # what "hidden" libraries, object files and flags are used when
20039 # linking a shared library.
20041 # There doesn't appear to be a way to prevent this compiler from
20042 # explicitly linking system object files so we need to strip them
20043 # from the output so that they don't get included in the library
20044 # dependencies.
20045 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"'
20048 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20049 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20050 case $host in
20051 osf3*)
20052 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'
20055 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'
20057 esac
20059 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20060 hardcode_libdir_separator_CXX=:
20062 # Commands to make compiler produce verbose output that lists
20063 # what "hidden" libraries, object files and flags are used when
20064 # linking a shared library.
20065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20067 else
20068 # FIXME: insert proper C++ library support
20069 ld_shlibs_CXX=no
20072 esac
20075 psos*)
20076 # FIXME: insert proper C++ library support
20077 ld_shlibs_CXX=no
20080 sunos4*)
20081 case $cc_basename in
20082 CC*)
20083 # Sun C++ 4.x
20084 # FIXME: insert proper C++ library support
20085 ld_shlibs_CXX=no
20087 lcc*)
20088 # Lucid
20089 # FIXME: insert proper C++ library support
20090 ld_shlibs_CXX=no
20093 # FIXME: insert proper C++ library support
20094 ld_shlibs_CXX=no
20096 esac
20099 solaris*)
20100 case $cc_basename in
20101 CC*)
20102 # Sun C++ 4.2, 5.x and Centerline C++
20103 archive_cmds_need_lc_CXX=yes
20104 no_undefined_flag_CXX=' -zdefs'
20105 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20106 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20107 $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'
20109 hardcode_libdir_flag_spec_CXX='-R$libdir'
20110 hardcode_shlibpath_var_CXX=no
20111 case $host_os in
20112 solaris2.[0-5] | solaris2.[0-5].*) ;;
20114 # The compiler driver will combine and reorder linker options,
20115 # but understands `-z linker_flag'.
20116 # Supported since Solaris 2.6 (maybe 2.5.1?)
20117 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20119 esac
20120 link_all_deplibs_CXX=yes
20122 output_verbose_link_cmd='func_echo_all'
20124 # Archives containing C++ object files must be created using
20125 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20126 # necessary to make sure instantiated templates are included
20127 # in the archive.
20128 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20130 gcx*)
20131 # Green Hills C++ Compiler
20132 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20134 # The C++ compiler must be used to create the archive.
20135 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20138 # GNU C++ compiler with Solaris linker
20139 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20140 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20141 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20142 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20143 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20144 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20146 # Commands to make compiler produce verbose output that lists
20147 # what "hidden" libraries, object files and flags are used when
20148 # linking a shared library.
20149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20150 else
20151 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20152 # platform.
20153 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20154 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20155 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20157 # Commands to make compiler produce verbose output that lists
20158 # what "hidden" libraries, object files and flags are used when
20159 # linking a shared library.
20160 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20163 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20164 case $host_os in
20165 solaris2.[0-5] | solaris2.[0-5].*) ;;
20167 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20169 esac
20172 esac
20175 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20176 no_undefined_flag_CXX='${wl}-z,text'
20177 archive_cmds_need_lc_CXX=no
20178 hardcode_shlibpath_var_CXX=no
20179 runpath_var='LD_RUN_PATH'
20181 case $cc_basename in
20182 CC*)
20183 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20184 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20187 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20188 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20190 esac
20193 sysv5* | sco3.2v5* | sco5v6*)
20194 # Note: We can NOT use -z defs as we might desire, because we do not
20195 # link with -lc, and that would cause any symbols used from libc to
20196 # always be unresolved, which means just about no library would
20197 # ever link correctly. If we're not using GNU ld we use -z text
20198 # though, which does catch some bad symbols but isn't as heavy-handed
20199 # as -z defs.
20200 no_undefined_flag_CXX='${wl}-z,text'
20201 allow_undefined_flag_CXX='${wl}-z,nodefs'
20202 archive_cmds_need_lc_CXX=no
20203 hardcode_shlibpath_var_CXX=no
20204 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20205 hardcode_libdir_separator_CXX=':'
20206 link_all_deplibs_CXX=yes
20207 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20208 runpath_var='LD_RUN_PATH'
20210 case $cc_basename in
20211 CC*)
20212 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20213 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20214 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20215 '"$old_archive_cmds_CXX"
20216 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20217 '"$reload_cmds_CXX"
20220 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20221 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20223 esac
20226 tandem*)
20227 case $cc_basename in
20228 NCC*)
20229 # NonStop-UX NCC 3.20
20230 # FIXME: insert proper C++ library support
20231 ld_shlibs_CXX=no
20234 # FIXME: insert proper C++ library support
20235 ld_shlibs_CXX=no
20237 esac
20240 vxworks*)
20241 # FIXME: insert proper C++ library support
20242 ld_shlibs_CXX=no
20246 # FIXME: insert proper C++ library support
20247 ld_shlibs_CXX=no
20249 esac
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20252 $as_echo "$ld_shlibs_CXX" >&6; }
20253 test "$ld_shlibs_CXX" = no && can_build_shared=no
20255 GCC_CXX="$GXX"
20256 LD_CXX="$LD"
20258 ## CAVEAT EMPTOR:
20259 ## There is no encapsulation within the following macros, do not change
20260 ## the running order or otherwise move them around unless you know exactly
20261 ## what you are doing...
20262 # Dependencies to place before and after the object being linked:
20263 predep_objects_CXX=
20264 postdep_objects_CXX=
20265 predeps_CXX=
20266 postdeps_CXX=
20267 compiler_lib_search_path_CXX=
20269 cat > conftest.$ac_ext <<_LT_EOF
20270 class Foo
20272 public:
20273 Foo (void) { a = 0; }
20274 private:
20275 int a;
20277 _LT_EOF
20279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20280 (eval $ac_compile) 2>&5
20281 ac_status=$?
20282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20283 test $ac_status = 0; }; then
20284 # Parse the compiler output and extract the necessary
20285 # objects, libraries and library flags.
20287 # Sentinel used to keep track of whether or not we are before
20288 # the conftest object file.
20289 pre_test_object_deps_done=no
20291 for p in `eval "$output_verbose_link_cmd"`; do
20292 case $p in
20294 -L* | -R* | -l*)
20295 # Some compilers place space between "-{L,R}" and the path.
20296 # Remove the space.
20297 if test $p = "-L" ||
20298 test $p = "-R"; then
20299 prev=$p
20300 continue
20301 else
20302 prev=
20305 if test "$pre_test_object_deps_done" = no; then
20306 case $p in
20307 -L* | -R*)
20308 # Internal compiler library paths should come after those
20309 # provided the user. The postdeps already come after the
20310 # user supplied libs so there is no need to process them.
20311 if test -z "$compiler_lib_search_path_CXX"; then
20312 compiler_lib_search_path_CXX="${prev}${p}"
20313 else
20314 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20317 # The "-l" case would never come before the object being
20318 # linked, so don't bother handling this case.
20319 esac
20320 else
20321 if test -z "$postdeps_CXX"; then
20322 postdeps_CXX="${prev}${p}"
20323 else
20324 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20329 *.$objext)
20330 # This assumes that the test object file only shows up
20331 # once in the compiler output.
20332 if test "$p" = "conftest.$objext"; then
20333 pre_test_object_deps_done=yes
20334 continue
20337 if test "$pre_test_object_deps_done" = no; then
20338 if test -z "$predep_objects_CXX"; then
20339 predep_objects_CXX="$p"
20340 else
20341 predep_objects_CXX="$predep_objects_CXX $p"
20343 else
20344 if test -z "$postdep_objects_CXX"; then
20345 postdep_objects_CXX="$p"
20346 else
20347 postdep_objects_CXX="$postdep_objects_CXX $p"
20352 *) ;; # Ignore the rest.
20354 esac
20355 done
20357 # Clean up.
20358 rm -f a.out a.exe
20359 else
20360 echo "libtool.m4: error: problem compiling CXX test program"
20363 $RM -f confest.$objext
20365 # PORTME: override above test on systems where it is broken
20366 case $host_os in
20367 interix[3-9]*)
20368 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20369 # hack all around it, let's just trust "g++" to DTRT.
20370 predep_objects_CXX=
20371 postdep_objects_CXX=
20372 postdeps_CXX=
20375 linux*)
20376 case `$CC -V 2>&1 | sed 5q` in
20377 *Sun\ C*)
20378 # Sun C++ 5.9
20380 # The more standards-conforming stlport4 library is
20381 # incompatible with the Cstd library. Avoid specifying
20382 # it if it's in CXXFLAGS. Ignore libCrun as
20383 # -library=stlport4 depends on it.
20384 case " $CXX $CXXFLAGS " in
20385 *" -library=stlport4 "*)
20386 solaris_use_stlport4=yes
20388 esac
20390 if test "$solaris_use_stlport4" != yes; then
20391 postdeps_CXX='-library=Cstd -library=Crun'
20394 esac
20397 solaris*)
20398 case $cc_basename in
20399 CC*)
20400 # The more standards-conforming stlport4 library is
20401 # incompatible with the Cstd library. Avoid specifying
20402 # it if it's in CXXFLAGS. Ignore libCrun as
20403 # -library=stlport4 depends on it.
20404 case " $CXX $CXXFLAGS " in
20405 *" -library=stlport4 "*)
20406 solaris_use_stlport4=yes
20408 esac
20410 # Adding this requires a known-good setup of shared libraries for
20411 # Sun compiler versions before 5.6, else PIC objects from an old
20412 # archive will be linked into the output, leading to subtle bugs.
20413 if test "$solaris_use_stlport4" != yes; then
20414 postdeps_CXX='-library=Cstd -library=Crun'
20417 esac
20419 esac
20422 case " $postdeps_CXX " in
20423 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20424 esac
20425 compiler_lib_search_dirs_CXX=
20426 if test -n "${compiler_lib_search_path_CXX}"; then
20427 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20460 lt_prog_compiler_wl_CXX=
20461 lt_prog_compiler_pic_CXX=
20462 lt_prog_compiler_static_CXX=
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20465 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20467 # C++ specific cases for pic, static, wl, etc.
20468 if test "$GXX" = yes; then
20469 lt_prog_compiler_wl_CXX='-Wl,'
20470 lt_prog_compiler_static_CXX='-static'
20472 case $host_os in
20473 aix*)
20474 # All AIX code is PIC.
20475 if test "$host_cpu" = ia64; then
20476 # AIX 5 now supports IA64 processor
20477 lt_prog_compiler_static_CXX='-Bstatic'
20479 lt_prog_compiler_pic_CXX='-fPIC'
20482 amigaos*)
20483 case $host_cpu in
20484 powerpc)
20485 # see comment about AmigaOS4 .so support
20486 lt_prog_compiler_pic_CXX='-fPIC'
20488 m68k)
20489 # FIXME: we need at least 68020 code to build shared libraries, but
20490 # adding the `-m68020' flag to GCC prevents building anything better,
20491 # like `-m68040'.
20492 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20494 esac
20497 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20498 # PIC is the default for these OSes.
20500 mingw* | cygwin* | os2* | pw32* | cegcc*)
20501 # This hack is so that the source file can tell whether it is being
20502 # built for inclusion in a dll (and should export symbols for example).
20503 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20504 # (--disable-auto-import) libraries
20505 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20507 darwin* | rhapsody*)
20508 # PIC is the default on this platform
20509 # Common symbols not allowed in MH_DYLIB files
20510 lt_prog_compiler_pic_CXX='-fno-common'
20512 *djgpp*)
20513 # DJGPP does not support shared libraries at all
20514 lt_prog_compiler_pic_CXX=
20516 haiku*)
20517 # PIC is the default for Haiku.
20518 # The "-static" flag exists, but is broken.
20519 lt_prog_compiler_static_CXX=
20521 interix[3-9]*)
20522 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20523 # Instead, we relocate shared libraries at runtime.
20525 sysv4*MP*)
20526 if test -d /usr/nec; then
20527 lt_prog_compiler_pic_CXX=-Kconform_pic
20530 hpux*)
20531 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20532 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20533 # sets the default TLS model and affects inlining.
20534 case $host_cpu in
20535 hppa*64*)
20538 lt_prog_compiler_pic_CXX='-fPIC'
20540 esac
20542 *qnx* | *nto*)
20543 # QNX uses GNU C++, but need to define -shared option too, otherwise
20544 # it will coredump.
20545 lt_prog_compiler_pic_CXX='-fPIC -shared'
20548 lt_prog_compiler_pic_CXX='-fPIC'
20550 esac
20551 else
20552 case $host_os in
20553 aix[4-9]*)
20554 # All AIX code is PIC.
20555 if test "$host_cpu" = ia64; then
20556 # AIX 5 now supports IA64 processor
20557 lt_prog_compiler_static_CXX='-Bstatic'
20558 else
20559 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20562 chorus*)
20563 case $cc_basename in
20564 cxch68*)
20565 # Green Hills C++ Compiler
20566 # _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"
20568 esac
20570 dgux*)
20571 case $cc_basename in
20572 ec++*)
20573 lt_prog_compiler_pic_CXX='-KPIC'
20575 ghcx*)
20576 # Green Hills C++ Compiler
20577 lt_prog_compiler_pic_CXX='-pic'
20581 esac
20583 freebsd* | dragonfly*)
20584 # FreeBSD uses GNU C++
20586 hpux9* | hpux10* | hpux11*)
20587 case $cc_basename in
20588 CC*)
20589 lt_prog_compiler_wl_CXX='-Wl,'
20590 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20591 if test "$host_cpu" != ia64; then
20592 lt_prog_compiler_pic_CXX='+Z'
20595 aCC*)
20596 lt_prog_compiler_wl_CXX='-Wl,'
20597 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20598 case $host_cpu in
20599 hppa*64*|ia64*)
20600 # +Z the default
20603 lt_prog_compiler_pic_CXX='+Z'
20605 esac
20609 esac
20611 interix*)
20612 # This is c89, which is MS Visual C++ (no shared libs)
20613 # Anyone wants to do a port?
20615 irix5* | irix6* | nonstopux*)
20616 case $cc_basename in
20617 CC*)
20618 lt_prog_compiler_wl_CXX='-Wl,'
20619 lt_prog_compiler_static_CXX='-non_shared'
20620 # CC pic flag -KPIC is the default.
20624 esac
20626 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20627 case $cc_basename in
20628 KCC*)
20629 # KAI C++ Compiler
20630 lt_prog_compiler_wl_CXX='--backend -Wl,'
20631 lt_prog_compiler_pic_CXX='-fPIC'
20633 ecpc* )
20634 # old Intel C++ for x86_64 which still supported -KPIC.
20635 lt_prog_compiler_wl_CXX='-Wl,'
20636 lt_prog_compiler_pic_CXX='-KPIC'
20637 lt_prog_compiler_static_CXX='-static'
20639 icpc* )
20640 # Intel C++, used to be incompatible with GCC.
20641 # ICC 10 doesn't accept -KPIC any more.
20642 lt_prog_compiler_wl_CXX='-Wl,'
20643 lt_prog_compiler_pic_CXX='-fPIC'
20644 lt_prog_compiler_static_CXX='-static'
20646 pgCC* | pgcpp*)
20647 # Portland Group C++ compiler
20648 lt_prog_compiler_wl_CXX='-Wl,'
20649 lt_prog_compiler_pic_CXX='-fpic'
20650 lt_prog_compiler_static_CXX='-Bstatic'
20652 cxx*)
20653 # Compaq C++
20654 # Make sure the PIC flag is empty. It appears that all Alpha
20655 # Linux and Compaq Tru64 Unix objects are PIC.
20656 lt_prog_compiler_pic_CXX=
20657 lt_prog_compiler_static_CXX='-non_shared'
20659 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20660 # IBM XL 8.0, 9.0 on PPC and BlueGene
20661 lt_prog_compiler_wl_CXX='-Wl,'
20662 lt_prog_compiler_pic_CXX='-qpic'
20663 lt_prog_compiler_static_CXX='-qstaticlink'
20666 case `$CC -V 2>&1 | sed 5q` in
20667 *Sun\ C*)
20668 # Sun C++ 5.9
20669 lt_prog_compiler_pic_CXX='-KPIC'
20670 lt_prog_compiler_static_CXX='-Bstatic'
20671 lt_prog_compiler_wl_CXX='-Qoption ld '
20673 esac
20675 esac
20677 lynxos*)
20679 m88k*)
20681 mvs*)
20682 case $cc_basename in
20683 cxx*)
20684 lt_prog_compiler_pic_CXX='-W c,exportall'
20688 esac
20690 netbsd*)
20692 *qnx* | *nto*)
20693 # QNX uses GNU C++, but need to define -shared option too, otherwise
20694 # it will coredump.
20695 lt_prog_compiler_pic_CXX='-fPIC -shared'
20697 osf3* | osf4* | osf5*)
20698 case $cc_basename in
20699 KCC*)
20700 lt_prog_compiler_wl_CXX='--backend -Wl,'
20702 RCC*)
20703 # Rational C++ 2.4.1
20704 lt_prog_compiler_pic_CXX='-pic'
20706 cxx*)
20707 # Digital/Compaq C++
20708 lt_prog_compiler_wl_CXX='-Wl,'
20709 # Make sure the PIC flag is empty. It appears that all Alpha
20710 # Linux and Compaq Tru64 Unix objects are PIC.
20711 lt_prog_compiler_pic_CXX=
20712 lt_prog_compiler_static_CXX='-non_shared'
20716 esac
20718 psos*)
20720 solaris*)
20721 case $cc_basename in
20722 CC*)
20723 # Sun C++ 4.2, 5.x and Centerline C++
20724 lt_prog_compiler_pic_CXX='-KPIC'
20725 lt_prog_compiler_static_CXX='-Bstatic'
20726 lt_prog_compiler_wl_CXX='-Qoption ld '
20728 gcx*)
20729 # Green Hills C++ Compiler
20730 lt_prog_compiler_pic_CXX='-PIC'
20734 esac
20736 sunos4*)
20737 case $cc_basename in
20738 CC*)
20739 # Sun C++ 4.x
20740 lt_prog_compiler_pic_CXX='-pic'
20741 lt_prog_compiler_static_CXX='-Bstatic'
20743 lcc*)
20744 # Lucid
20745 lt_prog_compiler_pic_CXX='-pic'
20749 esac
20751 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20752 case $cc_basename in
20753 CC*)
20754 lt_prog_compiler_wl_CXX='-Wl,'
20755 lt_prog_compiler_pic_CXX='-KPIC'
20756 lt_prog_compiler_static_CXX='-Bstatic'
20758 esac
20760 tandem*)
20761 case $cc_basename in
20762 NCC*)
20763 # NonStop-UX NCC 3.20
20764 lt_prog_compiler_pic_CXX='-KPIC'
20768 esac
20770 vxworks*)
20773 lt_prog_compiler_can_build_shared_CXX=no
20775 esac
20778 case $host_os in
20779 # For platforms which do not support PIC, -DPIC is meaningless:
20780 *djgpp*)
20781 lt_prog_compiler_pic_CXX=
20784 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20786 esac
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20788 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20793 # Check to make sure the PIC flag actually works.
20795 if test -n "$lt_prog_compiler_pic_CXX"; then
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20797 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20798 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20799 $as_echo_n "(cached) " >&6
20800 else
20801 lt_cv_prog_compiler_pic_works_CXX=no
20802 ac_outfile=conftest.$ac_objext
20803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20804 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20805 # Insert the option either (1) after the last *FLAGS variable, or
20806 # (2) before a word containing "conftest.", or (3) at the end.
20807 # Note that $ac_compile itself does not contain backslashes and begins
20808 # with a dollar sign (not a hyphen), so the echo should work correctly.
20809 # The option is referenced via a variable to avoid confusing sed.
20810 lt_compile=`echo "$ac_compile" | $SED \
20811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20813 -e 's:$: $lt_compiler_flag:'`
20814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20815 (eval "$lt_compile" 2>conftest.err)
20816 ac_status=$?
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 if (exit $ac_status) && test -s "$ac_outfile"; then
20820 # The compiler can only warn and ignore the option if not recognized
20821 # So say no if there are warnings other than the usual output.
20822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20825 lt_cv_prog_compiler_pic_works_CXX=yes
20828 $RM conftest*
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20832 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20834 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20835 case $lt_prog_compiler_pic_CXX in
20836 "" | " "*) ;;
20837 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20838 esac
20839 else
20840 lt_prog_compiler_pic_CXX=
20841 lt_prog_compiler_can_build_shared_CXX=no
20849 # Check to make sure the static flag actually works.
20851 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20853 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20854 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20855 $as_echo_n "(cached) " >&6
20856 else
20857 lt_cv_prog_compiler_static_works_CXX=no
20858 save_LDFLAGS="$LDFLAGS"
20859 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20860 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20862 # The linker can only warn and ignore the option if not recognized
20863 # So say no if there are warnings
20864 if test -s conftest.err; then
20865 # Append any errors to the config.log.
20866 cat conftest.err 1>&5
20867 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20869 if diff conftest.exp conftest.er2 >/dev/null; then
20870 lt_cv_prog_compiler_static_works_CXX=yes
20872 else
20873 lt_cv_prog_compiler_static_works_CXX=yes
20876 $RM -r conftest*
20877 LDFLAGS="$save_LDFLAGS"
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20881 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20883 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20885 else
20886 lt_prog_compiler_static_CXX=
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20893 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20894 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20895 $as_echo_n "(cached) " >&6
20896 else
20897 lt_cv_prog_compiler_c_o_CXX=no
20898 $RM -r conftest 2>/dev/null
20899 mkdir conftest
20900 cd conftest
20901 mkdir out
20902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20904 lt_compiler_flag="-o out/conftest2.$ac_objext"
20905 # Insert the option either (1) after the last *FLAGS variable, or
20906 # (2) before a word containing "conftest.", or (3) at the end.
20907 # Note that $ac_compile itself does not contain backslashes and begins
20908 # with a dollar sign (not a hyphen), so the echo should work correctly.
20909 lt_compile=`echo "$ac_compile" | $SED \
20910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20912 -e 's:$: $lt_compiler_flag:'`
20913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20914 (eval "$lt_compile" 2>out/conftest.err)
20915 ac_status=$?
20916 cat out/conftest.err >&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20919 then
20920 # The compiler can only warn and ignore the option if not recognized
20921 # So say no if there are warnings
20922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20923 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20924 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20925 lt_cv_prog_compiler_c_o_CXX=yes
20928 chmod u+w . 2>&5
20929 $RM conftest*
20930 # SGI C++ compiler will create directory out/ii_files/ for
20931 # template instantiation
20932 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20933 $RM out/* && rmdir out
20934 cd ..
20935 $RM -r conftest
20936 $RM conftest*
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20940 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20946 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20947 $as_echo_n "(cached) " >&6
20948 else
20949 lt_cv_prog_compiler_c_o_CXX=no
20950 $RM -r conftest 2>/dev/null
20951 mkdir conftest
20952 cd conftest
20953 mkdir out
20954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20956 lt_compiler_flag="-o out/conftest2.$ac_objext"
20957 # Insert the option either (1) after the last *FLAGS variable, or
20958 # (2) before a word containing "conftest.", or (3) at the end.
20959 # Note that $ac_compile itself does not contain backslashes and begins
20960 # with a dollar sign (not a hyphen), so the echo should work correctly.
20961 lt_compile=`echo "$ac_compile" | $SED \
20962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20964 -e 's:$: $lt_compiler_flag:'`
20965 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20966 (eval "$lt_compile" 2>out/conftest.err)
20967 ac_status=$?
20968 cat out/conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20971 then
20972 # The compiler can only warn and ignore the option if not recognized
20973 # So say no if there are warnings
20974 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20977 lt_cv_prog_compiler_c_o_CXX=yes
20980 chmod u+w . 2>&5
20981 $RM conftest*
20982 # SGI C++ compiler will create directory out/ii_files/ for
20983 # template instantiation
20984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20985 $RM out/* && rmdir out
20986 cd ..
20987 $RM -r conftest
20988 $RM conftest*
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20992 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20997 hard_links="nottested"
20998 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20999 # do not overwrite the value of need_locks provided by the user
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21001 $as_echo_n "checking if we can lock with hard links... " >&6; }
21002 hard_links=yes
21003 $RM conftest*
21004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21005 touch conftest.a
21006 ln conftest.a conftest.b 2>&5 || hard_links=no
21007 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21009 $as_echo "$hard_links" >&6; }
21010 if test "$hard_links" = no; then
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21012 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21013 need_locks=warn
21015 else
21016 need_locks=no
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21022 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21024 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21025 case $host_os in
21026 aix[4-9]*)
21027 # If we're using GNU nm, then we don't want the "-C" option.
21028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21029 # Also, AIX nm treats weak defined symbols like other global defined
21030 # symbols, whereas GNU nm marks them as "W".
21031 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21032 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'
21033 else
21034 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'
21037 pw32*)
21038 export_symbols_cmds_CXX="$ltdll_cmds"
21040 cygwin* | mingw* | cegcc*)
21041 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'
21044 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21046 esac
21047 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21050 $as_echo "$ld_shlibs_CXX" >&6; }
21051 test "$ld_shlibs_CXX" = no && can_build_shared=no
21053 with_gnu_ld_CXX=$with_gnu_ld
21061 # Do we need to explicitly link libc?
21063 case "x$archive_cmds_need_lc_CXX" in
21064 x|xyes)
21065 # Assume -lc should be added
21066 archive_cmds_need_lc_CXX=yes
21068 if test "$enable_shared" = yes && test "$GCC" = yes; then
21069 case $archive_cmds_CXX in
21070 *'~'*)
21071 # FIXME: we may have to deal with multi-command sequences.
21073 '$CC '*)
21074 # Test whether the compiler implicitly links with -lc since on some
21075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21076 # to ld, don't add -lc before -lgcc.
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21078 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21079 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21080 $as_echo_n "(cached) " >&6
21081 else
21082 $RM conftest*
21083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21086 (eval $ac_compile) 2>&5
21087 ac_status=$?
21088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21089 test $ac_status = 0; } 2>conftest.err; then
21090 soname=conftest
21091 lib=conftest
21092 libobjs=conftest.$ac_objext
21093 deplibs=
21094 wl=$lt_prog_compiler_wl_CXX
21095 pic_flag=$lt_prog_compiler_pic_CXX
21096 compiler_flags=-v
21097 linker_flags=-v
21098 verstring=
21099 output_objdir=.
21100 libname=conftest
21101 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21102 allow_undefined_flag_CXX=
21103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21104 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21105 ac_status=$?
21106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21107 test $ac_status = 0; }
21108 then
21109 lt_cv_archive_cmds_need_lc_CXX=no
21110 else
21111 lt_cv_archive_cmds_need_lc_CXX=yes
21113 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21114 else
21115 cat conftest.err 1>&5
21117 $RM conftest*
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21121 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21122 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21124 esac
21127 esac
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21193 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21195 library_names_spec=
21196 libname_spec='lib$name'
21197 soname_spec=
21198 shrext_cmds=".so"
21199 postinstall_cmds=
21200 postuninstall_cmds=
21201 finish_cmds=
21202 finish_eval=
21203 shlibpath_var=
21204 shlibpath_overrides_runpath=unknown
21205 version_type=none
21206 dynamic_linker="$host_os ld.so"
21207 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21208 need_lib_prefix=unknown
21209 hardcode_into_libs=no
21211 # when you set need_version to no, make sure it does not cause -set_version
21212 # flags to be left without arguments
21213 need_version=unknown
21215 case $host_os in
21216 aix3*)
21217 version_type=linux
21218 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21219 shlibpath_var=LIBPATH
21221 # AIX 3 has no versioning support, so we append a major version to the name.
21222 soname_spec='${libname}${release}${shared_ext}$major'
21225 aix[4-9]*)
21226 version_type=linux
21227 need_lib_prefix=no
21228 need_version=no
21229 hardcode_into_libs=yes
21230 if test "$host_cpu" = ia64; then
21231 # AIX 5 supports IA64
21232 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21233 shlibpath_var=LD_LIBRARY_PATH
21234 else
21235 # With GCC up to 2.95.x, collect2 would create an import file
21236 # for dependence libraries. The import file would start with
21237 # the line `#! .'. This would cause the generated library to
21238 # depend on `.', always an invalid library. This was fixed in
21239 # development snapshots of GCC prior to 3.0.
21240 case $host_os in
21241 aix4 | aix4.[01] | aix4.[01].*)
21242 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21243 echo ' yes '
21244 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21246 else
21247 can_build_shared=no
21250 esac
21251 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21252 # soname into executable. Probably we can add versioning support to
21253 # collect2, so additional links can be useful in future.
21254 if test "$aix_use_runtimelinking" = yes; then
21255 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21256 # instead of lib<name>.a to let people know that these are not
21257 # typical AIX shared libraries.
21258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21259 else
21260 # We preserve .a as extension for shared libraries through AIX4.2
21261 # and later when we are not doing run time linking.
21262 library_names_spec='${libname}${release}.a $libname.a'
21263 soname_spec='${libname}${release}${shared_ext}$major'
21265 shlibpath_var=LIBPATH
21269 amigaos*)
21270 case $host_cpu in
21271 powerpc)
21272 # Since July 2007 AmigaOS4 officially supports .so libraries.
21273 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276 m68k)
21277 library_names_spec='$libname.ixlibrary $libname.a'
21278 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21279 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'
21281 esac
21284 beos*)
21285 library_names_spec='${libname}${shared_ext}'
21286 dynamic_linker="$host_os ld.so"
21287 shlibpath_var=LIBRARY_PATH
21290 bsdi[45]*)
21291 version_type=linux
21292 need_version=no
21293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21294 soname_spec='${libname}${release}${shared_ext}$major'
21295 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21296 shlibpath_var=LD_LIBRARY_PATH
21297 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21298 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21299 # the default ld.so.conf also contains /usr/contrib/lib and
21300 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21301 # libtool to hard-code these into programs
21304 cygwin* | mingw* | pw32* | cegcc*)
21305 version_type=windows
21306 shrext_cmds=".dll"
21307 need_version=no
21308 need_lib_prefix=no
21310 case $GCC,$host_os in
21311 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21312 library_names_spec='$libname.dll.a'
21313 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21314 postinstall_cmds='base_file=`basename \${file}`~
21315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21316 dldir=$destdir/`dirname \$dlpath`~
21317 test -d \$dldir || mkdir -p \$dldir~
21318 $install_prog $dir/$dlname \$dldir/$dlname~
21319 chmod a+x \$dldir/$dlname~
21320 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21321 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21324 dlpath=$dir/\$dldll~
21325 $RM \$dlpath'
21326 shlibpath_overrides_runpath=yes
21328 case $host_os in
21329 cygwin*)
21330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21331 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21334 mingw* | cegcc*)
21335 # MinGW DLLs use traditional 'lib' prefix
21336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21338 pw32*)
21339 # pw32 DLLs use 'pw' prefix rather than 'lib'
21340 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21342 esac
21346 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21348 esac
21349 dynamic_linker='Win32 ld.exe'
21350 # FIXME: first we should search . and the directory the executable is in
21351 shlibpath_var=PATH
21354 darwin* | rhapsody*)
21355 dynamic_linker="$host_os dyld"
21356 version_type=darwin
21357 need_lib_prefix=no
21358 need_version=no
21359 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21360 soname_spec='${libname}${release}${major}$shared_ext'
21361 shlibpath_overrides_runpath=yes
21362 shlibpath_var=DYLD_LIBRARY_PATH
21363 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21368 dgux*)
21369 version_type=linux
21370 need_lib_prefix=no
21371 need_version=no
21372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21373 soname_spec='${libname}${release}${shared_ext}$major'
21374 shlibpath_var=LD_LIBRARY_PATH
21377 freebsd* | dragonfly*)
21378 # DragonFly does not have aout. When/if they implement a new
21379 # versioning mechanism, adjust this.
21380 if test -x /usr/bin/objformat; then
21381 objformat=`/usr/bin/objformat`
21382 else
21383 case $host_os in
21384 freebsd[23].*) objformat=aout ;;
21385 *) objformat=elf ;;
21386 esac
21388 version_type=freebsd-$objformat
21389 case $version_type in
21390 freebsd-elf*)
21391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21392 need_version=no
21393 need_lib_prefix=no
21395 freebsd-*)
21396 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21397 need_version=yes
21399 esac
21400 shlibpath_var=LD_LIBRARY_PATH
21401 case $host_os in
21402 freebsd2.*)
21403 shlibpath_overrides_runpath=yes
21405 freebsd3.[01]* | freebsdelf3.[01]*)
21406 shlibpath_overrides_runpath=yes
21407 hardcode_into_libs=yes
21409 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21410 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21411 shlibpath_overrides_runpath=no
21412 hardcode_into_libs=yes
21414 *) # from 4.6 on, and DragonFly
21415 shlibpath_overrides_runpath=yes
21416 hardcode_into_libs=yes
21418 esac
21421 gnu*)
21422 version_type=linux
21423 need_lib_prefix=no
21424 need_version=no
21425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21426 soname_spec='${libname}${release}${shared_ext}$major'
21427 shlibpath_var=LD_LIBRARY_PATH
21428 hardcode_into_libs=yes
21431 haiku*)
21432 version_type=linux
21433 need_lib_prefix=no
21434 need_version=no
21435 dynamic_linker="$host_os runtime_loader"
21436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21437 soname_spec='${libname}${release}${shared_ext}$major'
21438 shlibpath_var=LIBRARY_PATH
21439 shlibpath_overrides_runpath=yes
21440 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21441 hardcode_into_libs=yes
21444 hpux9* | hpux10* | hpux11*)
21445 # Give a soname corresponding to the major version so that dld.sl refuses to
21446 # link against other versions.
21447 version_type=sunos
21448 need_lib_prefix=no
21449 need_version=no
21450 case $host_cpu in
21451 ia64*)
21452 shrext_cmds='.so'
21453 hardcode_into_libs=yes
21454 dynamic_linker="$host_os dld.so"
21455 shlibpath_var=LD_LIBRARY_PATH
21456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21458 soname_spec='${libname}${release}${shared_ext}$major'
21459 if test "X$HPUX_IA64_MODE" = X32; then
21460 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21461 else
21462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21464 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21466 hppa*64*)
21467 shrext_cmds='.sl'
21468 hardcode_into_libs=yes
21469 dynamic_linker="$host_os dld.sl"
21470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21473 soname_spec='${libname}${release}${shared_ext}$major'
21474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21478 shrext_cmds='.sl'
21479 dynamic_linker="$host_os dld.sl"
21480 shlibpath_var=SHLIB_PATH
21481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21483 soname_spec='${libname}${release}${shared_ext}$major'
21485 esac
21486 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21487 postinstall_cmds='chmod 555 $lib'
21488 # or fails outright, so override atomically:
21489 install_override_mode=555
21492 interix[3-9]*)
21493 version_type=linux
21494 need_lib_prefix=no
21495 need_version=no
21496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21497 soname_spec='${libname}${release}${shared_ext}$major'
21498 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21499 shlibpath_var=LD_LIBRARY_PATH
21500 shlibpath_overrides_runpath=no
21501 hardcode_into_libs=yes
21504 irix5* | irix6* | nonstopux*)
21505 case $host_os in
21506 nonstopux*) version_type=nonstopux ;;
21508 if test "$lt_cv_prog_gnu_ld" = yes; then
21509 version_type=linux
21510 else
21511 version_type=irix
21512 fi ;;
21513 esac
21514 need_lib_prefix=no
21515 need_version=no
21516 soname_spec='${libname}${release}${shared_ext}$major'
21517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21518 case $host_os in
21519 irix5* | nonstopux*)
21520 libsuff= shlibsuff=
21523 case $LD in # libtool.m4 will add one of these switches to LD
21524 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21525 libsuff= shlibsuff= libmagic=32-bit;;
21526 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21527 libsuff=32 shlibsuff=N32 libmagic=N32;;
21528 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21529 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21530 *) libsuff= shlibsuff= libmagic=never-match;;
21531 esac
21533 esac
21534 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21535 shlibpath_overrides_runpath=no
21536 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21537 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21538 hardcode_into_libs=yes
21541 # No shared lib support for Linux oldld, aout, or coff.
21542 linux*oldld* | linux*aout* | linux*coff*)
21543 dynamic_linker=no
21546 # This must be Linux ELF.
21547 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21548 version_type=linux
21549 need_lib_prefix=no
21550 need_version=no
21551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21552 soname_spec='${libname}${release}${shared_ext}$major'
21553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21554 shlibpath_var=LD_LIBRARY_PATH
21555 shlibpath_overrides_runpath=no
21557 # Some binutils ld are patched to set DT_RUNPATH
21558 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21559 $as_echo_n "(cached) " >&6
21560 else
21561 lt_cv_shlibpath_overrides_runpath=no
21562 save_LDFLAGS=$LDFLAGS
21563 save_libdir=$libdir
21564 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21565 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21567 /* end confdefs.h. */
21570 main ()
21574 return 0;
21576 _ACEOF
21577 if ac_fn_cxx_try_link "$LINENO"; then :
21578 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21579 lt_cv_shlibpath_overrides_runpath=yes
21582 rm -f core conftest.err conftest.$ac_objext \
21583 conftest$ac_exeext conftest.$ac_ext
21584 LDFLAGS=$save_LDFLAGS
21585 libdir=$save_libdir
21589 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21591 # This implies no fast_install, which is unacceptable.
21592 # Some rework will be needed to allow for fast_install
21593 # before this can be enabled.
21594 hardcode_into_libs=yes
21596 # Append ld.so.conf contents to the search path
21597 if test -f /etc/ld.so.conf; then
21598 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' ' '`
21599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21602 # We used to test for /lib/ld.so.1 and disable shared libraries on
21603 # powerpc, because MkLinux only supported shared libraries with the
21604 # GNU dynamic linker. Since this was broken with cross compilers,
21605 # most powerpc-linux boxes support dynamic linking these days and
21606 # people can always --disable-shared, the test was removed, and we
21607 # assume the GNU/Linux dynamic linker is in use.
21608 dynamic_linker='GNU/Linux ld.so'
21611 netbsd*)
21612 version_type=sunos
21613 need_lib_prefix=no
21614 need_version=no
21615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21618 dynamic_linker='NetBSD (a.out) ld.so'
21619 else
21620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21621 soname_spec='${libname}${release}${shared_ext}$major'
21622 dynamic_linker='NetBSD ld.elf_so'
21624 shlibpath_var=LD_LIBRARY_PATH
21625 shlibpath_overrides_runpath=yes
21626 hardcode_into_libs=yes
21629 newsos6)
21630 version_type=linux
21631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21632 shlibpath_var=LD_LIBRARY_PATH
21633 shlibpath_overrides_runpath=yes
21636 *nto* | *qnx*)
21637 version_type=qnx
21638 need_lib_prefix=no
21639 need_version=no
21640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21641 soname_spec='${libname}${release}${shared_ext}$major'
21642 shlibpath_var=LD_LIBRARY_PATH
21643 shlibpath_overrides_runpath=no
21644 hardcode_into_libs=yes
21645 dynamic_linker='ldqnx.so'
21648 openbsd*)
21649 version_type=sunos
21650 sys_lib_dlsearch_path_spec="/usr/lib"
21651 need_lib_prefix=no
21652 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21653 case $host_os in
21654 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21655 *) need_version=no ;;
21656 esac
21657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21659 shlibpath_var=LD_LIBRARY_PATH
21660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21661 case $host_os in
21662 openbsd2.[89] | openbsd2.[89].*)
21663 shlibpath_overrides_runpath=no
21666 shlibpath_overrides_runpath=yes
21668 esac
21669 else
21670 shlibpath_overrides_runpath=yes
21674 os2*)
21675 libname_spec='$name'
21676 shrext_cmds=".dll"
21677 need_lib_prefix=no
21678 library_names_spec='$libname${shared_ext} $libname.a'
21679 dynamic_linker='OS/2 ld.exe'
21680 shlibpath_var=LIBPATH
21683 osf3* | osf4* | osf5*)
21684 version_type=osf
21685 need_lib_prefix=no
21686 need_version=no
21687 soname_spec='${libname}${release}${shared_ext}$major'
21688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21689 shlibpath_var=LD_LIBRARY_PATH
21690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21694 rdos*)
21695 dynamic_linker=no
21698 solaris*)
21699 version_type=linux
21700 need_lib_prefix=no
21701 need_version=no
21702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21703 soname_spec='${libname}${release}${shared_ext}$major'
21704 shlibpath_var=LD_LIBRARY_PATH
21705 shlibpath_overrides_runpath=yes
21706 hardcode_into_libs=yes
21707 # ldd complains unless libraries are executable
21708 postinstall_cmds='chmod +x $lib'
21711 sunos4*)
21712 version_type=sunos
21713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21715 shlibpath_var=LD_LIBRARY_PATH
21716 shlibpath_overrides_runpath=yes
21717 if test "$with_gnu_ld" = yes; then
21718 need_lib_prefix=no
21720 need_version=yes
21723 sysv4 | sysv4.3*)
21724 version_type=linux
21725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21726 soname_spec='${libname}${release}${shared_ext}$major'
21727 shlibpath_var=LD_LIBRARY_PATH
21728 case $host_vendor in
21729 sni)
21730 shlibpath_overrides_runpath=no
21731 need_lib_prefix=no
21732 runpath_var=LD_RUN_PATH
21734 siemens)
21735 need_lib_prefix=no
21737 motorola)
21738 need_lib_prefix=no
21739 need_version=no
21740 shlibpath_overrides_runpath=no
21741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21743 esac
21746 sysv4*MP*)
21747 if test -d /usr/nec ;then
21748 version_type=linux
21749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21750 soname_spec='$libname${shared_ext}.$major'
21751 shlibpath_var=LD_LIBRARY_PATH
21755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21756 version_type=freebsd-elf
21757 need_lib_prefix=no
21758 need_version=no
21759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21760 soname_spec='${libname}${release}${shared_ext}$major'
21761 shlibpath_var=LD_LIBRARY_PATH
21762 shlibpath_overrides_runpath=yes
21763 hardcode_into_libs=yes
21764 if test "$with_gnu_ld" = yes; then
21765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21766 else
21767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21768 case $host_os in
21769 sco3.2v5*)
21770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21772 esac
21774 sys_lib_dlsearch_path_spec='/usr/lib'
21777 tpf*)
21778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21779 version_type=linux
21780 need_lib_prefix=no
21781 need_version=no
21782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21783 shlibpath_var=LD_LIBRARY_PATH
21784 shlibpath_overrides_runpath=no
21785 hardcode_into_libs=yes
21788 uts4*)
21789 version_type=linux
21790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21791 soname_spec='${libname}${release}${shared_ext}$major'
21792 shlibpath_var=LD_LIBRARY_PATH
21796 dynamic_linker=no
21798 esac
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21800 $as_echo "$dynamic_linker" >&6; }
21801 test "$dynamic_linker" = no && can_build_shared=no
21803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21804 if test "$GCC" = yes; then
21805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21809 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21812 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21853 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21854 hardcode_action_CXX=
21855 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21856 test -n "$runpath_var_CXX" ||
21857 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21859 # We can hardcode non-existent directories.
21860 if test "$hardcode_direct_CXX" != no &&
21861 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21862 # have to relink, otherwise we might link with an installed library
21863 # when we should be linking with a yet-to-be-installed one
21864 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21865 test "$hardcode_minus_L_CXX" != no; then
21866 # Linking always hardcodes the temporary library directory.
21867 hardcode_action_CXX=relink
21868 else
21869 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21870 hardcode_action_CXX=immediate
21872 else
21873 # We cannot hardcode anything, or else we can only hardcode existing
21874 # directories.
21875 hardcode_action_CXX=unsupported
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21878 $as_echo "$hardcode_action_CXX" >&6; }
21880 if test "$hardcode_action_CXX" = relink ||
21881 test "$inherit_rpath_CXX" = yes; then
21882 # Fast installation is not supported
21883 enable_fast_install=no
21884 elif test "$shlibpath_overrides_runpath" = yes ||
21885 test "$enable_shared" = no; then
21886 # Fast installation is not necessary
21887 enable_fast_install=needless
21896 fi # test -n "$compiler"
21898 CC=$lt_save_CC
21899 LDCXX=$LD
21900 LD=$lt_save_LD
21901 GCC=$lt_save_GCC
21902 with_gnu_ld=$lt_save_with_gnu_ld
21903 lt_cv_path_LDCXX=$lt_cv_path_LD
21904 lt_cv_path_LD=$lt_save_path_LD
21905 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21906 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21907 fi # test "$_lt_caught_CXX_error" != yes
21909 ac_ext=cpp
21910 ac_cpp='$CXXCPP $CPPFLAGS'
21911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21930 # Only expand once:
21936 # Identify the assembler which will work hand-in-glove with the newly
21937 # built GCC, so that we can examine its features. This is the assembler
21938 # which will be driven by the driver program.
21940 # If build != host, and we aren't building gas in-tree, we identify a
21941 # build->target assembler and hope that it will have the same features
21942 # as the host->target assembler we'll be using.
21943 gcc_cv_gas_major_version=
21944 gcc_cv_gas_minor_version=
21945 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21947 if ${gcc_cv_as+:} false; then :
21949 else
21951 if test -x "$DEFAULT_ASSEMBLER"; then
21952 gcc_cv_as="$DEFAULT_ASSEMBLER"
21953 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21954 && test -f ../gas/Makefile \
21955 && test x$build = x$host; then
21956 gcc_cv_as=../gas/as-new$build_exeext
21957 elif test -x as$build_exeext; then
21958 # Build using assembler in the current directory.
21959 gcc_cv_as=./as$build_exeext
21960 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21961 gcc_cv_as="$AS_FOR_TARGET"
21962 else
21963 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21964 set dummy $AS_FOR_TARGET; ac_word=$2
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21966 $as_echo_n "checking for $ac_word... " >&6; }
21967 if ${ac_cv_path_gcc_cv_as+:} false; then :
21968 $as_echo_n "(cached) " >&6
21969 else
21970 case $gcc_cv_as in
21971 [\\/]* | ?:[\\/]*)
21972 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21976 for as_dir in $PATH
21978 IFS=$as_save_IFS
21979 test -z "$as_dir" && as_dir=.
21980 for ac_exec_ext in '' $ac_executable_extensions; do
21981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21982 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21984 break 2
21986 done
21987 done
21988 IFS=$as_save_IFS
21991 esac
21993 gcc_cv_as=$ac_cv_path_gcc_cv_as
21994 if test -n "$gcc_cv_as"; then
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21996 $as_echo "$gcc_cv_as" >&6; }
21997 else
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21999 $as_echo "no" >&6; }
22006 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22008 case "$ORIGINAL_AS_FOR_TARGET" in
22009 ./as | ./as$build_exeext) ;;
22010 *) ac_config_files="$ac_config_files as:exec-tool.in"
22012 esac
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22015 $as_echo_n "checking what assembler to use... " >&6; }
22016 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22017 # Single tree build which includes gas. We want to prefer it
22018 # over whatever linker top-level may have detected, since
22019 # we'll use what we're building after installation anyway.
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22021 $as_echo "newly built gas" >&6; }
22022 in_tree_gas=yes
22023 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22024 for f in $gcc_cv_as_bfd_srcdir/configure \
22025 $gcc_cv_as_gas_srcdir/configure \
22026 $gcc_cv_as_gas_srcdir/configure.ac \
22027 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22028 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22029 if test x$gcc_cv_gas_version != x; then
22030 break
22032 done
22033 case $gcc_cv_gas_version in
22034 VERSION=[0-9]*) ;;
22035 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22036 esac
22037 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22038 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22039 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22040 case $gcc_cv_gas_patch_version in
22041 "") gcc_cv_gas_patch_version="0" ;;
22042 esac
22043 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22044 + $gcc_cv_gas_minor_version \) \* 1000 \
22045 + $gcc_cv_gas_patch_version`
22047 in_tree_gas_is_elf=no
22048 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22049 || (grep 'obj_format = multi' ../gas/Makefile \
22050 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22051 then
22052 in_tree_gas_is_elf=yes
22054 else
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22056 $as_echo "$gcc_cv_as" >&6; }
22057 in_tree_gas=no
22060 default_ld=
22061 # Check whether --enable-ld was given.
22062 if test "${enable_ld+set}" = set; then :
22063 enableval=$enable_ld; case "${enableval}" in
22065 default_ld=ld.gold
22067 esac
22071 install_gold_as_default=no
22072 # Check whether --enable-gold was given.
22073 if test "${enable_gold+set}" = set; then :
22074 enableval=$enable_gold; case "${enableval}" in
22075 default)
22076 install_gold_as_default=yes
22078 yes)
22079 if test x${default_ld} != x; then
22080 install_gold_as_default=yes
22086 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22088 esac
22092 # Identify the linker which will work hand-in-glove with the newly
22093 # built GCC, so that we can examine its features. This is the linker
22094 # which will be driven by the driver program.
22096 # If build != host, and we aren't building gas in-tree, we identify a
22097 # build->target linker and hope that it will have the same features
22098 # as the host->target linker we'll be using.
22099 gcc_cv_gld_major_version=
22100 gcc_cv_gld_minor_version=
22101 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22102 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22103 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22105 if ${gcc_cv_ld+:} false; then :
22107 else
22109 if test -x "$DEFAULT_LINKER"; then
22110 gcc_cv_ld="$DEFAULT_LINKER"
22111 elif test $install_gold_as_default = yes \
22112 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22113 && test -f ../gold/Makefile \
22114 && test x$build = x$host; then
22115 gcc_cv_ld=../gold/ld-new$build_exeext
22116 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22117 && test -f ../ld/Makefile \
22118 && test x$build = x$host; then
22119 gcc_cv_ld=../ld/ld-new$build_exeext
22120 elif test -x collect-ld$build_exeext; then
22121 # Build using linker in the current directory.
22122 gcc_cv_ld=./collect-ld$build_exeext
22123 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22124 gcc_cv_ld="$LD_FOR_TARGET"
22125 else
22126 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22127 set dummy $LD_FOR_TARGET; ac_word=$2
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22129 $as_echo_n "checking for $ac_word... " >&6; }
22130 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22131 $as_echo_n "(cached) " >&6
22132 else
22133 case $gcc_cv_ld in
22134 [\\/]* | ?:[\\/]*)
22135 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22139 for as_dir in $PATH
22141 IFS=$as_save_IFS
22142 test -z "$as_dir" && as_dir=.
22143 for ac_exec_ext in '' $ac_executable_extensions; do
22144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22145 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22147 break 2
22149 done
22150 done
22151 IFS=$as_save_IFS
22154 esac
22156 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22157 if test -n "$gcc_cv_ld"; then
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22159 $as_echo "$gcc_cv_ld" >&6; }
22160 else
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22162 $as_echo "no" >&6; }
22169 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22170 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22171 # if the PLUGIN_LD is set ld-new, just have it as ld
22172 # as that is the installed named.
22173 if test x$PLUGIN_LD_SUFFIX = xld-new \
22174 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22175 PLUGIN_LD_SUFFIX=ld
22178 # Check whether --with-plugin-ld was given.
22179 if test "${with_plugin_ld+set}" = set; then :
22180 withval=$with_plugin_ld; if test x"$withval" != x; then
22181 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22182 PLUGIN_LD_SUFFIX="$withval"
22188 cat >>confdefs.h <<_ACEOF
22189 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22190 _ACEOF
22193 # Check to see if we are using gold instead of ld
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22195 $as_echo_n "checking whether we are using gold... " >&6; }
22196 ld_is_gold=no
22197 if test x$gcc_cv_ld != x; then
22198 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22199 | grep "GNU gold" > /dev/null; then
22200 ld_is_gold=yes
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22204 $as_echo "$ld_is_gold" >&6; }
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22207 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22208 # Check to see if default ld is not gold, but gold is
22209 # available and has support for split stack. If gcc was configured
22210 # with gold then no checking is done.
22212 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22214 # For platforms other than powerpc64*, enable as appropriate.
22216 gold_non_default=no
22217 ld_gold=`which ${gcc_cv_ld}.gold`
22218 # Make sure this gold has minimal split stack support
22219 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22220 ld_vers=`$ld_gold --version | sed 1q`
22221 gold_vers=`echo $ld_vers | sed -n \
22222 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22223 case $target in
22224 # check that the gold version contains the complete split stack support
22225 # on powerpc64 big and little endian
22226 powerpc64*-*-*)
22227 case "$gold_vers" in
22228 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22230 *) gold_non_default=no
22232 esac
22234 esac
22236 if test $gold_non_default = yes; then
22238 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22243 $as_echo "$gold_non_default" >&6; }
22245 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22247 case "$ORIGINAL_LD_FOR_TARGET" in
22248 ./collect-ld | ./collect-ld$build_exeext) ;;
22249 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22251 esac
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22254 $as_echo_n "checking what linker to use... " >&6; }
22255 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22256 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22257 # Single tree build which includes ld. We want to prefer it
22258 # over whatever linker top-level may have detected, since
22259 # we'll use what we're building after installation anyway.
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22261 $as_echo "newly built ld" >&6; }
22262 in_tree_ld=yes
22263 in_tree_ld_is_elf=no
22264 if (grep 'EMUL = .*elf' ../ld/Makefile \
22265 || grep 'EMUL = .*linux' ../ld/Makefile \
22266 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22267 in_tree_ld_is_elf=yes
22268 elif test "$ld_is_gold" = yes; then
22269 in_tree_ld_is_elf=yes
22271 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
22273 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22274 if test x$gcc_cv_gld_version != x; then
22275 break
22277 done
22278 case $gcc_cv_gld_version in
22279 VERSION=[0-9]*) ;;
22280 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22281 esac
22282 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22283 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22284 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22285 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22286 else
22287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22288 $as_echo "$gcc_cv_ld" >&6; }
22289 in_tree_ld=no
22290 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22291 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22292 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22298 # Figure out what nm we will be using.
22299 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22300 if ${gcc_cv_nm+:} false; then :
22302 else
22304 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22305 && test -f ../binutils/Makefile \
22306 && test x$build = x$host; then
22307 gcc_cv_nm=../binutils/nm-new$build_exeext
22308 elif test -x nm$build_exeext; then
22309 gcc_cv_nm=./nm$build_exeext
22310 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22311 gcc_cv_nm="$NM_FOR_TARGET"
22312 else
22313 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22314 set dummy $NM_FOR_TARGET; ac_word=$2
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22316 $as_echo_n "checking for $ac_word... " >&6; }
22317 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22318 $as_echo_n "(cached) " >&6
22319 else
22320 case $gcc_cv_nm in
22321 [\\/]* | ?:[\\/]*)
22322 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22326 for as_dir in $PATH
22328 IFS=$as_save_IFS
22329 test -z "$as_dir" && as_dir=.
22330 for ac_exec_ext in '' $ac_executable_extensions; do
22331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22332 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22334 break 2
22336 done
22337 done
22338 IFS=$as_save_IFS
22341 esac
22343 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22344 if test -n "$gcc_cv_nm"; then
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22346 $as_echo "$gcc_cv_nm" >&6; }
22347 else
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22349 $as_echo "no" >&6; }
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22357 $as_echo_n "checking what nm to use... " >&6; }
22358 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22359 # Single tree build which includes binutils.
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22361 $as_echo "newly built nm" >&6; }
22362 in_tree_nm=yes
22363 else
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22365 $as_echo "$gcc_cv_nm" >&6; }
22366 in_tree_nm=no
22369 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22371 case "$ORIGINAL_NM_FOR_TARGET" in
22372 ./nm | ./nm$build_exeext) ;;
22373 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22375 esac
22378 # Figure out what objdump we will be using.
22379 if ${gcc_cv_objdump+:} false; then :
22381 else
22383 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22384 && test -f ../binutils/Makefile \
22385 && test x$build = x$host; then
22386 # Single tree build which includes binutils.
22387 gcc_cv_objdump=../binutils/objdump$build_exeext
22388 elif test -x objdump$build_exeext; then
22389 gcc_cv_objdump=./objdump$build_exeext
22390 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22391 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22392 else
22393 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22394 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22396 $as_echo_n "checking for $ac_word... " >&6; }
22397 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22398 $as_echo_n "(cached) " >&6
22399 else
22400 case $gcc_cv_objdump in
22401 [\\/]* | ?:[\\/]*)
22402 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22406 for as_dir in $PATH
22408 IFS=$as_save_IFS
22409 test -z "$as_dir" && as_dir=.
22410 for ac_exec_ext in '' $ac_executable_extensions; do
22411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22412 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22414 break 2
22416 done
22417 done
22418 IFS=$as_save_IFS
22421 esac
22423 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22424 if test -n "$gcc_cv_objdump"; then
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22426 $as_echo "$gcc_cv_objdump" >&6; }
22427 else
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22429 $as_echo "no" >&6; }
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22437 $as_echo_n "checking what objdump to use... " >&6; }
22438 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22439 # Single tree build which includes binutils.
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22441 $as_echo "newly built objdump" >&6; }
22442 elif test x$gcc_cv_objdump = x; then
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22444 $as_echo "not found" >&6; }
22445 else
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22447 $as_echo "$gcc_cv_objdump" >&6; }
22450 # Figure out what readelf we will be using.
22451 if ${gcc_cv_readelf+:} false; then :
22453 else
22455 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22456 && test -f ../binutils/Makefile \
22457 && test x$build = x$host; then
22458 # Single tree build which includes binutils.
22459 gcc_cv_readelf=../binutils/readelf$build_exeext
22460 elif test -x readelf$build_exeext; then
22461 gcc_cv_readelf=./readelf$build_exeext
22462 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22463 gcc_cv_readelf="$READELF_FOR_TARGET"
22464 else
22465 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22466 set dummy $READELF_FOR_TARGET; ac_word=$2
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22468 $as_echo_n "checking for $ac_word... " >&6; }
22469 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22470 $as_echo_n "(cached) " >&6
22471 else
22472 case $gcc_cv_readelf in
22473 [\\/]* | ?:[\\/]*)
22474 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22478 for as_dir in $PATH
22480 IFS=$as_save_IFS
22481 test -z "$as_dir" && as_dir=.
22482 for ac_exec_ext in '' $ac_executable_extensions; do
22483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22484 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22486 break 2
22488 done
22489 done
22490 IFS=$as_save_IFS
22493 esac
22495 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22496 if test -n "$gcc_cv_readelf"; then
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22498 $as_echo "$gcc_cv_readelf" >&6; }
22499 else
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22501 $as_echo "no" >&6; }
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22509 $as_echo_n "checking what readelf to use... " >&6; }
22510 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22511 # Single tree build which includes binutils.
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22513 $as_echo "newly built readelf" >&6; }
22514 elif test x$gcc_cv_readelf = x; then
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22516 $as_echo "not found" >&6; }
22517 else
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22519 $as_echo "$gcc_cv_readelf" >&6; }
22522 # Figure out what otool we will be using.
22523 if ${gcc_cv_otool+:} false; then :
22525 else
22527 if test -x otool$build_exeext; then
22528 gcc_cv_otool=./otool$build_exeext
22529 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22530 gcc_cv_otool="$OTOOL_FOR_TARGET"
22531 else
22532 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22533 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22535 $as_echo_n "checking for $ac_word... " >&6; }
22536 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22537 $as_echo_n "(cached) " >&6
22538 else
22539 case $gcc_cv_otool in
22540 [\\/]* | ?:[\\/]*)
22541 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22545 for as_dir in $PATH
22547 IFS=$as_save_IFS
22548 test -z "$as_dir" && as_dir=.
22549 for ac_exec_ext in '' $ac_executable_extensions; do
22550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22551 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22553 break 2
22555 done
22556 done
22557 IFS=$as_save_IFS
22560 esac
22562 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22563 if test -n "$gcc_cv_otool"; then
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22565 $as_echo "$gcc_cv_otool" >&6; }
22566 else
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22568 $as_echo "no" >&6; }
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22576 $as_echo_n "checking what otool to use... " >&6; }
22577 if test x$gcc_cv_otool = x; then
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22579 $as_echo "not found" >&6; }
22580 else
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22582 $as_echo "$gcc_cv_otool" >&6; }
22585 # Figure out what assembler alignment features are present.
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22587 $as_echo_n "checking assembler flags... " >&6; }
22588 if ${gcc_cv_as_flags+:} false; then :
22589 $as_echo_n "(cached) " >&6
22590 else
22591 case "$target" in
22592 i[34567]86-*-linux*)
22593 gcc_cv_as_flags=--32
22595 x86_64-*-linux-gnux32)
22596 gcc_cv_as_flags=--x32
22598 x86_64-*-linux*)
22599 gcc_cv_as_flags=--64
22601 powerpc*-*-darwin*)
22602 gcc_cv_as_flags="-arch ppc"
22605 gcc_cv_as_flags=" "
22607 esac
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22610 $as_echo "$gcc_cv_as_flags" >&6; }
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22613 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22614 if ${gcc_cv_as_balign_and_p2align+:} false; then :
22615 $as_echo_n "(cached) " >&6
22616 else
22617 gcc_cv_as_balign_and_p2align=no
22618 if test $in_tree_gas = yes; then
22619 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22620 then gcc_cv_as_balign_and_p2align=yes
22622 elif test x$gcc_cv_as != x; then
22623 $as_echo '.balign 4
22624 .p2align 2' > conftest.s
22625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22627 (eval $ac_try) 2>&5
22628 ac_status=$?
22629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22630 test $ac_status = 0; }; }
22631 then
22632 gcc_cv_as_balign_and_p2align=yes
22633 else
22634 echo "configure: failed program was" >&5
22635 cat conftest.s >&5
22637 rm -f conftest.o conftest.s
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22641 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22642 if test $gcc_cv_as_balign_and_p2align = yes; then
22644 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22650 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22651 if ${gcc_cv_as_max_skip_p2align+:} false; then :
22652 $as_echo_n "(cached) " >&6
22653 else
22654 gcc_cv_as_max_skip_p2align=no
22655 if test $in_tree_gas = yes; then
22656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22657 then gcc_cv_as_max_skip_p2align=yes
22659 elif test x$gcc_cv_as != x; then
22660 $as_echo '.p2align 4,,7' > conftest.s
22661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22663 (eval $ac_try) 2>&5
22664 ac_status=$?
22665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22666 test $ac_status = 0; }; }
22667 then
22668 gcc_cv_as_max_skip_p2align=yes
22669 else
22670 echo "configure: failed program was" >&5
22671 cat conftest.s >&5
22673 rm -f conftest.o conftest.s
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22677 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22678 if test $gcc_cv_as_max_skip_p2align = yes; then
22680 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22686 $as_echo_n "checking assembler for .literal16... " >&6; }
22687 if ${gcc_cv_as_literal16+:} false; then :
22688 $as_echo_n "(cached) " >&6
22689 else
22690 gcc_cv_as_literal16=no
22691 if test $in_tree_gas = yes; then
22692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22693 then gcc_cv_as_literal16=yes
22695 elif test x$gcc_cv_as != x; then
22696 $as_echo '.literal16' > conftest.s
22697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22699 (eval $ac_try) 2>&5
22700 ac_status=$?
22701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22702 test $ac_status = 0; }; }
22703 then
22704 gcc_cv_as_literal16=yes
22705 else
22706 echo "configure: failed program was" >&5
22707 cat conftest.s >&5
22709 rm -f conftest.o conftest.s
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22713 $as_echo "$gcc_cv_as_literal16" >&6; }
22714 if test $gcc_cv_as_literal16 = yes; then
22716 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22722 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22723 if ${gcc_cv_as_subsection_m1+:} false; then :
22724 $as_echo_n "(cached) " >&6
22725 else
22726 gcc_cv_as_subsection_m1=no
22727 if test $in_tree_gas = yes; then
22728 if test $in_tree_gas_is_elf = yes \
22729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22730 then gcc_cv_as_subsection_m1=yes
22732 elif test x$gcc_cv_as != x; then
22733 $as_echo 'conftest_label1: .word 0
22734 .subsection -1
22735 conftest_label2: .word 0
22736 .previous' > conftest.s
22737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22742 test $ac_status = 0; }; }
22743 then
22744 if test x$gcc_cv_nm != x; then
22745 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22746 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22747 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22748 then :
22749 else gcc_cv_as_subsection_m1=yes
22751 rm -f conftest.nm1 conftest.nm2
22753 else
22754 echo "configure: failed program was" >&5
22755 cat conftest.s >&5
22757 rm -f conftest.o conftest.s
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22761 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22762 if test $gcc_cv_as_subsection_m1 = yes; then
22764 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22770 $as_echo_n "checking assembler for .weak... " >&6; }
22771 if ${gcc_cv_as_weak+:} false; then :
22772 $as_echo_n "(cached) " >&6
22773 else
22774 gcc_cv_as_weak=no
22775 if test $in_tree_gas = yes; then
22776 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22777 then gcc_cv_as_weak=yes
22779 elif test x$gcc_cv_as != x; then
22780 $as_echo ' .weak foobar' > conftest.s
22781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22783 (eval $ac_try) 2>&5
22784 ac_status=$?
22785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22786 test $ac_status = 0; }; }
22787 then
22788 gcc_cv_as_weak=yes
22789 else
22790 echo "configure: failed program was" >&5
22791 cat conftest.s >&5
22793 rm -f conftest.o conftest.s
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22797 $as_echo "$gcc_cv_as_weak" >&6; }
22798 if test $gcc_cv_as_weak = yes; then
22800 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22806 $as_echo_n "checking assembler for .weakref... " >&6; }
22807 if ${gcc_cv_as_weakref+:} false; then :
22808 $as_echo_n "(cached) " >&6
22809 else
22810 gcc_cv_as_weakref=no
22811 if test $in_tree_gas = yes; then
22812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22813 then gcc_cv_as_weakref=yes
22815 elif test x$gcc_cv_as != x; then
22816 $as_echo ' .weakref foobar, barfnot' > conftest.s
22817 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22819 (eval $ac_try) 2>&5
22820 ac_status=$?
22821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22822 test $ac_status = 0; }; }
22823 then
22824 gcc_cv_as_weakref=yes
22825 else
22826 echo "configure: failed program was" >&5
22827 cat conftest.s >&5
22829 rm -f conftest.o conftest.s
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22833 $as_echo "$gcc_cv_as_weakref" >&6; }
22834 if test $gcc_cv_as_weakref = yes; then
22836 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22842 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22843 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
22844 $as_echo_n "(cached) " >&6
22845 else
22846 gcc_cv_as_nsubspa_comdat=no
22847 if test $in_tree_gas = yes; then
22848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22849 then gcc_cv_as_nsubspa_comdat=yes
22851 elif test x$gcc_cv_as != x; then
22852 $as_echo ' .SPACE $TEXT$
22853 .NSUBSPA $CODE$,COMDAT' > conftest.s
22854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856 (eval $ac_try) 2>&5
22857 ac_status=$?
22858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859 test $ac_status = 0; }; }
22860 then
22861 gcc_cv_as_nsubspa_comdat=yes
22862 else
22863 echo "configure: failed program was" >&5
22864 cat conftest.s >&5
22866 rm -f conftest.o conftest.s
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22870 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22871 if test $gcc_cv_as_nsubspa_comdat = yes; then
22873 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22878 # .hidden needs to be supported in both the assembler and the linker,
22879 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22880 # This is irritatingly difficult to feature test for; we have to check the
22881 # date string after the version number. If we've got an in-tree
22882 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22883 # to be safe.
22884 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22885 case "${target}" in
22886 *-*-aix*)
22887 conftest_s=' .globl foobar,hidden'
22890 conftest_s=' .hidden foobar
22891 foobar:'
22893 esac
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22895 $as_echo_n "checking assembler for .hidden... " >&6; }
22896 if ${gcc_cv_as_hidden+:} false; then :
22897 $as_echo_n "(cached) " >&6
22898 else
22899 gcc_cv_as_hidden=no
22900 if test $in_tree_gas = yes; then
22901 if test $in_tree_gas_is_elf = yes \
22902 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22903 then gcc_cv_as_hidden=yes
22905 elif test x$gcc_cv_as != x; then
22906 $as_echo "$conftest_s" > conftest.s
22907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22909 (eval $ac_try) 2>&5
22910 ac_status=$?
22911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22912 test $ac_status = 0; }; }
22913 then
22914 gcc_cv_as_hidden=yes
22915 else
22916 echo "configure: failed program was" >&5
22917 cat conftest.s >&5
22919 rm -f conftest.o conftest.s
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22923 $as_echo "$gcc_cv_as_hidden" >&6; }
22926 case "${target}" in
22927 *-*-darwin*)
22928 # Darwin as has some visibility support, though with a different syntax.
22929 gcc_cv_as_hidden=yes
22931 esac
22933 # gnu_indirect_function type is an extension proposed at
22934 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22935 # selection of function implementation
22936 # Check whether --enable-gnu-indirect-function was given.
22937 if test "${enable_gnu_indirect_function+set}" = set; then :
22938 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22939 yes | no) ;;
22940 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22941 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22942 esac
22943 else
22944 enable_gnu_indirect_function="$default_gnu_indirect_function"
22948 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22950 cat >>confdefs.h <<_ACEOF
22951 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22952 _ACEOF
22956 if test $in_tree_ld != yes ; then
22957 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22958 if echo "$ld_ver" | grep GNU > /dev/null; then
22959 if test x"$ld_is_gold" = xyes; then
22960 # GNU gold --version looks like this:
22962 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22964 # We extract the binutils version which is more familiar and specific
22965 # than the gold version.
22966 ld_vers=`echo $ld_ver | sed -n \
22967 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22968 else
22969 # GNU ld --version looks like this:
22971 # GNU ld (GNU Binutils) 2.21.51.20110225
22972 ld_vers=`echo $ld_ver | sed -n \
22973 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22975 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
22976 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22977 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22978 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22979 else
22980 case "${target}" in
22981 *-*-solaris2*)
22982 # Solaris 2 ld -V output looks like this for a regular version:
22984 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22986 # but test versions add stuff at the end:
22988 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22990 # In Solaris 11.4, this was changed to
22992 # ld: Solaris ELF Utilities: 11.4-1.3123
22994 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22995 # numbers can be used in ld.so.1 feature checks even if a different
22996 # linker is configured.
22997 ld_ver=`$gcc_cv_ld -V 2>&1`
22998 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
22999 ld_vers=`echo $ld_ver | sed -n \
23000 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
23001 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23002 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23005 esac
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23010 $as_echo_n "checking linker for .hidden support... " >&6; }
23011 if ${gcc_cv_ld_hidden+:} false; then :
23012 $as_echo_n "(cached) " >&6
23013 else
23014 if test $in_tree_ld = yes ; then
23015 gcc_cv_ld_hidden=no
23016 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 \
23017 && test $in_tree_ld_is_elf = yes; then
23018 gcc_cv_ld_hidden=yes
23020 else
23021 gcc_cv_ld_hidden=yes
23022 if test x"$ld_is_gold" = xyes; then
23024 elif echo "$ld_ver" | grep GNU > /dev/null; then
23025 case "${target}" in
23026 mmix-knuth-mmixware)
23027 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23028 gcc_cv_ld_hidden=no
23030 esac
23031 if test 0"$ld_date" -lt 20020404; then
23032 if test -n "$ld_date"; then
23033 # If there was date string, but was earlier than 2002-04-04, fail
23034 gcc_cv_ld_hidden=no
23035 elif test -z "$ld_vers"; then
23036 # If there was no date string nor ld version number, something is wrong
23037 gcc_cv_ld_hidden=no
23038 else
23039 test -z "$ld_vers_patch" && ld_vers_patch=0
23040 if test "$ld_vers_major" -lt 2; then
23041 gcc_cv_ld_hidden=no
23042 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23043 gcc_cv_ld_hidden="no"
23044 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23045 gcc_cv_ld_hidden=no
23049 else
23050 case "${target}" in
23051 *-*-aix[789]*)
23052 gcc_cv_ld_hidden=yes
23054 *-*-darwin*)
23055 # Darwin ld has some visibility support.
23056 gcc_cv_ld_hidden=yes
23058 hppa64*-*-hpux* | ia64*-*-hpux*)
23059 gcc_cv_ld_hidden=yes
23061 *-*-solaris2.1[0-9]*)
23062 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23063 # .symbolic was only added in Solaris 9 12/02.
23064 gcc_cv_ld_hidden=yes
23067 gcc_cv_ld_hidden=no
23069 esac
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23074 $as_echo "$gcc_cv_ld_hidden" >&6; }
23075 libgcc_visibility=no
23078 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23079 libgcc_visibility=yes
23081 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23086 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23087 gcc_cv_ld_ro_rw_mix=unknown
23088 if test $in_tree_ld = yes ; then
23089 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 \
23090 && test $in_tree_ld_is_elf = yes; then
23091 gcc_cv_ld_ro_rw_mix=read-write
23093 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23094 echo '.section myfoosect, "a"' > conftest1.s
23095 echo '.section myfoosect, "aw"' > conftest2.s
23096 echo '.byte 1' >> conftest2.s
23097 echo '.section myfoosect, "a"' > conftest3.s
23098 echo '.byte 0' >> conftest3.s
23099 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23100 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23101 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23102 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23103 conftest2.o conftest3.o > /dev/null 2>&1; then
23104 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23105 | sed -e '/myfoosect/!d' -e N`
23106 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23107 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23108 gcc_cv_ld_ro_rw_mix=read-only
23109 else
23110 gcc_cv_ld_ro_rw_mix=read-write
23114 rm -f conftest.* conftest[123].*
23116 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23118 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23122 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23124 # Check whether --enable-initfini-array was given.
23125 if test "${enable_initfini_array+set}" = set; then :
23126 enableval=$enable_initfini_array;
23127 else
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23130 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23131 if ${gcc_cv_initfini_array+:} false; then :
23132 $as_echo_n "(cached) " >&6
23133 else
23134 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23135 case "${target}" in
23136 ia64-*)
23137 if test "$cross_compiling" = yes; then :
23138 gcc_cv_initfini_array=no
23139 else
23140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h. */
23143 #ifndef __ELF__
23144 #error Not an ELF OS
23145 #endif
23146 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23147 if it can be used. */
23148 static int x = -1;
23149 int main (void) { return x; }
23150 int foo (void) { x = 0; }
23151 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23153 _ACEOF
23154 if ac_fn_cxx_try_run "$LINENO"; then :
23155 gcc_cv_initfini_array=yes
23156 else
23157 gcc_cv_initfini_array=no
23159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23160 conftest.$ac_objext conftest.beam conftest.$ac_ext
23164 gcc_cv_initfini_array=no
23165 if test $in_tree_ld = yes ; then
23166 if test "$gcc_cv_gld_major_version" -eq 2 \
23167 -a "$gcc_cv_gld_minor_version" -ge 22 \
23168 -o "$gcc_cv_gld_major_version" -gt 2 \
23169 && test $in_tree_ld_is_elf = yes; then
23170 gcc_cv_initfini_array=yes
23172 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23173 case $target:$gas in
23174 *:yes)
23175 sh_flags='"a"'
23176 sh_type='%progbits'
23178 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23179 sh_flags='"a"'
23180 sh_type='@progbits'
23182 sparc*-*-solaris2*:no)
23183 sh_flags='#alloc'
23184 sh_type='#progbits'
23185 sh_quote='"'
23187 esac
23188 case "$target:$gnu_ld" in
23189 *:yes)
23190 cat > conftest.s <<EOF
23191 .section .dtors,$sh_flags,$sh_type
23192 .balign 4
23193 .byte 'A', 'A', 'A', 'A'
23194 .section .ctors,$sh_flags,$sh_type
23195 .balign 4
23196 .byte 'B', 'B', 'B', 'B'
23197 .section .fini_array.65530,$sh_flags,$sh_type
23198 .balign 4
23199 .byte 'C', 'C', 'C', 'C'
23200 .section .init_array.65530,$sh_flags,$sh_type
23201 .balign 4
23202 .byte 'D', 'D', 'D', 'D'
23203 .section .dtors.64528,$sh_flags,$sh_type
23204 .balign 4
23205 .byte 'E', 'E', 'E', 'E'
23206 .section .ctors.64528,$sh_flags,$sh_type
23207 .balign 4
23208 .byte 'F', 'F', 'F', 'F'
23209 .section .fini_array.01005,$sh_flags,$sh_type
23210 .balign 4
23211 .byte 'G', 'G', 'G', 'G'
23212 .section .init_array.01005,$sh_flags,$sh_type
23213 .balign 4
23214 .byte 'H', 'H', 'H', 'H'
23215 .text
23216 .globl _start
23217 _start:
23219 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23220 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23221 && $gcc_cv_objdump -s -j .init_array conftest \
23222 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23223 && $gcc_cv_objdump -s -j .fini_array conftest \
23224 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23225 gcc_cv_initfini_array=yes
23228 *-*-solaris2*:no)
23229 # When Solaris ld added constructor priority support, it was
23230 # decided to only handle .init_array.N/.fini_array.N since
23231 # there was no need for backwards compatibility with
23232 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23233 # sections with correct execution order resp. to
23234 # .init_array/.fini_array, while gld merges them into
23235 # .init_array/.fini_array.
23236 cat > conftest.s <<EOF
23237 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23238 .align 4
23239 .byte 'C', 'C', 'C', 'C'
23240 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23241 .align 4
23242 .byte 'D', 'D', 'D', 'D'
23243 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23244 .align 4
23245 .byte 'G', 'G', 'G', 'G'
23246 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23247 .align 4
23248 .byte 'H', 'H', 'H', 'H'
23249 .text
23250 .globl _start
23251 _start:
23253 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23254 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23255 && $gcc_cv_objdump -s -j .init_array conftest \
23256 | grep HHHHDDDD > /dev/null 2>&1 \
23257 && $gcc_cv_objdump -s -j .fini_array conftest \
23258 | grep GGGGCCCC > /dev/null 2>&1; then
23259 gcc_cv_initfini_array=yes
23262 esac
23263 rm -f conftest conftest.*
23265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23266 /* end confdefs.h. */
23268 #ifndef __ELF__
23269 # error Not an ELF OS
23270 #endif
23271 #include <stdlib.h>
23272 #if defined __GLIBC_PREREQ
23273 # if __GLIBC_PREREQ (2, 4)
23274 # else
23275 # error GLIBC 2.4 required
23276 # endif
23277 #else
23278 # if defined __sun__ && defined __svr4__
23279 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23280 # else
23281 # error The C library not known to support .init_array/.fini_array
23282 # endif
23283 #endif
23285 _ACEOF
23286 if ac_fn_cxx_try_cpp "$LINENO"; then :
23288 else
23289 gcc_cv_initfini_array=no
23291 rm -f conftest.err conftest.i conftest.$ac_ext;;
23292 esac
23293 else
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23295 $as_echo_n "checking cross compile... guessing... " >&6; }
23296 gcc_cv_initfini_array=no
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23300 $as_echo "$gcc_cv_initfini_array" >&6; }
23301 enable_initfini_array=$gcc_cv_initfini_array
23306 cat >>confdefs.h <<_ACEOF
23307 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23308 _ACEOF
23312 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23314 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23315 if ${gcc_cv_as_leb128+:} false; then :
23316 $as_echo_n "(cached) " >&6
23317 else
23318 gcc_cv_as_leb128=no
23319 if test $in_tree_gas = yes; then
23320 if test $in_tree_gas_is_elf = yes \
23321 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23322 then gcc_cv_as_leb128=yes
23324 elif test x$gcc_cv_as != x; then
23325 $as_echo ' .data
23326 .uleb128 L2 - L1
23328 .uleb128 1280
23329 .sleb128 -1010
23330 L2:' > conftest.s
23331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23333 (eval $ac_try) 2>&5
23334 ac_status=$?
23335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23336 test $ac_status = 0; }; }
23337 then
23338 # GAS versions before 2.11 do not support uleb128,
23339 # despite appearing to.
23340 # ??? There exists an elf-specific test that will crash
23341 # the assembler. Perhaps it's better to figure out whether
23342 # arbitrary sections are supported and try the test.
23343 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23344 if echo "$as_ver" | grep GNU > /dev/null; then
23345 as_vers=`echo $as_ver | sed -n \
23346 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23347 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23348 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23349 if test $as_major -eq 2 && test $as_minor -lt 11
23350 then :
23351 else gcc_cv_as_leb128=yes
23354 else
23355 echo "configure: failed program was" >&5
23356 cat conftest.s >&5
23358 rm -f conftest.o conftest.s
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23362 $as_echo "$gcc_cv_as_leb128" >&6; }
23363 if test $gcc_cv_as_leb128 = yes; then
23365 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23368 if test $gcc_cv_as_leb128 != yes; then
23370 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23374 # Determine if an .eh_frame section is read-only.
23375 gcc_fn_eh_frame_ro () {
23376 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23377 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23378 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23381 # Check if we have assembler support for unwind directives.
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23383 $as_echo_n "checking assembler for cfi directives... " >&6; }
23384 if ${gcc_cv_as_cfi_directive+:} false; then :
23385 $as_echo_n "(cached) " >&6
23386 else
23387 gcc_cv_as_cfi_directive=no
23388 if test x$gcc_cv_as != x; then
23389 $as_echo ' .text
23390 .cfi_startproc
23391 .cfi_offset 0, 0
23392 .cfi_same_value 1
23393 .cfi_def_cfa 1, 2
23394 .cfi_escape 1, 2, 3, 4, 5
23395 .cfi_endproc' > conftest.s
23396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23398 (eval $ac_try) 2>&5
23399 ac_status=$?
23400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23401 test $ac_status = 0; }; }
23402 then
23403 case "$target" in
23404 *-*-solaris*)
23405 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23406 # read-only and read-write sections, we need to make sure that the
23407 # assembler used emits read-write .eh_frame sections.
23408 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23409 gcc_cv_as_cfi_directive=yes
23410 elif test "x$gcc_cv_objdump" = x; then
23411 # No objdump, err on the side of caution.
23412 gcc_cv_as_cfi_directive=no
23413 else
23414 if test x$gas = xyes; then
23415 as_32_opt="--32"
23416 as_64_opt="--64"
23417 else
23418 as_32_opt="-m32"
23419 as_64_opt="-m64"
23421 case "$target" in
23422 sparc*-*-solaris2.*)
23423 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23424 if gcc_fn_eh_frame_ro $as_32_opt \
23425 || gcc_fn_eh_frame_ro $as_64_opt; then
23426 gcc_cv_as_cfi_directive=no
23427 else
23428 gcc_cv_as_cfi_directive=yes
23431 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23432 # On Solaris/x86, make sure that GCC and assembler agree on using
23433 # read-only .eh_frame sections for 64-bit.
23434 if gcc_fn_eh_frame_ro $as_32_opt; then
23435 gcc_cv_as_cfi_directive=no
23436 elif gcc_fn_eh_frame_ro $as_64_opt; then
23437 gcc_cv_as_cfi_directive=yes
23438 else
23439 gcc_cv_as_cfi_directive=no
23442 esac
23445 *-*-*)
23446 gcc_cv_as_cfi_directive=yes
23448 esac
23449 else
23450 echo "configure: failed program was" >&5
23451 cat conftest.s >&5
23453 rm -f conftest.o conftest.s
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23457 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23460 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23462 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23463 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23464 $as_echo_n "(cached) " >&6
23465 else
23466 gcc_cv_as_cfi_advance_working=no
23467 if test x$gcc_cv_as != x; then
23468 $as_echo ' .text
23469 .cfi_startproc
23470 .cfi_adjust_cfa_offset 64
23471 .skip 75040, 0
23472 .cfi_adjust_cfa_offset 128
23473 .cfi_endproc' > conftest.s
23474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23479 test $ac_status = 0; }; }
23480 then
23482 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23483 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23484 gcc_cv_as_cfi_advance_working=yes
23487 else
23488 echo "configure: failed program was" >&5
23489 cat conftest.s >&5
23491 rm -f conftest.o conftest.s
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23495 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23498 else
23499 # no objdump, err on the side of caution
23500 gcc_cv_as_cfi_advance_working=no
23504 cat >>confdefs.h <<_ACEOF
23505 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23506 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23507 _ACEOF
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23512 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23513 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23514 $as_echo_n "(cached) " >&6
23515 else
23516 gcc_cv_as_cfi_personality_directive=no
23517 if test x$gcc_cv_as != x; then
23518 $as_echo ' .text
23519 .cfi_startproc
23520 .cfi_personality 0, symbol
23521 .cfi_endproc' > conftest.s
23522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23527 test $ac_status = 0; }; }
23528 then
23529 gcc_cv_as_cfi_personality_directive=yes
23530 else
23531 echo "configure: failed program was" >&5
23532 cat conftest.s >&5
23534 rm -f conftest.o conftest.s
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23538 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23542 cat >>confdefs.h <<_ACEOF
23543 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23544 _ACEOF
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23548 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23549 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23550 $as_echo_n "(cached) " >&6
23551 else
23552 gcc_cv_as_cfi_sections_directive=no
23553 if test x$gcc_cv_as != x; then
23554 $as_echo ' .text
23555 .cfi_sections .debug_frame, .eh_frame
23556 .cfi_startproc
23557 .cfi_endproc' > conftest.s
23558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23560 (eval $ac_try) 2>&5
23561 ac_status=$?
23562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23563 test $ac_status = 0; }; }
23564 then
23565 case $target_os in
23566 win32 | pe | cygwin* | mingw32*)
23567 # Need to check that we generated the correct relocation for the
23568 # .debug_frame section. This was fixed for binutils 2.21.
23569 gcc_cv_as_cfi_sections_directive=no
23570 if test "x$gcc_cv_objdump" != x; then
23571 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23572 grep secrel > /dev/null; then
23573 gcc_cv_as_cfi_sections_directive=yes
23578 gcc_cv_as_cfi_sections_directive=yes
23580 esac
23581 else
23582 echo "configure: failed program was" >&5
23583 cat conftest.s >&5
23585 rm -f conftest.o conftest.s
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23589 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23594 cat >>confdefs.h <<_ACEOF
23595 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23596 _ACEOF
23599 # GAS versions up to and including 2.11.0 may mis-optimize
23600 # .eh_frame data.
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23602 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23603 if ${gcc_cv_as_eh_frame+:} false; then :
23604 $as_echo_n "(cached) " >&6
23605 else
23606 gcc_cv_as_eh_frame=no
23607 if test $in_tree_gas = yes; then
23608 if test $in_tree_gas_is_elf = yes \
23609 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23610 then gcc_cv_as_eh_frame=yes
23612 elif test x$gcc_cv_as != x; then
23613 $as_echo ' .text
23614 .LFB1:
23615 .4byte 0
23616 .L1:
23617 .4byte 0
23618 .LFE1:
23619 .section .eh_frame,"aw",@progbits
23620 __FRAME_BEGIN__:
23621 .4byte .LECIE1-.LSCIE1
23622 .LSCIE1:
23623 .4byte 0x0
23624 .byte 0x1
23625 .ascii "z\0"
23626 .byte 0x1
23627 .byte 0x78
23628 .byte 0x1a
23629 .byte 0x0
23630 .byte 0x4
23631 .4byte 1
23632 .p2align 1
23633 .LECIE1:
23634 .LSFDE1:
23635 .4byte .LEFDE1-.LASFDE1
23636 .LASFDE1:
23637 .4byte .LASFDE1-__FRAME_BEGIN__
23638 .4byte .LFB1
23639 .4byte .LFE1-.LFB1
23640 .byte 0x4
23641 .4byte .LFE1-.LFB1
23642 .byte 0x4
23643 .4byte .L1-.LFB1
23644 .LEFDE1:' > conftest.s
23645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23647 (eval $ac_try) 2>&5
23648 ac_status=$?
23649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23650 test $ac_status = 0; }; }
23651 then
23652 cat > conftest.lit <<EOF
23653 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23654 0010 01000000 12000000 18000000 00000000 ................
23655 0020 08000000 04080000 0044 .........D
23657 cat > conftest.big <<EOF
23658 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23659 0010 00000001 00000012 00000018 00000000 ................
23660 0020 00000008 04000000 0844 .........D
23662 # If the assembler didn't choke, and we can objdump,
23663 # and we got the correct data, then succeed.
23664 # The text in the here-document typically retains its unix-style line
23665 # endings, while the output of objdump will use host line endings.
23666 # Therefore, use diff -b for the comparisons.
23667 if test x$gcc_cv_objdump != x \
23668 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23669 | tail -3 > conftest.got \
23670 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23671 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23672 then
23673 gcc_cv_as_eh_frame=yes
23674 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23676 (eval $ac_try) 2>&5
23677 ac_status=$?
23678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23679 test $ac_status = 0; }; }; then
23680 gcc_cv_as_eh_frame=buggy
23681 else
23682 # Uh oh, what do we do now?
23683 gcc_cv_as_eh_frame=no
23685 else
23686 echo "configure: failed program was" >&5
23687 cat conftest.s >&5
23689 rm -f conftest.o conftest.s
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23693 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23697 if test $gcc_cv_as_eh_frame = buggy; then
23699 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23703 # Test if the assembler supports the section flag 'e' or #exclude for
23704 # specifying an excluded section.
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23706 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23707 if ${gcc_cv_as_section_exclude_e+:} false; then :
23708 $as_echo_n "(cached) " >&6
23709 else
23710 gcc_cv_as_section_exclude_e=no
23711 if test $in_tree_gas = yes; then
23712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23713 then gcc_cv_as_section_exclude_e=yes
23715 elif test x$gcc_cv_as != x; then
23716 $as_echo '.section foo1,"e"
23717 .byte 0,0,0,0' > conftest.s
23718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23720 (eval $ac_try) 2>&5
23721 ac_status=$?
23722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23723 test $ac_status = 0; }; }
23724 then
23725 gcc_cv_as_section_exclude_e=yes
23726 else
23727 echo "configure: failed program was" >&5
23728 cat conftest.s >&5
23730 rm -f conftest.o conftest.s
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23734 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23737 if test $gcc_cv_as_section_exclude_e = no; then
23738 case "${target}" in
23739 # Solaris as uses #exclude instead.
23740 *-*-solaris2*)
23741 case "${target}" in
23742 sparc*-*-solaris2*)
23743 conftest_s='.section "foo1", #exclude'
23745 i?86-*-solaris2* | x86_64-*-solaris2*)
23746 conftest_s='.section foo1, #exclude'
23748 esac
23750 esac
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23752 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23753 if ${gcc_cv_as_section_exclude_hash+:} false; then :
23754 $as_echo_n "(cached) " >&6
23755 else
23756 gcc_cv_as_section_exclude_hash=no
23757 if test x$gcc_cv_as != x; then
23758 $as_echo "$conftest_s
23759 .byte 0,0,0,0" > conftest.s
23760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23765 test $ac_status = 0; }; }
23766 then
23767 gcc_cv_as_section_exclude_hash=yes
23768 else
23769 echo "configure: failed program was" >&5
23770 cat conftest.s >&5
23772 rm -f conftest.o conftest.s
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23776 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23781 cat >>confdefs.h <<_ACEOF
23782 #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`
23783 _ACEOF
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23787 $as_echo_n "checking assembler for section merging support... " >&6; }
23788 if ${gcc_cv_as_shf_merge+:} false; then :
23789 $as_echo_n "(cached) " >&6
23790 else
23791 gcc_cv_as_shf_merge=no
23792 if test $in_tree_gas = yes; then
23793 if test $in_tree_gas_is_elf = yes \
23794 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23795 then gcc_cv_as_shf_merge=yes
23797 elif test x$gcc_cv_as != x; then
23798 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23801 (eval $ac_try) 2>&5
23802 ac_status=$?
23803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23804 test $ac_status = 0; }; }
23805 then
23806 gcc_cv_as_shf_merge=yes
23807 else
23808 echo "configure: failed program was" >&5
23809 cat conftest.s >&5
23811 rm -f conftest.o conftest.s
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23815 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23818 if test $gcc_cv_as_shf_merge = no; then
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23820 $as_echo_n "checking assembler for section merging support... " >&6; }
23821 if ${gcc_cv_as_shf_merge+:} false; then :
23822 $as_echo_n "(cached) " >&6
23823 else
23824 gcc_cv_as_shf_merge=no
23825 if test $in_tree_gas = yes; then
23826 if test $in_tree_gas_is_elf = yes \
23827 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23828 then gcc_cv_as_shf_merge=yes
23830 elif test x$gcc_cv_as != x; then
23831 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23834 (eval $ac_try) 2>&5
23835 ac_status=$?
23836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23837 test $ac_status = 0; }; }
23838 then
23839 gcc_cv_as_shf_merge=yes
23840 else
23841 echo "configure: failed program was" >&5
23842 cat conftest.s >&5
23844 rm -f conftest.o conftest.s
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23848 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23852 case "$target" in
23853 i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23854 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23855 if test x"$gnu_ld" = xno; then
23856 gcc_cv_as_shf_merge=no
23859 esac
23861 cat >>confdefs.h <<_ACEOF
23862 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23863 _ACEOF
23866 gcc_cv_ld_aligned_shf_merge=yes
23867 case "$target" in
23868 # While Solaris 10/SPARC ld isn't affected, disable to avoid problems
23869 # relinking on Solaris 11 < 11.4.
23870 sparc*-*-solaris2.10*)
23871 if test x"$gnu_ld" = xno; then
23872 gcc_cv_ld_aligned_shf_merge=no
23875 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23876 # alignment > 1.
23877 sparc*-*-solaris2.11*)
23878 if test x"$gnu_ld" = xno \
23879 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23880 gcc_cv_ld_aligned_shf_merge=no
23883 esac
23885 cat >>confdefs.h <<_ACEOF
23886 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23887 _ACEOF
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23891 $as_echo_n "checking assembler for stabs directive... " >&6; }
23892 if ${gcc_cv_as_stabs_directive+:} false; then :
23893 $as_echo_n "(cached) " >&6
23894 else
23895 gcc_cv_as_stabs_directive=no
23896 if test x$gcc_cv_as != x; then
23897 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23903 test $ac_status = 0; }; }
23904 then
23905 gcc_cv_as_stabs_directive=yes
23906 else
23907 echo "configure: failed program was" >&5
23908 cat conftest.s >&5
23910 rm -f conftest.o conftest.s
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23914 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23915 if test $gcc_cv_as_stabs_directive = yes; then
23917 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23923 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23924 if ${gcc_cv_as_comdat_group+:} false; then :
23925 $as_echo_n "(cached) " >&6
23926 else
23927 gcc_cv_as_comdat_group=no
23928 if test $in_tree_gas = yes; then
23929 if test $in_tree_gas_is_elf = yes \
23930 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23931 then gcc_cv_as_comdat_group=yes
23933 elif test x$gcc_cv_as != x; then
23934 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23937 (eval $ac_try) 2>&5
23938 ac_status=$?
23939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23940 test $ac_status = 0; }; }
23941 then
23942 gcc_cv_as_comdat_group=yes
23943 else
23944 echo "configure: failed program was" >&5
23945 cat conftest.s >&5
23947 rm -f conftest.o conftest.s
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23951 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23954 if test $gcc_cv_as_comdat_group = yes; then
23955 gcc_cv_as_comdat_group_percent=no
23956 gcc_cv_as_comdat_group_group=no
23957 else
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23959 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23960 if ${gcc_cv_as_comdat_group_percent+:} false; then :
23961 $as_echo_n "(cached) " >&6
23962 else
23963 gcc_cv_as_comdat_group_percent=no
23964 if test $in_tree_gas = yes; then
23965 if test $in_tree_gas_is_elf = yes \
23966 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23967 then gcc_cv_as_comdat_group_percent=yes
23969 elif test x$gcc_cv_as != x; then
23970 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23973 (eval $ac_try) 2>&5
23974 ac_status=$?
23975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23976 test $ac_status = 0; }; }
23977 then
23978 gcc_cv_as_comdat_group_percent=yes
23979 else
23980 echo "configure: failed program was" >&5
23981 cat conftest.s >&5
23983 rm -f conftest.o conftest.s
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23987 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23990 if test $gcc_cv_as_comdat_group_percent = yes; then
23991 gcc_cv_as_comdat_group_group=no
23992 else
23993 case "${target}" in
23994 # Sun as uses a completely different syntax.
23995 *-*-solaris2*)
23996 case "${target}" in
23997 sparc*-*-solaris2*)
23998 conftest_s='
23999 .group foo,".text%foo",#comdat
24000 .section ".text%foo", #alloc,#execinstr,#progbits
24001 .globl foo
24002 foo:
24005 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
24006 conftest_s='
24007 .group foo,.text%foo,#comdat
24008 .section .text%foo, "ax", @progbits
24009 .globl foo
24010 foo:
24013 esac
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24015 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24016 if ${gcc_cv_as_comdat_group_group+:} false; then :
24017 $as_echo_n "(cached) " >&6
24018 else
24019 gcc_cv_as_comdat_group_group=no
24020 if test x$gcc_cv_as != x; then
24021 $as_echo "$conftest_s" > conftest.s
24022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24024 (eval $ac_try) 2>&5
24025 ac_status=$?
24026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24027 test $ac_status = 0; }; }
24028 then
24029 gcc_cv_as_comdat_group_group=yes
24030 else
24031 echo "configure: failed program was" >&5
24032 cat conftest.s >&5
24034 rm -f conftest.o conftest.s
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24038 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24042 esac
24043 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24044 gcc_cv_as_comdat_group_group=no
24048 if test x"$ld_is_gold" = xyes; then
24049 comdat_group=yes
24050 elif test $in_tree_ld = yes ; then
24051 comdat_group=no
24052 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 \
24053 && test $in_tree_ld_is_elf = yes; then
24054 comdat_group=yes
24056 elif echo "$ld_ver" | grep GNU > /dev/null; then
24057 comdat_group=yes
24058 if test 0"$ld_date" -lt 20050308; then
24059 if test -n "$ld_date"; then
24060 # If there was date string, but was earlier than 2005-03-08, fail
24061 comdat_group=no
24062 elif test "$ld_vers_major" -lt 2; then
24063 comdat_group=no
24064 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24065 comdat_group=no
24068 else
24069 case "${target}" in
24070 *-*-solaris2.1[1-9]*)
24071 comdat_group=no
24072 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24073 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24074 # version 1.688.
24076 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24077 # least ld version 1.2267.
24078 if test "$ld_vers_major" -gt 1; then
24079 comdat_group=yes
24080 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24081 comdat_group=yes
24082 elif test "$ld_vers_minor" -ge 2267; then
24083 comdat_group=yes
24087 # Assume linkers other than GNU ld don't support COMDAT group.
24088 comdat_group=no
24090 esac
24092 # Allow overriding the automatic COMDAT group tests above.
24093 # Check whether --enable-comdat was given.
24094 if test "${enable_comdat+set}" = set; then :
24095 enableval=$enable_comdat; comdat_group="$enable_comdat"
24098 if test $comdat_group = no; then
24099 gcc_cv_as_comdat_group=no
24100 gcc_cv_as_comdat_group_percent=no
24101 gcc_cv_as_comdat_group_group=no
24104 cat >>confdefs.h <<_ACEOF
24105 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24106 || test $gcc_cv_as_comdat_group_percent = yes \
24107 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24108 _ACEOF
24111 # Restrict this test to Solaris/x86: other targets define this statically.
24112 case "${target}" in
24113 i?86-*-solaris2* | x86_64-*-solaris2*)
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24115 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24116 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24117 hidden_linkonce=yes
24118 else
24119 case "${target}" in
24120 # Full support for hidden thunks in linkonce sections only appeared in
24121 # Solaris 11/OpenSolaris.
24122 *-*-solaris2.1[1-9]*)
24123 hidden_linkonce=yes
24126 hidden_linkonce=no
24128 esac
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24131 $as_echo "$hidden_linkonce" >&6; }
24133 cat >>confdefs.h <<_ACEOF
24134 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24135 _ACEOF
24138 esac
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24141 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24142 if ${gcc_cv_as_is_stmt+:} false; then :
24143 $as_echo_n "(cached) " >&6
24144 else
24145 gcc_cv_as_is_stmt=no
24146 if test $in_tree_gas = yes; then
24147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24148 then gcc_cv_as_is_stmt=yes
24150 elif test x$gcc_cv_as != x; then
24151 $as_echo ' .text
24152 .file 1 "conf.c"
24153 .loc 1 1 0 is_stmt 1' > conftest.s
24154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24156 (eval $ac_try) 2>&5
24157 ac_status=$?
24158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24159 test $ac_status = 0; }; }
24160 then
24161 gcc_cv_as_is_stmt=yes
24162 else
24163 echo "configure: failed program was" >&5
24164 cat conftest.s >&5
24166 rm -f conftest.o conftest.s
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24170 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24171 if test $gcc_cv_as_is_stmt = yes; then
24173 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24179 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24180 if ${gcc_cv_as_discriminator+:} false; then :
24181 $as_echo_n "(cached) " >&6
24182 else
24183 gcc_cv_as_discriminator=no
24184 if test $in_tree_gas = yes; then
24185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24186 then gcc_cv_as_discriminator=yes
24188 elif test x$gcc_cv_as != x; then
24189 $as_echo ' .text
24190 .file 1 "conf.c"
24191 .loc 1 1 0 discriminator 1' > conftest.s
24192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24194 (eval $ac_try) 2>&5
24195 ac_status=$?
24196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24197 test $ac_status = 0; }; }
24198 then
24199 gcc_cv_as_discriminator=yes
24200 else
24201 echo "configure: failed program was" >&5
24202 cat conftest.s >&5
24204 rm -f conftest.o conftest.s
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24208 $as_echo "$gcc_cv_as_discriminator" >&6; }
24209 if test $gcc_cv_as_discriminator = yes; then
24211 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24216 # Thread-local storage - the check is heavily parameterized.
24217 conftest_s=
24218 tls_first_major=
24219 tls_first_minor=
24220 tls_as_opt=
24221 case "$target" in
24222 alpha*-*-*)
24223 conftest_s='
24224 .section ".tdata","awT",@progbits
24225 foo: .long 25
24226 .text
24227 ldq $27,__tls_get_addr($29) !literal!1
24228 lda $16,foo($29) !tlsgd!1
24229 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24230 ldq $27,__tls_get_addr($29) !literal!2
24231 lda $16,foo($29) !tlsldm!2
24232 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24233 ldq $1,foo($29) !gotdtprel
24234 ldah $2,foo($29) !dtprelhi
24235 lda $3,foo($2) !dtprello
24236 lda $4,foo($29) !dtprel
24237 ldq $1,foo($29) !gottprel
24238 ldah $2,foo($29) !tprelhi
24239 lda $3,foo($2) !tprello
24240 lda $4,foo($29) !tprel'
24241 tls_first_major=2
24242 tls_first_minor=13
24243 tls_as_opt=--fatal-warnings
24245 arc*-*-*)
24246 conftest_s='
24247 add_s r0,r0, @foo@tpoff'
24248 tls_first_major=2
24249 tls_first_minor=23
24251 cris-*-*|crisv32-*-*)
24252 conftest_s='
24253 .section ".tdata","awT",@progbits
24254 x: .long 25
24255 .text
24256 move.d x:IE,$r10
24257 nop'
24258 tls_first_major=2
24259 tls_first_minor=20
24260 tls_as_opt=--fatal-warnings
24262 frv*-*-*)
24263 conftest_s='
24264 .section ".tdata","awT",@progbits
24265 x: .long 25
24266 .text
24267 call #gettlsoff(x)'
24268 tls_first_major=2
24269 tls_first_minor=14
24271 hppa*-*-linux*)
24272 conftest_s='
24273 t1: .reg %r20
24274 t2: .reg %r21
24275 gp: .reg %r19
24276 .section ".tdata","awT",@progbits
24277 foo: .long 25
24278 .text
24279 .align 4
24280 addil LT%foo-$tls_gdidx$,gp
24281 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24282 b __tls_get_addr
24284 addil LT%foo-$tls_ldidx$,gp
24285 b __tls_get_addr
24286 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24287 addil LR%foo-$tls_dtpoff$,%ret0
24288 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24289 mfctl %cr27,%t1
24290 addil LT%foo-$tls_ieoff$,gp
24291 ldw RT%foo-$tls_ieoff$(%r1),%t2
24292 add %t1,%t2,%t3
24293 mfctl %cr27,%t1
24294 addil LR%foo-$tls_leoff$,%t1
24295 ldo RR%foo-$tls_leoff$(%r1),%t2'
24296 tls_first_major=2
24297 tls_first_minor=15
24298 tls_as_opt=--fatal-warnings
24300 arm*-*-*)
24301 conftest_s='
24302 .section ".tdata","awT",%progbits
24303 foo: .long 25
24304 .text
24305 .word foo(gottpoff)
24306 .word foo(tpoff)
24307 .word foo(tlsgd)
24308 .word foo(tlsldm)
24309 .word foo(tlsldo)'
24310 tls_first_major=2
24311 tls_first_minor=17
24313 i[34567]86-*-* | x86_64-*-*)
24314 case "$target" in
24315 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24316 on_solaris=yes
24319 on_solaris=no
24321 esac
24322 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24323 conftest_s='
24324 .section .tdata,"awt",@progbits'
24325 tls_first_major=0
24326 tls_first_minor=0
24327 tls_section_flag=t
24329 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24331 else
24332 conftest_s='
24333 .section ".tdata","awT",@progbits'
24334 tls_first_major=2
24335 tls_first_minor=14
24336 tls_section_flag=T
24337 tls_as_opt="--fatal-warnings"
24339 case "$target" in
24340 i[34567]86-*-*)
24341 conftest_s="$conftest_s
24342 foo: .long 25
24343 .text
24344 movl %gs:0, %eax
24345 leal foo@tlsgd(,%ebx,1), %eax
24346 leal foo@tlsldm(%ebx), %eax
24347 leal foo@dtpoff(%eax), %edx
24348 movl foo@gottpoff(%ebx), %eax
24349 subl foo@gottpoff(%ebx), %eax
24350 addl foo@gotntpoff(%ebx), %eax
24351 movl foo@indntpoff, %eax
24352 movl \$foo@tpoff, %eax
24353 subl \$foo@tpoff, %eax
24354 leal foo@ntpoff(%ecx), %eax"
24356 x86_64-*-*)
24357 if test x$on_solaris = xyes; then
24358 case $gas_flag in
24359 yes) tls_as_opt="$tls_as_opt --64" ;;
24360 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24361 esac
24363 conftest_s="$conftest_s
24364 foo: .long 25
24365 .text
24366 movq %fs:0, %rax
24367 leaq foo@tlsgd(%rip), %rdi
24368 leaq foo@tlsld(%rip), %rdi
24369 leaq foo@dtpoff(%rax), %rdx
24370 movq foo@gottpoff(%rip), %rax
24371 movq \$foo@tpoff, %rax"
24373 esac
24375 ia64-*-*)
24376 conftest_s='
24377 .section ".tdata","awT",@progbits
24378 foo: data8 25
24379 .text
24380 addl r16 = @ltoff(@dtpmod(foo#)), gp
24381 addl r17 = @ltoff(@dtprel(foo#)), gp
24382 addl r18 = @ltoff(@tprel(foo#)), gp
24383 addl r19 = @dtprel(foo#), gp
24384 adds r21 = @dtprel(foo#), r13
24385 movl r23 = @dtprel(foo#)
24386 addl r20 = @tprel(foo#), gp
24387 adds r22 = @tprel(foo#), r13
24388 movl r24 = @tprel(foo#)'
24389 tls_first_major=2
24390 tls_first_minor=13
24391 tls_as_opt=--fatal-warnings
24393 microblaze*-*-*)
24394 conftest_s='
24395 .section .tdata,"awT",@progbits
24397 .word 2
24398 .text
24399 addik r5,r20,x@TLSGD
24400 addik r5,r20,x@TLSLDM'
24401 tls_first_major=2
24402 tls_first_minor=20
24403 tls_as_opt='--fatal-warnings'
24405 mips*-*-*)
24406 conftest_s='
24407 .section .tdata,"awT",@progbits
24409 .word 2
24410 .text
24411 addiu $4, $28, %tlsgd(x)
24412 addiu $4, $28, %tlsldm(x)
24413 lui $4, %dtprel_hi(x)
24414 addiu $4, $4, %dtprel_lo(x)
24415 lw $4, %gottprel(x)($28)
24416 lui $4, %tprel_hi(x)
24417 addiu $4, $4, %tprel_lo(x)'
24418 tls_first_major=2
24419 tls_first_minor=16
24420 tls_as_opt='-32 --fatal-warnings'
24422 m68k-*-*)
24423 conftest_s='
24424 .section .tdata,"awT",@progbits
24426 .word 2
24427 .text
24428 foo:
24429 move.l x@TLSGD(%a5),%a0
24430 move.l x@TLSLDM(%a5),%a0
24431 move.l x@TLSLDO(%a5),%a0
24432 move.l x@TLSIE(%a5),%a0
24433 move.l x@TLSLE(%a5),%a0'
24434 tls_first_major=2
24435 tls_first_minor=19
24436 tls_as_opt='--fatal-warnings'
24438 nios2-*-*)
24439 conftest_s='
24440 .section ".tdata","awT",@progbits'
24441 tls_first_major=2
24442 tls_first_minor=23
24443 tls_as_opt="--fatal-warnings"
24445 aarch64*-*-*)
24446 conftest_s='
24447 .section ".tdata","awT",%progbits
24448 foo: .long 25
24449 .text
24450 adrp x0, :tlsgd:x
24451 add x0, x0, #:tlsgd_lo12:x
24452 bl __tls_get_addr
24453 nop'
24454 tls_first_major=2
24455 tls_first_minor=20
24456 tls_as_opt='--fatal-warnings'
24458 or1k*-*-*)
24459 conftest_s='
24460 .section ".tdata","awT",@progbits
24461 foo: .long 25
24462 .text
24463 l.movhi r3, tpoffha(foo)
24464 l.add r3, r3, r10
24465 l.lwz r4, tpofflo(foo)(r3)'
24466 tls_first_major=2
24467 tls_first_minor=30
24468 tls_as_opt=--fatal-warnings
24470 powerpc-ibm-aix*)
24471 conftest_s='
24472 .extern __get_tpointer
24473 .toc
24474 LC..1:
24475 .tc a[TC],a[TL]@le
24476 .csect .text[PR]
24477 .tlstest:
24478 lwz 9,LC..1(2)
24479 bla __get_tpointer
24480 lwzx 3,9,3
24481 .globl a
24482 .csect a[TL],4
24484 .space 4'
24485 tls_first_major=0
24486 tls_first_minor=0
24488 powerpc64*-*-*)
24489 conftest_s='
24490 .section ".tdata","awT",@progbits
24491 .align 3
24492 ld0: .space 8
24493 ld1: .space 8
24494 x1: .space 8
24495 x2: .space 8
24496 x3: .space 8
24497 .text
24498 addi 3,2,ld0@got@tlsgd
24499 bl .__tls_get_addr
24501 addi 3,2,ld1@toc
24502 bl .__tls_get_addr
24504 addi 3,2,x1@got@tlsld
24505 bl .__tls_get_addr
24507 addi 9,3,x1@dtprel
24508 bl .__tls_get_addr
24510 addis 9,3,x2@dtprel@ha
24511 addi 9,9,x2@dtprel@l
24512 bl .__tls_get_addr
24514 ld 9,x3@got@dtprel(2)
24515 add 9,9,3
24516 bl .__tls_get_addr
24517 nop'
24518 tls_first_major=2
24519 tls_first_minor=14
24520 tls_as_opt="-a64 --fatal-warnings"
24522 powerpc*-*-*)
24523 conftest_s='
24524 .section ".tdata","awT",@progbits
24525 .align 2
24526 ld0: .space 4
24527 ld1: .space 4
24528 x1: .space 4
24529 x2: .space 4
24530 x3: .space 4
24531 .text
24532 addi 3,31,ld0@got@tlsgd
24533 bl __tls_get_addr
24534 addi 3,31,x1@got@tlsld
24535 bl __tls_get_addr
24536 addi 9,3,x1@dtprel
24537 addis 9,3,x2@dtprel@ha
24538 addi 9,9,x2@dtprel@l
24539 lwz 9,x3@got@tprel(31)
24540 add 9,9,x@tls
24541 addi 9,2,x1@tprel
24542 addis 9,2,x2@tprel@ha
24543 addi 9,9,x2@tprel@l'
24544 tls_first_major=2
24545 tls_first_minor=14
24546 tls_as_opt="-a32 --fatal-warnings"
24548 riscv*-*-*)
24549 conftest_s='
24550 .section .tdata,"awT",@progbits
24551 x: .word 2
24552 .text
24553 la.tls.gd a0,x
24554 call __tls_get_addr'
24555 tls_first_major=2
24556 tls_first_minor=21
24557 tls_as_opt='--fatal-warnings'
24559 s390-*-*)
24560 conftest_s='
24561 .section ".tdata","awT",@progbits
24562 foo: .long 25
24563 .text
24564 .long foo@TLSGD
24565 .long foo@TLSLDM
24566 .long foo@DTPOFF
24567 .long foo@NTPOFF
24568 .long foo@GOTNTPOFF
24569 .long foo@INDNTPOFF
24570 l %r1,foo@GOTNTPOFF(%r12)
24571 l %r1,0(%r1):tls_load:foo
24572 bas %r14,0(%r1,%r13):tls_gdcall:foo
24573 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24574 tls_first_major=2
24575 tls_first_minor=14
24576 tls_as_opt="-m31 --fatal-warnings"
24578 s390x-*-*)
24579 conftest_s='
24580 .section ".tdata","awT",@progbits
24581 foo: .long 25
24582 .text
24583 .quad foo@TLSGD
24584 .quad foo@TLSLDM
24585 .quad foo@DTPOFF
24586 .quad foo@NTPOFF
24587 .quad foo@GOTNTPOFF
24588 lg %r1,foo@GOTNTPOFF(%r12)
24589 larl %r1,foo@INDNTPOFF
24590 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24591 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24592 tls_first_major=2
24593 tls_first_minor=14
24594 tls_as_opt="-m64 -Aesame --fatal-warnings"
24596 sh-*-* | sh[123456789lbe]*-*-*)
24597 conftest_s='
24598 .section ".tdata","awT",@progbits
24599 foo: .long 25
24600 .text
24601 .long foo@TLSGD
24602 .long foo@TLSLDM
24603 .long foo@DTPOFF
24604 .long foo@GOTTPOFF
24605 .long foo@TPOFF'
24606 tls_first_major=2
24607 tls_first_minor=13
24608 tls_as_opt=--fatal-warnings
24610 sparc*-*-*)
24611 case "$target" in
24612 sparc*-sun-solaris2.*)
24613 on_solaris=yes
24616 on_solaris=no
24618 esac
24619 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24620 conftest_s='
24621 .section ".tdata",#alloc,#write,#tls'
24622 tls_first_major=0
24623 tls_first_minor=0
24624 else
24625 conftest_s='
24626 .section ".tdata","awT",@progbits'
24627 tls_first_major=2
24628 tls_first_minor=14
24629 tls_as_opt="-32 --fatal-warnings"
24631 conftest_s="$conftest_s
24632 foo: .long 25
24633 .text
24634 sethi %tgd_hi22(foo), %o0
24635 add %o0, %tgd_lo10(foo), %o1
24636 add %l7, %o1, %o0, %tgd_add(foo)
24637 call __tls_get_addr, %tgd_call(foo)
24638 sethi %tldm_hi22(foo), %l1
24639 add %l1, %tldm_lo10(foo), %l2
24640 add %l7, %l2, %o0, %tldm_add(foo)
24641 call __tls_get_addr, %tldm_call(foo)
24642 sethi %tldo_hix22(foo), %l3
24643 xor %l3, %tldo_lox10(foo), %l4
24644 add %o0, %l4, %l5, %tldo_add(foo)
24645 sethi %tie_hi22(foo), %o3
24646 add %o3, %tie_lo10(foo), %o3
24647 ld [%l7 + %o3], %o2, %tie_ld(foo)
24648 add %g7, %o2, %o4, %tie_add(foo)
24649 sethi %tle_hix22(foo), %l1
24650 xor %l1, %tle_lox10(foo), %o5
24651 ld [%g7 + %o5], %o1"
24653 tilepro*-*-*)
24654 conftest_s='
24655 .section ".tdata","awT",@progbits
24656 foo: .long 25
24657 .text
24658 addli r0, zero, tls_gd(foo)
24659 auli r0, zero, tls_gd_ha16(foo)
24660 addli r0, r0, tls_gd_lo16(foo)
24661 jal __tls_get_addr
24662 addli r0, zero, tls_ie(foo)
24663 auli r0, r0, tls_ie_ha16(foo)
24664 addli r0, r0, tls_ie_lo16(foo)'
24665 tls_first_major=2
24666 tls_first_minor=22
24667 tls_as_opt="--fatal-warnings"
24669 tilegx*-*-*)
24670 conftest_s='
24671 .section ".tdata","awT",@progbits
24672 foo: .long 25
24673 .text
24674 shl16insli r0, zero, hw0_last_tls_gd(foo)
24675 shl16insli r0, zero, hw1_last_tls_gd(foo)
24676 shl16insli r0, r0, hw0_tls_gd(foo)
24677 jal __tls_get_addr
24678 shl16insli r0, zero, hw1_last_tls_ie(foo)
24679 shl16insli r0, r0, hw0_tls_ie(foo)'
24680 tls_first_major=2
24681 tls_first_minor=22
24682 tls_as_opt="--fatal-warnings"
24684 xtensa*-*-*)
24685 conftest_s='
24686 .section ".tdata","awT",@progbits
24687 foo: .long 25
24688 .text
24689 movi a8, foo@TLSFUNC
24690 movi a10, foo@TLSARG
24691 callx8.tls a8, foo@TLSCALL'
24692 tls_first_major=2
24693 tls_first_minor=19
24695 esac
24696 set_have_as_tls=no
24697 if test "x$enable_tls" = xno ; then
24698 : # TLS explicitly disabled.
24699 elif test "x$enable_tls" = xyes ; then
24700 set_have_as_tls=yes # TLS explicitly enabled.
24701 elif test -z "$tls_first_major"; then
24702 : # If we don't have a check, assume no support.
24703 else
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24705 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24706 if ${gcc_cv_as_tls+:} false; then :
24707 $as_echo_n "(cached) " >&6
24708 else
24709 gcc_cv_as_tls=no
24710 if test $in_tree_gas = yes; then
24711 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24712 then gcc_cv_as_tls=yes
24714 elif test x$gcc_cv_as != x; then
24715 $as_echo "$conftest_s" > conftest.s
24716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }
24722 then
24723 gcc_cv_as_tls=yes
24724 else
24725 echo "configure: failed program was" >&5
24726 cat conftest.s >&5
24728 rm -f conftest.o conftest.s
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24732 $as_echo "$gcc_cv_as_tls" >&6; }
24733 if test $gcc_cv_as_tls = yes; then
24734 set_have_as_tls=yes
24738 if test $set_have_as_tls = yes ; then
24740 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24744 # Target-specific assembler checks.
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24747 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24748 gcc_cv_ld_static_dynamic=no
24749 gcc_cv_ld_static_option='-Bstatic'
24750 gcc_cv_ld_dynamic_option='-Bdynamic'
24751 if test $in_tree_ld = yes ; then
24752 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
24753 gcc_cv_ld_static_dynamic=yes
24755 elif test x$gcc_cv_ld != x; then
24756 # Check if linker supports -Bstatic/-Bdynamic option
24757 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24758 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24759 gcc_cv_ld_static_dynamic=yes
24760 else
24761 case "$target" in
24762 # AIX ld uses -b flags
24763 *-*-aix4.[23]* | *-*-aix[5-9]*)
24764 gcc_cv_ld_static_dynamic=yes
24765 gcc_cv_ld_static_option="-bstatic"
24766 gcc_cv_ld_dynamic_option="-bdynamic"
24768 # HP-UX ld uses -a flags to select between shared and archive.
24769 *-*-hpux*)
24770 if test x"$gnu_ld" = xno; then
24771 gcc_cv_ld_static_dynamic=yes
24772 gcc_cv_ld_static_option="-aarchive_shared"
24773 gcc_cv_ld_dynamic_option="-adefault"
24776 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24777 *-*-solaris2*)
24778 gcc_cv_ld_static_dynamic=yes
24780 esac
24783 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24785 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24788 cat >>confdefs.h <<_ACEOF
24789 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24790 _ACEOF
24793 cat >>confdefs.h <<_ACEOF
24794 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24795 _ACEOF
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24799 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24802 $as_echo_n "checking linker --version-script option... " >&6; }
24803 gcc_cv_ld_version_script=no
24804 ld_version_script_option=''
24805 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24806 gcc_cv_ld_version_script=yes
24807 ld_version_script_option='--version-script'
24808 elif test x$gcc_cv_ld != x; then
24809 case "$target" in
24810 # Solaris 2 ld always supports -M. It also supports a subset of
24811 # --version-script since Solaris 11.4, but requires
24812 # -z gnu-version-script-compat to activate.
24813 *-*-solaris2*)
24814 gcc_cv_ld_version_script=yes
24815 ld_version_script_option='-M'
24817 esac
24819 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24821 $as_echo "$gcc_cv_ld_version_script" >&6; }
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24825 $as_echo_n "checking linker soname option... " >&6; }
24826 gcc_cv_ld_soname=no
24827 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24828 gcc_cv_ld_soname=yes
24829 ld_soname_option='-soname'
24830 elif test x$gcc_cv_ld != x; then
24831 case "$target" in
24832 *-*-darwin*)
24833 gcc_cv_ld_soname=yes
24834 ld_soname_option='-install_name'
24836 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24837 # ld compatiblity since some Solaris 10 update.
24838 *-*-solaris2*)
24839 gcc_cv_ld_soname=yes
24840 ld_soname_option='-h'
24842 esac
24844 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24846 $as_echo "$gcc_cv_ld_soname" >&6; }
24849 if test x"$demangler_in_ld" = xyes; then
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24851 $as_echo_n "checking linker --demangle support... " >&6; }
24852 gcc_cv_ld_demangle=no
24853 if test $in_tree_ld = yes; then
24854 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 \
24855 gcc_cv_ld_demangle=yes
24857 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24858 # Check if the GNU linker supports --demangle option
24859 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24860 gcc_cv_ld_demangle=yes
24863 if test x"$gcc_cv_ld_demangle" = xyes; then
24865 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24869 $as_echo "$gcc_cv_ld_demangle" >&6; }
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24873 $as_echo_n "checking linker plugin support... " >&6; }
24874 gcc_cv_lto_plugin=0
24875 if test -f liblto_plugin.la; then
24876 save_ld_ver="$ld_ver"
24877 save_ld_vers_major="$ld_vers_major"
24878 save_ld_vers_minor="$ld_vers_minor"
24879 save_ld_is_gold="$ld_is_gold"
24881 ld_is_gold=no
24883 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24884 ld_ver="GNU ld"
24885 # FIXME: ld_is_gold?
24886 ld_vers_major="$gcc_cv_gld_major_version"
24887 ld_vers_minor="$gcc_cv_gld_minor_version"
24888 else
24889 # Determine plugin linker version.
24890 # FIXME: Partial duplicate from above, generalize.
24891 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24892 if echo "$ld_ver" | grep GNU > /dev/null; then
24893 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24894 ld_is_gold=yes
24895 ld_vers=`echo $ld_ver | sed -n \
24896 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24897 else
24898 ld_vers=`echo $ld_ver | sed -n \
24899 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24901 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24902 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24906 # Determine plugin support.
24907 if echo "$ld_ver" | grep GNU > /dev/null; then
24908 # Require GNU ld or gold 2.21+ for plugin support by default.
24909 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24910 gcc_cv_lto_plugin=2
24911 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24912 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24913 gcc_cv_lto_plugin=1
24917 ld_ver="$save_ld_ver"
24918 ld_vers_major="$save_ld_vers_major"
24919 ld_vers_minor="$save_ld_vers_minor"
24920 ld_is_gold="$save_ld_is_gold"
24923 cat >>confdefs.h <<_ACEOF
24924 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24925 _ACEOF
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24928 $as_echo "$gcc_cv_lto_plugin" >&6; }
24930 # Target OS-specific assembler checks.
24932 case "$target_os" in
24933 darwin*)
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24935 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24936 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
24937 $as_echo_n "(cached) " >&6
24938 else
24939 gcc_cv_as_mmacosx_version_min=no
24940 if test x$gcc_cv_as != x; then
24941 $as_echo '.text' > conftest.s
24942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -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_mmacosx_version_min=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_mmacosx_version_min" >&5
24958 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24959 if test $gcc_cv_as_mmacosx_version_min = yes; then
24961 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24966 esac
24968 # Target CPU-specific assembler checks.
24970 case "$target" in
24971 aarch64*-*-*)
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24973 $as_echo_n "checking assembler for -mabi option... " >&6; }
24974 if ${gcc_cv_as_aarch64_mabi+:} false; then :
24975 $as_echo_n "(cached) " >&6
24976 else
24977 gcc_cv_as_aarch64_mabi=no
24978 if test x$gcc_cv_as != x; then
24979 $as_echo '.text' > conftest.s
24980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24982 (eval $ac_try) 2>&5
24983 ac_status=$?
24984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24985 test $ac_status = 0; }; }
24986 then
24987 gcc_cv_as_aarch64_mabi=yes
24988 else
24989 echo "configure: failed program was" >&5
24990 cat conftest.s >&5
24992 rm -f conftest.o conftest.s
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24996 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24999 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25001 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25003 else
25004 if test x$with_abi = xilp32; then
25005 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25006 Upgrade the Assembler." "$LINENO" 5
25008 if test x"$with_multilib_list" = xdefault; then
25009 TM_MULTILIB_CONFIG=lp64
25010 else
25011 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25012 for aarch64_multilib in ${aarch64_multilibs}; do
25013 case ${aarch64_multilib} in
25014 ilp32)
25015 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25016 Upgrade the Assembler." "$LINENO" 5
25020 esac
25021 done
25024 # Check if we have binutils support for relocations types needed by -fpic
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25026 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25027 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25028 $as_echo_n "(cached) " >&6
25029 else
25030 gcc_cv_as_aarch64_picreloc=no
25031 if test x$gcc_cv_as != x; then
25032 $as_echo '
25033 .text
25034 ldr x0, [x2, #:gotpage_lo15:globalsym]
25035 ' > conftest.s
25036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25038 (eval $ac_try) 2>&5
25039 ac_status=$?
25040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25041 test $ac_status = 0; }; }
25042 then
25043 gcc_cv_as_aarch64_picreloc=yes
25044 else
25045 echo "configure: failed program was" >&5
25046 cat conftest.s >&5
25048 rm -f conftest.o conftest.s
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25052 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25053 if test $gcc_cv_as_aarch64_picreloc = yes; then
25055 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25059 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25060 # Check whether --enable-fix-cortex-a53-835769 was given.
25061 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25062 enableval=$enable_fix_cortex_a53_835769;
25063 case $enableval in
25064 yes)
25065 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25070 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25071 Valid choices are 'yes' and 'no'." "$LINENO" 5
25074 esac
25078 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25079 # Check whether --enable-fix-cortex-a53-843419 was given.
25080 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25081 enableval=$enable_fix_cortex_a53_843419;
25082 case $enableval in
25083 yes)
25084 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25089 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25090 Valid choices are 'yes' and 'no'." "$LINENO" 5
25093 esac
25099 # All TARGET_ABI_OSF targets.
25100 alpha*-*-linux* | alpha*-*-*bsd*)
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25102 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25103 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25104 $as_echo_n "(cached) " >&6
25105 else
25106 gcc_cv_as_alpha_explicit_relocs=no
25107 if test $in_tree_gas = yes; then
25108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25109 then gcc_cv_as_alpha_explicit_relocs=yes
25111 elif test x$gcc_cv_as != x; then
25112 $as_echo ' .set nomacro
25113 .text
25114 extbl $3, $2, $3 !lituse_bytoff!1
25115 ldq $2, a($29) !literal!1
25116 ldq $4, b($29) !literal!2
25117 ldq_u $3, 0($2) !lituse_base!1
25118 ldq $27, f($29) !literal!5
25119 jsr $26, ($27), f !lituse_jsr!5
25120 ldah $29, 0($26) !gpdisp!3
25121 lda $0, c($29) !gprel
25122 ldah $1, d($29) !gprelhigh
25123 lda $1, d($1) !gprellow
25124 lda $29, 0($29) !gpdisp!3' > conftest.s
25125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25127 (eval $ac_try) 2>&5
25128 ac_status=$?
25129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25130 test $ac_status = 0; }; }
25131 then
25132 gcc_cv_as_alpha_explicit_relocs=yes
25133 else
25134 echo "configure: failed program was" >&5
25135 cat conftest.s >&5
25137 rm -f conftest.o conftest.s
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25141 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25142 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25144 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25149 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25150 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25151 $as_echo_n "(cached) " >&6
25152 else
25153 gcc_cv_as_alpha_jsrdirect_relocs=no
25154 if test $in_tree_gas = yes; then
25155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25156 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25158 elif test x$gcc_cv_as != x; then
25159 $as_echo ' .set nomacro
25160 .text
25161 ldq $27, a($29) !literal!1
25162 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25165 (eval $ac_try) 2>&5
25166 ac_status=$?
25167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25168 test $ac_status = 0; }; }
25169 then
25170 gcc_cv_as_alpha_jsrdirect_relocs=yes
25171 else
25172 echo "configure: failed program was" >&5
25173 cat conftest.s >&5
25175 rm -f conftest.o conftest.s
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25179 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25180 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25182 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25188 avr-*-*)
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25190 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25191 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25192 $as_echo_n "(cached) " >&6
25193 else
25194 gcc_cv_as_avr_mlink_relax=no
25195 if test x$gcc_cv_as != x; then
25196 $as_echo '.text' > conftest.s
25197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25199 (eval $ac_try) 2>&5
25200 ac_status=$?
25201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25202 test $ac_status = 0; }; }
25203 then
25204 gcc_cv_as_avr_mlink_relax=yes
25205 else
25206 echo "configure: failed program was" >&5
25207 cat conftest.s >&5
25209 rm -f conftest.o conftest.s
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25213 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25214 if test $gcc_cv_as_avr_mlink_relax = yes; then
25216 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25222 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25223 if ${gcc_cv_as_avr_mrmw+:} false; then :
25224 $as_echo_n "(cached) " >&6
25225 else
25226 gcc_cv_as_avr_mrmw=no
25227 if test x$gcc_cv_as != x; then
25228 $as_echo '.text' > conftest.s
25229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
25233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25234 test $ac_status = 0; }; }
25235 then
25236 gcc_cv_as_avr_mrmw=yes
25237 else
25238 echo "configure: failed program was" >&5
25239 cat conftest.s >&5
25241 rm -f conftest.o conftest.s
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25245 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25246 if test $gcc_cv_as_avr_mrmw = yes; then
25248 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25254 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25255 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25256 $as_echo_n "(cached) " >&6
25257 else
25258 gcc_cv_as_avr_mgccisr=no
25259 if test x$gcc_cv_as != x; then
25260 $as_echo '.text
25261 __gcc_isr 1
25262 __gcc_isr 2
25263 __gcc_isr 0,r24
25264 ' > conftest.s
25265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25267 (eval $ac_try) 2>&5
25268 ac_status=$?
25269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25270 test $ac_status = 0; }; }
25271 then
25272 gcc_cv_as_avr_mgccisr=yes
25273 else
25274 echo "configure: failed program was" >&5
25275 cat conftest.s >&5
25277 rm -f conftest.o conftest.s
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25281 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25282 if test $gcc_cv_as_avr_mgccisr = yes; then
25284 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25289 # Check how default linker description file implements .rodata for
25290 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25291 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25293 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25294 cat > conftest.s <<EOF
25295 .section .rodata,"a",@progbits
25296 .global xxvaryy
25297 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25298 xxvaryy:
25299 .word 1
25301 rm -f conftest.nm
25302 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25304 (eval $ac_try) 2>&5
25305 ac_status=$?
25306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25307 test $ac_status = 0; }; }
25308 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25310 (eval $ac_try) 2>&5
25311 ac_status=$?
25312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25313 test $ac_status = 0; }; }
25314 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25316 (eval $ac_try) 2>&5
25317 ac_status=$?
25318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25319 test $ac_status = 0; }; }
25320 if test -s conftest.nm
25321 then
25322 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25324 $as_echo "yes" >&6; }
25326 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25328 else
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25330 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25331 echo "$as_me: nm output was" >&5
25332 cat conftest.nm >&5
25333 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25334 { $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
25335 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25337 else
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25339 $as_echo "test failed" >&6; }
25340 echo "$as_me: failed program was" >&5
25341 cat conftest.s >&5
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25343 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25345 rm -f conftest.s conftest.o conftest.elf conftest.nm
25348 cris-*-*)
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25350 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25351 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25352 $as_echo_n "(cached) " >&6
25353 else
25354 gcc_cv_as_cris_no_mul_bug=no
25355 if test $in_tree_gas = yes; then
25356 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25357 then gcc_cv_as_cris_no_mul_bug=yes
25359 elif test x$gcc_cv_as != x; then
25360 $as_echo '.text' > conftest.s
25361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25363 (eval $ac_try) 2>&5
25364 ac_status=$?
25365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25366 test $ac_status = 0; }; }
25367 then
25368 gcc_cv_as_cris_no_mul_bug=yes
25369 else
25370 echo "configure: failed program was" >&5
25371 cat conftest.s >&5
25373 rm -f conftest.o conftest.s
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25377 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25378 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25380 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25386 sparc*-*-*)
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25388 $as_echo_n "checking assembler for -relax option... " >&6; }
25389 if ${gcc_cv_as_sparc_relax+:} false; then :
25390 $as_echo_n "(cached) " >&6
25391 else
25392 gcc_cv_as_sparc_relax=no
25393 if test x$gcc_cv_as != x; then
25394 $as_echo '.text' > conftest.s
25395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25397 (eval $ac_try) 2>&5
25398 ac_status=$?
25399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25400 test $ac_status = 0; }; }
25401 then
25402 gcc_cv_as_sparc_relax=yes
25403 else
25404 echo "configure: failed program was" >&5
25405 cat conftest.s >&5
25407 rm -f conftest.o conftest.s
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25411 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25412 if test $gcc_cv_as_sparc_relax = yes; then
25414 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25420 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25421 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25422 $as_echo_n "(cached) " >&6
25423 else
25424 gcc_cv_as_sparc_gotdata_op=no
25425 if test x$gcc_cv_as != x; then
25426 $as_echo '.text
25427 .align 4
25428 foo:
25430 bar:
25431 sethi %gdop_hix22(foo), %g1
25432 xor %g1, %gdop_lox10(foo), %g1
25433 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25436 (eval $ac_try) 2>&5
25437 ac_status=$?
25438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25439 test $ac_status = 0; }; }
25440 then
25441 if test x$gcc_cv_ld != x \
25442 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25443 if test x$gcc_cv_objdump != x; then
25444 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25445 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25446 gcc_cv_as_sparc_gotdata_op=no
25447 else
25448 gcc_cv_as_sparc_gotdata_op=yes
25452 rm -f conftest
25453 else
25454 echo "configure: failed program was" >&5
25455 cat conftest.s >&5
25457 rm -f conftest.o conftest.s
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25461 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25462 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25464 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25470 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25471 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25472 $as_echo_n "(cached) " >&6
25473 else
25474 gcc_cv_as_sparc_ua_pcrel=no
25475 if test x$gcc_cv_as != x; then
25476 $as_echo '.text
25477 foo:
25479 .data
25480 .align 4
25481 .byte 0
25482 .uaword %r_disp32(foo)' > conftest.s
25483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25485 (eval $ac_try) 2>&5
25486 ac_status=$?
25487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25488 test $ac_status = 0; }; }
25489 then
25490 if test x$gcc_cv_ld != x \
25491 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25492 gcc_cv_as_sparc_ua_pcrel=yes
25494 rm -f conftest
25495 else
25496 echo "configure: failed program was" >&5
25497 cat conftest.s >&5
25499 rm -f conftest.o conftest.s
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25503 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25504 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25506 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25510 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25511 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25512 $as_echo_n "(cached) " >&6
25513 else
25514 gcc_cv_as_sparc_ua_pcrel_hidden=no
25515 if test x$gcc_cv_as != x; then
25516 $as_echo '.data
25517 .align 4
25518 .byte 0x31
25519 .uaword %r_disp32(foo)
25520 .byte 0x32, 0x33, 0x34
25521 .global foo
25522 .hidden foo
25523 foo:
25524 .skip 4' > conftest.s
25525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25530 test $ac_status = 0; }; }
25531 then
25532 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25533 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25534 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25535 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25536 if $gcc_cv_objdump -R conftest 2> /dev/null \
25537 | grep 'DISP32' > /dev/null 2>&1; then
25539 else
25540 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25543 rm -f conftest
25544 else
25545 echo "configure: failed program was" >&5
25546 cat conftest.s >&5
25548 rm -f conftest.o conftest.s
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25552 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25553 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25555 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25561 # unaligned pcrel relocs
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25564 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25565 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25566 $as_echo_n "(cached) " >&6
25567 else
25568 gcc_cv_as_sparc_offsetable_lo10=no
25569 if test x$gcc_cv_as != x; then
25570 $as_echo '.text
25571 or %g1, %lo(ab) + 12, %g1
25572 or %g1, %lo(ab + 12), %g1' > conftest.s
25573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25575 (eval $ac_try) 2>&5
25576 ac_status=$?
25577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25578 test $ac_status = 0; }; }
25579 then
25580 if test x$gcc_cv_objdump != x \
25581 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25582 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25583 gcc_cv_as_sparc_offsetable_lo10=yes
25585 else
25586 echo "configure: failed program was" >&5
25587 cat conftest.s >&5
25589 rm -f conftest.o conftest.s
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25593 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25594 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25596 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25602 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25603 if ${gcc_cv_as_sparc_fmaf+:} false; then :
25604 $as_echo_n "(cached) " >&6
25605 else
25606 gcc_cv_as_sparc_fmaf=no
25607 if test x$gcc_cv_as != x; then
25608 $as_echo '.text
25609 .register %g2, #scratch
25610 .register %g3, #scratch
25611 .align 4
25612 fmaddd %f0, %f2, %f4, %f6
25613 addxccc %g1, %g2, %g3
25614 fsrl32 %f2, %f4, %f8
25615 fnaddd %f10, %f12, %f14' > conftest.s
25616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618 (eval $ac_try) 2>&5
25619 ac_status=$?
25620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }; }
25622 then
25623 gcc_cv_as_sparc_fmaf=yes
25624 else
25625 echo "configure: failed program was" >&5
25626 cat conftest.s >&5
25628 rm -f conftest.o conftest.s
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25632 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25633 if test $gcc_cv_as_sparc_fmaf = yes; then
25635 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25641 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25642 if ${gcc_cv_as_sparc_sparc4+:} false; then :
25643 $as_echo_n "(cached) " >&6
25644 else
25645 gcc_cv_as_sparc_sparc4=no
25646 if test x$gcc_cv_as != x; then
25647 $as_echo '.text
25648 .register %g2, #scratch
25649 .register %g3, #scratch
25650 .align 4
25651 cxbe %g2, %g3, 1f
25652 1: cwbneg %g2, %g3, 1f
25653 1: sha1
25655 aes_kexpand0 %f4, %f6, %f8
25656 des_round %f38, %f40, %f42, %f44
25657 camellia_f %f54, %f56, %f58, %f60
25658 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25662 ac_status=$?
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25665 then
25666 gcc_cv_as_sparc_sparc4=yes
25667 else
25668 echo "configure: failed program was" >&5
25669 cat conftest.s >&5
25671 rm -f conftest.o conftest.s
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25675 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25676 if test $gcc_cv_as_sparc_sparc4 = yes; then
25678 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25684 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25685 if ${gcc_cv_as_sparc_sparc5+:} false; then :
25686 $as_echo_n "(cached) " >&6
25687 else
25688 gcc_cv_as_sparc_sparc5=no
25689 if test x$gcc_cv_as != x; then
25690 $as_echo '.text
25691 .register %g2, #scratch
25692 .register %g3, #scratch
25693 .align 4
25694 subxc %g1, %g2, %g3
25695 fpadd8 %f0, %f2, %f4' > conftest.s
25696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25701 test $ac_status = 0; }; }
25702 then
25703 gcc_cv_as_sparc_sparc5=yes
25704 else
25705 echo "configure: failed program was" >&5
25706 cat conftest.s >&5
25708 rm -f conftest.o conftest.s
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25712 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25713 if test $gcc_cv_as_sparc_sparc5 = yes; then
25715 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25721 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25722 if ${gcc_cv_as_sparc_sparc6+:} false; then :
25723 $as_echo_n "(cached) " >&6
25724 else
25725 gcc_cv_as_sparc_sparc6=no
25726 if test x$gcc_cv_as != x; then
25727 $as_echo '.text
25728 .register %g2, #scratch
25729 .register %g3, #scratch
25730 .align 4
25731 rd %entropy, %g1
25732 fpsll64x %f0, %f2, %f4' > conftest.s
25733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25735 (eval $ac_try) 2>&5
25736 ac_status=$?
25737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25738 test $ac_status = 0; }; }
25739 then
25740 gcc_cv_as_sparc_sparc6=yes
25741 else
25742 echo "configure: failed program was" >&5
25743 cat conftest.s >&5
25745 rm -f conftest.o conftest.s
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25749 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25750 if test $gcc_cv_as_sparc_sparc6 = yes; then
25752 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25758 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25759 if ${gcc_cv_as_sparc_leon+:} false; then :
25760 $as_echo_n "(cached) " >&6
25761 else
25762 gcc_cv_as_sparc_leon=no
25763 if test x$gcc_cv_as != x; then
25764 $as_echo '.text
25765 .register %g2, #scratch
25766 .register %g3, #scratch
25767 .align 4
25768 smac %g2, %g3, %g1
25769 umac %g2, %g3, %g1
25770 casa [%g2] 0xb, %g3, %g1' > conftest.s
25771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25773 (eval $ac_try) 2>&5
25774 ac_status=$?
25775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25776 test $ac_status = 0; }; }
25777 then
25778 gcc_cv_as_sparc_leon=yes
25779 else
25780 echo "configure: failed program was" >&5
25781 cat conftest.s >&5
25783 rm -f conftest.o conftest.s
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25787 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25788 if test $gcc_cv_as_sparc_leon = yes; then
25790 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25796 i[34567]86-*-* | x86_64-*-*)
25797 case $target_os in
25798 cygwin*)
25799 # Full C++ conformance when using a shared libstdc++-v3 requires some
25800 # support from the Cygwin DLL, which in more recent versions exports
25801 # wrappers to aid in interposing and redirecting operators new, delete,
25802 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25803 # are configuring for a version of Cygwin that exports the wrappers.
25804 if test x$host = x$target && test x$host_cpu = xi686; then
25805 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25806 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
25807 gcc_ac_cygwin_dll_wrappers=yes
25808 else
25809 gcc_ac_cygwin_dll_wrappers=no
25812 else
25813 # Can't check presence of libc functions during cross-compile, so
25814 # we just have to assume we're building for an up-to-date target.
25815 gcc_ac_cygwin_dll_wrappers=yes
25818 cat >>confdefs.h <<_ACEOF
25819 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25820 _ACEOF
25822 esac
25823 case $target_os in
25824 cygwin* | pe | mingw32*)
25825 # Recent binutils allows the three-operand form of ".comm" on PE. This
25826 # definition is used unconditionally to initialise the default state of
25827 # the target option variable that governs usage of the feature.
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25829 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25830 if ${gcc_cv_as_comm_has_align+:} false; then :
25831 $as_echo_n "(cached) " >&6
25832 else
25833 gcc_cv_as_comm_has_align=no
25834 if test $in_tree_gas = yes; then
25835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25836 then gcc_cv_as_comm_has_align=yes
25838 elif test x$gcc_cv_as != x; then
25839 $as_echo '.comm foo,1,32' > conftest.s
25840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25842 (eval $ac_try) 2>&5
25843 ac_status=$?
25844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25845 test $ac_status = 0; }; }
25846 then
25847 gcc_cv_as_comm_has_align=yes
25848 else
25849 echo "configure: failed program was" >&5
25850 cat conftest.s >&5
25852 rm -f conftest.o conftest.s
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25856 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25860 cat >>confdefs.h <<_ACEOF
25861 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25862 _ACEOF
25864 # Used for DWARF 2 in PE
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25866 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25867 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
25868 $as_echo_n "(cached) " >&6
25869 else
25870 gcc_cv_as_ix86_pe_secrel32=no
25871 if test $in_tree_gas = yes; then
25872 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25873 then gcc_cv_as_ix86_pe_secrel32=yes
25875 elif test x$gcc_cv_as != x; then
25876 $as_echo '.text
25877 foo: nop
25878 .data
25879 .secrel32 foo' > conftest.s
25880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25882 (eval $ac_try) 2>&5
25883 ac_status=$?
25884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25885 test $ac_status = 0; }; }
25886 then
25887 if test x$gcc_cv_ld != x \
25888 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25889 gcc_cv_as_ix86_pe_secrel32=yes
25891 rm -f conftest
25892 else
25893 echo "configure: failed program was" >&5
25894 cat conftest.s >&5
25896 rm -f conftest.o conftest.s
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25900 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25901 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25903 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25907 # Test if the assembler supports the extended form of the .section
25908 # directive that specifies section alignment. LTO support uses this,
25909 # but normally only after installation, so we warn but don't fail the
25910 # configure if LTO is enabled but the assembler does not support it.
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25912 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25913 if ${gcc_cv_as_section_has_align+:} false; then :
25914 $as_echo_n "(cached) " >&6
25915 else
25916 gcc_cv_as_section_has_align=no
25917 if test $in_tree_gas = yes; then
25918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25919 then gcc_cv_as_section_has_align=yes
25921 elif test x$gcc_cv_as != x; then
25922 $as_echo '.section lto_test,"dr0"' > conftest.s
25923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25925 (eval $ac_try) 2>&5
25926 ac_status=$?
25927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25928 test $ac_status = 0; }; }
25929 then
25930 gcc_cv_as_section_has_align=yes
25931 else
25932 echo "configure: failed program was" >&5
25933 cat conftest.s >&5
25935 rm -f conftest.o conftest.s
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25939 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25942 if test x$gcc_cv_as_section_has_align != xyes; then
25943 case ",$enable_languages," in
25944 *,lto,*)
25945 { $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
25946 $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;}
25948 esac
25951 esac
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25954 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25955 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
25956 $as_echo_n "(cached) " >&6
25957 else
25958 gcc_cv_as_ix86_xbrace_comment=no
25959 if test x$gcc_cv_as != x; then
25960 $as_echo '.text' > conftest.s
25961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25963 (eval $ac_try) 2>&5
25964 ac_status=$?
25965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25966 test $ac_status = 0; }; }
25967 then
25968 gcc_cv_as_ix86_xbrace_comment=yes
25969 else
25970 echo "configure: failed program was" >&5
25971 cat conftest.s >&5
25973 rm -f conftest.o conftest.s
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25977 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25978 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25980 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25986 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25987 if ${gcc_cv_as_ix86_filds+:} false; then :
25988 $as_echo_n "(cached) " >&6
25989 else
25990 gcc_cv_as_ix86_filds=no
25991 if test x$gcc_cv_as != x; then
25992 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25995 (eval $ac_try) 2>&5
25996 ac_status=$?
25997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25998 test $ac_status = 0; }; }
25999 then
26000 gcc_cv_as_ix86_filds=yes
26001 else
26002 echo "configure: failed program was" >&5
26003 cat conftest.s >&5
26005 rm -f conftest.o conftest.s
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26009 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26010 if test $gcc_cv_as_ix86_filds = yes; then
26012 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26018 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26019 if ${gcc_cv_as_ix86_fildq+:} false; then :
26020 $as_echo_n "(cached) " >&6
26021 else
26022 gcc_cv_as_ix86_fildq=no
26023 if test x$gcc_cv_as != x; then
26024 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26027 (eval $ac_try) 2>&5
26028 ac_status=$?
26029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26030 test $ac_status = 0; }; }
26031 then
26032 gcc_cv_as_ix86_fildq=yes
26033 else
26034 echo "configure: failed program was" >&5
26035 cat conftest.s >&5
26037 rm -f conftest.o conftest.s
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26041 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26042 if test $gcc_cv_as_ix86_fildq = yes; then
26044 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26050 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26051 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26052 $as_echo_n "(cached) " >&6
26053 else
26054 gcc_cv_as_ix86_cmov_sun_syntax=no
26055 if test x$gcc_cv_as != x; then
26056 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26059 (eval $ac_try) 2>&5
26060 ac_status=$?
26061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26062 test $ac_status = 0; }; }
26063 then
26064 gcc_cv_as_ix86_cmov_sun_syntax=yes
26065 else
26066 echo "configure: failed program was" >&5
26067 cat conftest.s >&5
26069 rm -f conftest.o conftest.s
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26073 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26074 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26076 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26082 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26083 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26084 $as_echo_n "(cached) " >&6
26085 else
26086 gcc_cv_as_ix86_ffreep=no
26087 if test x$gcc_cv_as != x; then
26088 $as_echo 'ffreep %st(1)' > conftest.s
26089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26091 (eval $ac_try) 2>&5
26092 ac_status=$?
26093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26094 test $ac_status = 0; }; }
26095 then
26096 gcc_cv_as_ix86_ffreep=yes
26097 else
26098 echo "configure: failed program was" >&5
26099 cat conftest.s >&5
26101 rm -f conftest.o conftest.s
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26105 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26106 if test $gcc_cv_as_ix86_ffreep = yes; then
26108 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26114 $as_echo_n "checking assembler for .quad directive... " >&6; }
26115 if ${gcc_cv_as_ix86_quad+:} false; then :
26116 $as_echo_n "(cached) " >&6
26117 else
26118 gcc_cv_as_ix86_quad=no
26119 if test x$gcc_cv_as != x; then
26120 $as_echo '.quad 0' > conftest.s
26121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26123 (eval $ac_try) 2>&5
26124 ac_status=$?
26125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26126 test $ac_status = 0; }; }
26127 then
26128 gcc_cv_as_ix86_quad=yes
26129 else
26130 echo "configure: failed program was" >&5
26131 cat conftest.s >&5
26133 rm -f conftest.o conftest.s
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26137 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26138 if test $gcc_cv_as_ix86_quad = yes; then
26140 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26146 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26147 if ${gcc_cv_as_ix86_sahf+:} false; then :
26148 $as_echo_n "(cached) " >&6
26149 else
26150 gcc_cv_as_ix86_sahf=no
26151 if test x$gcc_cv_as != x; then
26152 $as_echo '.code64
26153 sahf' > conftest.s
26154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26156 (eval $ac_try) 2>&5
26157 ac_status=$?
26158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26159 test $ac_status = 0; }; }
26160 then
26161 gcc_cv_as_ix86_sahf=yes
26162 else
26163 echo "configure: failed program was" >&5
26164 cat conftest.s >&5
26166 rm -f conftest.o conftest.s
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26170 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26171 if test $gcc_cv_as_ix86_sahf = yes; then
26173 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26179 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26180 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26181 $as_echo_n "(cached) " >&6
26182 else
26183 gcc_cv_as_ix86_interunit_movq=no
26184 if test x$gcc_cv_as != x; then
26185 $as_echo '.code64
26186 movq %mm0, %rax
26187 movq %rax, %xmm0' > conftest.s
26188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26190 (eval $ac_try) 2>&5
26191 ac_status=$?
26192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26193 test $ac_status = 0; }; }
26194 then
26195 gcc_cv_as_ix86_interunit_movq=yes
26196 else
26197 echo "configure: failed program was" >&5
26198 cat conftest.s >&5
26200 rm -f conftest.o conftest.s
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26204 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26208 cat >>confdefs.h <<_ACEOF
26209 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26210 _ACEOF
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26214 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26215 if ${gcc_cv_as_ix86_hle+:} false; then :
26216 $as_echo_n "(cached) " >&6
26217 else
26218 gcc_cv_as_ix86_hle=no
26219 if test x$gcc_cv_as != x; then
26220 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26223 (eval $ac_try) 2>&5
26224 ac_status=$?
26225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26226 test $ac_status = 0; }; }
26227 then
26228 gcc_cv_as_ix86_hle=yes
26229 else
26230 echo "configure: failed program was" >&5
26231 cat conftest.s >&5
26233 rm -f conftest.o conftest.s
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26237 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26238 if test $gcc_cv_as_ix86_hle = yes; then
26240 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26246 $as_echo_n "checking assembler for swap suffix... " >&6; }
26247 if ${gcc_cv_as_ix86_swap+:} false; then :
26248 $as_echo_n "(cached) " >&6
26249 else
26250 gcc_cv_as_ix86_swap=no
26251 if test x$gcc_cv_as != x; then
26252 $as_echo 'movl.s %esp, %ebp' > conftest.s
26253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26255 (eval $ac_try) 2>&5
26256 ac_status=$?
26257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26258 test $ac_status = 0; }; }
26259 then
26260 gcc_cv_as_ix86_swap=yes
26261 else
26262 echo "configure: failed program was" >&5
26263 cat conftest.s >&5
26265 rm -f conftest.o conftest.s
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26269 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26270 if test $gcc_cv_as_ix86_swap = yes; then
26272 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26278 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26279 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26280 $as_echo_n "(cached) " >&6
26281 else
26282 gcc_cv_as_ix86_diff_sect_delta=no
26283 if test x$gcc_cv_as != x; then
26284 $as_echo '.section .rodata
26285 .L1:
26286 .long .L2-.L1
26287 .long .L3-.L1
26288 .text
26289 .L3: nop
26290 .L2: nop' > conftest.s
26291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26294 ac_status=$?
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26297 then
26298 gcc_cv_as_ix86_diff_sect_delta=yes
26299 else
26300 echo "configure: failed program was" >&5
26301 cat conftest.s >&5
26303 rm -f conftest.o conftest.s
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26307 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26308 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26310 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26316 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26317 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26318 $as_echo_n "(cached) " >&6
26319 else
26320 gcc_cv_as_ix86_rep_lock_prefix=no
26321 if test x$gcc_cv_as != x; then
26322 $as_echo 'rep movsl
26323 rep ret
26324 rep nop
26325 rep bsf %ecx, %eax
26326 rep bsr %ecx, %eax
26327 lock addl %edi, (%eax,%esi)
26328 lock orl $0, (%esp)' > conftest.s
26329 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26331 (eval $ac_try) 2>&5
26332 ac_status=$?
26333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26334 test $ac_status = 0; }; }
26335 then
26336 gcc_cv_as_ix86_rep_lock_prefix=yes
26337 else
26338 echo "configure: failed program was" >&5
26339 cat conftest.s >&5
26341 rm -f conftest.o conftest.s
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26345 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26346 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26348 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26354 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26355 if ${gcc_cv_as_ix86_ud2+:} false; then :
26356 $as_echo_n "(cached) " >&6
26357 else
26358 gcc_cv_as_ix86_ud2=no
26359 if test x$gcc_cv_as != x; then
26360 $as_echo 'ud2' > conftest.s
26361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26363 (eval $ac_try) 2>&5
26364 ac_status=$?
26365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26366 test $ac_status = 0; }; }
26367 then
26368 gcc_cv_as_ix86_ud2=yes
26369 else
26370 echo "configure: failed program was" >&5
26371 cat conftest.s >&5
26373 rm -f conftest.o conftest.s
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26377 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26378 if test $gcc_cv_as_ix86_ud2 = yes; then
26380 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26385 # Enforce 32-bit output with gas and gld.
26386 if test x$gas = xyes; then
26387 as_ix86_gas_32_opt="--32"
26389 if echo "$ld_ver" | grep GNU > /dev/null; then
26390 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26391 ld_ix86_gld_32_opt="-melf_i386_sol2"
26392 else
26393 ld_ix86_gld_32_opt="-melf_i386"
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26398 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26399 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26400 $as_echo_n "(cached) " >&6
26401 else
26402 gcc_cv_as_ix86_tlsgdplt=no
26403 if test x$gcc_cv_as != x; then
26404 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26405 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26407 (eval $ac_try) 2>&5
26408 ac_status=$?
26409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26410 test $ac_status = 0; }; }
26411 then
26412 if test x$gcc_cv_ld != x \
26413 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26414 gcc_cv_as_ix86_tlsgdplt=yes
26416 rm -f conftest
26417 else
26418 echo "configure: failed program was" >&5
26419 cat conftest.s >&5
26421 rm -f conftest.o conftest.s
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26425 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26426 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26428 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26433 conftest_s='
26434 .section .tdata,"aw'$tls_section_flag'",@progbits
26435 tls_ld:
26436 .section .text,"ax",@progbits
26437 call tls_ld@tlsldmplt'
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26440 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26441 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26442 $as_echo_n "(cached) " >&6
26443 else
26444 gcc_cv_as_ix86_tlsldmplt=no
26445 if test x$gcc_cv_as != x; then
26446 $as_echo "$conftest_s" > conftest.s
26447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26449 (eval $ac_try) 2>&5
26450 ac_status=$?
26451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26452 test $ac_status = 0; }; }
26453 then
26454 if test x$gcc_cv_ld != x \
26455 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26456 gcc_cv_as_ix86_tlsldmplt=yes
26458 rm -f conftest
26459 else
26460 echo "configure: failed program was" >&5
26461 cat conftest.s >&5
26463 rm -f conftest.o conftest.s
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26467 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26471 cat >>confdefs.h <<_ACEOF
26472 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26473 _ACEOF
26476 conftest_s='
26477 .section .text,"ax",@progbits
26478 .globl _start
26479 .type _start, @function
26480 _start:
26481 leal value@tlsldm(%ebx), %eax
26482 call ___tls_get_addr@plt
26484 .section .tdata,"aw'$tls_section_flag'",@progbits
26485 .type value, @object
26486 value:'
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26488 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26489 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26490 $as_echo_n "(cached) " >&6
26491 else
26492 gcc_cv_as_ix86_tlsldm=no
26493 if test x$gcc_cv_as != x; then
26494 $as_echo "$conftest_s" > conftest.s
26495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26497 (eval $ac_try) 2>&5
26498 ac_status=$?
26499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26500 test $ac_status = 0; }; }
26501 then
26502 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26503 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26504 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26505 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26506 gcc_cv_as_ix86_tlsldm=yes
26509 rm -f conftest
26510 else
26511 echo "configure: failed program was" >&5
26512 cat conftest.s >&5
26514 rm -f conftest.o conftest.s
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26518 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26522 cat >>confdefs.h <<_ACEOF
26523 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26524 _ACEOF
26527 conftest_s='
26528 .data
26529 bar:
26530 .byte 1
26531 .text
26532 .global _start
26533 _start:
26534 cmpl $0, bar@GOT
26535 jmp *_start@GOT'
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26537 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26538 if ${gcc_cv_as_ix86_got32x+:} false; then :
26539 $as_echo_n "(cached) " >&6
26540 else
26541 gcc_cv_as_ix86_got32x=no
26542 if test x$gcc_cv_as != x; then
26543 $as_echo "$conftest_s" > conftest.s
26544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -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 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26552 && test x$gcc_cv_readelf != x \
26553 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26554 | grep R_386_GOT32X > /dev/null 2>&1 \
26555 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26556 if $gcc_cv_objdump -dw conftest 2>&1 \
26557 | grep 0xffffff > /dev/null 2>&1; then
26558 gcc_cv_as_ix86_got32x=no
26559 else
26560 gcc_cv_as_ix86_got32x=yes
26563 rm -f conftest
26564 else
26565 echo "configure: failed program was" >&5
26566 cat conftest.s >&5
26568 rm -f conftest.o conftest.s
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26572 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26576 cat >>confdefs.h <<_ACEOF
26577 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26578 _ACEOF
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26582 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26583 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26584 $as_echo_n "(cached) " >&6
26585 else
26586 gcc_cv_as_ix86_gotoff_in_data=no
26587 if test $in_tree_gas = yes; then
26588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26589 then gcc_cv_as_ix86_gotoff_in_data=yes
26591 elif test x$gcc_cv_as != x; then
26592 $as_echo ' .text
26593 .L0:
26595 .data
26596 .long .L0@GOTOFF' > conftest.s
26597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26599 (eval $ac_try) 2>&5
26600 ac_status=$?
26601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26602 test $ac_status = 0; }; }
26603 then
26604 gcc_cv_as_ix86_gotoff_in_data=yes
26605 else
26606 echo "configure: failed program was" >&5
26607 cat conftest.s >&5
26609 rm -f conftest.o conftest.s
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26613 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26617 cat >>confdefs.h <<_ACEOF
26618 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26619 _ACEOF
26622 conftest_s='
26623 .section .text,"ax",@progbits
26624 .globl _start
26625 .type _start, @function
26626 _start:
26627 leal ld@tlsldm(%ecx), %eax
26628 call *___tls_get_addr@GOT(%ecx)
26629 leal gd@tlsgd(%ecx), %eax
26630 call *___tls_get_addr@GOT(%ecx)
26632 .section .tdata,"aw'$tls_section_flag'",@progbits
26633 .type ld, @object
26635 .byte 0
26636 .globl gd
26637 .type gd, @object
26639 .byte 0'
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26641 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26642 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
26643 $as_echo_n "(cached) " >&6
26644 else
26645 gcc_cv_as_ix86_tls_get_addr_via_got=no
26646 if test x$gcc_cv_as != x; then
26647 $as_echo "$conftest_s" > conftest.s
26648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26650 (eval $ac_try) 2>&5
26651 ac_status=$?
26652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26653 test $ac_status = 0; }; }
26654 then
26655 if test x$gcc_cv_ld != x \
26656 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26657 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26659 rm -f conftest
26660 else
26661 echo "configure: failed program was" >&5
26662 cat conftest.s >&5
26664 rm -f conftest.o conftest.s
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26668 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26672 cat >>confdefs.h <<_ACEOF
26673 #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`
26674 _ACEOF
26678 ia64*-*-*)
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26680 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26681 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
26682 $as_echo_n "(cached) " >&6
26683 else
26684 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26685 if test $in_tree_gas = yes; then
26686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26687 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26689 elif test x$gcc_cv_as != x; then
26690 $as_echo ' .text
26691 addl r15 = @ltoffx(x#), gp
26693 ld8.mov r16 = [r15], x#
26694 ' > conftest.s
26695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26697 (eval $ac_try) 2>&5
26698 ac_status=$?
26699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26700 test $ac_status = 0; }; }
26701 then
26702 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26703 else
26704 echo "configure: failed program was" >&5
26705 cat conftest.s >&5
26707 rm -f conftest.o conftest.s
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26711 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26712 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26714 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26721 powerpc*-*-*)
26723 case $target in
26724 *-*-darwin*)
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26726 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26727 if ${gcc_cv_as_machine_directive+:} false; then :
26728 $as_echo_n "(cached) " >&6
26729 else
26730 gcc_cv_as_machine_directive=no
26731 if test x$gcc_cv_as != x; then
26732 $as_echo ' .machine ppc7400' > conftest.s
26733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738 test $ac_status = 0; }; }
26739 then
26740 gcc_cv_as_machine_directive=yes
26741 else
26742 echo "configure: failed program was" >&5
26743 cat conftest.s >&5
26745 rm -f conftest.o conftest.s
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26749 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26752 if test x$gcc_cv_as_machine_directive != xyes; then
26753 echo "*** This target requires an assembler supporting \".machine\"" >&2
26754 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26755 test x$build = x$target && exit 1
26758 esac
26760 case $target in
26761 *-*-aix*) conftest_s=' .machine "pwr5"
26762 .csect .text[PR]
26763 mfcr 3,128';;
26764 *-*-darwin*) conftest_s=' .text
26765 mfcr r3,128';;
26766 *) conftest_s=' .machine power4
26767 .text
26768 mfcr 3,128';;
26769 esac
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26772 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26773 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
26774 $as_echo_n "(cached) " >&6
26775 else
26776 gcc_cv_as_powerpc_mfcrf=no
26777 if test $in_tree_gas = yes; then
26778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26779 then gcc_cv_as_powerpc_mfcrf=yes
26781 elif test x$gcc_cv_as != x; then
26782 $as_echo "$conftest_s" > conftest.s
26783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26785 (eval $ac_try) 2>&5
26786 ac_status=$?
26787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26788 test $ac_status = 0; }; }
26789 then
26790 gcc_cv_as_powerpc_mfcrf=yes
26791 else
26792 echo "configure: failed program was" >&5
26793 cat conftest.s >&5
26795 rm -f conftest.o conftest.s
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26799 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26800 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26802 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26807 case $target in
26808 *-*-aix*) conftest_s=' .csect .text[PR]
26809 LCF..0:
26810 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26811 *-*-darwin*)
26812 conftest_s=' .text
26813 LCF0:
26814 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26815 *) conftest_s=' .text
26816 .LCF0:
26817 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26818 esac
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26821 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26822 if ${gcc_cv_as_powerpc_rel16+:} false; then :
26823 $as_echo_n "(cached) " >&6
26824 else
26825 gcc_cv_as_powerpc_rel16=no
26826 if test $in_tree_gas = yes; then
26827 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26828 then gcc_cv_as_powerpc_rel16=yes
26830 elif test x$gcc_cv_as != x; then
26831 $as_echo "$conftest_s" > conftest.s
26832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26834 (eval $ac_try) 2>&5
26835 ac_status=$?
26836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26837 test $ac_status = 0; }; }
26838 then
26839 gcc_cv_as_powerpc_rel16=yes
26840 else
26841 echo "configure: failed program was" >&5
26842 cat conftest.s >&5
26844 rm -f conftest.o conftest.s
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26848 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26849 if test $gcc_cv_as_powerpc_rel16 = yes; then
26851 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26856 case $target in
26857 *-*-aix*) conftest_s=' .machine "pwr7"
26858 .csect .text[PR]
26859 lxvd2x 1,2,3';;
26860 *) conftest_s=' .machine power7
26861 .text
26862 lxvd2x 1,2,3';;
26863 esac
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26866 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26867 if ${gcc_cv_as_powerpc_vsx+:} false; then :
26868 $as_echo_n "(cached) " >&6
26869 else
26870 gcc_cv_as_powerpc_vsx=no
26871 if test $in_tree_gas = yes; then
26872 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26873 then gcc_cv_as_powerpc_vsx=yes
26875 elif test x$gcc_cv_as != x; then
26876 $as_echo "$conftest_s" > conftest.s
26877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26879 (eval $ac_try) 2>&5
26880 ac_status=$?
26881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26882 test $ac_status = 0; }; }
26883 then
26884 gcc_cv_as_powerpc_vsx=yes
26885 else
26886 echo "configure: failed program was" >&5
26887 cat conftest.s >&5
26889 rm -f conftest.o conftest.s
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26893 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26894 if test $gcc_cv_as_powerpc_vsx = yes; then
26896 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26902 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26903 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
26904 $as_echo_n "(cached) " >&6
26905 else
26906 gcc_cv_as_powerpc_gnu_attribute=no
26907 if test $in_tree_gas = yes; then
26908 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26909 then gcc_cv_as_powerpc_gnu_attribute=yes
26911 elif test x$gcc_cv_as != x; then
26912 $as_echo '.gnu_attribute 4,1' > conftest.s
26913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26918 test $ac_status = 0; }; }
26919 then
26920 gcc_cv_as_powerpc_gnu_attribute=yes
26921 else
26922 echo "configure: failed program was" >&5
26923 cat conftest.s >&5
26925 rm -f conftest.o conftest.s
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26929 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26930 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26932 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26938 $as_echo_n "checking assembler for tls marker support... " >&6; }
26939 if ${gcc_cv_as_powerpc_tls_markers+:} false; then :
26940 $as_echo_n "(cached) " >&6
26941 else
26942 gcc_cv_as_powerpc_tls_markers=no
26943 if test $in_tree_gas = yes; then
26944 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26945 then gcc_cv_as_powerpc_tls_markers=yes
26947 elif test x$gcc_cv_as != x; then
26948 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26951 (eval $ac_try) 2>&5
26952 ac_status=$?
26953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26954 test $ac_status = 0; }; }
26955 then
26956 gcc_cv_as_powerpc_tls_markers=yes
26957 else
26958 echo "configure: failed program was" >&5
26959 cat conftest.s >&5
26961 rm -f conftest.o conftest.s
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26965 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26966 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26968 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26974 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26975 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
26976 $as_echo_n "(cached) " >&6
26977 else
26978 gcc_cv_as_powerpc_entry_markers=no
26979 if test $in_tree_gas = yes; then
26980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26981 then gcc_cv_as_powerpc_entry_markers=yes
26983 elif test x$gcc_cv_as != x; then
26984 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26987 (eval $ac_try) 2>&5
26988 ac_status=$?
26989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26990 test $ac_status = 0; }; }
26991 then
26992 gcc_cv_as_powerpc_entry_markers=yes
26993 else
26994 echo "configure: failed program was" >&5
26995 cat conftest.s >&5
26997 rm -f conftest.o conftest.s
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27001 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27002 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27004 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27010 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27011 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27012 $as_echo_n "(cached) " >&6
27013 else
27014 gcc_cv_as_powerpc_pltseq_markers=no
27015 if test $in_tree_gas = yes; then
27016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27017 then gcc_cv_as_powerpc_pltseq_markers=yes
27019 elif test x$gcc_cv_as != x; then
27020 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27026 test $ac_status = 0; }; }
27027 then
27028 gcc_cv_as_powerpc_pltseq_markers=yes
27029 else
27030 echo "configure: failed program was" >&5
27031 cat conftest.s >&5
27033 rm -f conftest.o conftest.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27037 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27038 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27040 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27045 case $target in
27046 *-*-aix*)
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27048 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27049 if ${gcc_cv_as_aix_ref+:} false; then :
27050 $as_echo_n "(cached) " >&6
27051 else
27052 gcc_cv_as_aix_ref=no
27053 if test $in_tree_gas = yes; then
27054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27055 then gcc_cv_as_aix_ref=yes
27057 elif test x$gcc_cv_as != x; then
27058 $as_echo ' .csect stuff[rw]
27059 stuff:
27060 .long 1
27061 .extern sym
27062 .ref sym
27063 ' > conftest.s
27064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27066 (eval $ac_try) 2>&5
27067 ac_status=$?
27068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27069 test $ac_status = 0; }; }
27070 then
27071 gcc_cv_as_aix_ref=yes
27072 else
27073 echo "configure: failed program was" >&5
27074 cat conftest.s >&5
27076 rm -f conftest.o conftest.s
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27080 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27081 if test $gcc_cv_as_aix_ref = yes; then
27083 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27089 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27090 if ${gcc_cv_as_aix_dwloc+:} false; then :
27091 $as_echo_n "(cached) " >&6
27092 else
27093 gcc_cv_as_aix_dwloc=no
27094 if test $in_tree_gas = yes; then
27095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27096 then gcc_cv_as_aix_dwloc=yes
27098 elif test x$gcc_cv_as != x; then
27099 $as_echo ' .dwsect 0xA0000
27100 Lframe..0:
27101 .vbyte 4,Lframe..0
27102 ' > conftest.s
27103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27105 (eval $ac_try) 2>&5
27106 ac_status=$?
27107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27108 test $ac_status = 0; }; }
27109 then
27110 gcc_cv_as_aix_dwloc=yes
27111 else
27112 echo "configure: failed program was" >&5
27113 cat conftest.s >&5
27115 rm -f conftest.o conftest.s
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27119 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27120 if test $gcc_cv_as_aix_dwloc = yes; then
27122 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27127 esac
27130 mips*-*-*)
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27132 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27133 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27134 $as_echo_n "(cached) " >&6
27135 else
27136 gcc_cv_as_mips_explicit_relocs=no
27137 if test $in_tree_gas = yes; then
27138 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27139 then gcc_cv_as_mips_explicit_relocs=yes
27141 elif test x$gcc_cv_as != x; then
27142 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27145 (eval $ac_try) 2>&5
27146 ac_status=$?
27147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27148 test $ac_status = 0; }; }
27149 then
27150 gcc_cv_as_mips_explicit_relocs=yes
27151 else
27152 echo "configure: failed program was" >&5
27153 cat conftest.s >&5
27155 rm -f conftest.o conftest.s
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27159 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27160 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27161 if test x$target_cpu_default = x
27162 then target_cpu_default=MASK_EXPLICIT_RELOCS
27163 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27169 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27170 if ${gcc_cv_as_mips_no_shared+:} false; then :
27171 $as_echo_n "(cached) " >&6
27172 else
27173 gcc_cv_as_mips_no_shared=no
27174 if test $in_tree_gas = yes; then
27175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27176 then gcc_cv_as_mips_no_shared=yes
27178 elif test x$gcc_cv_as != x; then
27179 $as_echo 'nop' > conftest.s
27180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27182 (eval $ac_try) 2>&5
27183 ac_status=$?
27184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27185 test $ac_status = 0; }; }
27186 then
27187 gcc_cv_as_mips_no_shared=yes
27188 else
27189 echo "configure: failed program was" >&5
27190 cat conftest.s >&5
27192 rm -f conftest.o conftest.s
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27196 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27197 if test $gcc_cv_as_mips_no_shared = yes; then
27199 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27205 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27206 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27207 $as_echo_n "(cached) " >&6
27208 else
27209 gcc_cv_as_mips_gnu_attribute=no
27210 if test $in_tree_gas = yes; then
27211 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27212 then gcc_cv_as_mips_gnu_attribute=yes
27214 elif test x$gcc_cv_as != x; then
27215 $as_echo '.gnu_attribute 4,1' > conftest.s
27216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27218 (eval $ac_try) 2>&5
27219 ac_status=$?
27220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27221 test $ac_status = 0; }; }
27222 then
27223 gcc_cv_as_mips_gnu_attribute=yes
27224 else
27225 echo "configure: failed program was" >&5
27226 cat conftest.s >&5
27228 rm -f conftest.o conftest.s
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27232 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27233 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27235 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27241 $as_echo_n "checking assembler for .module support... " >&6; }
27242 if ${gcc_cv_as_mips_dot_module+:} false; then :
27243 $as_echo_n "(cached) " >&6
27244 else
27245 gcc_cv_as_mips_dot_module=no
27246 if test x$gcc_cv_as != x; then
27247 $as_echo '.module mips2
27248 .module fp=xx' > conftest.s
27249 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27251 (eval $ac_try) 2>&5
27252 ac_status=$?
27253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27254 test $ac_status = 0; }; }
27255 then
27256 gcc_cv_as_mips_dot_module=yes
27257 else
27258 echo "configure: failed program was" >&5
27259 cat conftest.s >&5
27261 rm -f conftest.o conftest.s
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27265 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27266 if test $gcc_cv_as_mips_dot_module = yes; then
27268 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27272 if test x$gcc_cv_as_mips_dot_module = xno \
27273 && test x$with_fp_32 != x; then
27274 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27278 $as_echo_n "checking assembler for .micromips support... " >&6; }
27279 if ${gcc_cv_as_micromips_support+:} false; then :
27280 $as_echo_n "(cached) " >&6
27281 else
27282 gcc_cv_as_micromips_support=no
27283 if test x$gcc_cv_as != x; then
27284 $as_echo '.set micromips' > conftest.s
27285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27287 (eval $ac_try) 2>&5
27288 ac_status=$?
27289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27290 test $ac_status = 0; }; }
27291 then
27292 gcc_cv_as_micromips_support=yes
27293 else
27294 echo "configure: failed program was" >&5
27295 cat conftest.s >&5
27297 rm -f conftest.o conftest.s
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27301 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27302 if test $gcc_cv_as_micromips_support = yes; then
27304 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27310 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27311 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27312 $as_echo_n "(cached) " >&6
27313 else
27314 gcc_cv_as_mips_dtprelword=no
27315 if test $in_tree_gas = yes; then
27316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27317 then gcc_cv_as_mips_dtprelword=yes
27319 elif test x$gcc_cv_as != x; then
27320 $as_echo '.section .tdata,"awT",@progbits
27322 .word 2
27323 .text
27324 .dtprelword x+0x8000' > conftest.s
27325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27327 (eval $ac_try) 2>&5
27328 ac_status=$?
27329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27330 test $ac_status = 0; }; }
27331 then
27332 gcc_cv_as_mips_dtprelword=yes
27333 else
27334 echo "configure: failed program was" >&5
27335 cat conftest.s >&5
27337 rm -f conftest.o conftest.s
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27341 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27342 if test $gcc_cv_as_mips_dtprelword = yes; then
27344 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27350 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27351 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27352 $as_echo_n "(cached) " >&6
27353 else
27354 gcc_cv_as_mips_dspr1_mult=no
27355 if test x$gcc_cv_as != x; then
27356 $as_echo ' .set mips32r2
27357 .set nodspr2
27358 .set dsp
27359 madd $ac3,$4,$5
27360 maddu $ac3,$4,$5
27361 msub $ac3,$4,$5
27362 msubu $ac3,$4,$5
27363 mult $ac3,$4,$5
27364 multu $ac3,$4,$5' > conftest.s
27365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27367 (eval $ac_try) 2>&5
27368 ac_status=$?
27369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27370 test $ac_status = 0; }; }
27371 then
27372 gcc_cv_as_mips_dspr1_mult=yes
27373 else
27374 echo "configure: failed program was" >&5
27375 cat conftest.s >&5
27377 rm -f conftest.o conftest.s
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27381 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27382 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27384 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27390 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27391 gcc_cv_as_ld_jalr_reloc=no
27392 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27393 if test $in_tree_ld = yes ; then
27394 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 \
27395 && test $in_tree_ld_is_elf = yes; then
27396 gcc_cv_as_ld_jalr_reloc=yes
27398 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27399 echo ' .ent x' > conftest.s
27400 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27401 echo ' lw $25,%call16(y)($28)' >> conftest.s
27402 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27403 echo '1: jalr $25' >> conftest.s
27404 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27405 echo '1: jalr $25' >> conftest.s
27406 echo ' .end x' >> conftest.s
27407 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27408 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27409 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27410 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27411 gcc_cv_as_ld_jalr_reloc=yes
27414 rm -f conftest.*
27417 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27418 if test x$target_cpu_default = x; then
27419 target_cpu_default=MASK_RELAX_PIC_CALLS
27420 else
27421 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27425 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27428 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27429 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27430 $as_echo_n "(cached) " >&6
27431 else
27432 gcc_cv_ld_mips_personality_relaxation=no
27433 if test $in_tree_ld = yes ; then
27434 if test "$gcc_cv_gld_major_version" -eq 2 \
27435 -a "$gcc_cv_gld_minor_version" -ge 21 \
27436 -o "$gcc_cv_gld_major_version" -gt 2; then
27437 gcc_cv_ld_mips_personality_relaxation=yes
27439 elif test x$gcc_cv_as != x \
27440 -a x$gcc_cv_ld != x \
27441 -a x$gcc_cv_readelf != x ; then
27442 cat > conftest.s <<EOF
27443 .cfi_startproc
27444 .cfi_personality 0x80,indirect_ptr
27445 .ent test
27446 test:
27448 .end test
27449 .cfi_endproc
27451 .section .data,"aw",@progbits
27452 indirect_ptr:
27453 .dc.a personality
27455 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27456 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27457 if $gcc_cv_readelf -d conftest 2>&1 \
27458 | grep TEXTREL > /dev/null 2>&1; then
27460 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27461 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27463 else
27464 gcc_cv_ld_mips_personality_relaxation=yes
27468 rm -f conftest.s conftest.o conftest
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27471 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27472 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27474 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27479 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27480 if ${gcc_cv_as_mips_nan+:} false; then :
27481 $as_echo_n "(cached) " >&6
27482 else
27483 gcc_cv_as_mips_nan=no
27484 if test x$gcc_cv_as != x; then
27485 $as_echo '' > conftest.s
27486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27488 (eval $ac_try) 2>&5
27489 ac_status=$?
27490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27491 test $ac_status = 0; }; }
27492 then
27493 gcc_cv_as_mips_nan=yes
27494 else
27495 echo "configure: failed program was" >&5
27496 cat conftest.s >&5
27498 rm -f conftest.o conftest.s
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27502 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27503 if test $gcc_cv_as_mips_nan = yes; then
27505 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27509 if test x$gcc_cv_as_mips_nan = xno \
27510 && test x$with_nan != x; then
27511 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27514 s390*-*-*)
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27516 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27517 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
27518 $as_echo_n "(cached) " >&6
27519 else
27520 gcc_cv_as_s390_gnu_attribute=no
27521 if test $in_tree_gas = yes; then
27522 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27523 then gcc_cv_as_s390_gnu_attribute=yes
27525 elif test x$gcc_cv_as != x; then
27526 $as_echo '.gnu_attribute 8,1' > conftest.s
27527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27529 (eval $ac_try) 2>&5
27530 ac_status=$?
27531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27532 test $ac_status = 0; }; }
27533 then
27534 gcc_cv_as_s390_gnu_attribute=yes
27535 else
27536 echo "configure: failed program was" >&5
27537 cat conftest.s >&5
27539 rm -f conftest.o conftest.s
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27543 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27544 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27546 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27551 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27552 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
27553 $as_echo_n "(cached) " >&6
27554 else
27555 gcc_cv_as_s390_machine_machinemode=no
27556 if test $in_tree_gas = yes; then
27557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27558 then gcc_cv_as_s390_machine_machinemode=yes
27560 elif test x$gcc_cv_as != x; then
27561 $as_echo ' .machinemode push
27562 .machinemode pop
27563 .machine push
27564 .machine pop' > conftest.s
27565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27567 (eval $ac_try) 2>&5
27568 ac_status=$?
27569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27570 test $ac_status = 0; }; }
27571 then
27572 gcc_cv_as_s390_machine_machinemode=yes
27573 else
27574 echo "configure: failed program was" >&5
27575 cat conftest.s >&5
27577 rm -f conftest.o conftest.s
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27581 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27582 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27584 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27589 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27590 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
27591 $as_echo_n "(cached) " >&6
27592 else
27593 gcc_cv_as_s390_architecture_modifiers=no
27594 if test $in_tree_gas = yes; then
27595 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27596 then gcc_cv_as_s390_architecture_modifiers=yes
27598 elif test x$gcc_cv_as != x; then
27599 $as_echo ' .machine z13+vx ' > conftest.s
27600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27602 (eval $ac_try) 2>&5
27603 ac_status=$?
27604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27605 test $ac_status = 0; }; }
27606 then
27607 gcc_cv_as_s390_architecture_modifiers=yes
27608 else
27609 echo "configure: failed program was" >&5
27610 cat conftest.s >&5
27612 rm -f conftest.o conftest.s
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27616 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27617 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27619 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
27624 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
27625 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
27626 $as_echo_n "(cached) " >&6
27627 else
27628 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
27629 if test $in_tree_gas = yes; then
27630 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27631 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27633 elif test x$gcc_cv_as != x; then
27634 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
27635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27637 (eval $ac_try) 2>&5
27638 ac_status=$?
27639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27640 test $ac_status = 0; }; }
27641 then
27642 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27643 else
27644 echo "configure: failed program was" >&5
27645 cat conftest.s >&5
27647 rm -f conftest.o conftest.s
27650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
27651 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
27652 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
27654 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
27660 esac
27662 # Mips and HP-UX need the GNU assembler.
27663 # Linux on IA64 might be able to use the Intel assembler.
27665 case "$target" in
27666 mips*-*-* | *-*-hpux* )
27667 if test x$gas_flag = xyes \
27668 || test x"$host" != x"$build" \
27669 || test ! -x "$gcc_cv_as" \
27670 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27672 else
27673 echo "*** This configuration requires the GNU assembler" >&2
27674 exit 1
27677 esac
27679 # ??? Not all targets support dwarf2 debug_line, even within a version
27680 # of gas. Moreover, we need to emit a valid instruction to trigger any
27681 # info to the output file. So, as supported targets are added to gas 2.11,
27682 # add some instruction here to (also) show we expect this might work.
27683 # ??? Once 2.11 is released, probably need to add first known working
27684 # version to the per-target configury.
27685 case "$cpu_type" in
27686 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27687 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27688 | tilegx | tilepro | visium | xstormy16 | xtensa)
27689 insn="nop"
27691 ia64 | s390)
27692 insn="nop 0"
27694 mmix)
27695 insn="swym 0"
27697 esac
27698 if test x"$insn" != x; then
27699 conftest_s="\
27700 .file 1 \"conftest.s\"
27701 .loc 1 3 0
27702 $insn"
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27704 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27705 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
27706 $as_echo_n "(cached) " >&6
27707 else
27708 gcc_cv_as_dwarf2_debug_line=no
27709 if test $in_tree_gas = yes; then
27710 if test $in_tree_gas_is_elf = yes \
27711 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27712 then gcc_cv_as_dwarf2_debug_line=yes
27714 elif test x$gcc_cv_as != x; then
27715 $as_echo "$conftest_s" > conftest.s
27716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27718 (eval $ac_try) 2>&5
27719 ac_status=$?
27720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27721 test $ac_status = 0; }; }
27722 then
27723 if test x$gcc_cv_objdump != x \
27724 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27725 | grep debug_line > /dev/null 2>&1; then
27726 gcc_cv_as_dwarf2_debug_line=yes
27728 else
27729 echo "configure: failed program was" >&5
27730 cat conftest.s >&5
27732 rm -f conftest.o conftest.s
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27736 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27740 # The .debug_line file table must be in the exact order that
27741 # we specified the files, since these indices are also used
27742 # by DW_AT_decl_file. Approximate this test by testing if
27743 # the assembler bitches if the same index is assigned twice.
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27745 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27746 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
27747 $as_echo_n "(cached) " >&6
27748 else
27749 gcc_cv_as_dwarf2_file_buggy=no
27750 if test x$gcc_cv_as != x; then
27751 $as_echo ' .file 1 "foo.s"
27752 .file 1 "bar.s"' > conftest.s
27753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27755 (eval $ac_try) 2>&5
27756 ac_status=$?
27757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27758 test $ac_status = 0; }; }
27759 then
27760 gcc_cv_as_dwarf2_file_buggy=yes
27761 else
27762 echo "configure: failed program was" >&5
27763 cat conftest.s >&5
27765 rm -f conftest.o conftest.s
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27769 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27773 if test $gcc_cv_as_dwarf2_debug_line = yes \
27774 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27776 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27779 if test $gcc_cv_as_leb128 = yes; then
27780 conftest_s="\
27781 .file 1 \"conftest.s\"
27782 .loc 1 3 0 view .LVU1
27783 $insn
27784 .data
27785 .uleb128 .LVU1
27786 .uleb128 .LVU1
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27789 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27790 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
27791 $as_echo_n "(cached) " >&6
27792 else
27793 gcc_cv_as_dwarf2_debug_view=no
27794 if test $in_tree_gas = yes; then
27795 if test $in_tree_gas_is_elf = yes \
27796 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27797 then gcc_cv_as_dwarf2_debug_view=yes
27799 elif test x$gcc_cv_as != x; then
27800 $as_echo "$conftest_s" > conftest.s
27801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27803 (eval $ac_try) 2>&5
27804 ac_status=$?
27805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27806 test $ac_status = 0; }; }
27807 then
27808 gcc_cv_as_dwarf2_debug_view=yes
27809 else
27810 echo "configure: failed program was" >&5
27811 cat conftest.s >&5
27813 rm -f conftest.o conftest.s
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27817 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27818 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27820 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27828 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27829 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
27830 $as_echo_n "(cached) " >&6
27831 else
27832 gcc_cv_as_gdwarf2_flag=no
27833 if test $in_tree_gas = yes; then
27834 if test $in_tree_gas_is_elf = yes \
27835 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27836 then gcc_cv_as_gdwarf2_flag=yes
27838 elif test x$gcc_cv_as != x; then
27839 $as_echo "$insn" > conftest.s
27840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -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_gdwarf2_flag=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_gdwarf2_flag" >&5
27856 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27857 if test $gcc_cv_as_gdwarf2_flag = yes; then
27859 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27865 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27866 if ${gcc_cv_as_gstabs_flag+:} false; then :
27867 $as_echo_n "(cached) " >&6
27868 else
27869 gcc_cv_as_gstabs_flag=no
27870 if test $in_tree_gas = yes; then
27871 if test $in_tree_gas_is_elf = yes \
27872 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27873 then gcc_cv_as_gstabs_flag=yes
27875 elif test x$gcc_cv_as != x; then
27876 $as_echo "$insn" > conftest.s
27877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27879 (eval $ac_try) 2>&5
27880 ac_status=$?
27881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27882 test $ac_status = 0; }; }
27883 then
27884 gcc_cv_as_gstabs_flag=yes
27885 else
27886 echo "configure: failed program was" >&5
27887 cat conftest.s >&5
27889 rm -f conftest.o conftest.s
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27893 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27894 if test $gcc_cv_as_gstabs_flag = yes; then
27896 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27902 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27903 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
27904 $as_echo_n "(cached) " >&6
27905 else
27906 gcc_cv_as_debug_prefix_map_flag=no
27907 if test $in_tree_gas = yes; then
27908 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27909 then gcc_cv_as_debug_prefix_map_flag=yes
27911 elif test x$gcc_cv_as != x; then
27912 $as_echo "$insn" > conftest.s
27913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27915 (eval $ac_try) 2>&5
27916 ac_status=$?
27917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27918 test $ac_status = 0; }; }
27919 then
27920 gcc_cv_as_debug_prefix_map_flag=yes
27921 else
27922 echo "configure: failed program was" >&5
27923 cat conftest.s >&5
27925 rm -f conftest.o conftest.s
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27929 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27930 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27932 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27939 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27940 if ${gcc_cv_as_compress_debug+:} false; then :
27941 $as_echo_n "(cached) " >&6
27942 else
27943 gcc_cv_as_compress_debug=no
27944 if test x$gcc_cv_as != x; then
27945 $as_echo '' > conftest.s
27946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27948 (eval $ac_try) 2>&5
27949 ac_status=$?
27950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27951 test $ac_status = 0; }; }
27952 then
27953 # gas compiled without zlib cannot compress debug sections and warns
27954 # about it, but still exits successfully. So check for this, too.
27955 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27956 then
27957 gcc_cv_as_compress_debug=0
27958 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27959 # defaulting to the ELF gABI format.
27960 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27961 then
27962 gcc_cv_as_compress_debug=2
27963 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27964 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27965 # Before binutils 2.26, gas only supported --compress-debug-options and
27966 # emitted the traditional GNU format.
27967 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27968 then
27969 gcc_cv_as_compress_debug=1
27970 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27971 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27972 else
27973 gcc_cv_as_compress_debug=0
27975 else
27976 echo "configure: failed program was" >&5
27977 cat conftest.s >&5
27979 rm -f conftest.o conftest.s
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27983 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27987 cat >>confdefs.h <<_ACEOF
27988 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27989 _ACEOF
27992 cat >>confdefs.h <<_ACEOF
27993 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27994 _ACEOF
27997 cat >>confdefs.h <<_ACEOF
27998 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27999 _ACEOF
28002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28003 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28004 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28005 $as_echo_n "(cached) " >&6
28006 else
28007 gcc_cv_as_lcomm_with_alignment=no
28008 if test x$gcc_cv_as != x; then
28009 $as_echo '.lcomm bar,4,16' > conftest.s
28010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28012 (eval $ac_try) 2>&5
28013 ac_status=$?
28014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28015 test $ac_status = 0; }; }
28016 then
28017 gcc_cv_as_lcomm_with_alignment=yes
28018 else
28019 echo "configure: failed program was" >&5
28020 cat conftest.s >&5
28022 rm -f conftest.o conftest.s
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28026 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28027 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28029 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28034 if test x$with_sysroot = x && test x$host = x$target \
28035 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28036 && test "$prefix" != "NONE"; then
28038 cat >>confdefs.h <<_ACEOF
28039 #define PREFIX_INCLUDE_DIR "$prefix/include"
28040 _ACEOF
28044 # Determine the version of glibc, if any, used on the target.
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28046 $as_echo_n "checking for target glibc version... " >&6; }
28048 # Check whether --with-glibc-version was given.
28049 if test "${with_glibc_version+set}" = set; then :
28050 withval=$with_glibc_version;
28051 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28052 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28053 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28054 else
28055 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28057 else
28059 glibc_version_major=0
28060 glibc_version_minor=0
28061 if test -f $target_header_dir/features.h \
28062 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28063 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28064 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28065 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28070 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28072 cat >>confdefs.h <<_ACEOF
28073 #define TARGET_GLIBC_MAJOR $glibc_version_major
28074 _ACEOF
28077 cat >>confdefs.h <<_ACEOF
28078 #define TARGET_GLIBC_MINOR $glibc_version_minor
28079 _ACEOF
28082 # Check whether --enable-gnu-unique-object was given.
28083 if test "${enable_gnu_unique_object+set}" = set; then :
28084 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28085 yes | no) ;;
28086 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28087 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28088 esac
28089 else
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28091 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28092 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28093 $as_echo_n "(cached) " >&6
28094 else
28095 gcc_cv_as_gnu_unique_object=no
28096 if test $in_tree_gas = yes; then
28097 if test $in_tree_gas_is_elf = yes \
28098 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28099 then gcc_cv_as_gnu_unique_object=yes
28101 elif test x$gcc_cv_as != x; then
28102 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28105 (eval $ac_try) 2>&5
28106 ac_status=$?
28107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28108 test $ac_status = 0; }; }
28109 then
28110 gcc_cv_as_gnu_unique_object=yes
28111 else
28112 echo "configure: failed program was" >&5
28113 cat conftest.s >&5
28115 rm -f conftest.o conftest.s
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28119 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28120 if test $gcc_cv_as_gnu_unique_object = yes; then
28121 # We need to unquote above to to use the definition from config.gcc.
28122 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28124 if test $glibc_version_major -gt 2 \
28125 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28126 enable_gnu_unique_object=yes
28133 if test x$enable_gnu_unique_object = xyes; then
28135 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28140 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28141 if ${gcc_cv_as_line_zero+:} false; then :
28142 $as_echo_n "(cached) " >&6
28143 else
28144 gcc_cv_as_line_zero=no
28145 if test $in_tree_gas = yes; then
28146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28147 then gcc_cv_as_line_zero=yes
28149 elif test "x$gcc_cv_as" != x; then
28150 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28151 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28153 (eval $ac_try) 2>&5
28154 ac_status=$?
28155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28156 test $ac_status = 0; }; } &&
28157 test "x`cat conftest.out`" = x
28158 then
28159 gcc_cv_as_line_zero=yes
28160 else
28161 echo "configure: failed program was" >&5
28162 cat conftest.s >&5
28163 echo "configure: error output was" >&5
28164 cat conftest.out >&5
28166 rm -f conftest.o conftest.s conftest.out
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28170 $as_echo "$gcc_cv_as_line_zero" >&6; }
28171 if test "x$gcc_cv_as_line_zero" = xyes; then
28173 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28178 $as_echo_n "checking support for thin archives... " >&6; }
28179 thin_archive_support=no
28180 echo 'int main (void) { return 0; }' > conftest.c
28181 if ($AR --version | sed 1q | grep "GNU ar" \
28182 && $CC $CFLAGS -c conftest.c \
28183 && $AR rcT conftest.a conftest.o \
28184 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28185 thin_archive_support=yes
28187 rm -f conftest.c conftest.o conftest.a conftest
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28189 $as_echo "$thin_archive_support" >&6; }
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28193 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28194 gcc_cv_ld_eh_frame_hdr=no
28195 if test $in_tree_ld = yes ; then
28196 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 \
28197 && test $in_tree_ld_is_elf = yes; then
28198 gcc_cv_ld_eh_frame_hdr=yes
28200 elif test x$gcc_cv_ld != x; then
28201 if echo "$ld_ver" | grep GNU > /dev/null; then
28202 # Check if linker supports --eh-frame-hdr option
28203 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28204 gcc_cv_ld_eh_frame_hdr=yes
28206 else
28207 case "$target" in
28208 *-*-solaris2*)
28209 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28210 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28211 gcc_cv_ld_eh_frame_hdr=yes
28214 esac
28218 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28220 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28224 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28227 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28228 gcc_cv_ld_eh_frame_ciev3=no
28229 if test $in_tree_ld = yes ; then
28230 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 \
28231 && test $in_tree_ld_is_elf = yes; then
28232 gcc_cv_ld_eh_frame_ciev3=yes
28234 elif test x$gcc_cv_ld != x; then
28235 if echo "$ld_ver" | grep GNU > /dev/null; then
28236 gcc_cv_ld_eh_frame_ciev3=yes
28237 if test 0"$ld_date" -lt 20040513; then
28238 if test -n "$ld_date"; then
28239 # If there was date string, but was earlier than 2004-05-13, fail
28240 gcc_cv_ld_eh_frame_ciev3=no
28241 elif test "$ld_vers_major" -lt 2; then
28242 gcc_cv_ld_eh_frame_ciev3=no
28243 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28244 gcc_cv_ld_eh_frame_ciev3=no
28247 else
28248 case "$target" in
28249 *-*-solaris2*)
28250 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28251 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28252 gcc_cv_ld_eh_frame_ciev3=yes
28255 esac
28259 cat >>confdefs.h <<_ACEOF
28260 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28261 _ACEOF
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28264 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28267 $as_echo_n "checking linker position independent executable support... " >&6; }
28268 gcc_cv_ld_pie=no
28269 if test $in_tree_ld = yes ; then
28270 case "$target" in
28271 # Full PIE support on Solaris was only introduced in gld 2.26.
28272 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28273 *) gcc_gld_pie_min_version=15 ;;
28274 esac
28275 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 \
28276 && test $in_tree_ld_is_elf = yes; then
28277 gcc_cv_ld_pie=yes
28279 elif test x$gcc_cv_ld != x; then
28280 # Check if linker supports -pie option
28281 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28282 gcc_cv_ld_pie=yes
28283 case "$target" in
28284 *-*-solaris2*)
28285 if echo "$ld_ver" | grep GNU > /dev/null \
28286 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28287 gcc_cv_ld_pie=no
28290 esac
28291 else
28292 case "$target" in
28293 *-*-solaris2.1[1-9]*)
28294 # Solaris 11.3 added PIE support.
28295 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28296 gcc_cv_ld_pie=yes
28299 esac
28302 if test x"$gcc_cv_ld_pie" = xyes; then
28304 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28308 $as_echo "$gcc_cv_ld_pie" >&6; }
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28311 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28312 gcc_cv_ld_pie_copyreloc=no
28313 if test $gcc_cv_ld_pie = yes ; then
28314 if test $in_tree_ld = yes ; then
28315 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
28316 gcc_cv_ld_pie_copyreloc=yes
28318 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28319 # Check if linker supports -pie option with copy reloc
28320 case "$target" in
28321 i?86-*-linux* | x86_64-*-linux*)
28322 cat > conftest1.s <<EOF
28323 .globl a_glob
28324 .data
28325 .type a_glob, @object
28326 .size a_glob, 4
28327 a_glob:
28328 .long 2
28330 cat > conftest2.s <<EOF
28331 .text
28332 .globl main
28333 .type main, @function
28334 main:
28335 movl %eax, a_glob(%rip)
28336 .size main, .-main
28337 .globl ptr
28338 .section .data.rel,"aw",@progbits
28339 .type ptr, @object
28340 ptr:
28341 .quad a_glob
28343 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28344 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28345 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28346 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28347 gcc_cv_ld_pie_copyreloc=yes
28349 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28351 esac
28355 cat >>confdefs.h <<_ACEOF
28356 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28357 _ACEOF
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28360 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28363 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28364 gcc_cv_ld_eh_gc_sections=no
28365 if test $in_tree_ld = yes ; then
28366 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 \
28367 && test $in_tree_ld_is_elf = yes; then
28368 gcc_cv_ld_eh_gc_sections=yes
28370 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28371 cat > conftest.s <<EOF
28372 .section .text
28373 .globl _start
28374 .type _start, @function
28375 _start:
28376 .long foo
28377 .size _start, .-_start
28378 .section .text.foo,"ax",@progbits
28379 .type foo, @function
28380 foo:
28381 .long 0
28382 .size foo, .-foo
28383 .section .gcc_except_table.foo,"a",@progbits
28384 .L0:
28385 .long 0
28386 .section .eh_frame,"a",@progbits
28387 .long .L0
28389 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28390 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28391 | grep "gc-sections option ignored" > /dev/null; then
28392 gcc_cv_ld_eh_gc_sections=no
28393 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28394 | grep gcc_except_table > /dev/null; then
28395 gcc_cv_ld_eh_gc_sections=yes
28396 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28397 if test x$gcc_cv_as_comdat_group != xyes; then
28398 gcc_cv_ld_eh_gc_sections=no
28399 cat > conftest.s <<EOF
28400 .section .text
28401 .globl _start
28402 .type _start, @function
28403 _start:
28404 .long foo
28405 .size _start, .-_start
28406 .section .gnu.linkonce.t.foo,"ax",@progbits
28407 .type foo, @function
28408 foo:
28409 .long 0
28410 .size foo, .-foo
28411 .section .gcc_except_table.foo,"a",@progbits
28412 .L0:
28413 .long 0
28414 .section .eh_frame,"a",@progbits
28415 .long .L0
28417 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28418 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28419 | grep "gc-sections option ignored" > /dev/null; then
28420 gcc_cv_ld_eh_gc_sections=no
28421 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28422 | grep gcc_except_table > /dev/null; then
28423 gcc_cv_ld_eh_gc_sections=yes
28429 rm -f conftest.s conftest.o conftest
28431 case "$target" in
28432 hppa*-*-linux*)
28433 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28434 gcc_cv_ld_eh_gc_sections=no
28436 esac
28437 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28439 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28443 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28446 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28447 gcc_cv_ld_eh_gc_sections_bug=no
28448 if test $in_tree_ld = yes ; then
28449 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 \
28450 && test $in_tree_ld_is_elf = yes; then
28451 gcc_cv_ld_eh_gc_sections_bug=yes
28453 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
28454 gcc_cv_ld_eh_gc_sections_bug=yes
28455 cat > conftest.s <<EOF
28456 .section .text
28457 .globl _start
28458 .type _start, @function
28459 _start:
28460 .long foo
28461 .size _start, .-_start
28462 .section .text.startup.foo,"ax",@progbits
28463 .type foo, @function
28464 foo:
28465 .long 0
28466 .size foo, .-foo
28467 .section .gcc_except_table.foo,"a",@progbits
28468 .L0:
28469 .long 0
28470 .section .eh_frame,"a",@progbits
28471 .long .L0
28473 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28474 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28475 | grep "gc-sections option ignored" > /dev/null; then
28477 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28478 | grep gcc_except_table > /dev/null; then
28479 gcc_cv_ld_eh_gc_sections_bug=no
28482 rm -f conftest.s conftest.o conftest
28484 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28486 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28490 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28493 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28494 # gold/gld support compressed debug sections since binutils 2.19/2.21
28495 # In binutils 2.26, gld gained support for the ELF gABI format.
28496 if test $in_tree_ld = yes ; then
28497 gcc_cv_ld_compress_debug=0
28498 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 \
28499 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28500 gcc_cv_ld_compress_debug=2
28501 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28502 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 \
28503 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28504 gcc_cv_ld_compress_debug=3
28505 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28506 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 \
28507 && test $in_tree_ld_is_elf = yes; then
28508 gcc_cv_ld_compress_debug=1
28510 elif echo "$ld_ver" | grep GNU > /dev/null; then
28511 if test "$ld_vers_major" -lt 2 \
28512 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28513 gcc_cv_ld_compress_debug=0
28514 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28515 gcc_cv_ld_compress_debug=1
28516 else
28517 gcc_cv_ld_compress_debug=3
28518 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28520 if test $ld_is_gold = yes; then
28521 gcc_cv_ld_compress_debug=2
28522 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28524 else
28525 case "${target}" in
28526 *-*-solaris2*)
28527 # Introduced in Solaris 11.2.
28528 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28529 gcc_cv_ld_compress_debug=3
28530 gcc_cv_ld_compress_debug_option="-z compress-sections"
28531 else
28532 gcc_cv_ld_compress_debug=0
28536 # Assume linkers other than GNU ld don't support compessed debug
28537 # sections.
28538 gcc_cv_ld_compress_debug=0
28540 esac
28543 cat >>confdefs.h <<_ACEOF
28544 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28545 _ACEOF
28548 cat >>confdefs.h <<_ACEOF
28549 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28550 _ACEOF
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28553 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28555 if test x"$ld64_flag" = x"yes"; then
28557 # Set defaults for possibly untestable items.
28558 gcc_cv_ld64_export_dynamic=0
28560 if test "$build" = "$host"; then
28561 darwin_try_test=1
28562 else
28563 darwin_try_test=0
28566 # On Darwin, because of FAT library support, it is often possible to execute
28567 # exes from compatible archs even when the host differs from the build system.
28568 case "$build","$host" in
28569 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28570 darwin_try_test=1;;
28571 *) ;;
28572 esac
28574 # If the configurer specified a minimum ld64 version to be supported, then use
28575 # that to determine feature support.
28576 if test x"${gcc_cv_ld64_version}" != x; then
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28578 $as_echo_n "checking ld64 specified version... " >&6; }
28579 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28581 $as_echo "$gcc_cv_ld64_major" >&6; }
28582 if test "$gcc_cv_ld64_major" -ge 236; then
28583 gcc_cv_ld64_export_dynamic=1
28585 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28586 # If the version was not specified, try to find it.
28587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28588 $as_echo_n "checking linker version... " >&6; }
28589 if test x"${gcc_cv_ld64_version}" = x; then
28590 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28593 $as_echo "$gcc_cv_ld64_version" >&6; }
28595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28596 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28597 gcc_cv_ld64_export_dynamic=1
28598 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28599 gcc_cv_ld64_export_dynamic=0
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28602 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28605 if test x"${gcc_cv_ld64_version}" != x; then
28607 cat >>confdefs.h <<_ACEOF
28608 #define LD64_VERSION "${gcc_cv_ld64_version}"
28609 _ACEOF
28614 cat >>confdefs.h <<_ACEOF
28615 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28616 _ACEOF
28620 # --------
28621 # UNSORTED
28622 # --------
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28625 $as_echo_n "checking linker --as-needed support... " >&6; }
28626 if ${gcc_cv_ld_as_needed+:} false; then :
28627 $as_echo_n "(cached) " >&6
28628 else
28629 gcc_cv_ld_as_needed=no
28630 gcc_cv_ld_as_needed_option='--as-needed'
28631 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28632 if test $in_tree_ld = yes ; then
28633 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 \
28634 && test $in_tree_ld_is_elf = yes; then
28635 gcc_cv_ld_as_needed=yes
28636 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28637 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28638 gcc_cv_ld_no_as_needed_option='--pop-state'
28641 elif test x$gcc_cv_ld != x; then
28642 # Check if linker supports --as-needed and --no-as-needed options
28643 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28644 gcc_cv_ld_as_needed=yes
28645 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28646 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28647 && echo "$ld_ver" | grep GNU > /dev/null \
28648 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28649 # Use these options only when both ld.bfd and ld.gold support
28650 # --push-state/--pop-state, which unfortunately wasn't added
28651 # at the same time.
28652 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28653 gcc_cv_ld_no_as_needed_option='--pop-state'
28656 case "$target:$gnu_ld" in
28657 *-*-solaris2*:no)
28658 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28659 # forms.
28660 gcc_cv_ld_as_needed=yes
28661 gcc_cv_ld_as_needed_option="-z ignore"
28662 gcc_cv_ld_no_as_needed_option="-z record"
28664 esac
28666 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28667 # dl_iterate_phdr, i.e. since Solaris 11.
28668 case "$target" in
28669 *-*-solaris2.1[1-9]*)
28670 case "$target" in
28671 i?86-*-* | x86_64-*-*)
28672 if echo "$ld_ver" | grep GNU > /dev/null; then
28673 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28674 gcc_cv_ld_as_needed=no
28677 esac
28679 *-*-solaris2*)
28680 gcc_cv_ld_as_needed=no
28682 esac
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28686 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28687 if test x"$gcc_cv_ld_as_needed" = xyes; then
28689 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28692 cat >>confdefs.h <<_ACEOF
28693 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28694 _ACEOF
28697 cat >>confdefs.h <<_ACEOF
28698 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28699 _ACEOF
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28704 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28705 saved_LDFLAGS="$LDFLAGS"
28706 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28707 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28709 /* end confdefs.h. */
28710 int main(void) {return 0;}
28711 _ACEOF
28712 if ac_fn_cxx_try_link "$LINENO"; then :
28713 gcc_cv_ld_clearcap=yes; break
28714 else
28715 gcc_cv_ld_clearcap=no
28717 rm -f core conftest.err conftest.$ac_objext \
28718 conftest$ac_exeext conftest.$ac_ext
28719 done
28720 LDFLAGS="$saved_LDFLAGS"
28721 if test "x$gcc_cv_ld_clearcap" = xyes; then
28723 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28725 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28729 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28731 case "$target" in
28732 powerpc*-*-*)
28733 case "$target" in
28734 *le-*-linux*)
28735 emul_name="-melf32lppc"
28738 emul_name="-melf32ppc"
28740 esac
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28742 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28743 if ${gcc_cv_ld_ppc_attr+:} false; then :
28744 $as_echo_n "(cached) " >&6
28745 else
28746 gcc_cv_ld_ppc_attr=no
28747 if test x"$ld_is_gold" = xyes; then
28748 gcc_cv_ld_ppc_attr=yes
28749 elif test $in_tree_ld = yes ; then
28750 if test "$gcc_cv_gld_major_version" -eq 2 \
28751 -a "$gcc_cv_gld_minor_version" -ge 28 \
28752 -o "$gcc_cv_gld_major_version" -gt 2; then
28753 gcc_cv_ld_ppc_attr=yes
28755 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28756 # check that merging the long double .gnu_attribute doesn't warn
28757 cat > conftest1.s <<EOF
28758 .gnu_attribute 4,1
28760 cat > conftest2.s <<EOF
28761 .gnu_attribute 4,9
28763 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28764 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28765 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28766 && test ! -s conftest.err; then
28767 gcc_cv_ld_ppc_attr=yes
28769 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28774 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28775 if test x$gcc_cv_ld_ppc_attr = xyes; then
28777 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28781 esac
28783 case "$target:$tm_file" in
28784 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28785 case "$target" in
28786 *le-*-linux*)
28787 emul_name="-melf64lppc"
28789 *-*-linux*)
28790 emul_name="-melf64ppc"
28792 *-*-freebsd*)
28793 emul_name="-melf64ppc_fbsd"
28795 esac
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28797 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28798 if ${gcc_cv_ld_no_dot_syms+:} false; then :
28799 $as_echo_n "(cached) " >&6
28800 else
28801 gcc_cv_ld_no_dot_syms=no
28802 if test x"$ld_is_gold" = xyes; then
28803 gcc_cv_ld_no_dot_syms=yes
28804 elif test $in_tree_ld = yes ; then
28805 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
28806 gcc_cv_ld_no_dot_syms=yes
28808 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28809 cat > conftest1.s <<EOF
28810 .text
28811 bl .foo
28813 cat > conftest2.s <<EOF
28814 .section ".opd","aw"
28815 .align 3
28816 .globl foo
28817 .type foo,@function
28818 foo:
28819 .quad .LEfoo,.TOC.@tocbase,0
28820 .text
28821 .LEfoo:
28823 .size foo,.-.LEfoo
28825 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28826 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28827 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28828 gcc_cv_ld_no_dot_syms=yes
28830 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28835 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28836 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28838 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28843 $as_echo_n "checking linker large toc support... " >&6; }
28844 if ${gcc_cv_ld_large_toc+:} false; then :
28845 $as_echo_n "(cached) " >&6
28846 else
28847 gcc_cv_ld_large_toc=no
28848 if test x"$ld_is_gold" = xyes; then
28849 gcc_cv_ld_large_toc=yes
28850 elif test $in_tree_ld = yes ; then
28851 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
28852 gcc_cv_ld_large_toc=yes
28854 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28855 cat > conftest.s <<EOF
28856 .section ".tbss","awT",@nobits
28857 .align 3
28858 ie0: .space 8
28859 .global _start
28860 .text
28861 _start:
28862 addis 9,13,ie0@got@tprel@ha
28863 ld 9,ie0@got@tprel@l(9)
28865 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28866 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28867 gcc_cv_ld_large_toc=yes
28869 rm -f conftest conftest.o conftest.s
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28874 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28875 if test x"$gcc_cv_ld_large_toc" = xyes; then
28877 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28882 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28883 if ${gcc_cv_ld_toc_align+:} false; then :
28884 $as_echo_n "(cached) " >&6
28885 else
28886 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28887 cat > conftest.s <<EOF
28888 .global _start
28889 .text
28890 _start:
28891 addis 9,2,x@got@ha
28892 .section .data.rel.ro,"aw",@progbits
28893 .p2align 16
28894 .space 32768
28895 x: .quad .TOC.
28897 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28898 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28899 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)) }'`
28901 rm -f conftest conftest.o conftest.s
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28906 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28907 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28909 cat >>confdefs.h <<_ACEOF
28910 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28911 _ACEOF
28915 esac
28917 case "$target" in
28918 *-*-aix*)
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28920 $as_echo_n "checking linker large toc support... " >&6; }
28921 if ${gcc_cv_ld_large_toc+:} false; then :
28922 $as_echo_n "(cached) " >&6
28923 else
28924 gcc_cv_ld_large_toc=no
28925 if test x$gcc_cv_as != x ; then
28926 cat > conftest.s <<EOF
28927 .toc
28928 LC..1:
28929 .tc a[TC],a[RW]
28930 .extern a[RW]
28931 .csect .text[PR]
28932 .largetoctest:
28933 addis 9,LC..1@u(2)
28934 ld 3,LC..1@l(9)
28936 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28937 gcc_cv_ld_large_toc=yes
28939 rm -f conftest conftest.o conftest.s
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28944 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28945 if test x"$gcc_cv_ld_large_toc" = xyes; then
28947 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28951 esac
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28954 $as_echo_n "checking linker --build-id support... " >&6; }
28955 if ${gcc_cv_ld_buildid+:} false; then :
28956 $as_echo_n "(cached) " >&6
28957 else
28958 gcc_cv_ld_buildid=no
28959 if test $in_tree_ld = yes ; then
28960 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28961 "$gcc_cv_gld_minor_version" -ge 18 -o \
28962 "$gcc_cv_gld_major_version" -gt 2 \
28963 && test $in_tree_ld_is_elf = yes; then
28964 gcc_cv_ld_buildid=yes
28966 elif test x$gcc_cv_ld != x; then
28967 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
28968 gcc_cv_ld_buildid=yes
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28973 $as_echo "$gcc_cv_ld_buildid" >&6; }
28974 if test x"$gcc_cv_ld_buildid" = xyes; then
28976 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28980 # Check whether --enable-linker-build-id was given.
28981 if test "${enable_linker_build_id+set}" = set; then :
28982 enableval=$enable_linker_build_id;
28983 else
28984 enable_linker_build_id=no
28988 if test x"$enable_linker_build_id" = xyes; then
28989 if test x"$gcc_cv_ld_buildid" = xyes; then
28991 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28993 else
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28995 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28999 # In binutils 2.21, GNU ld gained support for new emulations fully
29000 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29002 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29003 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29004 $as_echo_n "(cached) " >&6
29005 else
29006 gcc_cv_ld_sol2_emulation=no
29007 if test $in_tree_ld = yes ; then
29008 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29009 "$gcc_cv_gld_minor_version" -ge 21 -o \
29010 "$gcc_cv_gld_major_version" -gt 2 \
29011 && test $in_tree_ld_is_elf = yes; then
29012 gcc_cv_ld_sol2_emulation=yes
29014 elif test x$gcc_cv_ld != x; then
29015 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29016 grep _sol2 > /dev/null; then
29017 gcc_cv_ld_sol2_emulation=yes
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29022 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29023 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29025 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29030 $as_echo_n "checking linker --sysroot support... " >&6; }
29031 if ${gcc_cv_ld_sysroot+:} false; then :
29032 $as_echo_n "(cached) " >&6
29033 else
29034 gcc_cv_ld_sysroot=no
29035 if test $in_tree_ld = yes ; then
29036 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
29037 gcc_cv_ld_sysroot=yes
29039 elif test x$gcc_cv_ld != x; then
29040 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29041 gcc_cv_ld_sysroot=yes
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29046 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29047 if test x"$gcc_cv_ld_sysroot" = xyes; then
29049 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29053 case $target in
29054 *-*-solaris2*)
29055 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29057 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29058 if ${gcc_cv_solaris_crts+:} false; then :
29059 $as_echo_n "(cached) " >&6
29060 else
29061 gcc_cv_solaris_crts=no
29062 if test x$host != x$target; then
29063 if test "x$with_sysroot" = xyes; then
29064 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29065 else
29066 target_sysroot="${with_sysroot}"
29069 target_libdir="$target_sysroot/usr/lib"
29070 # At the time they were added, gcrt1.o became a symlink for backwards
29071 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29072 case $target in
29073 i?86-*-solaris2* | x86_64-*-solaris2*)
29074 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29076 sparc*-*-solaris2*)
29077 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29079 esac
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29082 $as_echo "$gcc_cv_solaris_crts" >&6; }
29084 esac
29085 if test x$gcc_cv_solaris_crts = xyes; then
29087 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29091 # Check whether --enable-libssp was given.
29092 if test "${enable_libssp+set}" = set; then :
29093 enableval=$enable_libssp; case "${enableval}" in
29094 yes|no)
29097 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29099 esac
29103 # Test for stack protector support in target C library.
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29105 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29106 if ${gcc_cv_libc_provides_ssp+:} false; then :
29107 $as_echo_n "(cached) " >&6
29108 else
29109 gcc_cv_libc_provides_ssp=no
29110 if test "x$enable_libssp" = "xno"; then
29111 gcc_cv_libc_provides_ssp=yes
29112 elif test "x$enable_libssp" = "xyes"; then
29113 gcc_cv_libc_provides_ssp=no
29114 else
29115 case "$target" in
29116 *-*-musl*)
29117 # All versions of musl provide stack protector
29118 gcc_cv_libc_provides_ssp=yes;;
29119 *-*-linux* | *-*-kfreebsd*-gnu)
29120 # glibc 2.4 and later provides __stack_chk_fail and
29121 # either __stack_chk_guard, or TLS access to stack guard canary.
29123 if test $glibc_version_major -gt 2 \
29124 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29125 gcc_cv_libc_provides_ssp=yes
29126 else
29128 if test -f $target_header_dir/features.h \
29129 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29130 $target_header_dir/features.h > /dev/null; then
29131 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29132 $target_header_dir/features.h > /dev/null && \
29133 test -f $target_header_dir/bits/uClibc_config.h && \
29134 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29135 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29136 gcc_cv_libc_provides_ssp=yes
29138 # all versions of Bionic support stack protector
29139 elif test -f $target_header_dir/sys/cdefs.h \
29140 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29141 $target_header_dir/sys/cdefs.h > /dev/null; then
29142 gcc_cv_libc_provides_ssp=yes
29146 *-*-gnu*)
29147 # Avoid complicated tests (see
29148 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29149 # simply assert that glibc does provide this, which is true for all
29150 # realistically usable GNU/Hurd configurations.
29151 # All supported versions of musl provide it as well
29152 gcc_cv_libc_provides_ssp=yes;;
29153 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29154 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29155 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29156 gcc_cv_libc_provides_ssp=yes
29157 else
29158 echo "no __stack_chk_fail on this target"
29162 *) gcc_cv_libc_provides_ssp=no ;;
29163 esac
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29167 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29169 if test x$gcc_cv_libc_provides_ssp = xyes; then
29171 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29175 # Check whether --enable-default-ssp was given.
29176 # Check whether --enable-default-ssp was given.
29177 if test "${enable_default_ssp+set}" = set; then :
29178 enableval=$enable_default_ssp;
29179 if test x$gcc_cv_libc_provides_ssp = xyes; then
29180 case "$target" in
29181 ia64*-*-*) enable_default_ssp=no ;;
29182 *) enable_default_ssp=$enableval ;;
29183 esac
29184 else
29185 enable_default_ssp=no
29187 else
29188 enable_default_ssp=no
29191 if test x$enable_default_ssp = xyes ; then
29193 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29198 # Test for <sys/sdt.h> on the target.
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29201 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29202 have_sys_sdt_h=no
29203 if test -f $target_header_dir/sys/sdt.h; then
29204 have_sys_sdt_h=yes
29206 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29210 $as_echo "$have_sys_sdt_h" >&6; }
29212 # Check if TFmode long double should be used by default or not.
29213 # Some glibc targets used DFmode long double, but with glibc 2.4
29214 # and later they can use TFmode.
29215 case "$target" in
29216 powerpc*-*-linux* | \
29217 sparc*-*-linux* | \
29218 s390*-*-linux* | \
29219 alpha*-*-linux*)
29221 # Check whether --with-long-double-128 was given.
29222 if test "${with_long_double_128+set}" = set; then :
29223 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29224 else
29226 if test $glibc_version_major -gt 2 \
29227 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29228 gcc_cv_target_ldbl128=yes
29229 else
29231 gcc_cv_target_ldbl128=no
29232 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29233 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29234 && gcc_cv_target_ldbl128=yes
29240 esac
29241 if test x$gcc_cv_target_ldbl128 = xyes; then
29243 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29247 # Check if TFmode long double target should use the IBM extended double or IEEE
29248 # 128-bit floating point formats if long doubles are 128-bits long. The long
29249 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29250 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29251 # libgcc.
29253 # Check whether --with-long-double-format was given.
29254 if test "${with_long_double_format+set}" = set; then :
29255 withval=$with_long_double_format;
29256 case "$target:$with_long_double_format" in
29257 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29260 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29261 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29262 case "$with_cpu" in
29263 power7 | power8 | power9 | power1*)
29267 as_fn_error $? "Configuration option --with-long-double-format is only \
29268 supported if the default cpu is power7 or newer" "$LINENO" 5
29269 with_long_double_format=""
29271 esac
29273 xpowerpc64*-*-linux*:*)
29274 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29275 with_long_double_format=""
29278 as_fn_error $? "Configure option --with-long-double-format is only supported \
29279 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29280 with_long_double_format=""
29282 esac
29286 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29287 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29288 gcc_cv_libc_provides_hwcap_in_tcb=no
29289 case "$target" in
29290 powerpc*-*-linux*)
29292 if test $glibc_version_major -gt 2 \
29293 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29294 gcc_cv_libc_provides_hwcap_in_tcb=yes
29297 esac
29298 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29300 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29305 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29306 gcc_cv_target_dl_iterate_phdr=unknown
29307 case "$target" in
29308 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29309 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29310 # libdl there, both complicating its use and breaking compatibility
29311 # between Solaris 10 updates.
29312 *-*-solaris2.1[1-9]*)
29313 # <link.h> needs both a dl_iterate_phdr declaration and support for
29314 # compilation with largefile support.
29315 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29316 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29317 gcc_cv_target_dl_iterate_phdr=yes
29318 else
29319 gcc_cv_target_dl_iterate_phdr=no
29322 *-*-dragonfly* | *-*-freebsd*)
29323 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29324 gcc_cv_target_dl_iterate_phdr=yes
29325 else
29326 gcc_cv_target_dl_iterate_phdr=no
29329 *-linux-musl*)
29330 gcc_cv_target_dl_iterate_phdr=yes
29332 esac
29334 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29336 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29340 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29342 # We no longer support different GC mechanisms. Emit an error if
29343 # the user configures with --with-gc.
29345 # Check whether --with-gc was given.
29346 if test "${with_gc+set}" = set; then :
29347 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29351 # Libraries to use on the host. This will normally be set by the top
29352 # level Makefile. Here we simply capture the value for our Makefile.
29353 if test -z "${HOST_LIBS+set}"; then
29354 HOST_LIBS=
29358 # Use the system's zlib library.
29360 # Use the system's zlib library.
29361 zlibdir="-L\$(top_builddir)/../zlib"
29362 zlibinc="-I\$(top_srcdir)/../zlib"
29364 # Check whether --with-system-zlib was given.
29365 if test "${with_system_zlib+set}" = set; then :
29366 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29367 zlibdir=
29368 zlibinc=
29378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29379 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29380 # Check whether --enable-maintainer-mode was given.
29381 if test "${enable_maintainer_mode+set}" = set; then :
29382 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29383 else
29384 maintainer_mode=no
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29389 $as_echo "$maintainer_mode" >&6; }
29391 if test "$maintainer_mode" = "yes"; then
29392 MAINT=''
29393 else
29394 MAINT='#'
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29399 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29400 # Check whether --enable-link-mutex was given.
29401 if test "${enable_link_mutex+set}" = set; then :
29402 enableval=$enable_link_mutex; do_link_mutex=$enableval
29403 else
29404 do_link_mutex=no
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29408 $as_echo "$do_link_mutex" >&6; }
29410 if test "$do_link_mutex" = "yes"; then
29411 DO_LINK_MUTEX=true
29412 else
29413 DO_LINK_MUTEX=false
29417 # --------------
29418 # Language hooks
29419 # --------------
29421 # Make empty files to contain the specs and options for each language.
29422 # Then add #include lines to for a compiler that has specs and/or options.
29424 subdirs=
29425 lang_opt_files=
29426 lang_specs_files=
29427 lang_tree_files=
29428 # These (without "all_") are set in each config-lang.in.
29429 # `language' must be a single word so is spelled singularly.
29430 all_languages=
29431 all_compilers=
29432 all_outputs='Makefile'
29433 # List of language makefile fragments.
29434 all_lang_makefrags=
29435 # Additional files for gengtype
29436 all_gtfiles="$target_gtfiles"
29438 # These are the languages that are set in --enable-languages,
29439 # and are available in the GCC tree.
29440 all_selected_languages=
29442 # Add the language fragments.
29443 # Languages are added via two mechanisms. Some information must be
29444 # recorded in makefile variables, these are defined in config-lang.in.
29445 # We accumulate them and plug them into the main Makefile.
29446 # The other mechanism is a set of hooks for each of the main targets
29447 # like `clean', `install', etc.
29449 language_hooks="Make-hooks"
29451 for lang in ${srcdir}/*/config-lang.in
29453 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29455 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29456 if test "x$lang_alias" = x
29457 then
29458 echo "$lang doesn't set \$language." 1>&2
29459 exit 1
29461 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29462 subdirs="$subdirs $subdir"
29464 # $gcc_subdir is where the gcc integration files are to be found
29465 # for a language, both for internal compiler purposes (compiler
29466 # sources implementing front-end to GCC tree converters), and for
29467 # build infrastructure purposes (Make-lang.in, etc.)
29469 # This will be <subdir> (relative to $srcdir) if a line like
29470 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29471 # is found in <langdir>/config-lang.in, and will remain <langdir>
29472 # otherwise.
29474 # Except for the language alias (fetched above), the regular
29475 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29476 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29477 # only this and the language alias.
29479 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29480 if [ "$gcc_subdir" = "" ]; then
29481 gcc_subdir="$subdir"
29484 case ",$enable_languages," in
29485 *,$lang_alias,*)
29486 all_selected_languages="$all_selected_languages $lang_alias"
29487 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29488 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29491 esac
29493 language=
29494 boot_language=
29495 compilers=
29496 outputs=
29497 gtfiles=
29498 subdir_requires=
29499 . ${srcdir}/$gcc_subdir/config-lang.in
29500 if test "x$language" = x
29501 then
29502 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29503 exit 1
29506 ok=:
29507 case ",$enable_languages," in
29508 *,$lang_alias,*) ;;
29510 for i in $subdir_requires; do
29511 test -f "${srcdir}/$i/config-lang.in" && continue
29512 ok=false
29513 break
29514 done
29516 esac
29517 $ok || continue
29519 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29520 if test -f $srcdir/$gcc_subdir/lang.opt; then
29521 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29522 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29524 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29525 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29527 all_languages="$all_languages $language"
29528 all_compilers="$all_compilers $compilers"
29529 all_outputs="$all_outputs $outputs"
29530 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29531 case ",$enable_languages," in
29532 *,lto,*)
29534 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29536 enable_lto=yes
29539 *) ;;
29540 esac
29541 done
29543 check_languages=
29544 for language in $all_selected_languages
29546 check_languages="$check_languages check-$language"
29547 done
29549 selftest_languages=
29550 for language in $all_selected_languages
29552 selftest_languages="$selftest_languages selftest-$language"
29553 done
29555 # We link each language in with a set of hooks, reached indirectly via
29556 # lang.${target}. Only do so for selected languages.
29558 rm -f Make-hooks
29559 touch Make-hooks
29560 target_list="all.cross start.encap rest.encap tags \
29561 install-common install-man install-info install-pdf install-html dvi \
29562 pdf html uninstall info man srcextra srcman srcinfo \
29563 mostlyclean clean distclean maintainer-clean install-plugin"
29565 for t in $target_list
29568 for lang in $all_selected_languages
29570 x="$x $lang.$t"
29571 done
29572 echo "lang.$t: $x" >> Make-hooks
29573 done
29575 # --------
29576 # Option include files
29577 # --------
29579 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29580 option_includes="option-includes.mk"
29583 # --------
29584 # UNSORTED
29585 # --------
29587 # Create .gdbinit.
29589 echo "dir ." > .gdbinit
29590 echo "dir ${srcdir}" >> .gdbinit
29591 if test x$gdb_needs_out_file_path = xyes
29592 then
29593 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29595 if test "x$subdirs" != x; then
29596 for s in $subdirs
29598 echo "dir ${srcdir}/$s" >> .gdbinit
29599 done
29601 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29602 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29604 # Put a breakpoint on __asan_report_error to help with debugging buffer
29605 # overflow.
29606 case "$CFLAGS" in
29607 *-fsanitize=address*)
29608 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29610 esac
29612 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29616 # Find a directory in which to install a shared libgcc.
29618 # Check whether --enable-version-specific-runtime-libs was given.
29619 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29620 enableval=$enable_version_specific_runtime_libs;
29624 # Substitute configuration variables
29691 # Echo link setup.
29692 if test x${build} = x${host} ; then
29693 if test x${host} = x${target} ; then
29694 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29695 else
29696 echo "Links are now set up to build a cross-compiler" 1>&2
29697 echo " from ${host} to ${target}." 1>&2
29699 else
29700 if test x${host} = x${target} ; then
29701 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29702 echo " for ${target}." 1>&2
29703 else
29704 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29705 echo " from ${host} to ${target}." 1>&2
29714 if test "x${ISLLIBS}" != "x" ; then
29716 $as_echo "#define HAVE_isl 1" >>confdefs.h
29720 # Check for plugin support
29721 # Check whether --enable-plugin was given.
29722 if test "${enable_plugin+set}" = set; then :
29723 enableval=$enable_plugin; enable_plugin=$enableval
29724 else
29725 enable_plugin=yes; default_plugin=yes
29729 pluginlibs=
29730 plugin_check=yes
29732 case "${host}" in
29733 *-*-mingw*)
29734 # Since plugin support under MinGW is not as straightforward as on
29735 # other platforms (e.g., we have to link import library, etc), we
29736 # only enable it if explicitly requested.
29737 if test x"$default_plugin" = x"yes"; then
29738 enable_plugin=no
29739 elif test x"$enable_plugin" = x"yes"; then
29740 # Use make's target variable to derive import library name.
29741 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29742 plugin_check=no
29745 *-*-darwin*)
29746 if test x$build = x$host; then
29747 export_sym_check="nm${exeext} -g"
29748 elif test x$host = x$target; then
29749 export_sym_check="$gcc_cv_nm -g"
29750 else
29751 export_sym_check=
29755 if test x$build = x$host; then
29756 export_sym_check="objdump${exeext} -T"
29757 elif test x$host = x$target; then
29758 export_sym_check="$gcc_cv_objdump -T"
29759 else
29760 export_sym_check=
29763 esac
29765 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29768 $as_echo_n "checking for exported symbols... " >&6; }
29769 if test "x$export_sym_check" != x; then
29770 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29771 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29772 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29773 : # No need to use a flag
29774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29775 $as_echo "yes" >&6; }
29776 else
29777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29778 $as_echo "yes" >&6; }
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29780 $as_echo_n "checking for -rdynamic... " >&6; }
29781 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29782 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29783 plugin_rdynamic=yes
29784 pluginlibs="-rdynamic"
29785 else
29786 plugin_rdynamic=no
29787 enable_plugin=no
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29790 $as_echo "$plugin_rdynamic" >&6; }
29792 else
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29794 $as_echo "unable to check" >&6; }
29797 # Check -ldl
29798 saved_LIBS="$LIBS"
29799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29800 $as_echo_n "checking for library containing dlopen... " >&6; }
29801 if ${ac_cv_search_dlopen+:} false; then :
29802 $as_echo_n "(cached) " >&6
29803 else
29804 ac_func_search_save_LIBS=$LIBS
29805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29806 /* end confdefs.h. */
29808 /* Override any GCC internal prototype to avoid an error.
29809 Use char because int might match the return type of a GCC
29810 builtin and then its argument prototype would still apply. */
29811 #ifdef __cplusplus
29812 extern "C"
29813 #endif
29814 char dlopen ();
29816 main ()
29818 return dlopen ();
29820 return 0;
29822 _ACEOF
29823 for ac_lib in '' dl; do
29824 if test -z "$ac_lib"; then
29825 ac_res="none required"
29826 else
29827 ac_res=-l$ac_lib
29828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29830 if ac_fn_cxx_try_link "$LINENO"; then :
29831 ac_cv_search_dlopen=$ac_res
29833 rm -f core conftest.err conftest.$ac_objext \
29834 conftest$ac_exeext
29835 if ${ac_cv_search_dlopen+:} false; then :
29836 break
29838 done
29839 if ${ac_cv_search_dlopen+:} false; then :
29841 else
29842 ac_cv_search_dlopen=no
29844 rm conftest.$ac_ext
29845 LIBS=$ac_func_search_save_LIBS
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29848 $as_echo "$ac_cv_search_dlopen" >&6; }
29849 ac_res=$ac_cv_search_dlopen
29850 if test "$ac_res" != no; then :
29851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29855 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29856 pluginlibs="$pluginlibs -ldl"
29858 LIBS="$saved_LIBS"
29860 # Check that we can build shared objects with -fPIC -shared
29861 saved_LDFLAGS="$LDFLAGS"
29862 saved_CFLAGS="$CFLAGS"
29863 case "${host}" in
29864 *-*-darwin*)
29865 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29866 CFLAGS="$CFLAGS -fPIC"
29867 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29870 CFLAGS="$CFLAGS -fPIC"
29871 LDFLAGS="$LDFLAGS -fPIC -shared"
29873 esac
29874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29875 $as_echo_n "checking for -fPIC -shared... " >&6; }
29876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29877 /* end confdefs.h. */
29878 extern int X;
29880 main ()
29882 return X == 0;
29884 return 0;
29886 _ACEOF
29887 if ac_fn_cxx_try_link "$LINENO"; then :
29888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29889 $as_echo "yes" >&6; }; have_pic_shared=yes
29890 else
29891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29892 $as_echo "no" >&6; }; have_pic_shared=no
29894 rm -f core conftest.err conftest.$ac_objext \
29895 conftest$ac_exeext conftest.$ac_ext
29896 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29897 pluginlibs=
29898 enable_plugin=no
29900 LDFLAGS="$saved_LDFLAGS"
29901 CFLAGS="$saved_CFLAGS"
29903 # If plugin support had been requested but not available, fail.
29904 if test x"$enable_plugin" = x"no" ; then
29905 if test x"$default_plugin" != x"yes"; then
29906 as_fn_error $? "
29907 Building GCC with plugin support requires a host that supports
29908 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29915 if test x"$enable_plugin" = x"yes"; then
29917 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29922 # Enable --enable-host-shared
29923 # Check whether --enable-host-shared was given.
29924 if test "${enable_host_shared+set}" = set; then :
29925 enableval=$enable_host_shared; PICFLAG=-fPIC
29926 else
29927 PICFLAG=
29934 # Check whether --enable-libquadmath-support was given.
29935 if test "${enable_libquadmath_support+set}" = set; then :
29936 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29937 else
29938 ENABLE_LIBQUADMATH_SUPPORT=yes
29941 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29943 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29948 # Specify what hash style to use by default.
29950 # Check whether --with-linker-hash-style was given.
29951 if test "${with_linker_hash_style+set}" = set; then :
29952 withval=$with_linker_hash_style; case x"$withval" in
29953 xsysv)
29954 LINKER_HASH_STYLE=sysv
29956 xgnu)
29957 LINKER_HASH_STYLE=gnu
29959 xboth)
29960 LINKER_HASH_STYLE=both
29963 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29965 esac
29966 else
29967 LINKER_HASH_STYLE=''
29970 if test x"${LINKER_HASH_STYLE}" != x; then
29972 cat >>confdefs.h <<_ACEOF
29973 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29974 _ACEOF
29978 # Specify what should be the default of -fdiagnostics-color option.
29980 # Check whether --with-diagnostics-color was given.
29981 if test "${with_diagnostics_color+set}" = set; then :
29982 withval=$with_diagnostics_color; case x"$withval" in
29983 xnever)
29984 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29986 xauto)
29987 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29989 xauto-if-env)
29990 DIAGNOSTICS_COLOR_DEFAULT=-1
29992 xalways)
29993 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29996 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29998 esac
29999 else
30000 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30004 cat >>confdefs.h <<_ACEOF
30005 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30006 _ACEOF
30009 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30010 # of jit/jit-playback.c.
30011 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30012 echo "gcc_driver_version: ${gcc_driver_version}"
30013 cat > gcc-driver-name.h <<EOF
30014 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30017 # Check whether --enable-default-pie was given.
30018 # Check whether --enable-default-pie was given.
30019 if test "${enable_default_pie+set}" = set; then :
30020 enableval=$enable_default_pie; enable_default_pie=$enableval
30021 else
30022 enable_default_pie=no
30025 if test x$enable_default_pie = xyes ; then
30027 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30032 # Check if -fno-PIE works.
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30034 $as_echo_n "checking for -fno-PIE option... " >&6; }
30035 if ${gcc_cv_c_no_fpie+:} false; then :
30036 $as_echo_n "(cached) " >&6
30037 else
30038 saved_CXXFLAGS="$CXXFLAGS"
30039 CXXFLAGS="$CXXFLAGS -fno-PIE"
30040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30041 /* end confdefs.h. */
30042 int main(void) {return 0;}
30043 _ACEOF
30044 if ac_fn_cxx_try_compile "$LINENO"; then :
30045 gcc_cv_c_no_fpie=yes
30046 else
30047 gcc_cv_c_no_fpie=no
30049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30050 CXXFLAGS="$saved_CXXFLAGS"
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30053 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30054 if test "$gcc_cv_c_no_fpie" = "yes"; then
30055 NO_PIE_CFLAGS="-fno-PIE"
30059 # Check if -no-pie works.
30060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30061 $as_echo_n "checking for -no-pie option... " >&6; }
30062 if ${gcc_cv_no_pie+:} false; then :
30063 $as_echo_n "(cached) " >&6
30064 else
30065 saved_LDFLAGS="$LDFLAGS"
30066 LDFLAGS="$LDFLAGS -no-pie"
30067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30068 /* end confdefs.h. */
30069 int main(void) {return 0;}
30070 _ACEOF
30071 if ac_fn_cxx_try_link "$LINENO"; then :
30072 gcc_cv_no_pie=yes
30073 else
30074 gcc_cv_no_pie=no
30076 rm -f core conftest.err conftest.$ac_objext \
30077 conftest$ac_exeext conftest.$ac_ext
30078 LDFLAGS="$saved_LDFLAGS"
30080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30081 $as_echo "$gcc_cv_no_pie" >&6; }
30082 if test "$gcc_cv_no_pie" = "yes"; then
30083 NO_PIE_FLAG="-no-pie"
30087 # Check linker supports '-z bndplt'
30088 ld_bndplt_support=no
30089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30090 $as_echo_n "checking linker -z bndplt option... " >&6; }
30091 if test x"$ld_is_gold" = xno; then
30092 if test $in_tree_ld = yes ; then
30093 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
30094 ld_bndplt_support=yes
30096 elif test x$gcc_cv_ld != x; then
30097 # Check if linker supports -a bndplt option
30098 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30099 ld_bndplt_support=yes
30103 if test x"$ld_bndplt_support" = xyes; then
30105 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30109 $as_echo "$ld_bndplt_support" >&6; }
30111 # Check linker supports '--push-state'/'--pop-state'
30112 ld_pushpopstate_support=no
30113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30114 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30115 if test x"$ld_is_gold" = xno; then
30116 if test $in_tree_ld = yes ; then
30117 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
30118 ld_pushpopstate_support=yes
30120 elif test x$gcc_cv_ld != x; then
30121 # Check if linker supports --push-state/--pop-state options
30122 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30123 ld_pushpopstate_support=yes
30127 if test x"$ld_pushpopstate_support" = xyes; then
30129 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30133 $as_echo "$ld_pushpopstate_support" >&6; }
30135 # Configure the subdirectories
30136 # AC_CONFIG_SUBDIRS($subdirs)
30138 # Create the Makefile
30139 # and configure language subdirectories
30140 ac_config_files="$ac_config_files $all_outputs"
30143 ac_config_commands="$ac_config_commands default"
30145 cat >confcache <<\_ACEOF
30146 # This file is a shell script that caches the results of configure
30147 # tests run on this system so they can be shared between configure
30148 # scripts and configure runs, see configure's option --config-cache.
30149 # It is not useful on other systems. If it contains results you don't
30150 # want to keep, you may remove or edit it.
30152 # config.status only pays attention to the cache file if you give it
30153 # the --recheck option to rerun configure.
30155 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30156 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30157 # following values.
30159 _ACEOF
30161 # The following way of writing the cache mishandles newlines in values,
30162 # but we know of no workaround that is simple, portable, and efficient.
30163 # So, we kill variables containing newlines.
30164 # Ultrix sh set writes to stderr and can't be redirected directly,
30165 # and sets the high bit in the cache file unless we assign to the vars.
30167 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30168 eval ac_val=\$$ac_var
30169 case $ac_val in #(
30170 *${as_nl}*)
30171 case $ac_var in #(
30172 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30173 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30174 esac
30175 case $ac_var in #(
30176 _ | IFS | as_nl) ;; #(
30177 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30178 *) { eval $ac_var=; unset $ac_var;} ;;
30179 esac ;;
30180 esac
30181 done
30183 (set) 2>&1 |
30184 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30185 *${as_nl}ac_space=\ *)
30186 # `set' does not quote correctly, so add quotes: double-quote
30187 # substitution turns \\\\ into \\, and sed turns \\ into \.
30188 sed -n \
30189 "s/'/'\\\\''/g;
30190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30191 ;; #(
30193 # `set' quotes correctly as required by POSIX, so do not add quotes.
30194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30196 esac |
30197 sort
30199 sed '
30200 /^ac_cv_env_/b end
30201 t clear
30202 :clear
30203 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30204 t end
30205 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30206 :end' >>confcache
30207 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30208 if test -w "$cache_file"; then
30209 if test "x$cache_file" != "x/dev/null"; then
30210 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30211 $as_echo "$as_me: updating cache $cache_file" >&6;}
30212 if test ! -f "$cache_file" || test -h "$cache_file"; then
30213 cat confcache >"$cache_file"
30214 else
30215 case $cache_file in #(
30216 */* | ?:*)
30217 mv -f confcache "$cache_file"$$ &&
30218 mv -f "$cache_file"$$ "$cache_file" ;; #(
30220 mv -f confcache "$cache_file" ;;
30221 esac
30224 else
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30226 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30229 rm -f confcache
30231 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30232 # Let make expand exec_prefix.
30233 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30235 DEFS=-DHAVE_CONFIG_H
30237 ac_libobjs=
30238 ac_ltlibobjs=
30240 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30241 # 1. Remove the extension, and $U if already installed.
30242 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30243 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30244 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30245 # will be set to the directory where LIBOBJS objects are built.
30246 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30247 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30248 done
30249 LIBOBJS=$ac_libobjs
30251 LTLIBOBJS=$ac_ltlibobjs
30256 : "${CONFIG_STATUS=./config.status}"
30257 ac_write_fail=0
30258 ac_clean_files_save=$ac_clean_files
30259 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30261 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30262 as_write_fail=0
30263 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30264 #! $SHELL
30265 # Generated by $as_me.
30266 # Run this file to recreate the current configuration.
30267 # Compiler output produced by configure, useful for debugging
30268 # configure, is in config.log if it exists.
30270 debug=false
30271 ac_cs_recheck=false
30272 ac_cs_silent=false
30274 SHELL=\${CONFIG_SHELL-$SHELL}
30275 export SHELL
30276 _ASEOF
30277 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30278 ## -------------------- ##
30279 ## M4sh Initialization. ##
30280 ## -------------------- ##
30282 # Be more Bourne compatible
30283 DUALCASE=1; export DUALCASE # for MKS sh
30284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30285 emulate sh
30286 NULLCMD=:
30287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30288 # is contrary to our usage. Disable this feature.
30289 alias -g '${1+"$@"}'='"$@"'
30290 setopt NO_GLOB_SUBST
30291 else
30292 case `(set -o) 2>/dev/null` in #(
30293 *posix*) :
30294 set -o posix ;; #(
30295 *) :
30297 esac
30301 as_nl='
30303 export as_nl
30304 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30305 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30308 # Prefer a ksh shell builtin over an external printf program on Solaris,
30309 # but without wasting forks for bash or zsh.
30310 if test -z "$BASH_VERSION$ZSH_VERSION" \
30311 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30312 as_echo='print -r --'
30313 as_echo_n='print -rn --'
30314 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30315 as_echo='printf %s\n'
30316 as_echo_n='printf %s'
30317 else
30318 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30319 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30320 as_echo_n='/usr/ucb/echo -n'
30321 else
30322 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30323 as_echo_n_body='eval
30324 arg=$1;
30325 case $arg in #(
30326 *"$as_nl"*)
30327 expr "X$arg" : "X\\(.*\\)$as_nl";
30328 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30329 esac;
30330 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30332 export as_echo_n_body
30333 as_echo_n='sh -c $as_echo_n_body as_echo'
30335 export as_echo_body
30336 as_echo='sh -c $as_echo_body as_echo'
30339 # The user is always right.
30340 if test "${PATH_SEPARATOR+set}" != set; then
30341 PATH_SEPARATOR=:
30342 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30343 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30344 PATH_SEPARATOR=';'
30349 # IFS
30350 # We need space, tab and new line, in precisely that order. Quoting is
30351 # there to prevent editors from complaining about space-tab.
30352 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30353 # splitting by setting IFS to empty value.)
30354 IFS=" "" $as_nl"
30356 # Find who we are. Look in the path if we contain no directory separator.
30357 as_myself=
30358 case $0 in #((
30359 *[\\/]* ) as_myself=$0 ;;
30360 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30361 for as_dir in $PATH
30363 IFS=$as_save_IFS
30364 test -z "$as_dir" && as_dir=.
30365 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30366 done
30367 IFS=$as_save_IFS
30370 esac
30371 # We did not find ourselves, most probably we were run as `sh COMMAND'
30372 # in which case we are not to be found in the path.
30373 if test "x$as_myself" = x; then
30374 as_myself=$0
30376 if test ! -f "$as_myself"; then
30377 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30378 exit 1
30381 # Unset variables that we do not need and which cause bugs (e.g. in
30382 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30383 # suppresses any "Segmentation fault" message there. '((' could
30384 # trigger a bug in pdksh 5.2.14.
30385 for as_var in BASH_ENV ENV MAIL MAILPATH
30386 do eval test x\${$as_var+set} = xset \
30387 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30388 done
30389 PS1='$ '
30390 PS2='> '
30391 PS4='+ '
30393 # NLS nuisances.
30394 LC_ALL=C
30395 export LC_ALL
30396 LANGUAGE=C
30397 export LANGUAGE
30399 # CDPATH.
30400 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30404 # ----------------------------------------
30405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30407 # script with STATUS, using 1 if that was 0.
30408 as_fn_error ()
30410 as_status=$1; test $as_status -eq 0 && as_status=1
30411 if test "$4"; then
30412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30415 $as_echo "$as_me: error: $2" >&2
30416 as_fn_exit $as_status
30417 } # as_fn_error
30420 # as_fn_set_status STATUS
30421 # -----------------------
30422 # Set $? to STATUS, without forking.
30423 as_fn_set_status ()
30425 return $1
30426 } # as_fn_set_status
30428 # as_fn_exit STATUS
30429 # -----------------
30430 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30431 as_fn_exit ()
30433 set +e
30434 as_fn_set_status $1
30435 exit $1
30436 } # as_fn_exit
30438 # as_fn_unset VAR
30439 # ---------------
30440 # Portably unset VAR.
30441 as_fn_unset ()
30443 { eval $1=; unset $1;}
30445 as_unset=as_fn_unset
30446 # as_fn_append VAR VALUE
30447 # ----------------------
30448 # Append the text in VALUE to the end of the definition contained in VAR. Take
30449 # advantage of any shell optimizations that allow amortized linear growth over
30450 # repeated appends, instead of the typical quadratic growth present in naive
30451 # implementations.
30452 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30453 eval 'as_fn_append ()
30455 eval $1+=\$2
30457 else
30458 as_fn_append ()
30460 eval $1=\$$1\$2
30462 fi # as_fn_append
30464 # as_fn_arith ARG...
30465 # ------------------
30466 # Perform arithmetic evaluation on the ARGs, and store the result in the
30467 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30468 # must be portable across $(()) and expr.
30469 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30470 eval 'as_fn_arith ()
30472 as_val=$(( $* ))
30474 else
30475 as_fn_arith ()
30477 as_val=`expr "$@" || test $? -eq 1`
30479 fi # as_fn_arith
30482 if expr a : '\(a\)' >/dev/null 2>&1 &&
30483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30484 as_expr=expr
30485 else
30486 as_expr=false
30489 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30490 as_basename=basename
30491 else
30492 as_basename=false
30495 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30496 as_dirname=dirname
30497 else
30498 as_dirname=false
30501 as_me=`$as_basename -- "$0" ||
30502 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30503 X"$0" : 'X\(//\)$' \| \
30504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30505 $as_echo X/"$0" |
30506 sed '/^.*\/\([^/][^/]*\)\/*$/{
30507 s//\1/
30510 /^X\/\(\/\/\)$/{
30511 s//\1/
30514 /^X\/\(\/\).*/{
30515 s//\1/
30518 s/.*/./; q'`
30520 # Avoid depending upon Character Ranges.
30521 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30522 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30523 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30524 as_cr_digits='0123456789'
30525 as_cr_alnum=$as_cr_Letters$as_cr_digits
30527 ECHO_C= ECHO_N= ECHO_T=
30528 case `echo -n x` in #(((((
30529 -n*)
30530 case `echo 'xy\c'` in
30531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30532 xy) ECHO_C='\c';;
30533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30534 ECHO_T=' ';;
30535 esac;;
30537 ECHO_N='-n';;
30538 esac
30540 rm -f conf$$ conf$$.exe conf$$.file
30541 if test -d conf$$.dir; then
30542 rm -f conf$$.dir/conf$$.file
30543 else
30544 rm -f conf$$.dir
30545 mkdir conf$$.dir 2>/dev/null
30547 if (echo >conf$$.file) 2>/dev/null; then
30548 if ln -s conf$$.file conf$$ 2>/dev/null; then
30549 as_ln_s='ln -s'
30550 # ... but there are two gotchas:
30551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30553 # In both cases, we have to default to `cp -pR'.
30554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30555 as_ln_s='cp -pR'
30556 elif ln conf$$.file conf$$ 2>/dev/null; then
30557 as_ln_s=ln
30558 else
30559 as_ln_s='cp -pR'
30561 else
30562 as_ln_s='cp -pR'
30564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30565 rmdir conf$$.dir 2>/dev/null
30568 # as_fn_mkdir_p
30569 # -------------
30570 # Create "$as_dir" as a directory, including parents if necessary.
30571 as_fn_mkdir_p ()
30574 case $as_dir in #(
30575 -*) as_dir=./$as_dir;;
30576 esac
30577 test -d "$as_dir" || eval $as_mkdir_p || {
30578 as_dirs=
30579 while :; do
30580 case $as_dir in #(
30581 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30582 *) as_qdir=$as_dir;;
30583 esac
30584 as_dirs="'$as_qdir' $as_dirs"
30585 as_dir=`$as_dirname -- "$as_dir" ||
30586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30587 X"$as_dir" : 'X\(//\)[^/]' \| \
30588 X"$as_dir" : 'X\(//\)$' \| \
30589 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30590 $as_echo X"$as_dir" |
30591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30592 s//\1/
30595 /^X\(\/\/\)[^/].*/{
30596 s//\1/
30599 /^X\(\/\/\)$/{
30600 s//\1/
30603 /^X\(\/\).*/{
30604 s//\1/
30607 s/.*/./; q'`
30608 test -d "$as_dir" && break
30609 done
30610 test -z "$as_dirs" || eval "mkdir $as_dirs"
30611 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30614 } # as_fn_mkdir_p
30615 if mkdir -p . 2>/dev/null; then
30616 as_mkdir_p='mkdir -p "$as_dir"'
30617 else
30618 test -d ./-p && rmdir ./-p
30619 as_mkdir_p=false
30623 # as_fn_executable_p FILE
30624 # -----------------------
30625 # Test if FILE is an executable regular file.
30626 as_fn_executable_p ()
30628 test -f "$1" && test -x "$1"
30629 } # as_fn_executable_p
30630 as_test_x='test -x'
30631 as_executable_p=as_fn_executable_p
30633 # Sed expression to map a string onto a valid CPP name.
30634 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30636 # Sed expression to map a string onto a valid variable name.
30637 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30640 exec 6>&1
30641 ## ----------------------------------- ##
30642 ## Main body of $CONFIG_STATUS script. ##
30643 ## ----------------------------------- ##
30644 _ASEOF
30645 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30648 # Save the log message, to keep $0 and so on meaningful, and to
30649 # report actual input values of CONFIG_FILES etc. instead of their
30650 # values after options handling.
30651 ac_log="
30652 This file was extended by $as_me, which was
30653 generated by GNU Autoconf 2.69. Invocation command line was
30655 CONFIG_FILES = $CONFIG_FILES
30656 CONFIG_HEADERS = $CONFIG_HEADERS
30657 CONFIG_LINKS = $CONFIG_LINKS
30658 CONFIG_COMMANDS = $CONFIG_COMMANDS
30659 $ $0 $@
30661 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30664 _ACEOF
30666 case $ac_config_files in *"
30667 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30668 esac
30670 case $ac_config_headers in *"
30671 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30672 esac
30675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30676 # Files that config.status was made for.
30677 config_files="$ac_config_files"
30678 config_headers="$ac_config_headers"
30679 config_links="$ac_config_links"
30680 config_commands="$ac_config_commands"
30682 _ACEOF
30684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30685 ac_cs_usage="\
30686 \`$as_me' instantiates files and other configuration actions
30687 from templates according to the current configuration. Unless the files
30688 and actions are specified as TAGs, all are instantiated by default.
30690 Usage: $0 [OPTION]... [TAG]...
30692 -h, --help print this help, then exit
30693 -V, --version print version number and configuration settings, then exit
30694 --config print configuration, then exit
30695 -q, --quiet, --silent
30696 do not print progress messages
30697 -d, --debug don't remove temporary files
30698 --recheck update $as_me by reconfiguring in the same conditions
30699 --file=FILE[:TEMPLATE]
30700 instantiate the configuration file FILE
30701 --header=FILE[:TEMPLATE]
30702 instantiate the configuration header FILE
30704 Configuration files:
30705 $config_files
30707 Configuration headers:
30708 $config_headers
30710 Configuration links:
30711 $config_links
30713 Configuration commands:
30714 $config_commands
30716 Report bugs to the package provider."
30718 _ACEOF
30719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30720 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30721 ac_cs_version="\\
30722 config.status
30723 configured by $0, generated by GNU Autoconf 2.69,
30724 with options \\"\$ac_cs_config\\"
30726 Copyright (C) 2012 Free Software Foundation, Inc.
30727 This config.status script is free software; the Free Software Foundation
30728 gives unlimited permission to copy, distribute and modify it."
30730 ac_pwd='$ac_pwd'
30731 srcdir='$srcdir'
30732 AWK='$AWK'
30733 test -n "\$AWK" || AWK=awk
30734 _ACEOF
30736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30737 # The default lists apply if the user does not specify any file.
30738 ac_need_defaults=:
30739 while test $# != 0
30741 case $1 in
30742 --*=?*)
30743 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30744 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30745 ac_shift=:
30747 --*=)
30748 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30749 ac_optarg=
30750 ac_shift=:
30753 ac_option=$1
30754 ac_optarg=$2
30755 ac_shift=shift
30757 esac
30759 case $ac_option in
30760 # Handling of the options.
30761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30762 ac_cs_recheck=: ;;
30763 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30764 $as_echo "$ac_cs_version"; exit ;;
30765 --config | --confi | --conf | --con | --co | --c )
30766 $as_echo "$ac_cs_config"; exit ;;
30767 --debug | --debu | --deb | --de | --d | -d )
30768 debug=: ;;
30769 --file | --fil | --fi | --f )
30770 $ac_shift
30771 case $ac_optarg in
30772 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30773 '') as_fn_error $? "missing file argument" ;;
30774 esac
30775 as_fn_append CONFIG_FILES " '$ac_optarg'"
30776 ac_need_defaults=false;;
30777 --header | --heade | --head | --hea )
30778 $ac_shift
30779 case $ac_optarg in
30780 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30781 esac
30782 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30783 ac_need_defaults=false;;
30784 --he | --h)
30785 # Conflict between --help and --header
30786 as_fn_error $? "ambiguous option: \`$1'
30787 Try \`$0 --help' for more information.";;
30788 --help | --hel | -h )
30789 $as_echo "$ac_cs_usage"; exit ;;
30790 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30791 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30792 ac_cs_silent=: ;;
30794 # This is an error.
30795 -*) as_fn_error $? "unrecognized option: \`$1'
30796 Try \`$0 --help' for more information." ;;
30798 *) as_fn_append ac_config_targets " $1"
30799 ac_need_defaults=false ;;
30801 esac
30802 shift
30803 done
30805 ac_configure_extra_args=
30807 if $ac_cs_silent; then
30808 exec 6>/dev/null
30809 ac_configure_extra_args="$ac_configure_extra_args --silent"
30812 _ACEOF
30813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30814 if \$ac_cs_recheck; then
30815 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30816 shift
30817 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30818 CONFIG_SHELL='$SHELL'
30819 export CONFIG_SHELL
30820 exec "\$@"
30823 _ACEOF
30824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30825 exec 5>>config.log
30827 echo
30828 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30829 ## Running $as_me. ##
30830 _ASBOX
30831 $as_echo "$ac_log"
30832 } >&5
30834 _ACEOF
30835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30837 # INIT-COMMANDS
30839 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30840 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30841 subdirs='$subdirs'
30843 _ACEOF
30845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30847 # Handling of arguments.
30848 for ac_config_target in $ac_config_targets
30850 case $ac_config_target in
30851 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30852 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30853 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30854 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30855 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30856 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30857 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30858 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30859 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30861 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30862 esac
30863 done
30866 # If the user did not use the arguments to specify the items to instantiate,
30867 # then the envvar interface is used. Set only those that are not.
30868 # We use the long form for the default assignment because of an extremely
30869 # bizarre bug on SunOS 4.1.3.
30870 if $ac_need_defaults; then
30871 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30872 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30873 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30874 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30877 # Have a temporary directory for convenience. Make it in the build tree
30878 # simply because there is no reason against having it here, and in addition,
30879 # creating and moving files from /tmp can sometimes cause problems.
30880 # Hook for its removal unless debugging.
30881 # Note that there is a small window in which the directory will not be cleaned:
30882 # after its creation but before its name has been assigned to `$tmp'.
30883 $debug ||
30885 tmp= ac_tmp=
30886 trap 'exit_status=$?
30887 : "${ac_tmp:=$tmp}"
30888 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30890 trap 'as_fn_exit 1' 1 2 13 15
30892 # Create a (secure) tmp directory for tmp files.
30895 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30896 test -d "$tmp"
30897 } ||
30899 tmp=./conf$$-$RANDOM
30900 (umask 077 && mkdir "$tmp")
30901 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30902 ac_tmp=$tmp
30904 # Set up the scripts for CONFIG_FILES section.
30905 # No need to generate them if there are no CONFIG_FILES.
30906 # This happens for instance with `./config.status config.h'.
30907 if test -n "$CONFIG_FILES"; then
30909 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30910 ac_cs_awk_getline=:
30911 ac_cs_awk_pipe_init=
30912 ac_cs_awk_read_file='
30913 while ((getline aline < (F[key])) > 0)
30914 print(aline)
30915 close(F[key])'
30916 ac_cs_awk_pipe_fini=
30917 else
30918 ac_cs_awk_getline=false
30919 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30920 ac_cs_awk_read_file='
30921 print "|#_!!_#|"
30922 print "cat " F[key] " &&"
30923 '$ac_cs_awk_pipe_init
30924 # The final `:' finishes the AND list.
30925 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30927 ac_cr=`echo X | tr X '\015'`
30928 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30929 # But we know of no other shell where ac_cr would be empty at this
30930 # point, so we can use a bashism as a fallback.
30931 if test "x$ac_cr" = x; then
30932 eval ac_cr=\$\'\\r\'
30934 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30935 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30936 ac_cs_awk_cr='\\r'
30937 else
30938 ac_cs_awk_cr=$ac_cr
30941 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30942 _ACEOF
30944 # Create commands to substitute file output variables.
30946 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30947 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
30948 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30949 echo "_ACAWK" &&
30950 echo "_ACEOF"
30951 } >conf$$files.sh &&
30952 . ./conf$$files.sh ||
30953 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30954 rm -f conf$$files.sh
30957 echo "cat >conf$$subs.awk <<_ACEOF" &&
30958 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30959 echo "_ACEOF"
30960 } >conf$$subs.sh ||
30961 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30962 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30963 ac_delim='%!_!# '
30964 for ac_last_try in false false false false false :; do
30965 . ./conf$$subs.sh ||
30966 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30968 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30969 if test $ac_delim_n = $ac_delim_num; then
30970 break
30971 elif $ac_last_try; then
30972 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30973 else
30974 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30976 done
30977 rm -f conf$$subs.sh
30979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30980 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30981 _ACEOF
30982 sed -n '
30984 s/^/S["/; s/!.*/"]=/
30987 s/^[^!]*!//
30988 :repl
30989 t repl
30990 s/'"$ac_delim"'$//
30991 t delim
30994 s/\(.\{148\}\)..*/\1/
30995 t more1
30996 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30999 b repl
31000 :more1
31001 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31004 s/.\{148\}//
31005 t nl
31006 :delim
31008 s/\(.\{148\}\)..*/\1/
31009 t more2
31010 s/["\\]/\\&/g; s/^/"/; s/$/"/
31013 :more2
31014 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31017 s/.\{148\}//
31018 t delim
31019 ' <conf$$subs.awk | sed '
31020 /^[^""]/{
31022 s/\n//
31024 ' >>$CONFIG_STATUS || ac_write_fail=1
31025 rm -f conf$$subs.awk
31026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31027 _ACAWK
31028 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31029 for (key in S) S_is_set[key] = 1
31030 FS = "\a"
31031 \$ac_cs_awk_pipe_init
31034 line = $ 0
31035 nfields = split(line, field, "@")
31036 substed = 0
31037 len = length(field[1])
31038 for (i = 2; i < nfields; i++) {
31039 key = field[i]
31040 keylen = length(key)
31041 if (S_is_set[key]) {
31042 value = S[key]
31043 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31044 len += length(value) + length(field[++i])
31045 substed = 1
31046 } else
31047 len += 1 + keylen
31049 if (nfields == 3 && !substed) {
31050 key = field[2]
31051 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31052 \$ac_cs_awk_read_file
31053 next
31056 print line
31058 \$ac_cs_awk_pipe_fini
31059 _ACAWK
31060 _ACEOF
31061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31062 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31063 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31064 else
31066 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31067 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31068 _ACEOF
31070 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31071 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31072 # trailing colons and then remove the whole line if VPATH becomes empty
31073 # (actually we leave an empty line to preserve line numbers).
31074 if test "x$srcdir" = x.; then
31075 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31077 s///
31078 s/^/:/
31079 s/[ ]*$/:/
31080 s/:\$(srcdir):/:/g
31081 s/:\${srcdir}:/:/g
31082 s/:@srcdir@:/:/g
31083 s/^:*//
31084 s/:*$//
31086 s/\(=[ ]*\).*/\1/
31088 s/\n//
31089 s/^[^=]*=[ ]*$//
31093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31094 fi # test -n "$CONFIG_FILES"
31096 # Set up the scripts for CONFIG_HEADERS section.
31097 # No need to generate them if there are no CONFIG_HEADERS.
31098 # This happens for instance with `./config.status Makefile'.
31099 if test -n "$CONFIG_HEADERS"; then
31100 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31101 BEGIN {
31102 _ACEOF
31104 # Transform confdefs.h into an awk script `defines.awk', embedded as
31105 # here-document in config.status, that substitutes the proper values into
31106 # config.h.in to produce config.h.
31108 # Create a delimiter string that does not exist in confdefs.h, to ease
31109 # handling of long lines.
31110 ac_delim='%!_!# '
31111 for ac_last_try in false false :; do
31112 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31113 if test -z "$ac_tt"; then
31114 break
31115 elif $ac_last_try; then
31116 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31117 else
31118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31120 done
31122 # For the awk script, D is an array of macro values keyed by name,
31123 # likewise P contains macro parameters if any. Preserve backslash
31124 # newline sequences.
31126 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31127 sed -n '
31128 s/.\{148\}/&'"$ac_delim"'/g
31129 t rset
31130 :rset
31131 s/^[ ]*#[ ]*define[ ][ ]*/ /
31132 t def
31134 :def
31135 s/\\$//
31136 t bsnl
31137 s/["\\]/\\&/g
31138 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31139 D["\1"]=" \3"/p
31140 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31142 :bsnl
31143 s/["\\]/\\&/g
31144 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31145 D["\1"]=" \3\\\\\\n"\\/p
31146 t cont
31147 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31148 t cont
31150 :cont
31152 s/.\{148\}/&'"$ac_delim"'/g
31153 t clear
31154 :clear
31155 s/\\$//
31156 t bsnlc
31157 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31159 :bsnlc
31160 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31161 b cont
31162 ' <confdefs.h | sed '
31163 s/'"$ac_delim"'/"\\\
31164 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31167 for (key in D) D_is_set[key] = 1
31168 FS = "\a"
31170 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31171 line = \$ 0
31172 split(line, arg, " ")
31173 if (arg[1] == "#") {
31174 defundef = arg[2]
31175 mac1 = arg[3]
31176 } else {
31177 defundef = substr(arg[1], 2)
31178 mac1 = arg[2]
31180 split(mac1, mac2, "(") #)
31181 macro = mac2[1]
31182 prefix = substr(line, 1, index(line, defundef) - 1)
31183 if (D_is_set[macro]) {
31184 # Preserve the white space surrounding the "#".
31185 print prefix "define", macro P[macro] D[macro]
31186 next
31187 } else {
31188 # Replace #undef with comments. This is necessary, for example,
31189 # in the case of _POSIX_SOURCE, which is predefined and required
31190 # on some systems where configure will not decide to define it.
31191 if (defundef == "undef") {
31192 print "/*", prefix defundef, macro, "*/"
31193 next
31197 { print }
31198 _ACAWK
31199 _ACEOF
31200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31201 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31202 fi # test -n "$CONFIG_HEADERS"
31205 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31206 shift
31207 for ac_tag
31209 case $ac_tag in
31210 :[FHLC]) ac_mode=$ac_tag; continue;;
31211 esac
31212 case $ac_mode$ac_tag in
31213 :[FHL]*:*);;
31214 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31215 :[FH]-) ac_tag=-:-;;
31216 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31217 esac
31218 ac_save_IFS=$IFS
31219 IFS=:
31220 set x $ac_tag
31221 IFS=$ac_save_IFS
31222 shift
31223 ac_file=$1
31224 shift
31226 case $ac_mode in
31227 :L) ac_source=$1;;
31228 :[FH])
31229 ac_file_inputs=
31230 for ac_f
31232 case $ac_f in
31233 -) ac_f="$ac_tmp/stdin";;
31234 *) # Look for the file first in the build tree, then in the source tree
31235 # (if the path is not absolute). The absolute path cannot be DOS-style,
31236 # because $ac_f cannot contain `:'.
31237 test -f "$ac_f" ||
31238 case $ac_f in
31239 [\\/$]*) false;;
31240 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31241 esac ||
31242 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31243 esac
31244 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31245 as_fn_append ac_file_inputs " '$ac_f'"
31246 done
31248 # Let's still pretend it is `configure' which instantiates (i.e., don't
31249 # use $as_me), people would be surprised to read:
31250 # /* config.h. Generated by config.status. */
31251 configure_input='Generated from '`
31252 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31253 `' by configure.'
31254 if test x"$ac_file" != x-; then
31255 configure_input="$ac_file. $configure_input"
31256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31257 $as_echo "$as_me: creating $ac_file" >&6;}
31259 # Neutralize special characters interpreted by sed in replacement strings.
31260 case $configure_input in #(
31261 *\&* | *\|* | *\\* )
31262 ac_sed_conf_input=`$as_echo "$configure_input" |
31263 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31264 *) ac_sed_conf_input=$configure_input;;
31265 esac
31267 case $ac_tag in
31268 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31270 esac
31272 esac
31274 ac_dir=`$as_dirname -- "$ac_file" ||
31275 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31276 X"$ac_file" : 'X\(//\)[^/]' \| \
31277 X"$ac_file" : 'X\(//\)$' \| \
31278 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31279 $as_echo X"$ac_file" |
31280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31281 s//\1/
31284 /^X\(\/\/\)[^/].*/{
31285 s//\1/
31288 /^X\(\/\/\)$/{
31289 s//\1/
31292 /^X\(\/\).*/{
31293 s//\1/
31296 s/.*/./; q'`
31297 as_dir="$ac_dir"; as_fn_mkdir_p
31298 ac_builddir=.
31300 case "$ac_dir" in
31301 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31303 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31304 # A ".." for each directory in $ac_dir_suffix.
31305 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31306 case $ac_top_builddir_sub in
31307 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31308 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31309 esac ;;
31310 esac
31311 ac_abs_top_builddir=$ac_pwd
31312 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31313 # for backward compatibility:
31314 ac_top_builddir=$ac_top_build_prefix
31316 case $srcdir in
31317 .) # We are building in place.
31318 ac_srcdir=.
31319 ac_top_srcdir=$ac_top_builddir_sub
31320 ac_abs_top_srcdir=$ac_pwd ;;
31321 [\\/]* | ?:[\\/]* ) # Absolute name.
31322 ac_srcdir=$srcdir$ac_dir_suffix;
31323 ac_top_srcdir=$srcdir
31324 ac_abs_top_srcdir=$srcdir ;;
31325 *) # Relative name.
31326 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31327 ac_top_srcdir=$ac_top_build_prefix$srcdir
31328 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31329 esac
31330 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31333 case $ac_mode in
31336 # CONFIG_FILE
31339 _ACEOF
31341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31342 # If the template does not know about datarootdir, expand it.
31343 # FIXME: This hack should be removed a few years after 2.60.
31344 ac_datarootdir_hack=; ac_datarootdir_seen=
31345 ac_sed_dataroot='
31346 /datarootdir/ {
31350 /@datadir@/p
31351 /@docdir@/p
31352 /@infodir@/p
31353 /@localedir@/p
31354 /@mandir@/p'
31355 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31356 *datarootdir*) ac_datarootdir_seen=yes;;
31357 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31359 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31360 _ACEOF
31361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31362 ac_datarootdir_hack='
31363 s&@datadir@&$datadir&g
31364 s&@docdir@&$docdir&g
31365 s&@infodir@&$infodir&g
31366 s&@localedir@&$localedir&g
31367 s&@mandir@&$mandir&g
31368 s&\\\${datarootdir}&$datarootdir&g' ;;
31369 esac
31370 _ACEOF
31372 # Neutralize VPATH when `$srcdir' = `.'.
31373 # Shell code in configure.ac might set extrasub.
31374 # FIXME: do we really want to maintain this feature?
31375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31376 ac_sed_extra="$ac_vpsub
31377 $extrasub
31378 _ACEOF
31379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31382 s|@configure_input@|$ac_sed_conf_input|;t t
31383 s&@top_builddir@&$ac_top_builddir_sub&;t t
31384 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31385 s&@srcdir@&$ac_srcdir&;t t
31386 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31387 s&@top_srcdir@&$ac_top_srcdir&;t t
31388 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31389 s&@builddir@&$ac_builddir&;t t
31390 s&@abs_builddir@&$ac_abs_builddir&;t t
31391 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31392 $ac_datarootdir_hack
31394 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31395 if $ac_cs_awk_getline; then
31396 $AWK -f "$ac_tmp/subs.awk"
31397 else
31398 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31399 fi \
31400 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31402 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31403 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31404 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31405 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31407 which seems to be undefined. Please make sure it is defined" >&5
31408 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31409 which seems to be undefined. Please make sure it is defined" >&2;}
31411 rm -f "$ac_tmp/stdin"
31412 case $ac_file in
31413 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31414 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31415 esac \
31416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31420 # CONFIG_HEADER
31422 if test x"$ac_file" != x-; then
31424 $as_echo "/* $configure_input */" \
31425 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31426 } >"$ac_tmp/config.h" \
31427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31428 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31429 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31430 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31431 else
31432 rm -f "$ac_file"
31433 mv "$ac_tmp/config.h" "$ac_file" \
31434 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31436 else
31437 $as_echo "/* $configure_input */" \
31438 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31439 || as_fn_error $? "could not create -" "$LINENO" 5
31444 # CONFIG_LINK
31447 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31449 else
31450 # Prefer the file from the source tree if names are identical.
31451 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31452 ac_source=$srcdir/$ac_source
31455 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31456 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31458 if test ! -r "$ac_source"; then
31459 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31461 rm -f "$ac_file"
31463 # Try a relative symlink, then a hard link, then a copy.
31464 case $ac_source in
31465 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31466 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31467 esac
31468 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31469 ln "$ac_source" "$ac_file" 2>/dev/null ||
31470 cp -p "$ac_source" "$ac_file" ||
31471 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31474 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31475 $as_echo "$as_me: executing $ac_file commands" >&6;}
31477 esac
31480 case $ac_file$ac_mode in
31481 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31482 "gccdepdir":C)
31483 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31484 for lang in $subdirs c-family common
31486 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31487 done ;;
31488 "as":F) chmod +x as ;;
31489 "collect-ld":F) chmod +x collect-ld ;;
31490 "nm":F) chmod +x nm ;;
31491 "default":C)
31492 case ${CONFIG_HEADERS} in
31493 *auto-host.h:config.in*)
31494 echo > cstamp-h ;;
31495 esac
31496 # Make sure all the subdirs exist.
31497 for d in $subdirs doc build common c-family
31499 test -d $d || mkdir $d
31500 done
31503 esac
31504 done # for ac_tag
31507 as_fn_exit 0
31508 _ACEOF
31509 ac_clean_files=$ac_clean_files_save
31511 test $ac_write_fail = 0 ||
31512 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31515 # configure is writing to config.log, and then calls config.status.
31516 # config.status does its own redirection, appending to config.log.
31517 # Unfortunately, on DOS this fails, as config.log is still kept open
31518 # by configure, so config.status won't be able to write to it; its
31519 # output is simply discarded. So we exec the FD to /dev/null,
31520 # effectively closing config.log, so it can be properly (re)opened and
31521 # appended to by config.status. When coming back to configure, we
31522 # need to make the FD available again.
31523 if test "$no_create" != yes; then
31524 ac_cs_success=:
31525 ac_config_status_args=
31526 test "$silent" = yes &&
31527 ac_config_status_args="$ac_config_status_args --quiet"
31528 exec 5>/dev/null
31529 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31530 exec 5>>config.log
31531 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31532 # would make configure fail if this is the last instruction.
31533 $ac_cs_success || as_fn_exit 1
31535 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31537 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}