PR libstdc++/87308 adjust regex used in std::any pretty printer
[official-gcc.git] / gcc / configure
blob3a20399adba3af64580c03903e24ffa7a46b0514
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_readelf
722 gcc_cv_objdump
723 ORIGINAL_NM_FOR_TARGET
724 gcc_cv_nm
725 ORIGINAL_LD_GOLD_FOR_TARGET
726 ORIGINAL_LD_BFD_FOR_TARGET
727 ORIGINAL_LD_FOR_TARGET
728 ORIGINAL_PLUGIN_LD_FOR_TARGET
729 gcc_cv_ld
730 ORIGINAL_AS_FOR_TARGET
731 gcc_cv_as
732 enable_fast_install
733 objdir
734 OTOOL64
735 OTOOL
736 LIPO
737 NMEDIT
738 DSYMUTIL
739 STRIP
740 OBJDUMP
741 ac_ct_DUMPBIN
742 DUMPBIN
744 FGREP
746 LIBTOOL
747 collect2
748 NO_PIE_FLAG_FOR_BUILD
749 NO_PIE_CFLAGS_FOR_BUILD
750 BUILD_NO_PIE_FLAG
751 BUILD_NO_PIE_CFLAGS
752 STMP_FIXINC
753 BUILD_LDFLAGS
754 BUILD_CXXFLAGS
755 BUILD_CFLAGS
756 CXX_FOR_BUILD
757 CC_FOR_BUILD
758 inhibit_libc
759 BUILD_SYSTEM_HEADER_DIR
760 SYSTEM_HEADER_DIR
762 CROSS
763 CATOBJEXT
764 GENCAT
765 INSTOBJEXT
766 DATADIRNAME
767 CATALOGS
768 POSUB
769 GMSGFMT
770 XGETTEXT
771 INCINTL
772 LIBINTL_DEP
773 LIBINTL
774 USE_NLS
775 get_gcc_base_ver
776 extra_opt_files
777 extra_modes_file
778 NATIVE_SYSTEM_HEADER_DIR
779 objext
780 manext
781 LIBICONV_DEP
782 LTLIBICONV
783 LIBICONV
784 LDEXP_LIB
785 EXTRA_GCC_LIBS
786 GNAT_LIBEXC
787 COLLECT2_LIBS
788 CXXDEPMODE
789 DEPDIR
790 am__leading_dot
791 doc_build_sys
794 BISON
795 FLEX
796 GENERATED_MANPAGES
797 BUILD_INFO
798 MAKEINFO
799 have_mktemp_command
800 make_compare_target
801 INSTALL_DATA
802 INSTALL_PROGRAM
803 INSTALL
804 ranlib_flags
805 RANLIB
807 LN_S
809 SET_MAKE
810 accel_dir_suffix
811 real_target_noncanonical
812 enable_as_accelerator
813 REPORT_BUGS_TEXI
814 REPORT_BUGS_TO
815 PKGVERSION
816 CONFIGURE_SPECS
817 enable_gcov
818 enable_shared
819 enable_fixed_point
820 enable_decimal_float
821 with_float
822 with_cpu
823 enable_multiarch
824 enable_multilib
825 coverage_flags
826 valgrind_command
827 valgrind_path_defines
828 valgrind_path
829 TREECHECKING
830 nocommon_flag
831 noexception_flags
832 warn_cxxflags
833 warn_cflags
834 c_strict_warn
835 strict_warn
836 c_loose_warn
837 loose_warn
838 aliasing_flags
840 EGREP
841 GREP
842 CXXCPP
843 PICFLAG_FOR_TARGET
844 GNATMAKE
845 GNATBIND
846 ac_ct_CXX
847 CXXFLAGS
849 OBJEXT
850 EXEEXT
851 ac_ct_CC
852 CPPFLAGS
853 LDFLAGS
854 CFLAGS
856 GENINSRC
857 CROSS_SYSTEM_HEADER_DIR
858 TARGET_SYSTEM_ROOT_DEFINE
859 TARGET_SYSTEM_ROOT
860 SYSROOT_CFLAGS_FOR_TARGET
861 target_subdir
862 host_subdir
863 build_subdir
864 build_libsubdir
865 target_noncanonical
866 host_noncanonical
867 target_os
868 target_vendor
869 target_cpu
870 target
871 host_os
872 host_vendor
873 host_cpu
874 host
875 build_os
876 build_vendor
877 build_cpu
878 build
879 target_alias
880 host_alias
881 build_alias
882 LIBS
883 ECHO_T
884 ECHO_N
885 ECHO_C
886 DEFS
887 mandir
888 localedir
889 libdir
890 psdir
891 pdfdir
892 dvidir
893 htmldir
894 infodir
895 docdir
896 oldincludedir
897 includedir
898 localstatedir
899 sharedstatedir
900 sysconfdir
901 datadir
902 datarootdir
903 libexecdir
904 sbindir
905 bindir
906 program_transform_name
907 prefix
908 exec_prefix
909 PACKAGE_URL
910 PACKAGE_BUGREPORT
911 PACKAGE_STRING
912 PACKAGE_VERSION
913 PACKAGE_TARNAME
914 PACKAGE_NAME
915 PATH_SEPARATOR
916 SHELL'
917 ac_subst_files='option_includes
918 language_hooks'
919 ac_user_opts='
920 enable_option_checking
921 with_build_libsubdir
922 with_local_prefix
923 with_native_system_header_dir
924 with_build_sysroot
925 with_sysroot
926 with_gxx_include_dir
927 with_cpp_install_dir
928 enable_generated_files_in_srcdir
929 with_gnu_ld
930 with_ld
931 with_demangler_in_ld
932 with_gnu_as
933 with_as
934 enable_largefile
935 enable_build_format_warnings
936 enable_werror_always
937 enable_checking
938 enable_coverage
939 enable_gather_detailed_mem_stats
940 enable_valgrind_annotations
941 with_stabs
942 enable_multilib
943 enable_multiarch
944 with_stack_clash_protection_guard_size
945 enable___cxa_atexit
946 enable_decimal_float
947 enable_fixed_point
948 enable_threads
949 enable_tls
950 enable_vtable_verify
951 enable_objc_gc
952 with_dwarf2
953 enable_shared
954 enable_gcov
955 with_specs
956 with_pkgversion
957 with_bugurl
958 enable_languages
959 with_multilib_list
960 enable_rpath
961 with_libiconv_prefix
962 enable_sjlj_exceptions
963 with_gcc_major_version_only
964 enable_secureplt
965 enable_mingw_wildcard
966 enable_large_address_aware
967 enable_leading_mingw64_underscores
968 enable_cld
969 enable_frame_pointer
970 enable_win32_registry
971 enable_static
972 with_pic
973 enable_fast_install
974 enable_libtool_lock
975 enable_ld
976 enable_gold
977 with_plugin_ld
978 enable_gnu_indirect_function
979 enable_initfini_array
980 enable_comdat
981 enable_fix_cortex_a53_835769
982 enable_fix_cortex_a53_843419
983 with_glibc_version
984 enable_gnu_unique_object
985 enable_linker_build_id
986 enable_libssp
987 enable_default_ssp
988 with_long_double_128
989 with_long_double_format
990 with_gc
991 with_system_zlib
992 enable_maintainer_mode
993 enable_link_mutex
994 enable_version_specific_runtime_libs
995 enable_plugin
996 enable_host_shared
997 enable_libquadmath_support
998 with_linker_hash_style
999 with_diagnostics_color
1000 enable_default_pie
1002 ac_precious_vars='build_alias
1003 host_alias
1004 target_alias
1006 CFLAGS
1007 LDFLAGS
1008 LIBS
1009 CPPFLAGS
1011 CXXFLAGS
1013 CXXCPP
1015 GMPLIBS
1016 GMPINC
1017 ISLLIBS
1018 ISLINC'
1021 # Initialize some variables set by options.
1022 ac_init_help=
1023 ac_init_version=false
1024 ac_unrecognized_opts=
1025 ac_unrecognized_sep=
1026 # The variables have the same names as the options, with
1027 # dashes changed to underlines.
1028 cache_file=/dev/null
1029 exec_prefix=NONE
1030 no_create=
1031 no_recursion=
1032 prefix=NONE
1033 program_prefix=NONE
1034 program_suffix=NONE
1035 program_transform_name=s,x,x,
1036 silent=
1037 site=
1038 srcdir=
1039 verbose=
1040 x_includes=NONE
1041 x_libraries=NONE
1043 # Installation directory options.
1044 # These are left unexpanded so users can "make install exec_prefix=/foo"
1045 # and all the variables that are supposed to be based on exec_prefix
1046 # by default will actually change.
1047 # Use braces instead of parens because sh, perl, etc. also accept them.
1048 # (The list follows the same order as the GNU Coding Standards.)
1049 bindir='${exec_prefix}/bin'
1050 sbindir='${exec_prefix}/sbin'
1051 libexecdir='${exec_prefix}/libexec'
1052 datarootdir='${prefix}/share'
1053 datadir='${datarootdir}'
1054 sysconfdir='${prefix}/etc'
1055 sharedstatedir='${prefix}/com'
1056 localstatedir='${prefix}/var'
1057 includedir='${prefix}/include'
1058 oldincludedir='/usr/include'
1059 docdir='${datarootdir}/doc/${PACKAGE}'
1060 infodir='${datarootdir}/info'
1061 htmldir='${docdir}'
1062 dvidir='${docdir}'
1063 pdfdir='${docdir}'
1064 psdir='${docdir}'
1065 libdir='${exec_prefix}/lib'
1066 localedir='${datarootdir}/locale'
1067 mandir='${datarootdir}/man'
1069 ac_prev=
1070 ac_dashdash=
1071 for ac_option
1073 # If the previous option needs an argument, assign it.
1074 if test -n "$ac_prev"; then
1075 eval $ac_prev=\$ac_option
1076 ac_prev=
1077 continue
1080 case $ac_option in
1081 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1082 *=) ac_optarg= ;;
1083 *) ac_optarg=yes ;;
1084 esac
1086 # Accept the important Cygnus configure options, so we can diagnose typos.
1088 case $ac_dashdash$ac_option in
1090 ac_dashdash=yes ;;
1092 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1093 ac_prev=bindir ;;
1094 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1095 bindir=$ac_optarg ;;
1097 -build | --build | --buil | --bui | --bu)
1098 ac_prev=build_alias ;;
1099 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1100 build_alias=$ac_optarg ;;
1102 -cache-file | --cache-file | --cache-fil | --cache-fi \
1103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1104 ac_prev=cache_file ;;
1105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1107 cache_file=$ac_optarg ;;
1109 --config-cache | -C)
1110 cache_file=config.cache ;;
1112 -datadir | --datadir | --datadi | --datad)
1113 ac_prev=datadir ;;
1114 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1115 datadir=$ac_optarg ;;
1117 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1118 | --dataroo | --dataro | --datar)
1119 ac_prev=datarootdir ;;
1120 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1121 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1122 datarootdir=$ac_optarg ;;
1124 -disable-* | --disable-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid feature name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "enable_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval enable_$ac_useropt=no ;;
1140 -docdir | --docdir | --docdi | --doc | --do)
1141 ac_prev=docdir ;;
1142 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1143 docdir=$ac_optarg ;;
1145 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1146 ac_prev=dvidir ;;
1147 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1148 dvidir=$ac_optarg ;;
1150 -enable-* | --enable-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid feature name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1159 "enable_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval enable_$ac_useropt=\$ac_optarg ;;
1166 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1167 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1168 | --exec | --exe | --ex)
1169 ac_prev=exec_prefix ;;
1170 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1171 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1172 | --exec=* | --exe=* | --ex=*)
1173 exec_prefix=$ac_optarg ;;
1175 -gas | --gas | --ga | --g)
1176 # Obsolete; use --with-gas.
1177 with_gas=yes ;;
1179 -help | --help | --hel | --he | -h)
1180 ac_init_help=long ;;
1181 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1182 ac_init_help=recursive ;;
1183 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1184 ac_init_help=short ;;
1186 -host | --host | --hos | --ho)
1187 ac_prev=host_alias ;;
1188 -host=* | --host=* | --hos=* | --ho=*)
1189 host_alias=$ac_optarg ;;
1191 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1192 ac_prev=htmldir ;;
1193 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1194 | --ht=*)
1195 htmldir=$ac_optarg ;;
1197 -includedir | --includedir | --includedi | --included | --include \
1198 | --includ | --inclu | --incl | --inc)
1199 ac_prev=includedir ;;
1200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1201 | --includ=* | --inclu=* | --incl=* | --inc=*)
1202 includedir=$ac_optarg ;;
1204 -infodir | --infodir | --infodi | --infod | --info | --inf)
1205 ac_prev=infodir ;;
1206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1207 infodir=$ac_optarg ;;
1209 -libdir | --libdir | --libdi | --libd)
1210 ac_prev=libdir ;;
1211 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1212 libdir=$ac_optarg ;;
1214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1215 | --libexe | --libex | --libe)
1216 ac_prev=libexecdir ;;
1217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1218 | --libexe=* | --libex=* | --libe=*)
1219 libexecdir=$ac_optarg ;;
1221 -localedir | --localedir | --localedi | --localed | --locale)
1222 ac_prev=localedir ;;
1223 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1224 localedir=$ac_optarg ;;
1226 -localstatedir | --localstatedir | --localstatedi | --localstated \
1227 | --localstate | --localstat | --localsta | --localst | --locals)
1228 ac_prev=localstatedir ;;
1229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1230 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1231 localstatedir=$ac_optarg ;;
1233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1234 ac_prev=mandir ;;
1235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1236 mandir=$ac_optarg ;;
1238 -nfp | --nfp | --nf)
1239 # Obsolete; use --without-fp.
1240 with_fp=no ;;
1242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1243 | --no-cr | --no-c | -n)
1244 no_create=yes ;;
1246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1248 no_recursion=yes ;;
1250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1252 | --oldin | --oldi | --old | --ol | --o)
1253 ac_prev=oldincludedir ;;
1254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1257 oldincludedir=$ac_optarg ;;
1259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1260 ac_prev=prefix ;;
1261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1262 prefix=$ac_optarg ;;
1264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1265 | --program-pre | --program-pr | --program-p)
1266 ac_prev=program_prefix ;;
1267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1269 program_prefix=$ac_optarg ;;
1271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1272 | --program-suf | --program-su | --program-s)
1273 ac_prev=program_suffix ;;
1274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1276 program_suffix=$ac_optarg ;;
1278 -program-transform-name | --program-transform-name \
1279 | --program-transform-nam | --program-transform-na \
1280 | --program-transform-n | --program-transform- \
1281 | --program-transform | --program-transfor \
1282 | --program-transfo | --program-transf \
1283 | --program-trans | --program-tran \
1284 | --progr-tra | --program-tr | --program-t)
1285 ac_prev=program_transform_name ;;
1286 -program-transform-name=* | --program-transform-name=* \
1287 | --program-transform-nam=* | --program-transform-na=* \
1288 | --program-transform-n=* | --program-transform-=* \
1289 | --program-transform=* | --program-transfor=* \
1290 | --program-transfo=* | --program-transf=* \
1291 | --program-trans=* | --program-tran=* \
1292 | --progr-tra=* | --program-tr=* | --program-t=*)
1293 program_transform_name=$ac_optarg ;;
1295 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1296 ac_prev=pdfdir ;;
1297 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1298 pdfdir=$ac_optarg ;;
1300 -psdir | --psdir | --psdi | --psd | --ps)
1301 ac_prev=psdir ;;
1302 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1303 psdir=$ac_optarg ;;
1305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1306 | -silent | --silent | --silen | --sile | --sil)
1307 silent=yes ;;
1309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1310 ac_prev=sbindir ;;
1311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1312 | --sbi=* | --sb=*)
1313 sbindir=$ac_optarg ;;
1315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1317 | --sharedst | --shareds | --shared | --share | --shar \
1318 | --sha | --sh)
1319 ac_prev=sharedstatedir ;;
1320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1323 | --sha=* | --sh=*)
1324 sharedstatedir=$ac_optarg ;;
1326 -site | --site | --sit)
1327 ac_prev=site ;;
1328 -site=* | --site=* | --sit=*)
1329 site=$ac_optarg ;;
1331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1332 ac_prev=srcdir ;;
1333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1334 srcdir=$ac_optarg ;;
1336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1337 | --syscon | --sysco | --sysc | --sys | --sy)
1338 ac_prev=sysconfdir ;;
1339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1341 sysconfdir=$ac_optarg ;;
1343 -target | --target | --targe | --targ | --tar | --ta | --t)
1344 ac_prev=target_alias ;;
1345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1346 target_alias=$ac_optarg ;;
1348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1349 verbose=yes ;;
1351 -version | --version | --versio | --versi | --vers | -V)
1352 ac_init_version=: ;;
1354 -with-* | --with-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358 as_fn_error $? "invalid package name: $ac_useropt"
1359 ac_useropt_orig=$ac_useropt
1360 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361 case $ac_user_opts in
1363 "with_$ac_useropt"
1364 "*) ;;
1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1366 ac_unrecognized_sep=', ';;
1367 esac
1368 eval with_$ac_useropt=\$ac_optarg ;;
1370 -without-* | --without-*)
1371 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1372 # Reject names that are not valid shell variable names.
1373 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1374 as_fn_error $? "invalid package name: $ac_useropt"
1375 ac_useropt_orig=$ac_useropt
1376 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1377 case $ac_user_opts in
1379 "with_$ac_useropt"
1380 "*) ;;
1381 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1382 ac_unrecognized_sep=', ';;
1383 esac
1384 eval with_$ac_useropt=no ;;
1386 --x)
1387 # Obsolete; use --with-x.
1388 with_x=yes ;;
1390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1391 | --x-incl | --x-inc | --x-in | --x-i)
1392 ac_prev=x_includes ;;
1393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1395 x_includes=$ac_optarg ;;
1397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1399 ac_prev=x_libraries ;;
1400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1402 x_libraries=$ac_optarg ;;
1404 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1405 Try \`$0 --help' for more information"
1408 *=*)
1409 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1410 # Reject names that are not valid shell variable names.
1411 case $ac_envvar in #(
1412 '' | [0-9]* | *[!_$as_cr_alnum]* )
1413 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1414 esac
1415 eval $ac_envvar=\$ac_optarg
1416 export $ac_envvar ;;
1419 # FIXME: should be removed in autoconf 3.0.
1420 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1421 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1422 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1423 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1426 esac
1427 done
1429 if test -n "$ac_prev"; then
1430 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1431 as_fn_error $? "missing argument to $ac_option"
1434 if test -n "$ac_unrecognized_opts"; then
1435 case $enable_option_checking in
1436 no) ;;
1437 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1438 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1439 esac
1442 # Check all directory arguments for consistency.
1443 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1444 datadir sysconfdir sharedstatedir localstatedir includedir \
1445 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1446 libdir localedir mandir
1448 eval ac_val=\$$ac_var
1449 # Remove trailing slashes.
1450 case $ac_val in
1451 */ )
1452 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1453 eval $ac_var=\$ac_val;;
1454 esac
1455 # Be sure to have absolute directory names.
1456 case $ac_val in
1457 [\\/$]* | ?:[\\/]* ) continue;;
1458 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1459 esac
1460 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1461 done
1463 # There might be people who depend on the old broken behavior: `$host'
1464 # used to hold the argument of --host etc.
1465 # FIXME: To remove some day.
1466 build=$build_alias
1467 host=$host_alias
1468 target=$target_alias
1470 # FIXME: To remove some day.
1471 if test "x$host_alias" != x; then
1472 if test "x$build_alias" = x; then
1473 cross_compiling=maybe
1474 elif test "x$build_alias" != "x$host_alias"; then
1475 cross_compiling=yes
1479 ac_tool_prefix=
1480 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482 test "$silent" = yes && exec 6>/dev/null
1485 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1486 ac_ls_di=`ls -di .` &&
1487 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1488 as_fn_error $? "working directory cannot be determined"
1489 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1490 as_fn_error $? "pwd does not report name of working directory"
1493 # Find the source files, if location was not specified.
1494 if test -z "$srcdir"; then
1495 ac_srcdir_defaulted=yes
1496 # Try the directory containing this script, then the parent directory.
1497 ac_confdir=`$as_dirname -- "$as_myself" ||
1498 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1499 X"$as_myself" : 'X\(//\)[^/]' \| \
1500 X"$as_myself" : 'X\(//\)$' \| \
1501 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1502 $as_echo X"$as_myself" |
1503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1504 s//\1/
1507 /^X\(\/\/\)[^/].*/{
1508 s//\1/
1511 /^X\(\/\/\)$/{
1512 s//\1/
1515 /^X\(\/\).*/{
1516 s//\1/
1519 s/.*/./; q'`
1520 srcdir=$ac_confdir
1521 if test ! -r "$srcdir/$ac_unique_file"; then
1522 srcdir=..
1524 else
1525 ac_srcdir_defaulted=no
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1528 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1529 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1531 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1532 ac_abs_confdir=`(
1533 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1534 pwd)`
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1537 srcdir=.
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1542 case $srcdir in
1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 esac
1545 for ac_var in $ac_precious_vars; do
1546 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547 eval ac_env_${ac_var}_value=\$${ac_var}
1548 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550 done
1553 # Report the --help message.
1555 if test "$ac_init_help" = "long"; then
1556 # Omit some internal or obsolete options to make the list less imposing.
1557 # This message is too long to be a string in the A/UX 3.1 sh.
1558 cat <<_ACEOF
1559 \`configure' configures this package to adapt to many kinds of systems.
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE. See below for descriptions of some of the useful variables.
1566 Defaults for the options are specified in brackets.
1568 Configuration:
1569 -h, --help display this help and exit
1570 --help=short display options specific to this package
1571 --help=recursive display the short help of all the included packages
1572 -V, --version display version information and exit
1573 -q, --quiet, --silent do not print \`checking ...' messages
1574 --cache-file=FILE cache test results in FILE [disabled]
1575 -C, --config-cache alias for \`--cache-file=config.cache'
1576 -n, --no-create do not create output files
1577 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1579 Installation directories:
1580 --prefix=PREFIX install architecture-independent files in PREFIX
1581 [$ac_default_prefix]
1582 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1583 [PREFIX]
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1590 For better control, use the options below.
1592 Fine tuning of the installation directories:
1593 --bindir=DIR user executables [EPREFIX/bin]
1594 --sbindir=DIR system admin executables [EPREFIX/sbin]
1595 --libexecdir=DIR program executables [EPREFIX/libexec]
1596 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1597 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1598 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1599 --libdir=DIR object code libraries [EPREFIX/lib]
1600 --includedir=DIR C header files [PREFIX/include]
1601 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1602 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1603 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1604 --infodir=DIR info documentation [DATAROOTDIR/info]
1605 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1606 --mandir=DIR man documentation [DATAROOTDIR/man]
1607 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1608 --htmldir=DIR html documentation [DOCDIR]
1609 --dvidir=DIR dvi documentation [DOCDIR]
1610 --pdfdir=DIR pdf documentation [DOCDIR]
1611 --psdir=DIR ps documentation [DOCDIR]
1612 _ACEOF
1614 cat <<\_ACEOF
1616 Program names:
1617 --program-prefix=PREFIX prepend PREFIX to installed program names
1618 --program-suffix=SUFFIX append SUFFIX to installed program names
1619 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1621 System types:
1622 --build=BUILD configure for building on BUILD [guessed]
1623 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1624 --target=TARGET configure for building compilers for TARGET [HOST]
1625 _ACEOF
1628 if test -n "$ac_init_help"; then
1630 cat <<\_ACEOF
1632 Optional Features:
1633 --disable-option-checking ignore unrecognized --enable/--with options
1634 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1635 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1636 --enable-generated-files-in-srcdir
1637 put copies of generated files in source dir intended
1638 for creating source tarballs for users without
1639 texinfo bison or flex
1640 --disable-largefile omit support for large files
1641 --disable-build-format-warnings
1642 don't use -Wformat while building GCC
1643 --enable-werror-always enable -Werror despite compiler version
1644 --enable-checking[=LIST]
1645 enable expensive run-time checks. With LIST, enable
1646 only specific categories of checks. Categories are:
1647 yes,no,all,none,release. Flags are:
1648 assert,df,extra,fold,gc,gcac,gimple,misc,
1649 rtlflag,rtl,runtime,tree,valgrind,types
1650 --enable-coverage[=LEVEL]
1651 enable compiler's code coverage collection. Use to
1652 measure compiler performance and locate unused parts
1653 of the compiler. With LEVEL, specify optimization.
1654 Values are opt, noopt, default is noopt
1655 --enable-gather-detailed-mem-stats
1656 enable detailed memory allocation stats gathering
1657 --enable-valgrind-annotations
1658 enable valgrind runtime interaction
1659 --enable-multilib enable library support for multiple ABIs
1660 --enable-multiarch enable support for multiarch paths
1661 --enable-__cxa_atexit enable __cxa_atexit for C++
1662 --enable-decimal-float={no,yes,bid,dpd}
1663 enable decimal float extension to C. Selecting 'bid'
1664 or 'dpd' choses which decimal floating point format
1665 to use
1666 --enable-fixed-point enable fixed-point arithmetic extension to C
1667 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1668 package
1669 --enable-tls enable or disable generation of tls code overriding
1670 the assembler check for tls support
1671 --enable-vtable-verify enable vtable verification feature
1672 --enable-objc-gc enable the use of Boehm's garbage collector with the
1673 GNU Objective-C runtime
1674 --disable-shared don't provide a shared libgcc
1675 --disable-gcov don't provide libgcov and related host tools
1676 --enable-languages=LIST specify which front-ends to build
1677 --disable-rpath do not hardcode runtime library paths
1678 --enable-sjlj-exceptions
1679 arrange to use setjmp/longjmp exception handling
1680 --enable-secureplt enable -msecure-plt by default for PowerPC
1681 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1682 Default to platform configuration
1683 --enable-large-address-aware
1684 Link mingw executables with --large-address-aware
1685 --enable-leading-mingw64-underscores
1686 enable leading underscores on 64 bit mingw targets
1687 --enable-cld enable -mcld by default for 32bit x86
1688 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1690 --disable-win32-registry
1691 disable lookup of installation paths in the Registry
1692 on Windows hosts
1693 --enable-win32-registry enable registry lookup (default)
1694 --enable-win32-registry=KEY
1695 use KEY instead of GCC version as the last portion
1696 of the registry key
1697 --enable-shared[=PKGS] build shared libraries [default=yes]
1698 --enable-static[=PKGS] build static libraries [default=yes]
1699 --enable-fast-install[=PKGS]
1700 optimize for fast installation [default=yes]
1701 --disable-libtool-lock avoid locking (might break parallel builds)
1702 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1703 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1704 --enable-gnu-indirect-function
1705 enable the use of the @gnu_indirect_function to
1706 glibc systems
1707 --enable-initfini-array use .init_array/.fini_array sections
1708 --enable-comdat enable COMDAT group support
1710 --enable-fix-cortex-a53-835769
1711 enable workaround for AArch64 Cortex-A53 erratum
1712 835769 by default
1713 --disable-fix-cortex-a53-835769
1714 disable workaround for AArch64 Cortex-A53 erratum
1715 835769 by default
1718 --enable-fix-cortex-a53-843419
1719 enable workaround for AArch64 Cortex-A53 erratum
1720 843419 by default
1721 --disable-fix-cortex-a53-843419
1722 disable workaround for AArch64 Cortex-A53 erratum
1723 843419 by default
1725 --enable-gnu-unique-object
1726 enable the use of the @gnu_unique_object ELF
1727 extension on glibc systems
1728 --enable-linker-build-id
1729 compiler will always pass --build-id to linker
1730 --enable-libssp enable linking against libssp
1731 --enable-default-ssp enable Stack Smashing Protection as default
1732 --enable-maintainer-mode
1733 enable make rules and dependencies not useful (and
1734 sometimes confusing) to the casual installer
1735 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1736 thrashing on the build machine
1737 --enable-version-specific-runtime-libs
1738 specify that runtime libraries should be installed
1739 in a compiler-specific directory
1740 --enable-plugin enable plugin support
1741 --enable-host-shared build host code as shared libraries
1742 --disable-libquadmath-support
1743 disable libquadmath support for Fortran
1744 --enable-default-pie enable Position Independent Executable as default
1746 Optional Packages:
1747 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1748 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1749 --with-build-libsubdir=DIR Directory where to find libraries for build system
1750 --with-local-prefix=DIR specifies directory to put local include
1751 --with-native-system-header-dir=dir
1752 use dir as the directory to look for standard
1753 system header files in. Defaults to /usr/include.
1754 --with-build-sysroot=sysroot
1755 use sysroot as the system root during the build
1756 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1757 --with-gxx-include-dir=DIR
1758 specifies directory to put g++ header files
1759 --with-cpp-install-dir=DIR
1760 install the user visible C preprocessor in DIR
1761 (relative to PREFIX) as well as PREFIX/bin
1762 --with-gnu-ld arrange to work with GNU ld
1763 --with-ld arrange to use the specified ld (full pathname)
1764 --with-demangler-in-ld try to use demangler in GNU ld
1765 --with-gnu-as arrange to work with GNU as
1766 --with-as arrange to use the specified as (full pathname)
1767 --with-stabs arrange to use stabs instead of host debug format
1768 --with-stack-clash-protection-guard-size=size
1769 Set the default stack clash protection guard size
1770 for specific targets as a power of two in bytes.
1771 --with-dwarf2 force the default debug format to be DWARF 2
1772 --with-specs=SPECS add SPECS to driver command-line processing
1773 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1774 --with-bugurl=URL Direct users to URL to report a bug
1775 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1776 --with-gnu-ld assume the C compiler uses GNU ld default=no
1777 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1778 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1779 --with-gcc-major-version-only
1780 use only GCC major number in filesystem paths
1781 --with-pic try to use only PIC/non-PIC objects [default=use
1782 both]
1783 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1784 --with-plugin-ld=[ARG] specify the plugin linker
1785 --with-glibc-version=M.N
1786 assume GCC used with glibc version M.N or later
1787 --with-long-double-128 use 128-bit long double by default
1788 --with-long-double-format={ieee,ibm}
1789 Specify whether PowerPC long double uses IEEE or IBM format
1791 --with-gc={page,zone} this option is not supported anymore. It used to
1792 choose the garbage collection mechanism to use with
1793 the compiler
1794 --with-system-zlib use installed libz
1795 --with-linker-hash-style={sysv,gnu,both}
1796 specify the linker hash style
1797 --with-diagnostics-color={never,auto,auto-if-env,always}
1798 specify the default of -fdiagnostics-color option
1799 auto-if-env stands for -fdiagnostics-color=auto if
1800 GCC_COLOR environment variable is present and
1801 -fdiagnostics-color=never otherwise
1803 Some influential environment variables:
1804 CC C compiler command
1805 CFLAGS C compiler flags
1806 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1807 nonstandard directory <lib dir>
1808 LIBS libraries to pass to the linker, e.g. -l<library>
1809 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1810 you have headers in a nonstandard directory <include dir>
1811 CXX C++ compiler command
1812 CXXFLAGS C++ compiler flags
1813 CXXCPP C++ preprocessor
1814 CPP C preprocessor
1815 GMPLIBS How to link GMP
1816 GMPINC How to find GMP include files
1817 ISLLIBS How to link isl
1818 ISLINC How to find isl include files
1820 Use these variables to override the choices made by `configure' or to help
1821 it to find libraries and programs with nonstandard names/locations.
1823 Report bugs to the package provider.
1824 _ACEOF
1825 ac_status=$?
1828 if test "$ac_init_help" = "recursive"; then
1829 # If there are subdirs, report their specific --help.
1830 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1831 test -d "$ac_dir" ||
1832 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1833 continue
1834 ac_builddir=.
1836 case "$ac_dir" in
1837 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1839 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1840 # A ".." for each directory in $ac_dir_suffix.
1841 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1842 case $ac_top_builddir_sub in
1843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1845 esac ;;
1846 esac
1847 ac_abs_top_builddir=$ac_pwd
1848 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1849 # for backward compatibility:
1850 ac_top_builddir=$ac_top_build_prefix
1852 case $srcdir in
1853 .) # We are building in place.
1854 ac_srcdir=.
1855 ac_top_srcdir=$ac_top_builddir_sub
1856 ac_abs_top_srcdir=$ac_pwd ;;
1857 [\\/]* | ?:[\\/]* ) # Absolute name.
1858 ac_srcdir=$srcdir$ac_dir_suffix;
1859 ac_top_srcdir=$srcdir
1860 ac_abs_top_srcdir=$srcdir ;;
1861 *) # Relative name.
1862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1863 ac_top_srcdir=$ac_top_build_prefix$srcdir
1864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1865 esac
1866 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1868 cd "$ac_dir" || { ac_status=$?; continue; }
1869 # Check for guested configure.
1870 if test -f "$ac_srcdir/configure.gnu"; then
1871 echo &&
1872 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1873 elif test -f "$ac_srcdir/configure"; then
1874 echo &&
1875 $SHELL "$ac_srcdir/configure" --help=recursive
1876 else
1877 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1878 fi || ac_status=$?
1879 cd "$ac_pwd" || { ac_status=$?; break; }
1880 done
1883 test -n "$ac_init_help" && exit $ac_status
1884 if $ac_init_version; then
1885 cat <<\_ACEOF
1886 configure
1887 generated by GNU Autoconf 2.69
1889 Copyright (C) 2012 Free Software Foundation, Inc.
1890 This configure script is free software; the Free Software Foundation
1891 gives unlimited permission to copy, distribute and modify it.
1892 _ACEOF
1893 exit
1896 ## ------------------------ ##
1897 ## Autoconf initialization. ##
1898 ## ------------------------ ##
1900 # ac_fn_c_try_compile LINENO
1901 # --------------------------
1902 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_c_try_compile ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 rm -f conftest.$ac_objext
1907 if { { ac_try="$ac_compile"
1908 case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_compile") 2>conftest.err
1915 ac_status=$?
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } && {
1923 test -z "$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1925 } && test -s conftest.$ac_objext; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=1
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1936 } # ac_fn_c_try_compile
1938 # ac_fn_cxx_try_compile LINENO
1939 # ----------------------------
1940 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_compile ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 rm -f conftest.$ac_objext
1945 if { { ac_try="$ac_compile"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_compile") 2>conftest.err
1953 ac_status=$?
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && {
1961 test -z "$ac_cxx_werror_flag" ||
1962 test ! -s conftest.err
1963 } && test -s conftest.$ac_objext; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 ac_retval=1
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1974 } # ac_fn_cxx_try_compile
1976 # ac_fn_cxx_try_cpp LINENO
1977 # ------------------------
1978 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_cxx_try_cpp ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if { { ac_try="$ac_cpp conftest.$ac_ext"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } > conftest.i && {
1998 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 }; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2006 ac_retval=1
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2011 } # ac_fn_cxx_try_cpp
2013 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2014 # ---------------------------------------------------------
2015 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2016 # the include files in INCLUDES and setting the cache variable VAR
2017 # accordingly.
2018 ac_fn_cxx_check_header_mongrel ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if eval \${$3+:} false; then :
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2027 eval ac_res=\$$3
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 else
2031 # Is the header compilable?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2033 $as_echo_n "checking $2 usability... " >&6; }
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2037 #include <$2>
2038 _ACEOF
2039 if ac_fn_cxx_try_compile "$LINENO"; then :
2040 ac_header_compiler=yes
2041 else
2042 ac_header_compiler=no
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2046 $as_echo "$ac_header_compiler" >&6; }
2048 # Is the header present?
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2050 $as_echo_n "checking $2 presence... " >&6; }
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2053 #include <$2>
2054 _ACEOF
2055 if ac_fn_cxx_try_cpp "$LINENO"; then :
2056 ac_header_preproc=yes
2057 else
2058 ac_header_preproc=no
2060 rm -f conftest.err conftest.i conftest.$ac_ext
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2062 $as_echo "$ac_header_preproc" >&6; }
2064 # So? What about this header?
2065 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2066 yes:no: )
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2068 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2070 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072 no:yes:* )
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2074 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2076 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2078 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2080 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2084 esac
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 eval "$3=\$ac_header_compiler"
2092 eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 } # ac_fn_cxx_check_header_mongrel
2100 # ac_fn_cxx_try_run LINENO
2101 # ------------------------
2102 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2103 # that executables *can* be run.
2104 ac_fn_cxx_try_run ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 if { { ac_try="$ac_link"
2108 case "(($ac_try" in
2109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110 *) ac_try_echo=$ac_try;;
2111 esac
2112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113 $as_echo "$ac_try_echo"; } >&5
2114 (eval "$ac_link") 2>&5
2115 ac_status=$?
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2118 { { case "(($ac_try" in
2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2121 esac
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 $as_echo "$ac_try_echo"; } >&5
2124 (eval "$ac_try") 2>&5
2125 ac_status=$?
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; }; }; then :
2128 ac_retval=0
2129 else
2130 $as_echo "$as_me: program exited with status $ac_status" >&5
2131 $as_echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2134 ac_retval=$ac_status
2136 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 as_fn_set_status $ac_retval
2140 } # ac_fn_cxx_try_run
2142 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2143 # ---------------------------------------------------------
2144 # Tests whether HEADER exists and can be compiled using the include files in
2145 # INCLUDES, setting the cache variable VAR accordingly.
2146 ac_fn_cxx_check_header_compile ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2153 else
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2157 #include <$2>
2158 _ACEOF
2159 if ac_fn_cxx_try_compile "$LINENO"; then :
2160 eval "$3=yes"
2161 else
2162 eval "$3=no"
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 } # ac_fn_cxx_check_header_compile
2173 # ac_fn_c_try_cpp LINENO
2174 # ----------------------
2175 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2176 ac_fn_c_try_cpp ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if { { ac_try="$ac_cpp conftest.$ac_ext"
2180 case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183 esac
2184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185 $as_echo "$ac_try_echo"; } >&5
2186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2187 ac_status=$?
2188 if test -s conftest.err; then
2189 grep -v '^ *+' conftest.err >conftest.er1
2190 cat conftest.er1 >&5
2191 mv -f conftest.er1 conftest.err
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } > conftest.i && {
2195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2196 test ! -s conftest.err
2197 }; then :
2198 ac_retval=0
2199 else
2200 $as_echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2203 ac_retval=1
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 as_fn_set_status $ac_retval
2208 } # ac_fn_c_try_cpp
2210 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2211 # ----------------------------------------------
2212 # Tries to find the compile-time value of EXPR in a program that includes
2213 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2214 # computed
2215 ac_fn_cxx_compute_int ()
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 if test "$cross_compiling" = yes; then
2219 # Depending upon the size, compute the lo and hi bounds.
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2224 main ()
2226 static int test_array [1 - 2 * !(($2) >= 0)];
2227 test_array [0] = 0;
2228 return test_array [0];
2231 return 0;
2233 _ACEOF
2234 if ac_fn_cxx_try_compile "$LINENO"; then :
2235 ac_lo=0 ac_mid=0
2236 while :; do
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2241 main ()
2243 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2244 test_array [0] = 0;
2245 return test_array [0];
2248 return 0;
2250 _ACEOF
2251 if ac_fn_cxx_try_compile "$LINENO"; then :
2252 ac_hi=$ac_mid; break
2253 else
2254 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2255 if test $ac_lo -le $ac_mid; then
2256 ac_lo= ac_hi=
2257 break
2259 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 done
2263 else
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2268 main ()
2270 static int test_array [1 - 2 * !(($2) < 0)];
2271 test_array [0] = 0;
2272 return test_array [0];
2275 return 0;
2277 _ACEOF
2278 if ac_fn_cxx_try_compile "$LINENO"; then :
2279 ac_hi=-1 ac_mid=-1
2280 while :; do
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2285 main ()
2287 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2288 test_array [0] = 0;
2289 return test_array [0];
2292 return 0;
2294 _ACEOF
2295 if ac_fn_cxx_try_compile "$LINENO"; then :
2296 ac_lo=$ac_mid; break
2297 else
2298 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2299 if test $ac_mid -le $ac_hi; then
2300 ac_lo= ac_hi=
2301 break
2303 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 done
2307 else
2308 ac_lo= ac_hi=
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 # Binary search between lo and hi bounds.
2314 while test "x$ac_lo" != "x$ac_hi"; do
2315 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2320 main ()
2322 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2323 test_array [0] = 0;
2324 return test_array [0];
2327 return 0;
2329 _ACEOF
2330 if ac_fn_cxx_try_compile "$LINENO"; then :
2331 ac_hi=$ac_mid
2332 else
2333 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 done
2337 case $ac_lo in #((
2338 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2339 '') ac_retval=1 ;;
2340 esac
2341 else
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2345 static long int longval () { return $2; }
2346 static unsigned long int ulongval () { return $2; }
2347 #include <stdio.h>
2348 #include <stdlib.h>
2350 main ()
2353 FILE *f = fopen ("conftest.val", "w");
2354 if (! f)
2355 return 1;
2356 if (($2) < 0)
2358 long int i = longval ();
2359 if (i != ($2))
2360 return 1;
2361 fprintf (f, "%ld", i);
2363 else
2365 unsigned long int i = ulongval ();
2366 if (i != ($2))
2367 return 1;
2368 fprintf (f, "%lu", i);
2370 /* Do not output a trailing newline, as this causes \r\n confusion
2371 on some platforms. */
2372 return ferror (f) || fclose (f) != 0;
2375 return 0;
2377 _ACEOF
2378 if ac_fn_cxx_try_run "$LINENO"; then :
2379 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2380 else
2381 ac_retval=1
2383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2384 conftest.$ac_objext conftest.beam conftest.$ac_ext
2385 rm -f conftest.val
2388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2389 as_fn_set_status $ac_retval
2391 } # ac_fn_cxx_compute_int
2393 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2394 # ---------------------------------------------
2395 # Tests whether TYPE exists after having included INCLUDES, setting cache
2396 # variable VAR accordingly.
2397 ac_fn_cxx_check_type ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401 $as_echo_n "checking for $2... " >&6; }
2402 if eval \${$3+:} false; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 eval "$3=no"
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2410 main ()
2412 if (sizeof ($2))
2413 return 0;
2415 return 0;
2417 _ACEOF
2418 if ac_fn_cxx_try_compile "$LINENO"; then :
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2423 main ()
2425 if (sizeof (($2)))
2426 return 0;
2428 return 0;
2430 _ACEOF
2431 if ac_fn_cxx_try_compile "$LINENO"; then :
2433 else
2434 eval "$3=yes"
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2445 } # ac_fn_cxx_check_type
2447 # ac_fn_c_find_intX_t LINENO BITS VAR
2448 # -----------------------------------
2449 # Finds a signed integer type with width BITS, setting cache variable VAR
2450 # accordingly.
2451 ac_fn_c_find_intX_t ()
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2455 $as_echo_n "checking for int$2_t... " >&6; }
2456 if eval \${$3+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 eval "$3=no"
2460 # Order is important - never check a type that is potentially smaller
2461 # than half of the expected target width.
2462 for ac_type in int$2_t 'int' 'long int' \
2463 'long long int' 'short int' 'signed char'; do
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2466 $ac_includes_default
2467 enum { N = $2 / 2 - 1 };
2469 main ()
2471 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2472 test_array [0] = 0;
2473 return test_array [0];
2476 return 0;
2478 _ACEOF
2479 if ac_fn_cxx_try_compile "$LINENO"; then :
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482 $ac_includes_default
2483 enum { N = $2 / 2 - 1 };
2485 main ()
2487 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2488 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2489 test_array [0] = 0;
2490 return test_array [0];
2493 return 0;
2495 _ACEOF
2496 if ac_fn_cxx_try_compile "$LINENO"; then :
2498 else
2499 case $ac_type in #(
2500 int$2_t) :
2501 eval "$3=yes" ;; #(
2502 *) :
2503 eval "$3=\$ac_type" ;;
2504 esac
2506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 if eval test \"x\$"$3"\" = x"no"; then :
2511 else
2512 break
2514 done
2516 eval ac_res=\$$3
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2518 $as_echo "$ac_res" >&6; }
2519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2521 } # ac_fn_c_find_intX_t
2523 # ac_fn_cxx_try_link LINENO
2524 # -------------------------
2525 # Try to link conftest.$ac_ext, and return whether this succeeded.
2526 ac_fn_cxx_try_link ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 rm -f conftest.$ac_objext conftest$ac_exeext
2530 if { { ac_try="$ac_link"
2531 case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534 esac
2535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2536 $as_echo "$ac_try_echo"; } >&5
2537 (eval "$ac_link") 2>conftest.err
2538 ac_status=$?
2539 if test -s conftest.err; then
2540 grep -v '^ *+' conftest.err >conftest.er1
2541 cat conftest.er1 >&5
2542 mv -f conftest.er1 conftest.err
2544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2545 test $ac_status = 0; } && {
2546 test -z "$ac_cxx_werror_flag" ||
2547 test ! -s conftest.err
2548 } && test -s conftest$ac_exeext && {
2549 test "$cross_compiling" = yes ||
2550 test -x conftest$ac_exeext
2551 }; then :
2552 ac_retval=0
2553 else
2554 $as_echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 ac_retval=1
2559 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2560 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2561 # interfere with the next link command; also delete a directory that is
2562 # left behind by Apple's compiler. We do this before executing the actions.
2563 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565 as_fn_set_status $ac_retval
2567 } # ac_fn_cxx_try_link
2569 # ac_fn_c_find_uintX_t LINENO BITS VAR
2570 # ------------------------------------
2571 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2572 # accordingly.
2573 ac_fn_c_find_uintX_t ()
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2577 $as_echo_n "checking for uint$2_t... " >&6; }
2578 if eval \${$3+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 eval "$3=no"
2582 # Order is important - never check a type that is potentially smaller
2583 # than half of the expected target width.
2584 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2585 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2588 $ac_includes_default
2590 main ()
2592 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2593 test_array [0] = 0;
2594 return test_array [0];
2597 return 0;
2599 _ACEOF
2600 if ac_fn_cxx_try_compile "$LINENO"; then :
2601 case $ac_type in #(
2602 uint$2_t) :
2603 eval "$3=yes" ;; #(
2604 *) :
2605 eval "$3=\$ac_type" ;;
2606 esac
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 if eval test \"x\$"$3"\" = x"no"; then :
2611 else
2612 break
2614 done
2616 eval ac_res=\$$3
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2621 } # ac_fn_c_find_uintX_t
2623 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2624 # ------------------------------------------------
2625 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2626 ac_fn_cxx_check_header_preproc ()
2628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2630 $as_echo_n "checking for $2... " >&6; }
2631 if eval \${$3+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2636 #include <$2>
2637 _ACEOF
2638 if ac_fn_cxx_try_cpp "$LINENO"; then :
2639 eval "$3=yes"
2640 else
2641 eval "$3=no"
2643 rm -f conftest.err conftest.i conftest.$ac_ext
2645 eval ac_res=\$$3
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2647 $as_echo "$ac_res" >&6; }
2648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650 } # ac_fn_cxx_check_header_preproc
2652 # ac_fn_cxx_check_func LINENO FUNC VAR
2653 # ------------------------------------
2654 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2655 ac_fn_cxx_check_func ()
2657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2659 $as_echo_n "checking for $2... " >&6; }
2660 if eval \${$3+:} false; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2665 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2667 #define $2 innocuous_$2
2669 /* System header to define __stub macros and hopefully few prototypes,
2670 which can conflict with char $2 (); below.
2671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2672 <limits.h> exists even on freestanding compilers. */
2674 #ifdef __STDC__
2675 # include <limits.h>
2676 #else
2677 # include <assert.h>
2678 #endif
2680 #undef $2
2682 /* Override any GCC internal prototype to avoid an error.
2683 Use char because int might match the return type of a GCC
2684 builtin and then its argument prototype would still apply. */
2685 #ifdef __cplusplus
2686 extern "C"
2687 #endif
2688 char $2 ();
2689 /* The GNU C library defines this for functions which it implements
2690 to always fail with ENOSYS. Some functions are actually named
2691 something starting with __ and the normal name is an alias. */
2692 #if defined __stub_$2 || defined __stub___$2
2693 choke me
2694 #endif
2697 main ()
2699 return $2 ();
2701 return 0;
2703 _ACEOF
2704 if ac_fn_cxx_try_link "$LINENO"; then :
2705 eval "$3=yes"
2706 else
2707 eval "$3=no"
2709 rm -f core conftest.err conftest.$ac_objext \
2710 conftest$ac_exeext conftest.$ac_ext
2712 eval ac_res=\$$3
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2714 $as_echo "$ac_res" >&6; }
2715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2717 } # ac_fn_cxx_check_func
2719 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2720 # -----------------------------------------------
2721 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2722 # accordingly.
2723 ac_fn_cxx_check_decl ()
2725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2726 as_decl_name=`echo $2|sed 's/ *(.*//'`
2727 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2729 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2730 if eval \${$3+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2737 main ()
2739 #ifndef $as_decl_name
2740 #ifdef __cplusplus
2741 (void) $as_decl_use;
2742 #else
2743 (void) $as_decl_name;
2744 #endif
2745 #endif
2748 return 0;
2750 _ACEOF
2751 if ac_fn_cxx_try_compile "$LINENO"; then :
2752 eval "$3=yes"
2753 else
2754 eval "$3=no"
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758 eval ac_res=\$$3
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2760 $as_echo "$ac_res" >&6; }
2761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2763 } # ac_fn_cxx_check_decl
2765 # ac_fn_c_try_link LINENO
2766 # -----------------------
2767 # Try to link conftest.$ac_ext, and return whether this succeeded.
2768 ac_fn_c_try_link ()
2770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771 rm -f conftest.$ac_objext conftest$ac_exeext
2772 if { { ac_try="$ac_link"
2773 case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2778 $as_echo "$ac_try_echo"; } >&5
2779 (eval "$ac_link") 2>conftest.err
2780 ac_status=$?
2781 if test -s conftest.err; then
2782 grep -v '^ *+' conftest.err >conftest.er1
2783 cat conftest.er1 >&5
2784 mv -f conftest.er1 conftest.err
2786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest$ac_exeext && {
2791 test "$cross_compiling" = yes ||
2792 test -x conftest$ac_exeext
2793 }; then :
2794 ac_retval=0
2795 else
2796 $as_echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2799 ac_retval=1
2801 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2802 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2803 # interfere with the next link command; also delete a directory that is
2804 # left behind by Apple's compiler. We do this before executing the actions.
2805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2807 as_fn_set_status $ac_retval
2809 } # ac_fn_c_try_link
2811 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2812 # ----------------------------------------------
2813 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2814 ac_fn_c_check_header_preproc ()
2816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2818 $as_echo_n "checking for $2... " >&6; }
2819 if eval \${$3+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2824 #include <$2>
2825 _ACEOF
2826 if ac_fn_c_try_cpp "$LINENO"; then :
2827 eval "$3=yes"
2828 else
2829 eval "$3=no"
2831 rm -f conftest.err conftest.i conftest.$ac_ext
2833 eval ac_res=\$$3
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835 $as_echo "$ac_res" >&6; }
2836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2838 } # ac_fn_c_check_header_preproc
2840 # ac_fn_c_check_func LINENO FUNC VAR
2841 # ----------------------------------
2842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2843 ac_fn_c_check_func ()
2845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2847 $as_echo_n "checking for $2... " >&6; }
2848 if eval \${$3+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2855 #define $2 innocuous_$2
2857 /* System header to define __stub macros and hopefully few prototypes,
2858 which can conflict with char $2 (); below.
2859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2860 <limits.h> exists even on freestanding compilers. */
2862 #ifdef __STDC__
2863 # include <limits.h>
2864 #else
2865 # include <assert.h>
2866 #endif
2868 #undef $2
2870 /* Override any GCC internal prototype to avoid an error.
2871 Use char because int might match the return type of a GCC
2872 builtin and then its argument prototype would still apply. */
2873 #ifdef __cplusplus
2874 extern "C"
2875 #endif
2876 char $2 ();
2877 /* The GNU C library defines this for functions which it implements
2878 to always fail with ENOSYS. Some functions are actually named
2879 something starting with __ and the normal name is an alias. */
2880 #if defined __stub_$2 || defined __stub___$2
2881 choke me
2882 #endif
2885 main ()
2887 return $2 ();
2889 return 0;
2891 _ACEOF
2892 if ac_fn_c_try_link "$LINENO"; then :
2893 eval "$3=yes"
2894 else
2895 eval "$3=no"
2897 rm -f core conftest.err conftest.$ac_objext \
2898 conftest$ac_exeext conftest.$ac_ext
2900 eval ac_res=\$$3
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2902 $as_echo "$ac_res" >&6; }
2903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2905 } # ac_fn_c_check_func
2906 cat >config.log <<_ACEOF
2907 This file contains any messages produced by compilers while
2908 running configure, to aid debugging if configure makes a mistake.
2910 It was created by $as_me, which was
2911 generated by GNU Autoconf 2.69. Invocation command line was
2913 $ $0 $@
2915 _ACEOF
2916 exec 5>>config.log
2918 cat <<_ASUNAME
2919 ## --------- ##
2920 ## Platform. ##
2921 ## --------- ##
2923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2924 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2925 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2926 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2927 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2940 _ASUNAME
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 $as_echo "PATH: $as_dir"
2948 done
2949 IFS=$as_save_IFS
2951 } >&5
2953 cat >&5 <<_ACEOF
2956 ## ----------- ##
2957 ## Core tests. ##
2958 ## ----------- ##
2960 _ACEOF
2963 # Keep a trace of the command line.
2964 # Strip out --no-create and --no-recursion so they do not pile up.
2965 # Strip out --silent because we don't want to record it for future runs.
2966 # Also quote any args containing shell meta-characters.
2967 # Make two passes to allow for proper duplicate-argument suppression.
2968 ac_configure_args=
2969 ac_configure_args0=
2970 ac_configure_args1=
2971 ac_must_keep_next=false
2972 for ac_pass in 1 2
2974 for ac_arg
2976 case $ac_arg in
2977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2979 | -silent | --silent | --silen | --sile | --sil)
2980 continue ;;
2981 *\'*)
2982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2983 esac
2984 case $ac_pass in
2985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2987 as_fn_append ac_configure_args1 " '$ac_arg'"
2988 if test $ac_must_keep_next = true; then
2989 ac_must_keep_next=false # Got value, back to normal.
2990 else
2991 case $ac_arg in
2992 *=* | --config-cache | -C | -disable-* | --disable-* \
2993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2995 | -with-* | --with-* | -without-* | --without-* | --x)
2996 case "$ac_configure_args0 " in
2997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2998 esac
3000 -* ) ac_must_keep_next=true ;;
3001 esac
3003 as_fn_append ac_configure_args " '$ac_arg'"
3005 esac
3006 done
3007 done
3008 { ac_configure_args0=; unset ac_configure_args0;}
3009 { ac_configure_args1=; unset ac_configure_args1;}
3011 # When interrupted or exit'd, cleanup temporary files, and complete
3012 # config.log. We remove comments because anyway the quotes in there
3013 # would cause problems or look ugly.
3014 # WARNING: Use '\'' to represent an apostrophe within the trap.
3015 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3016 trap 'exit_status=$?
3017 # Save into config.log some information that might help in debugging.
3019 echo
3021 $as_echo "## ---------------- ##
3022 ## Cache variables. ##
3023 ## ---------------- ##"
3024 echo
3025 # The following way of writing the cache mishandles newlines in values,
3027 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3028 eval ac_val=\$$ac_var
3029 case $ac_val in #(
3030 *${as_nl}*)
3031 case $ac_var in #(
3032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3034 esac
3035 case $ac_var in #(
3036 _ | IFS | as_nl) ;; #(
3037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3038 *) { eval $ac_var=; unset $ac_var;} ;;
3039 esac ;;
3040 esac
3041 done
3042 (set) 2>&1 |
3043 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3044 *${as_nl}ac_space=\ *)
3045 sed -n \
3046 "s/'\''/'\''\\\\'\'''\''/g;
3047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3048 ;; #(
3050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3052 esac |
3053 sort
3055 echo
3057 $as_echo "## ----------------- ##
3058 ## Output variables. ##
3059 ## ----------------- ##"
3060 echo
3061 for ac_var in $ac_subst_vars
3063 eval ac_val=\$$ac_var
3064 case $ac_val in
3065 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3066 esac
3067 $as_echo "$ac_var='\''$ac_val'\''"
3068 done | sort
3069 echo
3071 if test -n "$ac_subst_files"; then
3072 $as_echo "## ------------------- ##
3073 ## File substitutions. ##
3074 ## ------------------- ##"
3075 echo
3076 for ac_var in $ac_subst_files
3078 eval ac_val=\$$ac_var
3079 case $ac_val in
3080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3081 esac
3082 $as_echo "$ac_var='\''$ac_val'\''"
3083 done | sort
3084 echo
3087 if test -s confdefs.h; then
3088 $as_echo "## ----------- ##
3089 ## confdefs.h. ##
3090 ## ----------- ##"
3091 echo
3092 cat confdefs.h
3093 echo
3095 test "$ac_signal" != 0 &&
3096 $as_echo "$as_me: caught signal $ac_signal"
3097 $as_echo "$as_me: exit $exit_status"
3098 } >&5
3099 rm -f core *.core core.conftest.* &&
3100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3101 exit $exit_status
3103 for ac_signal in 1 2 13 15; do
3104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3105 done
3106 ac_signal=0
3108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3109 rm -f -r conftest* confdefs.h
3111 $as_echo "/* confdefs.h */" > confdefs.h
3113 # Predefined preprocessor variables.
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_NAME "$PACKAGE_NAME"
3117 _ACEOF
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3121 _ACEOF
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3125 _ACEOF
3127 cat >>confdefs.h <<_ACEOF
3128 #define PACKAGE_STRING "$PACKAGE_STRING"
3129 _ACEOF
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3133 _ACEOF
3135 cat >>confdefs.h <<_ACEOF
3136 #define PACKAGE_URL "$PACKAGE_URL"
3137 _ACEOF
3140 # Let the site file select an alternate cache file if it wants to.
3141 # Prefer an explicitly selected file to automatically selected ones.
3142 ac_site_file1=NONE
3143 ac_site_file2=NONE
3144 if test -n "$CONFIG_SITE"; then
3145 # We do not want a PATH search for config.site.
3146 case $CONFIG_SITE in #((
3147 -*) ac_site_file1=./$CONFIG_SITE;;
3148 */*) ac_site_file1=$CONFIG_SITE;;
3149 *) ac_site_file1=./$CONFIG_SITE;;
3150 esac
3151 elif test "x$prefix" != xNONE; then
3152 ac_site_file1=$prefix/share/config.site
3153 ac_site_file2=$prefix/etc/config.site
3154 else
3155 ac_site_file1=$ac_default_prefix/share/config.site
3156 ac_site_file2=$ac_default_prefix/etc/config.site
3158 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3160 test "x$ac_site_file" = xNONE && continue
3161 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3163 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3164 sed 's/^/| /' "$ac_site_file" >&5
3165 . "$ac_site_file" \
3166 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error $? "failed to load site script $ac_site_file
3169 See \`config.log' for more details" "$LINENO" 5; }
3171 done
3173 if test -r "$cache_file"; then
3174 # Some versions of bash will fail to source /dev/null (special files
3175 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3176 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3178 $as_echo "$as_me: loading cache $cache_file" >&6;}
3179 case $cache_file in
3180 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3181 *) . "./$cache_file";;
3182 esac
3184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3186 $as_echo "$as_me: creating cache $cache_file" >&6;}
3187 >$cache_file
3190 # Check that the precious variables saved in the cache have kept the same
3191 # value.
3192 ac_cache_corrupted=false
3193 for ac_var in $ac_precious_vars; do
3194 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3195 eval ac_new_set=\$ac_env_${ac_var}_set
3196 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3197 eval ac_new_val=\$ac_env_${ac_var}_value
3198 case $ac_old_set,$ac_new_set in
3199 set,)
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3201 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3202 ac_cache_corrupted=: ;;
3203 ,set)
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3205 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3206 ac_cache_corrupted=: ;;
3207 ,);;
3209 if test "x$ac_old_val" != "x$ac_new_val"; then
3210 # differences in whitespace do not lead to failure.
3211 ac_old_val_w=`echo x $ac_old_val`
3212 ac_new_val_w=`echo x $ac_new_val`
3213 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3215 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3216 ac_cache_corrupted=:
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3219 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3220 eval $ac_var=\$ac_old_val
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3223 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3225 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3226 fi;;
3227 esac
3228 # Pass precious variables to config.status.
3229 if test "$ac_new_set" = set; then
3230 case $ac_new_val in
3231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3232 *) ac_arg=$ac_var=$ac_new_val ;;
3233 esac
3234 case " $ac_configure_args " in
3235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3236 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3237 esac
3239 done
3240 if $ac_cache_corrupted; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3244 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3245 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3247 ## -------------------- ##
3248 ## Main body of script. ##
3249 ## -------------------- ##
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3265 gcc_version=`cat $srcdir/BASE-VER`
3267 # Determine the host, build, and target systems
3268 ac_aux_dir=
3269 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3270 if test -f "$ac_dir/install-sh"; then
3271 ac_aux_dir=$ac_dir
3272 ac_install_sh="$ac_aux_dir/install-sh -c"
3273 break
3274 elif test -f "$ac_dir/install.sh"; then
3275 ac_aux_dir=$ac_dir
3276 ac_install_sh="$ac_aux_dir/install.sh -c"
3277 break
3278 elif test -f "$ac_dir/shtool"; then
3279 ac_aux_dir=$ac_dir
3280 ac_install_sh="$ac_aux_dir/shtool install -c"
3281 break
3283 done
3284 if test -z "$ac_aux_dir"; then
3285 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3288 # These three variables are undocumented and unsupported,
3289 # and are intended to be withdrawn in a future Autoconf release.
3290 # They can cause serious problems if a builder's source tree is in a directory
3291 # whose full name contains unusual characters.
3292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3297 # Make sure we can run config.sub.
3298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3299 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3302 $as_echo_n "checking build system type... " >&6; }
3303 if ${ac_cv_build+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 ac_build_alias=$build_alias
3307 test "x$ac_build_alias" = x &&
3308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3309 test "x$ac_build_alias" = x &&
3310 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3312 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3316 $as_echo "$ac_cv_build" >&6; }
3317 case $ac_cv_build in
3318 *-*-*) ;;
3319 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3320 esac
3321 build=$ac_cv_build
3322 ac_save_IFS=$IFS; IFS='-'
3323 set x $ac_cv_build
3324 shift
3325 build_cpu=$1
3326 build_vendor=$2
3327 shift; shift
3328 # Remember, the first character of IFS is used to create $*,
3329 # except with old shells:
3330 build_os=$*
3331 IFS=$ac_save_IFS
3332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3336 $as_echo_n "checking host system type... " >&6; }
3337 if ${ac_cv_host+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 if test "x$host_alias" = x; then
3341 ac_cv_host=$ac_cv_build
3342 else
3343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3349 $as_echo "$ac_cv_host" >&6; }
3350 case $ac_cv_host in
3351 *-*-*) ;;
3352 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3353 esac
3354 host=$ac_cv_host
3355 ac_save_IFS=$IFS; IFS='-'
3356 set x $ac_cv_host
3357 shift
3358 host_cpu=$1
3359 host_vendor=$2
3360 shift; shift
3361 # Remember, the first character of IFS is used to create $*,
3362 # except with old shells:
3363 host_os=$*
3364 IFS=$ac_save_IFS
3365 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3369 $as_echo_n "checking target system type... " >&6; }
3370 if ${ac_cv_target+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if test "x$target_alias" = x; then
3374 ac_cv_target=$ac_cv_host
3375 else
3376 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3382 $as_echo "$ac_cv_target" >&6; }
3383 case $ac_cv_target in
3384 *-*-*) ;;
3385 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3386 esac
3387 target=$ac_cv_target
3388 ac_save_IFS=$IFS; IFS='-'
3389 set x $ac_cv_target
3390 shift
3391 target_cpu=$1
3392 target_vendor=$2
3393 shift; shift
3394 # Remember, the first character of IFS is used to create $*,
3395 # except with old shells:
3396 target_os=$*
3397 IFS=$ac_save_IFS
3398 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3401 # The aliases save the names the user supplied, while $host etc.
3402 # will get canonicalized.
3403 test -n "$target_alias" &&
3404 test "$program_prefix$program_suffix$program_transform_name" = \
3405 NONENONEs,x,x, &&
3406 program_prefix=${target_alias}-
3408 # Determine the noncanonical host name, for Ada.
3409 case ${build_alias} in
3410 "") build_noncanonical=${build} ;;
3411 *) build_noncanonical=${build_alias} ;;
3412 esac
3414 case ${host_alias} in
3415 "") host_noncanonical=${build_noncanonical} ;;
3416 *) host_noncanonical=${host_alias} ;;
3417 esac
3422 # Determine the noncanonical target name, for directory use.
3423 case ${target_alias} in
3424 "") target_noncanonical=${host_noncanonical} ;;
3425 *) target_noncanonical=${target_alias} ;;
3426 esac
3431 # Used for constructing correct paths for offload compilers.
3432 real_target_noncanonical=${target_noncanonical}
3433 accel_dir_suffix=
3435 # Determine the target- and build-specific subdirectories
3437 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3438 # have matching libraries, they should use host libraries: Makefile.tpl
3439 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3440 # However, they still use the build modules, because the corresponding
3441 # host modules (e.g. bison) are only built for the host when bootstrap
3442 # finishes. So:
3443 # - build_subdir is where we find build modules, and never changes.
3444 # - build_libsubdir is where we find build libraries, and can be overridden.
3446 # Prefix 'build-' so this never conflicts with target_subdir.
3447 build_subdir="build-${build_noncanonical}"
3449 # Check whether --with-build-libsubdir was given.
3450 if test "${with_build_libsubdir+set}" = set; then :
3451 withval=$with_build_libsubdir; build_libsubdir="$withval"
3452 else
3453 build_libsubdir="$build_subdir"
3456 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3457 if ( test $srcdir = . && test -d gcc ) \
3458 || test -d $srcdir/../host-${host_noncanonical}; then
3459 host_subdir="host-${host_noncanonical}"
3460 else
3461 host_subdir=.
3463 # No prefix.
3464 target_subdir=${target_noncanonical}
3467 # Set program_transform_name
3468 test "$program_prefix" != NONE &&
3469 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3470 # Use a double $ so make ignores it.
3471 test "$program_suffix" != NONE &&
3472 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3473 # Double any \ or $.
3474 # By default was `s,x,x', remove it if useless.
3475 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3476 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3479 # Check for bogus environment variables.
3480 # Test if LIBRARY_PATH contains the notation for the current directory
3481 # since this would lead to problems installing/building glibc.
3482 # LIBRARY_PATH contains the current directory if one of the following
3483 # is true:
3484 # - one of the terminals (":" and ";") is the first or last sign
3485 # - two terminals occur directly after each other
3486 # - the path contains an element with a dot in it
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3488 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3489 case ${LIBRARY_PATH} in
3490 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3491 library_path_setting="contains current directory"
3494 library_path_setting="ok"
3496 esac
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3498 $as_echo "$library_path_setting" >&6; }
3499 if test "$library_path_setting" != "ok"; then
3500 as_fn_error $? "
3501 *** LIBRARY_PATH shouldn't contain the current directory when
3502 *** building gcc. Please change the environment variable
3503 *** and run configure again." "$LINENO" 5
3506 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3507 # since this would lead to problems installing/building glibc.
3508 # GCC_EXEC_PREFIX contains the current directory if one of the following
3509 # is true:
3510 # - one of the terminals (":" and ";") is the first or last sign
3511 # - two terminals occur directly after each other
3512 # - the path contains an element with a dot in it
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3514 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3515 case ${GCC_EXEC_PREFIX} in
3516 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3517 gcc_exec_prefix_setting="contains current directory"
3520 gcc_exec_prefix_setting="ok"
3522 esac
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3524 $as_echo "$gcc_exec_prefix_setting" >&6; }
3525 if test "$gcc_exec_prefix_setting" != "ok"; then
3526 as_fn_error $? "
3527 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3528 *** building gcc. Please change the environment variable
3529 *** and run configure again." "$LINENO" 5
3532 # -----------
3533 # Directories
3534 # -----------
3536 # Specify the local prefix
3537 local_prefix=
3539 # Check whether --with-local-prefix was given.
3540 if test "${with_local_prefix+set}" = set; then :
3541 withval=$with_local_prefix; case "${withval}" in
3542 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3543 no) ;;
3544 *) local_prefix=$with_local_prefix ;;
3545 esac
3549 # Default local prefix if it is empty
3550 if test x$local_prefix = x; then
3551 local_prefix=/usr/local
3555 # Check whether --with-native-system-header-dir was given.
3556 if test "${with_native_system_header_dir+set}" = set; then :
3557 withval=$with_native_system_header_dir;
3558 case ${with_native_system_header_dir} in
3559 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3560 /* | [A-Za-z]:[\\/]*) ;;
3561 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3562 esac
3563 configured_native_system_header_dir="${withval}"
3565 else
3566 configured_native_system_header_dir=
3571 # Check whether --with-build-sysroot was given.
3572 if test "${with_build_sysroot+set}" = set; then :
3573 withval=$with_build_sysroot; if test x"$withval" != x ; then
3574 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3576 else
3577 SYSROOT_CFLAGS_FOR_TARGET=
3582 if test "x$prefix" = xNONE; then
3583 test_prefix=/usr/local
3584 else
3585 test_prefix=$prefix
3587 if test "x$exec_prefix" = xNONE; then
3588 test_exec_prefix=$test_prefix
3589 else
3590 test_exec_prefix=$exec_prefix
3594 # Check whether --with-sysroot was given.
3595 if test "${with_sysroot+set}" = set; then :
3596 withval=$with_sysroot;
3597 case ${with_sysroot} in
3598 /) ;;
3599 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3600 esac
3601 case ${with_sysroot} in
3602 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3603 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3604 esac
3606 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3607 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3609 case ${TARGET_SYSTEM_ROOT} in
3610 "${test_prefix}"|"${test_prefix}/"*|\
3611 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3612 '${prefix}'|'${prefix}/'*|\
3613 '${exec_prefix}'|'${exec_prefix}/'*)
3614 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3615 TARGET_SYSTEM_ROOT_DEFINE="$t"
3617 esac
3619 else
3621 TARGET_SYSTEM_ROOT=
3622 TARGET_SYSTEM_ROOT_DEFINE=
3623 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3631 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3632 # passed in by the toplevel make and thus we'd get different behavior
3633 # depending on where we built the sources.
3634 gcc_gxx_include_dir=
3635 # Specify the g++ header file directory
3637 # Check whether --with-gxx-include-dir was given.
3638 if test "${with_gxx_include_dir+set}" = set; then :
3639 withval=$with_gxx_include_dir; case "${withval}" in
3640 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3641 no) ;;
3642 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3643 esac
3647 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3648 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3649 # relative to the sysroot.
3650 gcc_gxx_include_dir_add_sysroot=0
3652 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3653 if test x${gcc_gxx_include_dir} = x; then
3654 if test x${enable_version_specific_runtime_libs} = xyes; then
3655 gcc_gxx_include_dir='${libsubdir}/include/c++'
3656 else
3657 libstdcxx_incdir='include/c++/$(version)'
3658 if test x$host != x$target; then
3659 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3661 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3663 elif test "${with_sysroot+set}" = set; then
3664 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3665 if test "${gcc_gxx_without_sysroot}"; then
3666 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3667 gcc_gxx_include_dir_add_sysroot=1
3672 # Check whether --with-cpp_install_dir was given.
3673 if test "${with_cpp_install_dir+set}" = set; then :
3674 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3675 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3676 elif test x$withval != xno; then
3677 cpp_install_dir=$withval
3682 # We would like to our source tree to be readonly. However when releases or
3683 # pre-releases are generated, the flex/bison generated files as well as the
3684 # various formats of manuals need to be included along with the rest of the
3685 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3686 # just that.
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3689 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3690 # Check whether --enable-generated-files-in-srcdir was given.
3691 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3692 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3693 else
3694 generated_files_in_srcdir=no
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3699 $as_echo "$generated_files_in_srcdir" >&6; }
3701 if test "$generated_files_in_srcdir" = "yes"; then
3702 GENINSRC=''
3703 else
3704 GENINSRC='#'
3708 # -------------------
3709 # Find default linker
3710 # -------------------
3712 # With GNU ld
3714 # Check whether --with-gnu-ld was given.
3715 if test "${with_gnu_ld+set}" = set; then :
3716 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3717 else
3718 gnu_ld_flag=no
3722 case $target in
3723 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3724 *) ld64_flag=no;;
3725 esac
3727 # With pre-defined ld
3729 # Check whether --with-ld was given.
3730 if test "${with_ld+set}" = set; then :
3731 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3734 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3735 if test ! -x "$DEFAULT_LINKER"; then
3736 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3737 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3738 gnu_ld_flag=yes
3739 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3740 ld64_flag=yes
3743 cat >>confdefs.h <<_ACEOF
3744 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3745 _ACEOF
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3750 $as_echo_n "checking whether a default linker was specified... " >&6; }
3751 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3752 if test x"$gnu_ld_flag" = x"no"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3754 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3757 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3759 else
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3764 # With demangler in GNU ld
3766 # Check whether --with-demangler-in-ld was given.
3767 if test "${with_demangler_in_ld+set}" = set; then :
3768 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3769 else
3770 demangler_in_ld=yes
3774 # ----------------------
3775 # Find default assembler
3776 # ----------------------
3778 # With GNU as
3780 # Check whether --with-gnu-as was given.
3781 if test "${with_gnu_as+set}" = set; then :
3782 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3783 else
3784 gas_flag=no
3789 # Check whether --with-as was given.
3790 if test "${with_as+set}" = set; then :
3791 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3794 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3795 if test ! -x "$DEFAULT_ASSEMBLER"; then
3796 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3797 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3798 gas_flag=yes
3801 cat >>confdefs.h <<_ACEOF
3802 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3803 _ACEOF
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3808 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3809 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3810 if test x"$gas_flag" = x"no"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3812 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3813 else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3815 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3817 else
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3822 # ---------------
3823 # Find C compiler
3824 # ---------------
3826 # If a non-executable a.out is present (e.g. created by GNU as above even if
3827 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3828 # file, even when creating an executable, so an execution test fails.
3829 # Remove possible default executable files to avoid this.
3831 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3832 # Autoconf includes it.
3833 rm -f a.out a.exe b.out
3835 # Find the native compiler
3836 ac_ext=c
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_prog_CC+:} false; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 if test -n "$CC"; then
3850 ac_cv_prog_CC="$CC" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3863 done
3864 done
3865 IFS=$as_save_IFS
3869 CC=$ac_cv_prog_CC
3870 if test -n "$CC"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3872 $as_echo "$CC" >&6; }
3873 else
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3880 if test -z "$ac_cv_prog_CC"; then
3881 ac_ct_CC=$CC
3882 # Extract the first word of "gcc", so it can be a program name with args.
3883 set dummy gcc; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 if test -n "$ac_ct_CC"; then
3890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_ac_ct_CC="gcc"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3903 done
3904 done
3905 IFS=$as_save_IFS
3909 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3910 if test -n "$ac_ct_CC"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3912 $as_echo "$ac_ct_CC" >&6; }
3913 else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3918 if test "x$ac_ct_CC" = x; then
3919 CC=""
3920 else
3921 case $cross_compiling:$ac_tool_warned in
3922 yes:)
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925 ac_tool_warned=yes ;;
3926 esac
3927 CC=$ac_ct_CC
3929 else
3930 CC="$ac_cv_prog_CC"
3933 if test -z "$CC"; then
3934 if test -n "$ac_tool_prefix"; then
3935 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3936 set dummy ${ac_tool_prefix}cc; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_CC+:} false; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC="$CC" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_CC="${ac_tool_prefix}cc"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3956 done
3957 done
3958 IFS=$as_save_IFS
3962 CC=$ac_cv_prog_CC
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3974 if test -z "$CC"; then
3975 # Extract the first word of "cc", so it can be a program name with args.
3976 set dummy cc; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if ${ac_cv_prog_CC+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3984 else
3985 ac_prog_rejected=no
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3994 ac_prog_rejected=yes
3995 continue
3997 ac_cv_prog_CC="cc"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4003 IFS=$as_save_IFS
4005 if test $ac_prog_rejected = yes; then
4006 # We found a bogon in the path, so make sure we never use it.
4007 set dummy $ac_cv_prog_CC
4008 shift
4009 if test $# != 0; then
4010 # We chose a different compiler from the bogus one.
4011 # However, it has the same basename, so the bogon will be chosen
4012 # first if we set CC to just the basename; use the full file name.
4013 shift
4014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4019 CC=$ac_cv_prog_CC
4020 if test -n "$CC"; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4022 $as_echo "$CC" >&6; }
4023 else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4030 if test -z "$CC"; then
4031 if test -n "$ac_tool_prefix"; then
4032 for ac_prog in cl.exe
4034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if ${ac_cv_prog_CC+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 if test -n "$CC"; then
4042 ac_cv_prog_CC="$CC" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4055 done
4056 done
4057 IFS=$as_save_IFS
4061 CC=$ac_cv_prog_CC
4062 if test -n "$CC"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4064 $as_echo "$CC" >&6; }
4065 else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4071 test -n "$CC" && break
4072 done
4074 if test -z "$CC"; then
4075 ac_ct_CC=$CC
4076 for ac_prog in cl.exe
4078 # Extract the first word of "$ac_prog", so it can be a program name with args.
4079 set dummy $ac_prog; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$ac_ct_CC"; then
4086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_ac_ct_CC="$ac_prog"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4099 done
4100 done
4101 IFS=$as_save_IFS
4105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4106 if test -n "$ac_ct_CC"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4108 $as_echo "$ac_ct_CC" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4115 test -n "$ac_ct_CC" && break
4116 done
4118 if test "x$ac_ct_CC" = x; then
4119 CC=""
4120 else
4121 case $cross_compiling:$ac_tool_warned in
4122 yes:)
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4125 ac_tool_warned=yes ;;
4126 esac
4127 CC=$ac_ct_CC
4134 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4136 as_fn_error $? "no acceptable C compiler found in \$PATH
4137 See \`config.log' for more details" "$LINENO" 5; }
4139 # Provide some information about the compiler.
4140 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4141 set X $ac_compile
4142 ac_compiler=$2
4143 for ac_option in --version -v -V -qversion; do
4144 { { ac_try="$ac_compiler $ac_option >&5"
4145 case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148 esac
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4152 ac_status=$?
4153 if test -s conftest.err; then
4154 sed '10a\
4155 ... rest of stderr output deleted ...
4156 10q' conftest.err >conftest.er1
4157 cat conftest.er1 >&5
4159 rm -f conftest.er1 conftest.err
4160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }
4162 done
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4168 main ()
4172 return 0;
4174 _ACEOF
4175 ac_clean_files_save=$ac_clean_files
4176 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4177 # Try to create an executable without -o first, disregard a.out.
4178 # It will help us diagnose broken compilers, and finding out an intuition
4179 # of exeext.
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4181 $as_echo_n "checking whether the C compiler works... " >&6; }
4182 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4184 # The possible output files:
4185 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4187 ac_rmfiles=
4188 for ac_file in $ac_files
4190 case $ac_file in
4191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4193 esac
4194 done
4195 rm -f $ac_rmfiles
4197 if { { ac_try="$ac_link_default"
4198 case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_link_default") 2>&5
4205 ac_status=$?
4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207 test $ac_status = 0; }; then :
4208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4210 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4211 # so that the user can short-circuit this test for compilers unknown to
4212 # Autoconf.
4213 for ac_file in $ac_files ''
4215 test -f "$ac_file" || continue
4216 case $ac_file in
4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4219 [ab].out )
4220 # We found the default executable, but exeext='' is most
4221 # certainly right.
4222 break;;
4223 *.* )
4224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4225 then :; else
4226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4228 # We set ac_cv_exeext here because the later test for it is not
4229 # safe: cross compilers may not add the suffix if given an `-o'
4230 # argument, so we may need to know it at that point already.
4231 # Even if this section looks crufty: it has the advantage of
4232 # actually working.
4233 break;;
4235 break;;
4236 esac
4237 done
4238 test "$ac_cv_exeext" = no && ac_cv_exeext=
4240 else
4241 ac_file=''
4243 if test -z "$ac_file"; then :
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4246 $as_echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4251 as_fn_error 77 "C compiler cannot create executables
4252 See \`config.log' for more details" "$LINENO" 5; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4255 $as_echo "yes" >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4258 $as_echo_n "checking for C compiler default output file name... " >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4260 $as_echo "$ac_file" >&6; }
4261 ac_exeext=$ac_cv_exeext
4263 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4264 ac_clean_files=$ac_clean_files_save
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4266 $as_echo_n "checking for suffix of executables... " >&6; }
4267 if { { ac_try="$ac_link"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_link") 2>&5
4275 ac_status=$?
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; then :
4278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4280 # work properly (i.e., refer to `conftest.exe'), while it won't with
4281 # `rm'.
4282 for ac_file in conftest.exe conftest conftest.*; do
4283 test -f "$ac_file" || continue
4284 case $ac_file in
4285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4287 break;;
4288 * ) break;;
4289 esac
4290 done
4291 else
4292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4294 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4295 See \`config.log' for more details" "$LINENO" 5; }
4297 rm -f conftest conftest$ac_cv_exeext
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4299 $as_echo "$ac_cv_exeext" >&6; }
4301 rm -f conftest.$ac_ext
4302 EXEEXT=$ac_cv_exeext
4303 ac_exeext=$EXEEXT
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #include <stdio.h>
4308 main ()
4310 FILE *f = fopen ("conftest.out", "w");
4311 return ferror (f) || fclose (f) != 0;
4314 return 0;
4316 _ACEOF
4317 ac_clean_files="$ac_clean_files conftest.out"
4318 # Check that the compiler produces executables we can run. If not, either
4319 # the compiler is broken, or we cross compile.
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4321 $as_echo_n "checking whether we are cross compiling... " >&6; }
4322 if test "$cross_compiling" != yes; then
4323 { { ac_try="$ac_link"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329 $as_echo "$ac_try_echo"; } >&5
4330 (eval "$ac_link") 2>&5
4331 ac_status=$?
4332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333 test $ac_status = 0; }
4334 if { ac_try='./conftest$ac_cv_exeext'
4335 { { case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_try") 2>&5
4342 ac_status=$?
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }; }; then
4345 cross_compiling=no
4346 else
4347 if test "$cross_compiling" = maybe; then
4348 cross_compiling=yes
4349 else
4350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352 as_fn_error $? "cannot run C compiled programs.
4353 If you meant to cross compile, use \`--host'.
4354 See \`config.log' for more details" "$LINENO" 5; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4359 $as_echo "$cross_compiling" >&6; }
4361 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4362 ac_clean_files=$ac_clean_files_save
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4364 $as_echo_n "checking for suffix of object files... " >&6; }
4365 if ${ac_cv_objext+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4372 main ()
4376 return 0;
4378 _ACEOF
4379 rm -f conftest.o conftest.obj
4380 if { { ac_try="$ac_compile"
4381 case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 $as_echo "$ac_try_echo"; } >&5
4387 (eval "$ac_compile") 2>&5
4388 ac_status=$?
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }; then :
4391 for ac_file in conftest.o conftest.obj conftest.*; do
4392 test -f "$ac_file" || continue;
4393 case $ac_file in
4394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4396 break;;
4397 esac
4398 done
4399 else
4400 $as_echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405 as_fn_error $? "cannot compute suffix of object files: cannot compile
4406 See \`config.log' for more details" "$LINENO" 5; }
4408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4411 $as_echo "$ac_cv_objext" >&6; }
4412 OBJEXT=$ac_cv_objext
4413 ac_objext=$OBJEXT
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4415 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4416 if ${ac_cv_c_compiler_gnu+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4423 main ()
4425 #ifndef __GNUC__
4426 choke me
4427 #endif
4430 return 0;
4432 _ACEOF
4433 if ac_fn_c_try_compile "$LINENO"; then :
4434 ac_compiler_gnu=yes
4435 else
4436 ac_compiler_gnu=no
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4443 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4444 if test $ac_compiler_gnu = yes; then
4445 GCC=yes
4446 else
4447 GCC=
4449 ac_test_CFLAGS=${CFLAGS+set}
4450 ac_save_CFLAGS=$CFLAGS
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4452 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4453 if ${ac_cv_prog_cc_g+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 ac_save_c_werror_flag=$ac_c_werror_flag
4457 ac_c_werror_flag=yes
4458 ac_cv_prog_cc_g=no
4459 CFLAGS="-g"
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4464 main ()
4468 return 0;
4470 _ACEOF
4471 if ac_fn_c_try_compile "$LINENO"; then :
4472 ac_cv_prog_cc_g=yes
4473 else
4474 CFLAGS=""
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4479 main ()
4483 return 0;
4485 _ACEOF
4486 if ac_fn_c_try_compile "$LINENO"; then :
4488 else
4489 ac_c_werror_flag=$ac_save_c_werror_flag
4490 CFLAGS="-g"
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4495 main ()
4499 return 0;
4501 _ACEOF
4502 if ac_fn_c_try_compile "$LINENO"; then :
4503 ac_cv_prog_cc_g=yes
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 ac_c_werror_flag=$ac_save_c_werror_flag
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4513 $as_echo "$ac_cv_prog_cc_g" >&6; }
4514 if test "$ac_test_CFLAGS" = set; then
4515 CFLAGS=$ac_save_CFLAGS
4516 elif test $ac_cv_prog_cc_g = yes; then
4517 if test "$GCC" = yes; then
4518 CFLAGS="-g -O2"
4519 else
4520 CFLAGS="-g"
4522 else
4523 if test "$GCC" = yes; then
4524 CFLAGS="-O2"
4525 else
4526 CFLAGS=
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4530 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4531 if ${ac_cv_prog_cc_c89+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 ac_cv_prog_cc_c89=no
4535 ac_save_CC=$CC
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #include <stdarg.h>
4539 #include <stdio.h>
4540 struct stat;
4541 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4542 struct buf { int x; };
4543 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4544 static char *e (p, i)
4545 char **p;
4546 int i;
4548 return p[i];
4550 static char *f (char * (*g) (char **, int), char **p, ...)
4552 char *s;
4553 va_list v;
4554 va_start (v,p);
4555 s = g (p, va_arg (v,int));
4556 va_end (v);
4557 return s;
4560 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4561 function prototypes and stuff, but not '\xHH' hex character constants.
4562 These don't provoke an error unfortunately, instead are silently treated
4563 as 'x'. The following induces an error, until -std is added to get
4564 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4565 array size at least. It's necessary to write '\x00'==0 to get something
4566 that's true only with -std. */
4567 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4569 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4570 inside strings and character constants. */
4571 #define FOO(x) 'x'
4572 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4574 int test (int i, double x);
4575 struct s1 {int (*f) (int a);};
4576 struct s2 {int (*f) (double a);};
4577 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4578 int argc;
4579 char **argv;
4581 main ()
4583 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4585 return 0;
4587 _ACEOF
4588 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4589 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4591 CC="$ac_save_CC $ac_arg"
4592 if ac_fn_c_try_compile "$LINENO"; then :
4593 ac_cv_prog_cc_c89=$ac_arg
4595 rm -f core conftest.err conftest.$ac_objext
4596 test "x$ac_cv_prog_cc_c89" != "xno" && break
4597 done
4598 rm -f conftest.$ac_ext
4599 CC=$ac_save_CC
4602 # AC_CACHE_VAL
4603 case "x$ac_cv_prog_cc_c89" in
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4606 $as_echo "none needed" >&6; } ;;
4607 xno)
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4609 $as_echo "unsupported" >&6; } ;;
4611 CC="$CC $ac_cv_prog_cc_c89"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4613 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4614 esac
4615 if test "x$ac_cv_prog_cc_c89" != xno; then :
4619 ac_ext=c
4620 ac_cpp='$CPP $CPPFLAGS'
4621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4625 ac_ext=cpp
4626 ac_cpp='$CXXCPP $CPPFLAGS'
4627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4630 if test -z "$CXX"; then
4631 if test -n "$CCC"; then
4632 CXX=$CCC
4633 else
4634 if test -n "$ac_tool_prefix"; then
4635 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_CXX+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$CXX"; then
4645 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4658 done
4659 done
4660 IFS=$as_save_IFS
4664 CXX=$ac_cv_prog_CXX
4665 if test -n "$CXX"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4667 $as_echo "$CXX" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4674 test -n "$CXX" && break
4675 done
4677 if test -z "$CXX"; then
4678 ac_ct_CXX=$CXX
4679 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4681 # Extract the first word of "$ac_prog", so it can be a program name with args.
4682 set dummy $ac_prog; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -n "$ac_ct_CXX"; then
4689 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698 ac_cv_prog_ac_ct_CXX="$ac_prog"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4702 done
4703 done
4704 IFS=$as_save_IFS
4708 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4709 if test -n "$ac_ct_CXX"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4711 $as_echo "$ac_ct_CXX" >&6; }
4712 else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4718 test -n "$ac_ct_CXX" && break
4719 done
4721 if test "x$ac_ct_CXX" = x; then
4722 CXX="g++"
4723 else
4724 case $cross_compiling:$ac_tool_warned in
4725 yes:)
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned=yes ;;
4729 esac
4730 CXX=$ac_ct_CXX
4736 # Provide some information about the compiler.
4737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4738 set X $ac_compile
4739 ac_compiler=$2
4740 for ac_option in --version -v -V -qversion; do
4741 { { ac_try="$ac_compiler $ac_option >&5"
4742 case "(($ac_try" in
4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744 *) ac_try_echo=$ac_try;;
4745 esac
4746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4747 $as_echo "$ac_try_echo"; } >&5
4748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4749 ac_status=$?
4750 if test -s conftest.err; then
4751 sed '10a\
4752 ... rest of stderr output deleted ...
4753 10q' conftest.err >conftest.er1
4754 cat conftest.er1 >&5
4756 rm -f conftest.er1 conftest.err
4757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4758 test $ac_status = 0; }
4759 done
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4762 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4763 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4770 main ()
4772 #ifndef __GNUC__
4773 choke me
4774 #endif
4777 return 0;
4779 _ACEOF
4780 if ac_fn_cxx_try_compile "$LINENO"; then :
4781 ac_compiler_gnu=yes
4782 else
4783 ac_compiler_gnu=no
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4790 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4791 if test $ac_compiler_gnu = yes; then
4792 GXX=yes
4793 else
4794 GXX=
4796 ac_test_CXXFLAGS=${CXXFLAGS+set}
4797 ac_save_CXXFLAGS=$CXXFLAGS
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4799 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4800 if ${ac_cv_prog_cxx_g+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4804 ac_cxx_werror_flag=yes
4805 ac_cv_prog_cxx_g=no
4806 CXXFLAGS="-g"
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4811 main ()
4815 return 0;
4817 _ACEOF
4818 if ac_fn_cxx_try_compile "$LINENO"; then :
4819 ac_cv_prog_cxx_g=yes
4820 else
4821 CXXFLAGS=""
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4826 main ()
4830 return 0;
4832 _ACEOF
4833 if ac_fn_cxx_try_compile "$LINENO"; then :
4835 else
4836 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4837 CXXFLAGS="-g"
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4842 main ()
4846 return 0;
4848 _ACEOF
4849 if ac_fn_cxx_try_compile "$LINENO"; then :
4850 ac_cv_prog_cxx_g=yes
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4860 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4861 if test "$ac_test_CXXFLAGS" = set; then
4862 CXXFLAGS=$ac_save_CXXFLAGS
4863 elif test $ac_cv_prog_cxx_g = yes; then
4864 if test "$GXX" = yes; then
4865 CXXFLAGS="-g -O2"
4866 else
4867 CXXFLAGS="-g"
4869 else
4870 if test "$GXX" = yes; then
4871 CXXFLAGS="-O2"
4872 else
4873 CXXFLAGS=
4876 ac_ext=c
4877 ac_cpp='$CPP $CPPFLAGS'
4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885 if test -n "$ac_tool_prefix"; then
4886 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4887 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if ${ac_cv_prog_GNATBIND+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 if test -n "$GNATBIND"; then
4894 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4907 done
4908 done
4909 IFS=$as_save_IFS
4913 GNATBIND=$ac_cv_prog_GNATBIND
4914 if test -n "$GNATBIND"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4916 $as_echo "$GNATBIND" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4924 if test -z "$ac_cv_prog_GNATBIND"; then
4925 ac_ct_GNATBIND=$GNATBIND
4926 # Extract the first word of "gnatbind", so it can be a program name with args.
4927 set dummy gnatbind; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$ac_ct_GNATBIND"; then
4934 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4947 done
4948 done
4949 IFS=$as_save_IFS
4953 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4954 if test -n "$ac_ct_GNATBIND"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4956 $as_echo "$ac_ct_GNATBIND" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4962 if test "x$ac_ct_GNATBIND" = x; then
4963 GNATBIND="no"
4964 else
4965 case $cross_compiling:$ac_tool_warned in
4966 yes:)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4969 ac_tool_warned=yes ;;
4970 esac
4971 GNATBIND=$ac_ct_GNATBIND
4973 else
4974 GNATBIND="$ac_cv_prog_GNATBIND"
4977 if test -n "$ac_tool_prefix"; then
4978 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4979 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if ${ac_cv_prog_GNATMAKE+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 if test -n "$GNATMAKE"; then
4986 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4999 done
5000 done
5001 IFS=$as_save_IFS
5005 GNATMAKE=$ac_cv_prog_GNATMAKE
5006 if test -n "$GNATMAKE"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5008 $as_echo "$GNATMAKE" >&6; }
5009 else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5016 if test -z "$ac_cv_prog_GNATMAKE"; then
5017 ac_ct_GNATMAKE=$GNATMAKE
5018 # Extract the first word of "gnatmake", so it can be a program name with args.
5019 set dummy gnatmake; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 if test -n "$ac_ct_GNATMAKE"; then
5026 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5039 done
5040 done
5041 IFS=$as_save_IFS
5045 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5046 if test -n "$ac_ct_GNATMAKE"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5048 $as_echo "$ac_ct_GNATMAKE" >&6; }
5049 else
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5054 if test "x$ac_ct_GNATMAKE" = x; then
5055 GNATMAKE="no"
5056 else
5057 case $cross_compiling:$ac_tool_warned in
5058 yes:)
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5061 ac_tool_warned=yes ;;
5062 esac
5063 GNATMAKE=$ac_ct_GNATMAKE
5065 else
5066 GNATMAKE="$ac_cv_prog_GNATMAKE"
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5070 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5071 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 cat >conftest.adb <<EOF
5075 procedure conftest is begin null; end conftest;
5077 acx_cv_cc_gcc_supports_ada=no
5078 # There is a bug in old released versions of GCC which causes the
5079 # driver to exit successfully when the appropriate language module
5080 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5081 # Therefore we must check for the error message as well as an
5082 # unsuccessful exit.
5083 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5084 # given a .adb file, but produce no object file. So we must check
5085 # if an object file was really produced to guard against this.
5086 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5087 if test x"$errors" = x && test -f conftest.$ac_objext; then
5088 acx_cv_cc_gcc_supports_ada=yes
5090 rm -f conftest.*
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5093 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5095 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5096 have_gnat=yes
5097 else
5098 have_gnat=no
5102 # Do configure tests with the C++ compiler, since that's what we build with.
5103 ac_ext=cpp
5104 ac_cpp='$CXXCPP $CPPFLAGS'
5105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5110 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5111 # optimizations to be activated explicitly by the toplevel.
5112 case "$CC" in
5113 */prev-gcc/xgcc*) ;;
5114 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5115 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5116 esac
5120 # Determine PICFLAG for target gnatlib.
5125 case "${target}" in
5126 # PIC is the default on some targets or must not be used.
5127 *-*-darwin*)
5128 # For darwin, common symbols are not allowed in MH_DYLIB files
5129 case "${CFLAGS}" in
5130 # If we are using a compiler supporting mdynamic-no-pic
5131 # and the option has been tested as safe to add, then cancel
5132 # it here, since the code generated is incompatible with shared
5133 # libs.
5134 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5135 *) PICFLAG_FOR_TARGET=-fno-common ;;
5136 esac
5138 alpha*-dec-osf5*)
5139 # PIC is the default.
5141 hppa*64*-*-hpux*)
5142 # PIC is the default for 64-bit PA HP-UX.
5144 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5146 i[34567]86-*-mingw* | x86_64-*-mingw*)
5148 i[34567]86-*-interix[3-9]*)
5149 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5150 # Instead, we relocate shared libraries at runtime.
5152 i[34567]86-*-nto-qnx*)
5153 # QNX uses GNU C++, but need to define -shared option too, otherwise
5154 # it will coredump.
5155 PICFLAG_FOR_TARGET='-fPIC -shared'
5157 i[34567]86-pc-msdosdjgpp*)
5158 # DJGPP does not support shared libraries at all.
5160 ia64*-*-hpux*)
5161 # On IA64 HP-UX, PIC is the default but the pic flag
5162 # sets the default TLS model and affects inlining.
5163 PICFLAG_FOR_TARGET=-fPIC
5165 mips-sgi-irix6*)
5166 # PIC is the default.
5168 rs6000-ibm-aix* | powerpc-ibm-aix*)
5169 # All AIX code is PIC.
5172 # Some targets support both -fPIC and -fpic, but prefer the latter.
5173 # FIXME: Why?
5174 i[34567]86-*-* | x86_64-*-*)
5175 PICFLAG_FOR_TARGET=-fpic
5177 # FIXME: Override -fPIC default in libgcc only?
5178 sh-*-linux* | sh[2346lbe]*-*-linux*)
5179 PICFLAG_FOR_TARGET=-fpic
5181 # FIXME: Simplify to sh*-*-netbsd*?
5182 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5183 sh64-*-netbsd* | sh64l*-*-netbsd*)
5184 PICFLAG_FOR_TARGET=-fpic
5186 # Default to -fPIC unless specified otherwise.
5188 PICFLAG_FOR_TARGET=-fPIC
5190 esac
5192 # If the user explicitly uses -fpic/-fPIC, keep that.
5193 case "${CFLAGS_FOR_TARGET}" in
5194 *-fpic*)
5195 PICFLAG_FOR_TARGET=-fpic
5197 *-fPIC*)
5198 PICFLAG_FOR_TARGET=-fPIC
5200 esac
5204 # -------------------------
5205 # Check C compiler features
5206 # -------------------------
5209 ac_ext=cpp
5210 ac_cpp='$CXXCPP $CPPFLAGS'
5211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5215 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5216 if test -z "$CXXCPP"; then
5217 if ${ac_cv_prog_CXXCPP+:} false; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 # Double quotes because CXXCPP needs to be expanded
5221 for CXXCPP in "$CXX -E" "/lib/cpp"
5223 ac_preproc_ok=false
5224 for ac_cxx_preproc_warn_flag in '' yes
5226 # Use a header file that comes with gcc, so configuring glibc
5227 # with a fresh cross-compiler works.
5228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5229 # <limits.h> exists even on freestanding compilers.
5230 # On the NeXT, cc -E runs the code through the compiler's parser,
5231 # not just through cpp. "Syntax error" is here to catch this case.
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234 #ifdef __STDC__
5235 # include <limits.h>
5236 #else
5237 # include <assert.h>
5238 #endif
5239 Syntax error
5240 _ACEOF
5241 if ac_fn_cxx_try_cpp "$LINENO"; then :
5243 else
5244 # Broken: fails on valid input.
5245 continue
5247 rm -f conftest.err conftest.i conftest.$ac_ext
5249 # OK, works on sane cases. Now check whether nonexistent headers
5250 # can be detected and how.
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #include <ac_nonexistent.h>
5254 _ACEOF
5255 if ac_fn_cxx_try_cpp "$LINENO"; then :
5256 # Broken: success on invalid input.
5257 continue
5258 else
5259 # Passes both tests.
5260 ac_preproc_ok=:
5261 break
5263 rm -f conftest.err conftest.i conftest.$ac_ext
5265 done
5266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5267 rm -f conftest.i conftest.err conftest.$ac_ext
5268 if $ac_preproc_ok; then :
5269 break
5272 done
5273 ac_cv_prog_CXXCPP=$CXXCPP
5276 CXXCPP=$ac_cv_prog_CXXCPP
5277 else
5278 ac_cv_prog_CXXCPP=$CXXCPP
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5281 $as_echo "$CXXCPP" >&6; }
5282 ac_preproc_ok=false
5283 for ac_cxx_preproc_warn_flag in '' yes
5285 # Use a header file that comes with gcc, so configuring glibc
5286 # with a fresh cross-compiler works.
5287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5288 # <limits.h> exists even on freestanding compilers.
5289 # On the NeXT, cc -E runs the code through the compiler's parser,
5290 # not just through cpp. "Syntax error" is here to catch this case.
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #ifdef __STDC__
5294 # include <limits.h>
5295 #else
5296 # include <assert.h>
5297 #endif
5298 Syntax error
5299 _ACEOF
5300 if ac_fn_cxx_try_cpp "$LINENO"; then :
5302 else
5303 # Broken: fails on valid input.
5304 continue
5306 rm -f conftest.err conftest.i conftest.$ac_ext
5308 # OK, works on sane cases. Now check whether nonexistent headers
5309 # can be detected and how.
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5312 #include <ac_nonexistent.h>
5313 _ACEOF
5314 if ac_fn_cxx_try_cpp "$LINENO"; then :
5315 # Broken: success on invalid input.
5316 continue
5317 else
5318 # Passes both tests.
5319 ac_preproc_ok=:
5320 break
5322 rm -f conftest.err conftest.i conftest.$ac_ext
5324 done
5325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5326 rm -f conftest.i conftest.err conftest.$ac_ext
5327 if $ac_preproc_ok; then :
5329 else
5330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5332 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5333 See \`config.log' for more details" "$LINENO" 5; }
5336 ac_ext=cpp
5337 ac_cpp='$CXXCPP $CPPFLAGS'
5338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5344 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5345 if ${ac_cv_path_GREP+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 if test -z "$GREP"; then
5349 ac_path_GREP_found=false
5350 # Loop through the user's path and test for each of PROGNAME-LIST
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_prog in grep ggrep; do
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5359 as_fn_executable_p "$ac_path_GREP" || continue
5360 # Check for GNU ac_path_GREP and select it if it is found.
5361 # Check for GNU $ac_path_GREP
5362 case `"$ac_path_GREP" --version 2>&1` in
5363 *GNU*)
5364 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5366 ac_count=0
5367 $as_echo_n 0123456789 >"conftest.in"
5368 while :
5370 cat "conftest.in" "conftest.in" >"conftest.tmp"
5371 mv "conftest.tmp" "conftest.in"
5372 cp "conftest.in" "conftest.nl"
5373 $as_echo 'GREP' >> "conftest.nl"
5374 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5376 as_fn_arith $ac_count + 1 && ac_count=$as_val
5377 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5378 # Best one so far, save it but keep looking for a better one
5379 ac_cv_path_GREP="$ac_path_GREP"
5380 ac_path_GREP_max=$ac_count
5382 # 10*(2^10) chars as input seems more than enough
5383 test $ac_count -gt 10 && break
5384 done
5385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5386 esac
5388 $ac_path_GREP_found && break 3
5389 done
5390 done
5391 done
5392 IFS=$as_save_IFS
5393 if test -z "$ac_cv_path_GREP"; then
5394 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5396 else
5397 ac_cv_path_GREP=$GREP
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5402 $as_echo "$ac_cv_path_GREP" >&6; }
5403 GREP="$ac_cv_path_GREP"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5407 $as_echo_n "checking for egrep... " >&6; }
5408 if ${ac_cv_path_EGREP+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5412 then ac_cv_path_EGREP="$GREP -E"
5413 else
5414 if test -z "$EGREP"; then
5415 ac_path_EGREP_found=false
5416 # Loop through the user's path and test for each of PROGNAME-LIST
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_prog in egrep; do
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5425 as_fn_executable_p "$ac_path_EGREP" || continue
5426 # Check for GNU ac_path_EGREP and select it if it is found.
5427 # Check for GNU $ac_path_EGREP
5428 case `"$ac_path_EGREP" --version 2>&1` in
5429 *GNU*)
5430 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5432 ac_count=0
5433 $as_echo_n 0123456789 >"conftest.in"
5434 while :
5436 cat "conftest.in" "conftest.in" >"conftest.tmp"
5437 mv "conftest.tmp" "conftest.in"
5438 cp "conftest.in" "conftest.nl"
5439 $as_echo 'EGREP' >> "conftest.nl"
5440 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5442 as_fn_arith $ac_count + 1 && ac_count=$as_val
5443 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5444 # Best one so far, save it but keep looking for a better one
5445 ac_cv_path_EGREP="$ac_path_EGREP"
5446 ac_path_EGREP_max=$ac_count
5448 # 10*(2^10) chars as input seems more than enough
5449 test $ac_count -gt 10 && break
5450 done
5451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5452 esac
5454 $ac_path_EGREP_found && break 3
5455 done
5456 done
5457 done
5458 IFS=$as_save_IFS
5459 if test -z "$ac_cv_path_EGREP"; then
5460 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5462 else
5463 ac_cv_path_EGREP=$EGREP
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5469 $as_echo "$ac_cv_path_EGREP" >&6; }
5470 EGREP="$ac_cv_path_EGREP"
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5474 $as_echo_n "checking for ANSI C header files... " >&6; }
5475 if ${ac_cv_header_stdc+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 #include <stdlib.h>
5481 #include <stdarg.h>
5482 #include <string.h>
5483 #include <float.h>
5486 main ()
5490 return 0;
5492 _ACEOF
5493 if ac_fn_cxx_try_compile "$LINENO"; then :
5494 ac_cv_header_stdc=yes
5495 else
5496 ac_cv_header_stdc=no
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 if test $ac_cv_header_stdc = yes; then
5501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5504 #include <string.h>
5506 _ACEOF
5507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5508 $EGREP "memchr" >/dev/null 2>&1; then :
5510 else
5511 ac_cv_header_stdc=no
5513 rm -f conftest*
5517 if test $ac_cv_header_stdc = yes; then
5518 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #include <stdlib.h>
5523 _ACEOF
5524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5525 $EGREP "free" >/dev/null 2>&1; then :
5527 else
5528 ac_cv_header_stdc=no
5530 rm -f conftest*
5534 if test $ac_cv_header_stdc = yes; then
5535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5536 if test "$cross_compiling" = yes; then :
5538 else
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <ctype.h>
5542 #include <stdlib.h>
5543 #if ((' ' & 0x0FF) == 0x020)
5544 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5545 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5546 #else
5547 # define ISLOWER(c) \
5548 (('a' <= (c) && (c) <= 'i') \
5549 || ('j' <= (c) && (c) <= 'r') \
5550 || ('s' <= (c) && (c) <= 'z'))
5551 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5552 #endif
5554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5556 main ()
5558 int i;
5559 for (i = 0; i < 256; i++)
5560 if (XOR (islower (i), ISLOWER (i))
5561 || toupper (i) != TOUPPER (i))
5562 return 2;
5563 return 0;
5565 _ACEOF
5566 if ac_fn_cxx_try_run "$LINENO"; then :
5568 else
5569 ac_cv_header_stdc=no
5571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5572 conftest.$ac_objext conftest.beam conftest.$ac_ext
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5578 $as_echo "$ac_cv_header_stdc" >&6; }
5579 if test $ac_cv_header_stdc = yes; then
5581 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5585 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5586 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5587 inttypes.h stdint.h unistd.h
5588 do :
5589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5590 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5593 cat >>confdefs.h <<_ACEOF
5594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5595 _ACEOF
5599 done
5603 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5604 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5605 MINIX=yes
5606 else
5607 MINIX=
5611 if test "$MINIX" = yes; then
5613 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5616 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5619 $as_echo "#define _MINIX 1" >>confdefs.h
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5625 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5626 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5632 # define __EXTENSIONS__ 1
5633 $ac_includes_default
5635 main ()
5639 return 0;
5641 _ACEOF
5642 if ac_fn_cxx_try_compile "$LINENO"; then :
5643 ac_cv_safe_to_define___extensions__=yes
5644 else
5645 ac_cv_safe_to_define___extensions__=no
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5650 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5651 test $ac_cv_safe_to_define___extensions__ = yes &&
5652 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5654 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5656 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5658 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5660 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5663 ac_ext=c
5664 ac_cpp='$CPP $CPPFLAGS'
5665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5669 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5670 # On Suns, sometimes $CPP names a directory.
5671 if test -n "$CPP" && test -d "$CPP"; then
5672 CPP=
5674 if test -z "$CPP"; then
5675 if ${ac_cv_prog_CPP+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 # Double quotes because CPP needs to be expanded
5679 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5681 ac_preproc_ok=false
5682 for ac_c_preproc_warn_flag in '' yes
5684 # Use a header file that comes with gcc, so configuring glibc
5685 # with a fresh cross-compiler works.
5686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687 # <limits.h> exists even on freestanding compilers.
5688 # On the NeXT, cc -E runs the code through the compiler's parser,
5689 # not just through cpp. "Syntax error" is here to catch this case.
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #ifdef __STDC__
5693 # include <limits.h>
5694 #else
5695 # include <assert.h>
5696 #endif
5697 Syntax error
5698 _ACEOF
5699 if ac_fn_c_try_cpp "$LINENO"; then :
5701 else
5702 # Broken: fails on valid input.
5703 continue
5705 rm -f conftest.err conftest.i conftest.$ac_ext
5707 # OK, works on sane cases. Now check whether nonexistent headers
5708 # can be detected and how.
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 #include <ac_nonexistent.h>
5712 _ACEOF
5713 if ac_fn_c_try_cpp "$LINENO"; then :
5714 # Broken: success on invalid input.
5715 continue
5716 else
5717 # Passes both tests.
5718 ac_preproc_ok=:
5719 break
5721 rm -f conftest.err conftest.i conftest.$ac_ext
5723 done
5724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5725 rm -f conftest.i conftest.err conftest.$ac_ext
5726 if $ac_preproc_ok; then :
5727 break
5730 done
5731 ac_cv_prog_CPP=$CPP
5734 CPP=$ac_cv_prog_CPP
5735 else
5736 ac_cv_prog_CPP=$CPP
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5739 $as_echo "$CPP" >&6; }
5740 ac_preproc_ok=false
5741 for ac_c_preproc_warn_flag in '' yes
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #ifdef __STDC__
5752 # include <limits.h>
5753 #else
5754 # include <assert.h>
5755 #endif
5756 Syntax error
5757 _ACEOF
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5760 else
5761 # Broken: fails on valid input.
5762 continue
5764 rm -f conftest.err conftest.i conftest.$ac_ext
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <ac_nonexistent.h>
5771 _ACEOF
5772 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: success on invalid input.
5774 continue
5775 else
5776 # Passes both tests.
5777 ac_preproc_ok=:
5778 break
5780 rm -f conftest.err conftest.i conftest.$ac_ext
5782 done
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.i conftest.err conftest.$ac_ext
5785 if $ac_preproc_ok; then :
5787 else
5788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5790 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5791 See \`config.log' for more details" "$LINENO" 5; }
5794 ac_ext=cpp
5795 ac_cpp='$CXXCPP $CPPFLAGS'
5796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5801 $as_echo_n "checking for inline... " >&6; }
5802 if ${ac_cv_c_inline+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 ac_cv_c_inline=no
5806 for ac_kw in inline __inline__ __inline; do
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 #ifndef __cplusplus
5810 typedef int foo_t;
5811 static $ac_kw foo_t static_foo () {return 0; }
5812 $ac_kw foo_t foo () {return 0; }
5813 #endif
5815 _ACEOF
5816 if ac_fn_cxx_try_compile "$LINENO"; then :
5817 ac_cv_c_inline=$ac_kw
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 test "$ac_cv_c_inline" != no && break
5821 done
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5825 $as_echo "$ac_cv_c_inline" >&6; }
5827 case $ac_cv_c_inline in
5828 inline | yes) ;;
5830 case $ac_cv_c_inline in
5831 no) ac_val=;;
5832 *) ac_val=$ac_cv_c_inline;;
5833 esac
5834 cat >>confdefs.h <<_ACEOF
5835 #ifndef __cplusplus
5836 #define inline $ac_val
5837 #endif
5838 _ACEOF
5840 esac
5843 # Check whether --enable-largefile was given.
5844 if test "${enable_largefile+set}" = set; then :
5845 enableval=$enable_largefile;
5848 if test "$enable_largefile" != no; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5851 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5852 if ${ac_cv_sys_largefile_CC+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 ac_cv_sys_largefile_CC=no
5856 if test "$GCC" != yes; then
5857 ac_save_CC=$CC
5858 while :; do
5859 # IRIX 6.2 and later do not support large files by default,
5860 # so use the C compiler's -n32 option if that helps.
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 /* Check that off_t can represent 2**63 - 1 correctly.
5865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5866 since some C++ compilers masquerading as C compilers
5867 incorrectly reject 9223372036854775807. */
5868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5870 && LARGE_OFF_T % 2147483647 == 1)
5871 ? 1 : -1];
5873 main ()
5877 return 0;
5879 _ACEOF
5880 if ac_fn_cxx_try_compile "$LINENO"; then :
5881 break
5883 rm -f core conftest.err conftest.$ac_objext
5884 CC="$CC -n32"
5885 if ac_fn_cxx_try_compile "$LINENO"; then :
5886 ac_cv_sys_largefile_CC=' -n32'; break
5888 rm -f core conftest.err conftest.$ac_objext
5889 break
5890 done
5891 CC=$ac_save_CC
5892 rm -f conftest.$ac_ext
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5896 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5897 if test "$ac_cv_sys_largefile_CC" != no; then
5898 CC=$CC$ac_cv_sys_largefile_CC
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5902 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5903 if ${ac_cv_sys_file_offset_bits+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 while :; do
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 #include <sys/types.h>
5910 /* Check that off_t can represent 2**63 - 1 correctly.
5911 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5912 since some C++ compilers masquerading as C compilers
5913 incorrectly reject 9223372036854775807. */
5914 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5915 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5916 && LARGE_OFF_T % 2147483647 == 1)
5917 ? 1 : -1];
5919 main ()
5923 return 0;
5925 _ACEOF
5926 if ac_fn_cxx_try_compile "$LINENO"; then :
5927 ac_cv_sys_file_offset_bits=no; break
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932 #define _FILE_OFFSET_BITS 64
5933 #include <sys/types.h>
5934 /* Check that off_t can represent 2**63 - 1 correctly.
5935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5936 since some C++ compilers masquerading as C compilers
5937 incorrectly reject 9223372036854775807. */
5938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5940 && LARGE_OFF_T % 2147483647 == 1)
5941 ? 1 : -1];
5943 main ()
5947 return 0;
5949 _ACEOF
5950 if ac_fn_cxx_try_compile "$LINENO"; then :
5951 ac_cv_sys_file_offset_bits=64; break
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 ac_cv_sys_file_offset_bits=unknown
5955 break
5956 done
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5959 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5960 case $ac_cv_sys_file_offset_bits in #(
5961 no | unknown) ;;
5963 cat >>confdefs.h <<_ACEOF
5964 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5965 _ACEOF
5967 esac
5968 rm -rf conftest*
5969 if test $ac_cv_sys_file_offset_bits = unknown; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5971 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5972 if ${ac_cv_sys_large_files+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 while :; do
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978 #include <sys/types.h>
5979 /* Check that off_t can represent 2**63 - 1 correctly.
5980 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5981 since some C++ compilers masquerading as C compilers
5982 incorrectly reject 9223372036854775807. */
5983 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5984 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5985 && LARGE_OFF_T % 2147483647 == 1)
5986 ? 1 : -1];
5988 main ()
5992 return 0;
5994 _ACEOF
5995 if ac_fn_cxx_try_compile "$LINENO"; then :
5996 ac_cv_sys_large_files=no; break
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 #define _LARGE_FILES 1
6002 #include <sys/types.h>
6003 /* Check that off_t can represent 2**63 - 1 correctly.
6004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6005 since some C++ compilers masquerading as C compilers
6006 incorrectly reject 9223372036854775807. */
6007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6009 && LARGE_OFF_T % 2147483647 == 1)
6010 ? 1 : -1];
6012 main ()
6016 return 0;
6018 _ACEOF
6019 if ac_fn_cxx_try_compile "$LINENO"; then :
6020 ac_cv_sys_large_files=1; break
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 ac_cv_sys_large_files=unknown
6024 break
6025 done
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6028 $as_echo "$ac_cv_sys_large_files" >&6; }
6029 case $ac_cv_sys_large_files in #(
6030 no | unknown) ;;
6032 cat >>confdefs.h <<_ACEOF
6033 #define _LARGE_FILES $ac_cv_sys_large_files
6034 _ACEOF
6036 esac
6037 rm -rf conftest*
6044 # sizeof(char) is 1 by definition.
6045 # The cast to long int works around a bug in the HP C Compiler
6046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6048 # This bug is HP SR number 8606223364.
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6050 $as_echo_n "checking size of void *... " >&6; }
6051 if ${ac_cv_sizeof_void_p+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6056 else
6057 if test "$ac_cv_type_void_p" = yes; then
6058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6060 as_fn_error 77 "cannot compute sizeof (void *)
6061 See \`config.log' for more details" "$LINENO" 5; }
6062 else
6063 ac_cv_sizeof_void_p=0
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6069 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6073 cat >>confdefs.h <<_ACEOF
6074 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6075 _ACEOF
6078 # The cast to long int works around a bug in the HP C Compiler
6079 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6080 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6081 # This bug is HP SR number 8606223364.
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6083 $as_echo_n "checking size of short... " >&6; }
6084 if ${ac_cv_sizeof_short+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6089 else
6090 if test "$ac_cv_type_short" = yes; then
6091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6093 as_fn_error 77 "cannot compute sizeof (short)
6094 See \`config.log' for more details" "$LINENO" 5; }
6095 else
6096 ac_cv_sizeof_short=0
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6102 $as_echo "$ac_cv_sizeof_short" >&6; }
6106 cat >>confdefs.h <<_ACEOF
6107 #define SIZEOF_SHORT $ac_cv_sizeof_short
6108 _ACEOF
6111 # The cast to long int works around a bug in the HP C Compiler
6112 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6113 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6114 # This bug is HP SR number 8606223364.
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6116 $as_echo_n "checking size of int... " >&6; }
6117 if ${ac_cv_sizeof_int+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6122 else
6123 if test "$ac_cv_type_int" = yes; then
6124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6126 as_fn_error 77 "cannot compute sizeof (int)
6127 See \`config.log' for more details" "$LINENO" 5; }
6128 else
6129 ac_cv_sizeof_int=0
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6135 $as_echo "$ac_cv_sizeof_int" >&6; }
6139 cat >>confdefs.h <<_ACEOF
6140 #define SIZEOF_INT $ac_cv_sizeof_int
6141 _ACEOF
6144 # The cast to long int works around a bug in the HP C Compiler
6145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6147 # This bug is HP SR number 8606223364.
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6149 $as_echo_n "checking size of long... " >&6; }
6150 if ${ac_cv_sizeof_long+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6155 else
6156 if test "$ac_cv_type_long" = yes; then
6157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6159 as_fn_error 77 "cannot compute sizeof (long)
6160 See \`config.log' for more details" "$LINENO" 5; }
6161 else
6162 ac_cv_sizeof_long=0
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6168 $as_echo "$ac_cv_sizeof_long" >&6; }
6172 cat >>confdefs.h <<_ACEOF
6173 #define SIZEOF_LONG $ac_cv_sizeof_long
6174 _ACEOF
6177 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6178 if test "x$ac_cv_type_long_long" = xyes; then :
6180 cat >>confdefs.h <<_ACEOF
6181 #define HAVE_LONG_LONG 1
6182 _ACEOF
6184 # The cast to long int works around a bug in the HP C Compiler
6185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6187 # This bug is HP SR number 8606223364.
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6189 $as_echo_n "checking size of long long... " >&6; }
6190 if ${ac_cv_sizeof_long_long+:} false; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6195 else
6196 if test "$ac_cv_type_long_long" = yes; then
6197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6199 as_fn_error 77 "cannot compute sizeof (long long)
6200 See \`config.log' for more details" "$LINENO" 5; }
6201 else
6202 ac_cv_sizeof_long_long=0
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6208 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6212 cat >>confdefs.h <<_ACEOF
6213 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6214 _ACEOF
6219 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6220 case $ac_cv_c_int8_t in #(
6221 no|yes) ;; #(
6224 cat >>confdefs.h <<_ACEOF
6225 #define int8_t $ac_cv_c_int8_t
6226 _ACEOF
6228 esac
6230 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6231 case $ac_cv_c_int16_t in #(
6232 no|yes) ;; #(
6235 cat >>confdefs.h <<_ACEOF
6236 #define int16_t $ac_cv_c_int16_t
6237 _ACEOF
6239 esac
6241 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6242 case $ac_cv_c_int32_t in #(
6243 no|yes) ;; #(
6246 cat >>confdefs.h <<_ACEOF
6247 #define int32_t $ac_cv_c_int32_t
6248 _ACEOF
6250 esac
6252 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6253 case $ac_cv_c_int64_t in #(
6254 no|yes) ;; #(
6257 cat >>confdefs.h <<_ACEOF
6258 #define int64_t $ac_cv_c_int64_t
6259 _ACEOF
6261 esac
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6265 $as_echo_n "checking for unsigned long long int... " >&6; }
6266 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 ac_cv_type_unsigned_long_long_int=yes
6270 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6274 /* For now, do not test the preprocessor; as of 2007 there are too many
6275 implementations with broken preprocessors. Perhaps this can
6276 be revisited in 2012. In the meantime, code should not expect
6277 #if to work with literals wider than 32 bits. */
6278 /* Test literals. */
6279 long long int ll = 9223372036854775807ll;
6280 long long int nll = -9223372036854775807LL;
6281 unsigned long long int ull = 18446744073709551615ULL;
6282 /* Test constant expressions. */
6283 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6284 ? 1 : -1)];
6285 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6286 ? 1 : -1)];
6287 int i = 63;
6289 main ()
6291 /* Test availability of runtime routines for shift and division. */
6292 long long int llmax = 9223372036854775807ll;
6293 unsigned long long int ullmax = 18446744073709551615ull;
6294 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6295 | (llmax / ll) | (llmax % ll)
6296 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6297 | (ullmax / ull) | (ullmax % ull));
6299 return 0;
6302 _ACEOF
6303 if ac_fn_cxx_try_link "$LINENO"; then :
6305 else
6306 ac_cv_type_unsigned_long_long_int=no
6308 rm -f core conftest.err conftest.$ac_objext \
6309 conftest$ac_exeext conftest.$ac_ext
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6313 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6314 if test $ac_cv_type_unsigned_long_long_int = yes; then
6316 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6323 $as_echo_n "checking for long long int... " >&6; }
6324 if ${ac_cv_type_long_long_int+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 ac_cv_type_long_long_int=yes
6328 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6329 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6330 if test $ac_cv_type_long_long_int = yes; then
6331 if test "$cross_compiling" = yes; then :
6333 else
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6336 #include <limits.h>
6337 #ifndef LLONG_MAX
6338 # define HALF \
6339 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6340 # define LLONG_MAX (HALF - 1 + HALF)
6341 #endif
6343 main ()
6345 long long int n = 1;
6346 int i;
6347 for (i = 0; ; i++)
6349 long long int m = n << i;
6350 if (m >> i != n)
6351 return 1;
6352 if (LLONG_MAX / 2 < m)
6353 break;
6355 return 0;
6357 return 0;
6359 _ACEOF
6360 if ac_fn_cxx_try_run "$LINENO"; then :
6362 else
6363 ac_cv_type_long_long_int=no
6365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6366 conftest.$ac_objext conftest.beam conftest.$ac_ext
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6373 $as_echo "$ac_cv_type_long_long_int" >&6; }
6374 if test $ac_cv_type_long_long_int = yes; then
6376 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6382 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6383 if test "x$ac_cv_type_intmax_t" = xyes; then :
6385 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6387 else
6388 test $ac_cv_type_long_long_int = yes \
6389 && ac_type='long long int' \
6390 || ac_type='long int'
6392 cat >>confdefs.h <<_ACEOF
6393 #define intmax_t $ac_type
6394 _ACEOF
6400 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6401 if test "x$ac_cv_type_intptr_t" = xyes; then :
6403 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6405 else
6406 for ac_type in 'int' 'long int' 'long long int'; do
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 $ac_includes_default
6411 main ()
6413 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6414 test_array [0] = 0;
6415 return test_array [0];
6418 return 0;
6420 _ACEOF
6421 if ac_fn_cxx_try_compile "$LINENO"; then :
6423 cat >>confdefs.h <<_ACEOF
6424 #define intptr_t $ac_type
6425 _ACEOF
6427 ac_type=
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 test -z "$ac_type" && break
6431 done
6435 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6436 case $ac_cv_c_uint8_t in #(
6437 no|yes) ;; #(
6440 $as_echo "#define _UINT8_T 1" >>confdefs.h
6443 cat >>confdefs.h <<_ACEOF
6444 #define uint8_t $ac_cv_c_uint8_t
6445 _ACEOF
6447 esac
6449 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6450 case $ac_cv_c_uint16_t in #(
6451 no|yes) ;; #(
6455 cat >>confdefs.h <<_ACEOF
6456 #define uint16_t $ac_cv_c_uint16_t
6457 _ACEOF
6459 esac
6461 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6462 case $ac_cv_c_uint32_t in #(
6463 no|yes) ;; #(
6466 $as_echo "#define _UINT32_T 1" >>confdefs.h
6469 cat >>confdefs.h <<_ACEOF
6470 #define uint32_t $ac_cv_c_uint32_t
6471 _ACEOF
6473 esac
6475 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6476 case $ac_cv_c_uint64_t in #(
6477 no|yes) ;; #(
6480 $as_echo "#define _UINT64_T 1" >>confdefs.h
6483 cat >>confdefs.h <<_ACEOF
6484 #define uint64_t $ac_cv_c_uint64_t
6485 _ACEOF
6487 esac
6491 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6492 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6494 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6496 else
6497 test $ac_cv_type_unsigned_long_long_int = yes \
6498 && ac_type='unsigned long long int' \
6499 || ac_type='unsigned long int'
6501 cat >>confdefs.h <<_ACEOF
6502 #define uintmax_t $ac_type
6503 _ACEOF
6509 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6510 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6512 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6514 else
6515 for ac_type in 'unsigned int' 'unsigned long int' \
6516 'unsigned long long int'; do
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 $ac_includes_default
6521 main ()
6523 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6524 test_array [0] = 0;
6525 return test_array [0];
6528 return 0;
6530 _ACEOF
6531 if ac_fn_cxx_try_compile "$LINENO"; then :
6533 cat >>confdefs.h <<_ACEOF
6534 #define uintptr_t $ac_type
6535 _ACEOF
6537 ac_type=
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 test -z "$ac_type" && break
6541 done
6557 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6558 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6561 # check what underlying integer type int64_t uses
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6563 $as_echo_n "checking for int64_t underlying type... " >&6; }
6564 if ${ac_cv_int64_t_type+:} false; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6571 #ifdef HAVE_STDINT_H
6572 #include <stdint.h>
6573 #endif
6574 template <typename T> struct X { };
6575 template <>
6576 struct X<long> { typedef long t; };
6579 main ()
6581 X<int64_t>::t x;
6583 return 0;
6585 _ACEOF
6586 if ac_fn_cxx_try_compile "$LINENO"; then :
6587 ac_cv_int64_t_type=long
6588 else
6589 ac_cv_int64_t_type="long long"
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6594 $as_echo "$ac_cv_int64_t_type" >&6; }
6595 if test "$ac_cv_int64_t_type" = "long"; then
6597 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6599 else
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6603 #ifdef HAVE_STDINT_H
6604 #include <stdint.h>
6605 #endif
6606 template <typename T> struct X { };
6607 template <>
6608 struct X<long long> { typedef long long t; };
6611 main ()
6613 X<int64_t>::t x;
6615 return 0;
6617 _ACEOF
6618 if ac_fn_cxx_try_compile "$LINENO"; then :
6620 else
6621 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6627 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6628 if ${ac_cv_std_swap_in_utility+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6635 #include <utility>
6638 main ()
6640 int a, b; std::swap(a,b);
6642 return 0;
6644 _ACEOF
6645 if ac_fn_cxx_try_compile "$LINENO"; then :
6646 ac_cv_std_swap_in_utility=yes
6647 else
6648 ac_cv_std_swap_in_utility=no
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6653 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6654 if test $ac_cv_std_swap_in_utility = yes; then
6656 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6660 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6661 # If the host compiler is affected by the bug, and we build with optimization
6662 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6663 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6664 # Since there is no reliable feature check for the presence of this bug,
6665 # we simply use a GCC version number check. (This should never trigger for
6666 # stages 2 or 3 of a native bootstrap.)
6667 aliasing_flags=
6668 if test "$GCC" = yes; then
6669 saved_CXXFLAGS="$CXXFLAGS"
6671 # The following test compilation will succeed if and only if $CXX accepts
6672 # -fno-strict-aliasing *and* is older than GCC 4.3.
6673 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6675 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6679 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6680 #error compiler not affected by placement new aliasing bug
6681 #endif
6683 _ACEOF
6684 if ac_fn_cxx_try_compile "$LINENO"; then :
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6686 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693 CXXFLAGS="$saved_CXXFLAGS"
6699 # ---------------------
6700 # Warnings and checking
6701 # ---------------------
6703 # Check $CC warning features (if it's GCC).
6704 # We want to use -pedantic, but we don't want warnings about
6705 # * 'long long'
6706 # * variadic macros
6707 # * overlong strings
6708 # * C++11 narrowing conversions in { }
6709 # So, we only use -pedantic if we can disable those warnings.
6711 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6712 # Check whether --enable-build-format-warnings was given.
6713 if test "${enable_build_format_warnings+set}" = set; then :
6714 enableval=$enable_build_format_warnings;
6715 else
6716 enable_build_format_warnings=yes
6719 if test $enable_build_format_warnings = no; then :
6720 wf_opt=-Wno-format
6721 else
6722 wf_opt=
6724 ac_ext=cpp
6725 ac_cpp='$CXXCPP $CPPFLAGS'
6726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6730 loose_warn=
6731 save_CXXFLAGS="$CXXFLAGS"
6732 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6733 # Do the check with the no- prefix removed since gcc silently
6734 # accepts any -Wno-* option on purpose
6735 case $real_option in
6736 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6737 *) option=$real_option ;;
6738 esac
6739 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6742 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6743 if eval \${$as_acx_Woption+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 CXXFLAGS="$option"
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6751 main ()
6755 return 0;
6757 _ACEOF
6758 if ac_fn_cxx_try_compile "$LINENO"; then :
6759 eval "$as_acx_Woption=yes"
6760 else
6761 eval "$as_acx_Woption=no"
6763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 eval ac_res=\$$as_acx_Woption
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6768 $as_echo "$ac_res" >&6; }
6769 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6770 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6772 done
6773 CXXFLAGS="$save_CXXFLAGS"
6774 ac_ext=cpp
6775 ac_cpp='$CXXCPP $CPPFLAGS'
6776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6782 ac_ext=c
6783 ac_cpp='$CPP $CPPFLAGS'
6784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6788 c_loose_warn=
6789 save_CFLAGS="$CFLAGS"
6790 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6791 # Do the check with the no- prefix removed since gcc silently
6792 # accepts any -Wno-* option on purpose
6793 case $real_option in
6794 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6795 *) option=$real_option ;;
6796 esac
6797 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6800 $as_echo_n "checking whether $CC supports $option... " >&6; }
6801 if eval \${$as_acx_Woption+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 CFLAGS="$option"
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6809 main ()
6813 return 0;
6815 _ACEOF
6816 if ac_fn_c_try_compile "$LINENO"; then :
6817 eval "$as_acx_Woption=yes"
6818 else
6819 eval "$as_acx_Woption=no"
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 eval ac_res=\$$as_acx_Woption
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6826 $as_echo "$ac_res" >&6; }
6827 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6828 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6830 done
6831 CFLAGS="$save_CFLAGS"
6832 ac_ext=cpp
6833 ac_cpp='$CXXCPP $CPPFLAGS'
6834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6839 ac_ext=cpp
6840 ac_cpp='$CXXCPP $CPPFLAGS'
6841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6845 strict_warn=
6846 save_CXXFLAGS="$CXXFLAGS"
6847 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6848 # Do the check with the no- prefix removed since gcc silently
6849 # accepts any -Wno-* option on purpose
6850 case $real_option in
6851 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6852 *) option=$real_option ;;
6853 esac
6854 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6857 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6858 if eval \${$as_acx_Woption+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 CXXFLAGS="$option"
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6866 main ()
6870 return 0;
6872 _ACEOF
6873 if ac_fn_cxx_try_compile "$LINENO"; then :
6874 eval "$as_acx_Woption=yes"
6875 else
6876 eval "$as_acx_Woption=no"
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881 eval ac_res=\$$as_acx_Woption
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6883 $as_echo "$ac_res" >&6; }
6884 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6885 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6887 done
6888 CXXFLAGS="$save_CXXFLAGS"
6889 ac_ext=cpp
6890 ac_cpp='$CXXCPP $CPPFLAGS'
6891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6896 ac_ext=c
6897 ac_cpp='$CPP $CPPFLAGS'
6898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6902 c_strict_warn=
6903 save_CFLAGS="$CFLAGS"
6904 for real_option in -Wold-style-definition -Wc++-compat; do
6905 # Do the check with the no- prefix removed since gcc silently
6906 # accepts any -Wno-* option on purpose
6907 case $real_option in
6908 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6909 *) option=$real_option ;;
6910 esac
6911 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6914 $as_echo_n "checking whether $CC supports $option... " >&6; }
6915 if eval \${$as_acx_Woption+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 CFLAGS="$option"
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6923 main ()
6927 return 0;
6929 _ACEOF
6930 if ac_fn_c_try_compile "$LINENO"; then :
6931 eval "$as_acx_Woption=yes"
6932 else
6933 eval "$as_acx_Woption=no"
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938 eval ac_res=\$$as_acx_Woption
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6940 $as_echo "$ac_res" >&6; }
6941 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6942 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6944 done
6945 CFLAGS="$save_CFLAGS"
6946 ac_ext=cpp
6947 ac_cpp='$CXXCPP $CPPFLAGS'
6948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6953 ac_ext=cpp
6954 ac_cpp='$CXXCPP $CPPFLAGS'
6955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6959 # Do the check with the no- prefix removed from the warning options
6960 # since gcc silently accepts any -Wno-* option on purpose
6961 if test "$GXX" = yes; then :
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6963 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6964 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 save_CXXFLAGS="$CXXFLAGS"
6968 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6973 main ()
6977 return 0;
6979 _ACEOF
6980 if ac_fn_cxx_try_compile "$LINENO"; then :
6981 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6982 else
6983 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 CXXFLAGS="$save_CXXFLAGS"
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6989 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6990 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6991 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6995 ac_ext=cpp
6996 ac_cpp='$CXXCPP $CPPFLAGS'
6997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7002 ac_ext=cpp
7003 ac_cpp='$CXXCPP $CPPFLAGS'
7004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7008 # Check whether --enable-werror-always was given.
7009 if test "${enable_werror_always+set}" = set; then :
7010 enableval=$enable_werror_always;
7011 else
7012 enable_werror_always=no
7015 if test $enable_werror_always = yes; then :
7016 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7019 ac_ext=cpp
7020 ac_cpp='$CXXCPP $CPPFLAGS'
7021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7027 # The above macros do nothing if the compiler is not GCC. However, the
7028 # Makefile has more goo to add other flags, so these variables are used
7029 # to enable warnings only for GCC.
7030 warn_cflags=
7031 warn_cxxflags=
7032 if test "x$GCC" = "xyes"; then
7033 warn_cflags='$(GCC_WARN_CFLAGS)'
7034 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7039 # Disable exceptions and RTTI if building with g++
7040 ac_ext=c
7041 ac_cpp='$CPP $CPPFLAGS'
7042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7046 noexception_flags=
7047 save_CFLAGS="$CFLAGS"
7048 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7049 # Do the check with the no- prefix removed since gcc silently
7050 # accepts any -Wno-* option on purpose
7051 case $real_option in
7052 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7053 *) option=$real_option ;;
7054 esac
7055 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7058 $as_echo_n "checking whether $CC supports $option... " >&6; }
7059 if eval \${$as_acx_Woption+:} false; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 CFLAGS="$option"
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7067 main ()
7071 return 0;
7073 _ACEOF
7074 if ac_fn_c_try_compile "$LINENO"; then :
7075 eval "$as_acx_Woption=yes"
7076 else
7077 eval "$as_acx_Woption=no"
7079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082 eval ac_res=\$$as_acx_Woption
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7084 $as_echo "$ac_res" >&6; }
7085 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7086 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7088 done
7089 CFLAGS="$save_CFLAGS"
7090 ac_ext=cpp
7091 ac_cpp='$CXXCPP $CPPFLAGS'
7092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7098 # Enable expensive internal checks
7099 is_release=
7100 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7101 is_release=yes
7104 # Check whether --enable-checking was given.
7105 if test "${enable_checking+set}" = set; then :
7106 enableval=$enable_checking; ac_checking_flags="${enableval}"
7107 else
7109 # Determine the default checks.
7110 if test x$is_release = x ; then
7111 ac_checking_flags=yes,extra
7112 else
7113 ac_checking_flags=release
7117 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7118 for check in release $ac_checking_flags
7120 case $check in
7121 # these set all the flags to specific states
7122 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7123 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7124 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7125 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7126 ac_tree_checking=1 ; ac_valgrind_checking= ;
7127 ac_types_checking=1 ;;
7128 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7129 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7130 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7131 ac_rtlflag_checking= ; ac_runtime_checking= ;
7132 ac_tree_checking= ; ac_valgrind_checking= ;
7133 ac_types_checking= ;;
7134 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7135 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7136 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7137 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7138 ac_tree_checking=1 ; ac_valgrind_checking= ;
7139 ac_types_checking=1 ;;
7140 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7141 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7142 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7143 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7144 ac_tree_checking= ; ac_valgrind_checking= ;
7145 ac_types_checking= ;;
7146 # these enable particular checks
7147 assert) ac_assert_checking=1 ;;
7148 df) ac_df_checking=1 ;;
7149 extra) ac_extra_checking=1 ;;
7150 fold) ac_fold_checking=1 ;;
7151 gc) ac_gc_checking=1 ;;
7152 gcac) ac_gc_always_collect=1 ;;
7153 gimple) ac_gimple_checking=1 ;;
7154 misc) ac_checking=1 ;;
7155 rtl) ac_rtl_checking=1 ;;
7156 rtlflag) ac_rtlflag_checking=1 ;;
7157 runtime) ac_runtime_checking=1 ;;
7158 tree) ac_tree_checking=1 ;;
7159 types) ac_types_checking=1 ;;
7160 valgrind) ac_valgrind_checking=1 ;;
7161 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7162 esac
7163 done
7164 IFS="$ac_save_IFS"
7166 nocommon_flag=""
7167 if test x$ac_checking != x ; then
7169 $as_echo "#define CHECKING_P 1" >>confdefs.h
7171 nocommon_flag=-fno-common
7172 else
7173 $as_echo "#define CHECKING_P 0" >>confdefs.h
7177 if test x$ac_extra_checking != x ; then
7179 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7181 else
7182 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7185 if test x$ac_df_checking != x ; then
7187 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7190 if test x$ac_assert_checking != x ; then
7192 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7195 if test x$ac_gimple_checking != x ; then
7197 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7201 if test x$ac_runtime_checking != x ; then
7203 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7206 if test x$ac_tree_checking != x ; then
7208 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7210 TREECHECKING=yes
7212 if test x$ac_types_checking != x ; then
7214 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7218 if test x$ac_rtl_checking != x ; then
7220 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7223 if test x$ac_rtlflag_checking != x ; then
7225 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7228 if test x$ac_gc_checking != x ; then
7230 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7233 if test x$ac_gc_always_collect != x ; then
7235 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7238 if test x$ac_fold_checking != x ; then
7240 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7243 valgrind_path_defines=
7244 valgrind_command=
7246 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7247 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7248 have_valgrind_h=yes
7249 else
7250 have_valgrind_h=no
7255 # It is certainly possible that there's valgrind but no valgrind.h.
7256 # GCC relies on making annotations so we must have both.
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7258 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 #include <valgrind/memcheck.h>
7262 #ifndef VALGRIND_DISCARD
7263 #error VALGRIND_DISCARD not defined
7264 #endif
7265 _ACEOF
7266 if ac_fn_cxx_try_cpp "$LINENO"; then :
7267 gcc_cv_header_valgrind_memcheck_h=yes
7268 else
7269 gcc_cv_header_valgrind_memcheck_h=no
7271 rm -f conftest.err conftest.i conftest.$ac_ext
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7273 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7275 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7278 #include <memcheck.h>
7279 #ifndef VALGRIND_DISCARD
7280 #error VALGRIND_DISCARD not defined
7281 #endif
7282 _ACEOF
7283 if ac_fn_cxx_try_cpp "$LINENO"; then :
7284 gcc_cv_header_memcheck_h=yes
7285 else
7286 gcc_cv_header_memcheck_h=no
7288 rm -f conftest.err conftest.i conftest.$ac_ext
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7290 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7291 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7293 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7296 if test $gcc_cv_header_memcheck_h = yes; then
7298 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7302 if test x$ac_valgrind_checking != x ; then
7304 # Prepare PATH_SEPARATOR.
7305 # The user is always right.
7306 if test "${PATH_SEPARATOR+set}" != set; then
7307 echo "#! /bin/sh" >conf$$.sh
7308 echo "exit 0" >>conf$$.sh
7309 chmod +x conf$$.sh
7310 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7311 PATH_SEPARATOR=';'
7312 else
7313 PATH_SEPARATOR=:
7315 rm -f conf$$.sh
7318 # Find out how to test for executable files. Don't use a zero-byte file,
7319 # as systems may use methods other than mode bits to determine executability.
7320 cat >conf$$.file <<_ASEOF
7321 #! /bin/sh
7322 exit 0
7323 _ASEOF
7324 chmod +x conf$$.file
7325 if test -x conf$$.file >/dev/null 2>&1; then
7326 ac_executable_p="test -x"
7327 else
7328 ac_executable_p="test -f"
7330 rm -f conf$$.file
7332 # Extract the first word of "valgrind", so it can be a program name with args.
7333 set dummy valgrind; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if ${ac_cv_path_valgrind_path+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 case "$valgrind_path" in
7340 [\\/]* | ?:[\\/]*)
7341 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7344 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7345 for ac_dir in $PATH; do
7346 IFS="$ac_save_IFS"
7347 test -z "$ac_dir" && ac_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7350 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7351 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7352 break 2
7355 done
7356 done
7357 IFS="$ac_save_IFS"
7359 esac
7361 valgrind_path="$ac_cv_path_valgrind_path"
7362 if test -n "$valgrind_path"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7364 $as_echo "$valgrind_path" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7370 if test "x$valgrind_path" = "x" \
7371 || (test $have_valgrind_h = no \
7372 && test $gcc_cv_header_memcheck_h = no \
7373 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7374 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7376 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7377 valgrind_command="$valgrind_path -q"
7379 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7385 # Enable code coverage collection
7386 # Check whether --enable-coverage was given.
7387 if test "${enable_coverage+set}" = set; then :
7388 enableval=$enable_coverage; case "${enableval}" in
7389 yes|noopt)
7390 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7392 opt)
7393 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7396 # a.k.a. --disable-coverage
7397 coverage_flags=""
7400 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7402 esac
7403 else
7404 coverage_flags=""
7409 # Check whether --enable-gather-detailed-mem-stats was given.
7410 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7411 enableval=$enable_gather_detailed_mem_stats;
7412 else
7413 enable_gather_detailed_mem_stats=no
7416 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7418 cat >>confdefs.h <<_ACEOF
7419 #define GATHER_STATISTICS $gather_stats
7420 _ACEOF
7423 # Check whether --enable-valgrind-annotations was given.
7424 if test "${enable_valgrind_annotations+set}" = set; then :
7425 enableval=$enable_valgrind_annotations;
7426 else
7427 enable_valgrind_annotations=no
7430 if test x$enable_valgrind_annotations != xno \
7431 || test x$ac_valgrind_checking != x; then
7432 if (test $have_valgrind_h = no \
7433 && test $gcc_cv_header_memcheck_h = no \
7434 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7435 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7438 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7442 # -------------------------------
7443 # Miscenalleous configure options
7444 # -------------------------------
7446 # With stabs
7448 # Check whether --with-stabs was given.
7449 if test "${with_stabs+set}" = set; then :
7450 withval=$with_stabs; stabs="$with_stabs"
7451 else
7452 stabs=no
7456 # Determine whether or not multilibs are enabled.
7457 # Check whether --enable-multilib was given.
7458 if test "${enable_multilib+set}" = set; then :
7459 enableval=$enable_multilib;
7460 else
7461 enable_multilib=yes
7466 # Determine whether or not multiarch is enabled.
7467 # Check whether --enable-multiarch was given.
7468 if test "${enable_multiarch+set}" = set; then :
7469 enableval=$enable_multiarch; case "${enableval}" in
7470 yes|no|auto) enable_multiarch=$enableval;;
7471 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7472 esac
7473 else
7474 enable_multiarch=auto
7477 if test x${enable_multiarch} = xauto; then
7478 if test x${with_native_system_header_dir} != x; then
7479 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7480 enable_multiarch=no
7482 if test x$host != x$target && test "x$with_sysroot" = x; then
7483 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7484 enable_multiarch=no
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7488 $as_echo_n "checking for multiarch configuration... " >&6; }
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7491 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7493 # needed for setting the multiarch name for soft-float/hard-float ABIs
7497 # default stack clash protection guard size as power of twos in bytes.
7498 # Please keep these in sync with params.def.
7499 stk_clash_min=12
7500 stk_clash_max=30
7502 # Keep the default value when the option is not used to 0, this allows us to
7503 # distinguish between the cases where the user specifially set a value via
7504 # configure and when the normal default value is used.
7506 # Check whether --with-stack-clash-protection-guard-size was given.
7507 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7508 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7509 else
7510 DEFAULT_STK_CLASH_GUARD_SIZE=0
7513 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7514 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7515 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7516 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
7520 cat >>confdefs.h <<_ACEOF
7521 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7522 _ACEOF
7525 # Enable __cxa_atexit for C++.
7526 # Check whether --enable-__cxa_atexit was given.
7527 if test "${enable___cxa_atexit+set}" = set; then :
7528 enableval=$enable___cxa_atexit;
7532 # Enable C extension for decimal float if target supports it.
7534 # Check whether --enable-decimal-float was given.
7535 if test "${enable_decimal_float+set}" = set; then :
7536 enableval=$enable_decimal_float;
7537 case $enable_decimal_float in
7538 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7539 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7540 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7541 esac
7543 else
7545 case $target in
7546 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7547 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7548 i?86*-*-mingw* | x86_64*-*-mingw* | \
7549 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7550 enable_decimal_float=yes
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7554 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7555 enable_decimal_float=no
7557 esac
7562 # x86's use BID format instead of DPD
7563 case x$enable_decimal_float in
7564 xyes)
7565 case $target in
7566 i?86*-*-* | x86_64*-*-*)
7567 enable_decimal_float=bid
7570 enable_decimal_float=dpd
7572 esac
7573 default_decimal_float=$enable_decimal_float
7575 xno)
7576 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7577 # dependency on libdecnumber.
7578 default_decimal_float=dpd
7580 esac
7585 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7587 cat >>confdefs.h <<_ACEOF
7588 #define ENABLE_DECIMAL_FLOAT $dfp
7589 _ACEOF
7592 # Use default_decimal_float for dependency.
7593 enable_decimal_float=$default_decimal_float
7595 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7597 cat >>confdefs.h <<_ACEOF
7598 #define ENABLE_DECIMAL_BID_FORMAT $bid
7599 _ACEOF
7602 # Enable C extension for fixed-point arithmetic.
7603 # Check whether --enable-fixed-point was given.
7604 if test "${enable_fixed_point+set}" = set; then :
7605 enableval=$enable_fixed_point;
7606 else
7608 case $target in
7609 arm*)
7610 enable_fixed_point=yes
7613 mips*-*-*)
7614 enable_fixed_point=yes
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7618 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7619 enable_fixed_point=no
7621 esac
7627 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7629 cat >>confdefs.h <<_ACEOF
7630 #define ENABLE_FIXED_POINT $fixedpoint
7631 _ACEOF
7634 # Enable threads
7635 # Pass with no value to take the default
7636 # Pass with a value to specify a thread package
7637 # Check whether --enable-threads was given.
7638 if test "${enable_threads+set}" = set; then :
7639 enableval=$enable_threads;
7640 else
7641 enable_threads=''
7645 # Check whether --enable-tls was given.
7646 if test "${enable_tls+set}" = set; then :
7647 enableval=$enable_tls;
7648 case $enable_tls in
7649 yes | no) ;;
7650 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7651 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7652 esac
7654 else
7655 enable_tls=''
7659 # Check whether --enable-vtable-verify was given.
7660 if test "${enable_vtable_verify+set}" = set; then :
7661 enableval=$enable_vtable_verify;
7662 else
7663 enable_vtable_verify=no
7666 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7668 cat >>confdefs.h <<_ACEOF
7669 #define ENABLE_VTABLE_VERIFY $vtable_verify
7670 _ACEOF
7673 # Check whether --enable-objc-gc was given.
7674 if test "${enable_objc_gc+set}" = set; then :
7675 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7676 objc_boehm_gc=''
7677 else
7678 objc_boehm_gc=1
7680 else
7681 objc_boehm_gc=''
7686 # Check whether --with-dwarf2 was given.
7687 if test "${with_dwarf2+set}" = set; then :
7688 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7689 else
7690 dwarf2=no
7694 # Check whether --enable-shared was given.
7695 if test "${enable_shared+set}" = set; then :
7696 enableval=$enable_shared;
7697 case $enable_shared in
7698 yes | no) ;;
7700 enable_shared=no
7701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7702 for pkg in $enableval; do
7703 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7704 enable_shared=yes
7706 done
7707 IFS="$ac_save_ifs"
7709 esac
7711 else
7712 enable_shared=yes
7717 # Check whether --enable-gcov was given.
7718 if test "${enable_gcov+set}" = set; then :
7719 enableval=$enable_gcov;
7720 else
7721 enable_gcov=yes
7727 # Check whether --with-specs was given.
7728 if test "${with_specs+set}" = set; then :
7729 withval=$with_specs; CONFIGURE_SPECS=$withval
7730 else
7731 CONFIGURE_SPECS=
7739 # Check whether --with-pkgversion was given.
7740 if test "${with_pkgversion+set}" = set; then :
7741 withval=$with_pkgversion; case "$withval" in
7742 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7743 no) PKGVERSION= ;;
7744 *) PKGVERSION="($withval) " ;;
7745 esac
7746 else
7747 PKGVERSION="(GCC) "
7755 # Check whether --with-bugurl was given.
7756 if test "${with_bugurl+set}" = set; then :
7757 withval=$with_bugurl; case "$withval" in
7758 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7759 no) BUGURL=
7761 *) BUGURL="$withval"
7763 esac
7764 else
7765 BUGURL="https://gcc.gnu.org/bugs/"
7769 case ${BUGURL} in
7771 REPORT_BUGS_TO=
7772 REPORT_BUGS_TEXI=
7775 REPORT_BUGS_TO="<$BUGURL>"
7776 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7778 esac;
7783 # Sanity check enable_languages in case someone does not run the toplevel
7784 # configure # script.
7785 # Check whether --enable-languages was given.
7786 if test "${enable_languages+set}" = set; then :
7787 enableval=$enable_languages; case ,${enable_languages}, in
7788 ,,|,yes,)
7789 # go safe -- we cannot be much sure without the toplevel
7790 # configure's
7791 # analysis of which target libs are present and usable
7792 enable_languages=c
7794 *,all,*)
7795 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7797 *,c,*)
7800 enable_languages=c,${enable_languages}
7802 esac
7803 else
7804 enable_languages=c
7808 if test x"$enable_as_accelerator_for" != x; then
7810 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7812 enable_as_accelerator=yes
7813 case "${target}" in
7814 *-intelmicemul-*)
7815 # In this case we expect offload compiler to be built as native, so we
7816 # need to rename the driver to avoid clashes with host's drivers.
7817 program_transform_name="s&^&${target}-&" ;;
7818 esac
7819 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7820 program_transform_name=`echo $program_transform_name | sed $sedscript`
7821 accel_dir_suffix=/accel/${target_noncanonical}
7822 real_target_noncanonical=${enable_as_accelerator_for}
7828 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7829 tgt=`echo $tgt | sed 's/=.*//'`
7831 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7832 enable_hsa=1
7833 else
7834 enable_offloading=1
7837 if test x"$offload_targets" = x; then
7838 offload_targets=$tgt
7839 else
7840 offload_targets="$offload_targets,$tgt"
7842 done
7844 cat >>confdefs.h <<_ACEOF
7845 #define OFFLOAD_TARGETS "$offload_targets"
7846 _ACEOF
7848 if test x"$enable_offloading" != x; then
7850 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7852 else
7854 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7858 if test x"$enable_hsa" = x1 ; then
7860 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7865 # Check whether --with-multilib-list was given.
7866 if test "${with_multilib_list+set}" = set; then :
7867 withval=$with_multilib_list; :
7868 else
7869 with_multilib_list=default
7873 # -------------------------
7874 # Checks for other programs
7875 # -------------------------
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7878 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7879 set x ${MAKE-make}
7880 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7881 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 cat >conftest.make <<\_ACEOF
7885 SHELL = /bin/sh
7886 all:
7887 @echo '@@@%%%=$(MAKE)=@@@%%%'
7888 _ACEOF
7889 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7890 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7891 *@@@%%%=?*=@@@%%%*)
7892 eval ac_cv_prog_make_${ac_make}_set=yes;;
7894 eval ac_cv_prog_make_${ac_make}_set=no;;
7895 esac
7896 rm -f conftest.make
7898 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900 $as_echo "yes" >&6; }
7901 SET_MAKE=
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 SET_MAKE="MAKE=${MAKE-make}"
7909 # Find some useful tools
7910 for ac_prog in gawk mawk nawk awk
7912 # Extract the first word of "$ac_prog", so it can be a program name with args.
7913 set dummy $ac_prog; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_prog_AWK+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$AWK"; then
7920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_AWK="$ac_prog"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7933 done
7934 done
7935 IFS=$as_save_IFS
7939 AWK=$ac_cv_prog_AWK
7940 if test -n "$AWK"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7942 $as_echo "$AWK" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7949 test -n "$AWK" && break
7950 done
7952 # We need awk to create options.c and options.h.
7953 # Bail out if it's missing.
7954 case ${AWK} in
7955 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
7956 esac
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7959 $as_echo_n "checking whether ln -s works... " >&6; }
7960 if ${gcc_cv_prog_LN_S+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 rm -f conftestdata_t
7964 echo >conftestdata_f
7965 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7966 then
7967 gcc_cv_prog_LN_S="ln -s"
7968 else
7969 if ln conftestdata_f conftestdata_t 2>/dev/null
7970 then
7971 gcc_cv_prog_LN_S=ln
7972 else
7973 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7974 then
7975 gcc_cv_prog_LN_S="cp -p"
7976 else
7977 gcc_cv_prog_LN_S=cp
7981 rm -f conftestdata_f conftestdata_t
7984 LN_S="$gcc_cv_prog_LN_S"
7985 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7987 $as_echo "yes" >&6; }
7988 else
7989 if test "$gcc_cv_prog_LN_S" = "ln"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7991 $as_echo "no, using ln" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7994 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7999 $as_echo_n "checking whether ln works... " >&6; }
8000 if ${acx_cv_prog_LN+:} false; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 rm -f conftestdata_t
8004 echo >conftestdata_f
8005 if ln conftestdata_f conftestdata_t 2>/dev/null
8006 then
8007 acx_cv_prog_LN=ln
8008 else
8009 acx_cv_prog_LN=no
8011 rm -f conftestdata_f conftestdata_t
8014 if test $acx_cv_prog_LN = no; then
8015 LN="$LN_S"
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8017 $as_echo "no, using $LN" >&6; }
8018 else
8019 LN="$acx_cv_prog_LN"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8021 $as_echo "yes" >&6; }
8024 if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_RANLIB+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$RANLIB"; then
8033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8046 done
8047 done
8048 IFS=$as_save_IFS
8052 RANLIB=$ac_cv_prog_RANLIB
8053 if test -n "$RANLIB"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8055 $as_echo "$RANLIB" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8063 if test -z "$ac_cv_prog_RANLIB"; then
8064 ac_ct_RANLIB=$RANLIB
8065 # Extract the first word of "ranlib", so it can be a program name with args.
8066 set dummy ranlib; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$ac_ct_RANLIB"; then
8073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_RANLIB="ranlib"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8086 done
8087 done
8088 IFS=$as_save_IFS
8092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8093 if test -n "$ac_ct_RANLIB"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8095 $as_echo "$ac_ct_RANLIB" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8101 if test "x$ac_ct_RANLIB" = x; then
8102 RANLIB=":"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105 yes:)
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108 ac_tool_warned=yes ;;
8109 esac
8110 RANLIB=$ac_ct_RANLIB
8112 else
8113 RANLIB="$ac_cv_prog_RANLIB"
8116 ranlib_flags=""
8119 # Find a good install program. We prefer a C program (faster),
8120 # so one script is as good as another. But avoid the broken or
8121 # incompatible versions:
8122 # SysV /etc/install, /usr/sbin/install
8123 # SunOS /usr/etc/install
8124 # IRIX /sbin/install
8125 # AIX /bin/install
8126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8128 # ./install, which can be erroneously created by make from ./install.sh.
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8130 $as_echo_n "checking for a BSD compatible install... " >&6; }
8131 if test -z "$INSTALL"; then
8132 if ${ac_cv_path_install+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8136 for ac_dir in $PATH; do
8137 # Account for people who put trailing slashes in PATH elements.
8138 case "$ac_dir/" in
8139 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8141 # OSF1 and SCO ODT 3.0 have their own names for install.
8142 for ac_prog in ginstall scoinst install; do
8143 if test -f $ac_dir/$ac_prog; then
8144 if test $ac_prog = install &&
8145 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8146 # AIX install. It has an incompatible calling convention.
8147 # OSF/1 installbsd also uses dspmsg, but is usable.
8149 else
8150 ac_cv_path_install="$ac_dir/$ac_prog -c"
8151 break 2
8154 done
8156 esac
8157 done
8158 IFS="$ac_save_IFS"
8161 if test "${ac_cv_path_install+set}" = set; then
8162 INSTALL="$ac_cv_path_install"
8163 else
8164 # As a last resort, use the slow shell script. We don't cache a
8165 # path for INSTALL within a source directory, because that will
8166 # break other packages using the cache if that directory is
8167 # removed, or if the path is relative.
8168 INSTALL="$ac_install_sh"
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8172 $as_echo "$INSTALL" >&6; }
8174 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8175 # It thinks the first close brace ends the variable substitution.
8176 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8178 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8181 # See if cmp has --ignore-initial.
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8183 $as_echo_n "checking for cmp's capabilities... " >&6; }
8184 if ${gcc_cv_prog_cmp_skip+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 echo abfoo >t1
8188 echo cdfoo >t2
8189 gcc_cv_prog_cmp_skip=slowcompare
8190 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8191 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8193 else
8194 gcc_cv_prog_cmp_skip=gnucompare
8197 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8198 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8199 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8201 else
8202 gcc_cv_prog_cmp_skip=fastcompare
8206 rm t1 t2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8210 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8211 make_compare_target=$gcc_cv_prog_cmp_skip
8215 # See if we have the mktemp command.
8216 # Extract the first word of "mktemp", so it can be a program name with args.
8217 set dummy mktemp; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 if test -n "$have_mktemp_command"; then
8224 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8233 ac_cv_prog_have_mktemp_command="yes"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8237 done
8238 done
8239 IFS=$as_save_IFS
8241 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8244 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8245 if test -n "$have_mktemp_command"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8247 $as_echo "$have_mktemp_command" >&6; }
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8255 # See if makeinfo has been installed and is modern enough
8256 # that we can use it.
8258 # Extract the first word of "makeinfo", so it can be a program name with args.
8259 set dummy makeinfo; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if ${ac_cv_prog_MAKEINFO+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 if test -n "$MAKEINFO"; then
8266 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8271 IFS=$as_save_IFS
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8275 ac_cv_prog_MAKEINFO="makeinfo"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 break 2
8279 done
8280 done
8281 IFS=$as_save_IFS
8285 MAKEINFO=$ac_cv_prog_MAKEINFO
8286 if test -n "$MAKEINFO"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8288 $as_echo "$MAKEINFO" >&6; }
8289 else
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8295 if test -n "$MAKEINFO"; then
8296 # Found it, now check the version.
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8298 $as_echo_n "checking for modern makeinfo... " >&6; }
8299 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8303 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8305 case $ac_prog_version in
8306 '') gcc_cv_prog_makeinfo_modern=no;;
8307 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8308 *) gcc_cv_prog_makeinfo_modern=no;;
8309 esac
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8313 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8314 else
8315 gcc_cv_prog_makeinfo_modern=no
8317 if test $gcc_cv_prog_makeinfo_modern = no; then
8318 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8321 if test $gcc_cv_prog_makeinfo_modern = no; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8323 *** Makeinfo is missing or too old.
8324 *** Info documentation will not be built." >&5
8325 $as_echo "$as_me: WARNING:
8326 *** Makeinfo is missing or too old.
8327 *** Info documentation will not be built." >&2;}
8328 BUILD_INFO=
8329 else
8330 BUILD_INFO=info
8334 # Is pod2man recent enough to regenerate manpages?
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8336 $as_echo_n "checking for recent Pod::Man... " >&6; }
8337 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8339 $as_echo "yes" >&6; }
8340 GENERATED_MANPAGES=generated-manpages
8341 else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8344 GENERATED_MANPAGES=
8348 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8350 # How about lex?
8351 for ac_prog in flex
8353 # Extract the first word of "$ac_prog", so it can be a program name with args.
8354 set dummy $ac_prog; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if ${ac_cv_prog_FLEX+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 if test -n "$FLEX"; then
8361 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_FLEX="$ac_prog"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8374 done
8375 done
8376 IFS=$as_save_IFS
8380 FLEX=$ac_cv_prog_FLEX
8381 if test -n "$FLEX"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8383 $as_echo "$FLEX" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8390 test -n "$FLEX" && break
8391 done
8392 test -n "$FLEX" || FLEX="$MISSING flex"
8395 # Bison?
8396 for ac_prog in bison
8398 # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401 $as_echo_n "checking for $ac_word... " >&6; }
8402 if ${ac_cv_prog_BISON+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 if test -n "$BISON"; then
8406 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8411 IFS=$as_save_IFS
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8415 ac_cv_prog_BISON="$ac_prog"
8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 break 2
8419 done
8420 done
8421 IFS=$as_save_IFS
8425 BISON=$ac_cv_prog_BISON
8426 if test -n "$BISON"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8428 $as_echo "$BISON" >&6; }
8429 else
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8435 test -n "$BISON" && break
8436 done
8437 test -n "$BISON" || BISON="$MISSING bison"
8440 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8441 # check for build == host before using them.
8443 # NM
8444 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8445 && test -d ../binutils ; then
8446 NM='${objdir}/../binutils/nm-new'
8447 else
8448 # Extract the first word of "nm", so it can be a program name with args.
8449 set dummy nm; ac_word=$2
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 $as_echo_n "checking for $ac_word... " >&6; }
8452 if ${ac_cv_prog_NM+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 if test -n "$NM"; then
8456 ac_cv_prog_NM="$NM" # Let the user override the test.
8457 else
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465 ac_cv_prog_NM="nm"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8469 done
8470 done
8471 IFS=$as_save_IFS
8473 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8476 NM=$ac_cv_prog_NM
8477 if test -n "$NM"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8479 $as_echo "$NM" >&6; }
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8488 # AR
8489 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8490 && test -d ../binutils ; then
8491 AR='${objdir}/../binutils/ar'
8492 else
8493 # Extract the first word of "ar", so it can be a program name with args.
8494 set dummy ar; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if ${ac_cv_prog_AR+:} false; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 if test -n "$AR"; then
8501 ac_cv_prog_AR="$AR" # Let the user override the test.
8502 else
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 for as_dir in $PATH
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8510 ac_cv_prog_AR="ar"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8514 done
8515 done
8516 IFS=$as_save_IFS
8518 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8521 AR=$ac_cv_prog_AR
8522 if test -n "$AR"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8524 $as_echo "$AR" >&6; }
8525 else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 $as_echo "no" >&6; }
8533 # The jit documentation looks better if built with sphinx, but can be
8534 # built with texinfo if sphinx is not available.
8535 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8536 # Extract the first word of "sphinx-build", so it can be a program name with args.
8537 set dummy sphinx-build; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if ${ac_cv_prog_doc_build_sys+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 if test -n "$doc_build_sys"; then
8544 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553 ac_cv_prog_doc_build_sys="sphinx"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8557 done
8558 done
8559 IFS=$as_save_IFS
8561 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8564 doc_build_sys=$ac_cv_prog_doc_build_sys
8565 if test -n "$doc_build_sys"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8567 $as_echo "$doc_build_sys" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8575 # --------------------
8576 # Checks for C headers
8577 # --------------------
8579 # Need to reject headers which give warnings, so that the -Werror bootstrap
8580 # works later. *sigh* This needs to come before all header checks.
8582 ac_c_preproc_warn_flag=yes
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8585 $as_echo_n "checking for ANSI C header files... " >&6; }
8586 if ${ac_cv_header_stdc+:} false; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 #include <stdlib.h>
8592 #include <stdarg.h>
8593 #include <string.h>
8594 #include <float.h>
8597 main ()
8601 return 0;
8603 _ACEOF
8604 if ac_fn_cxx_try_compile "$LINENO"; then :
8605 ac_cv_header_stdc=yes
8606 else
8607 ac_cv_header_stdc=no
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 if test $ac_cv_header_stdc = yes; then
8612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 #include <string.h>
8617 _ACEOF
8618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8619 $EGREP "memchr" >/dev/null 2>&1; then :
8621 else
8622 ac_cv_header_stdc=no
8624 rm -f conftest*
8628 if test $ac_cv_header_stdc = yes; then
8629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 #include <stdlib.h>
8634 _ACEOF
8635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8636 $EGREP "free" >/dev/null 2>&1; then :
8638 else
8639 ac_cv_header_stdc=no
8641 rm -f conftest*
8645 if test $ac_cv_header_stdc = yes; then
8646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8647 if test "$cross_compiling" = yes; then :
8649 else
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652 #include <ctype.h>
8653 #include <stdlib.h>
8654 #if ((' ' & 0x0FF) == 0x020)
8655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8657 #else
8658 # define ISLOWER(c) \
8659 (('a' <= (c) && (c) <= 'i') \
8660 || ('j' <= (c) && (c) <= 'r') \
8661 || ('s' <= (c) && (c) <= 'z'))
8662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8663 #endif
8665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8667 main ()
8669 int i;
8670 for (i = 0; i < 256; i++)
8671 if (XOR (islower (i), ISLOWER (i))
8672 || toupper (i) != TOUPPER (i))
8673 return 2;
8674 return 0;
8676 _ACEOF
8677 if ac_fn_cxx_try_run "$LINENO"; then :
8679 else
8680 ac_cv_header_stdc=no
8682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8683 conftest.$ac_objext conftest.beam conftest.$ac_ext
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8689 $as_echo "$ac_cv_header_stdc" >&6; }
8690 if test $ac_cv_header_stdc = yes; then
8692 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8697 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8698 if ${ac_cv_header_time+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #include <sys/types.h>
8704 #include <sys/time.h>
8705 #include <time.h>
8708 main ()
8710 if ((struct tm *) 0)
8711 return 0;
8713 return 0;
8715 _ACEOF
8716 if ac_fn_cxx_try_compile "$LINENO"; then :
8717 ac_cv_header_time=yes
8718 else
8719 ac_cv_header_time=no
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8724 $as_echo "$ac_cv_header_time" >&6; }
8725 if test $ac_cv_header_time = yes; then
8727 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8732 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8733 if ${gcc_cv_header_string+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8738 #include <string.h>
8739 #include <strings.h>
8741 main ()
8745 return 0;
8747 _ACEOF
8748 if ac_fn_cxx_try_compile "$LINENO"; then :
8749 gcc_cv_header_string=yes
8750 else
8751 gcc_cv_header_string=no
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8756 $as_echo "$gcc_cv_header_string" >&6; }
8757 if test $gcc_cv_header_string = yes; then
8759 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8764 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8765 if ${ac_cv_header_sys_wait_h+:} false; then :
8766 $as_echo_n "(cached) " >&6
8767 else
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8770 #include <sys/types.h>
8771 #include <sys/wait.h>
8772 #ifndef WEXITSTATUS
8773 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8774 #endif
8775 #ifndef WIFEXITED
8776 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8777 #endif
8780 main ()
8782 int s;
8783 wait (&s);
8784 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8786 return 0;
8788 _ACEOF
8789 if ac_fn_cxx_try_compile "$LINENO"; then :
8790 ac_cv_header_sys_wait_h=yes
8791 else
8792 ac_cv_header_sys_wait_h=no
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8797 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8798 if test $ac_cv_header_sys_wait_h = yes; then
8800 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8805 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8806 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8811 #include <sys/types.h>
8812 #include <termios.h>
8813 #ifdef TIOCGWINSZ
8815 #endif
8817 _ACEOF
8818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8819 $EGREP "yes" >/dev/null 2>&1; then :
8820 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8821 else
8822 ac_cv_sys_tiocgwinsz_in_termios_h=no
8824 rm -f conftest*
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8828 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8830 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8832 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8833 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #include <sys/types.h>
8839 #include <sys/ioctl.h>
8840 #ifdef TIOCGWINSZ
8842 #endif
8844 _ACEOF
8845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8846 $EGREP "yes" >/dev/null 2>&1; then :
8847 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8848 else
8849 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8851 rm -f conftest*
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8855 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8857 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8859 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8864 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8865 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8866 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8867 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8868 do :
8869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8870 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8872 cat >>confdefs.h <<_ACEOF
8873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8874 _ACEOF
8877 done
8880 # Check for thread headers.
8881 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8882 if test "x$ac_cv_header_thread_h" = xyes; then :
8883 have_thread_h=yes
8884 else
8885 have_thread_h=
8888 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8889 if test "x$ac_cv_header_pthread_h" = xyes; then :
8890 have_pthread_h=yes
8891 else
8892 have_pthread_h=
8896 # These tests can't be done till we know if we have limits.h.
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8898 $as_echo_n "checking for CHAR_BIT... " >&6; }
8899 if ${gcc_cv_decl_char_bit+:} false; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8904 #ifdef HAVE_LIMITS_H
8905 #include <limits.h>
8906 #endif
8907 #ifdef CHAR_BIT
8908 found
8909 #endif
8910 _ACEOF
8911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8912 $EGREP "found" >/dev/null 2>&1; then :
8913 gcc_cv_decl_char_bit=yes
8914 else
8915 gcc_cv_decl_char_bit=no
8917 rm -f conftest*
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8922 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8923 if test $gcc_cv_decl_char_bit = no; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8925 $as_echo_n "checking number of bits in a byte... " >&6; }
8926 if ${gcc_cv_c_nbby+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8930 gcc_cv_c_nbby=
8931 while test $i -lt 65; do
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8936 main ()
8938 switch(0) {
8939 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8940 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8943 return 0;
8945 _ACEOF
8946 if ac_fn_cxx_try_compile "$LINENO"; then :
8947 gcc_cv_c_nbby=$i; break
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 i=`expr $i + 1`
8951 done
8952 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8956 $as_echo "$gcc_cv_c_nbby" >&6; }
8957 if test $gcc_cv_c_nbby = failed; then
8958 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
8959 else
8961 cat >>confdefs.h <<_ACEOF
8962 #define CHAR_BIT $gcc_cv_c_nbby
8963 _ACEOF
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8968 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8969 if ${ac_cv_c_bigendian+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 ac_cv_c_bigendian=unknown
8973 # See if we're dealing with a universal compiler.
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8976 #ifndef __APPLE_CC__
8977 not a universal capable compiler
8978 #endif
8979 typedef int dummy;
8981 _ACEOF
8982 if ac_fn_cxx_try_compile "$LINENO"; then :
8984 # Check for potential -arch flags. It is not universal unless
8985 # there are at least two -arch flags with different values.
8986 ac_arch=
8987 ac_prev=
8988 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8989 if test -n "$ac_prev"; then
8990 case $ac_word in
8991 i?86 | x86_64 | ppc | ppc64)
8992 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8993 ac_arch=$ac_word
8994 else
8995 ac_cv_c_bigendian=universal
8996 break
8999 esac
9000 ac_prev=
9001 elif test "x$ac_word" = "x-arch"; then
9002 ac_prev=arch
9004 done
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 if test $ac_cv_c_bigendian = unknown; then
9008 # See if sys/param.h defines the BYTE_ORDER macro.
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011 #include <sys/types.h>
9012 #include <sys/param.h>
9015 main ()
9017 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9018 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9019 && LITTLE_ENDIAN)
9020 bogus endian macros
9021 #endif
9024 return 0;
9026 _ACEOF
9027 if ac_fn_cxx_try_compile "$LINENO"; then :
9028 # It does; now see whether it defined to BIG_ENDIAN or not.
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9031 #include <sys/types.h>
9032 #include <sys/param.h>
9035 main ()
9037 #if BYTE_ORDER != BIG_ENDIAN
9038 not big endian
9039 #endif
9042 return 0;
9044 _ACEOF
9045 if ac_fn_cxx_try_compile "$LINENO"; then :
9046 ac_cv_c_bigendian=yes
9047 else
9048 ac_cv_c_bigendian=no
9050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 if test $ac_cv_c_bigendian = unknown; then
9055 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 #include <limits.h>
9061 main ()
9063 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9064 bogus endian macros
9065 #endif
9068 return 0;
9070 _ACEOF
9071 if ac_fn_cxx_try_compile "$LINENO"; then :
9072 # It does; now see whether it defined to _BIG_ENDIAN or not.
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 #include <limits.h>
9078 main ()
9080 #ifndef _BIG_ENDIAN
9081 not big endian
9082 #endif
9085 return 0;
9087 _ACEOF
9088 if ac_fn_cxx_try_compile "$LINENO"; then :
9089 ac_cv_c_bigendian=yes
9090 else
9091 ac_cv_c_bigendian=no
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 if test $ac_cv_c_bigendian = unknown; then
9098 # Compile a test program.
9099 if test "$cross_compiling" = yes; then :
9100 # Try to guess by grepping values from an object file.
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9103 short int ascii_mm[] =
9104 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9105 short int ascii_ii[] =
9106 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9107 int use_ascii (int i) {
9108 return ascii_mm[i] + ascii_ii[i];
9110 short int ebcdic_ii[] =
9111 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9112 short int ebcdic_mm[] =
9113 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9114 int use_ebcdic (int i) {
9115 return ebcdic_mm[i] + ebcdic_ii[i];
9117 extern int foo;
9120 main ()
9122 return use_ascii (foo) == use_ebcdic (foo);
9124 return 0;
9126 _ACEOF
9127 if ac_fn_cxx_try_compile "$LINENO"; then :
9128 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9129 ac_cv_c_bigendian=yes
9131 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9132 if test "$ac_cv_c_bigendian" = unknown; then
9133 ac_cv_c_bigendian=no
9134 else
9135 # finding both strings is unlikely to happen, but who knows?
9136 ac_cv_c_bigendian=unknown
9140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9141 else
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 $ac_includes_default
9146 main ()
9149 /* Are we little or big endian? From Harbison&Steele. */
9150 union
9152 long int l;
9153 char c[sizeof (long int)];
9154 } u;
9155 u.l = 1;
9156 return u.c[sizeof (long int) - 1] == 1;
9159 return 0;
9161 _ACEOF
9162 if ac_fn_cxx_try_run "$LINENO"; then :
9163 ac_cv_c_bigendian=no
9164 else
9165 ac_cv_c_bigendian=yes
9167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9168 conftest.$ac_objext conftest.beam conftest.$ac_ext
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9174 $as_echo "$ac_cv_c_bigendian" >&6; }
9175 case $ac_cv_c_bigendian in #(
9176 yes)
9177 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9178 ;; #(
9180 ;; #(
9181 universal)
9183 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9185 ;; #(
9187 as_fn_error $? "unknown endianness
9188 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9189 esac
9192 # ----------------------
9193 # Checks for C++ headers
9194 # ----------------------
9196 ac_ext=cpp
9197 ac_cpp='$CXXCPP $CPPFLAGS'
9198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9202 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9203 if test -z "$CXXCPP"; then
9204 if ${ac_cv_prog_CXXCPP+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 # Double quotes because CXXCPP needs to be expanded
9208 for CXXCPP in "$CXX -E" "/lib/cpp"
9210 ac_preproc_ok=false
9211 for ac_cxx_preproc_warn_flag in '' yes
9213 # Use a header file that comes with gcc, so configuring glibc
9214 # with a fresh cross-compiler works.
9215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9216 # <limits.h> exists even on freestanding compilers.
9217 # On the NeXT, cc -E runs the code through the compiler's parser,
9218 # not just through cpp. "Syntax error" is here to catch this case.
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 #ifdef __STDC__
9222 # include <limits.h>
9223 #else
9224 # include <assert.h>
9225 #endif
9226 Syntax error
9227 _ACEOF
9228 if ac_fn_cxx_try_cpp "$LINENO"; then :
9230 else
9231 # Broken: fails on valid input.
9232 continue
9234 rm -f conftest.err conftest.i conftest.$ac_ext
9236 # OK, works on sane cases. Now check whether nonexistent headers
9237 # can be detected and how.
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 #include <ac_nonexistent.h>
9241 _ACEOF
9242 if ac_fn_cxx_try_cpp "$LINENO"; then :
9243 # Broken: success on invalid input.
9244 continue
9245 else
9246 # Passes both tests.
9247 ac_preproc_ok=:
9248 break
9250 rm -f conftest.err conftest.i conftest.$ac_ext
9252 done
9253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9254 rm -f conftest.i conftest.err conftest.$ac_ext
9255 if $ac_preproc_ok; then :
9256 break
9259 done
9260 ac_cv_prog_CXXCPP=$CXXCPP
9263 CXXCPP=$ac_cv_prog_CXXCPP
9264 else
9265 ac_cv_prog_CXXCPP=$CXXCPP
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9268 $as_echo "$CXXCPP" >&6; }
9269 ac_preproc_ok=false
9270 for ac_cxx_preproc_warn_flag in '' yes
9272 # Use a header file that comes with gcc, so configuring glibc
9273 # with a fresh cross-compiler works.
9274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9275 # <limits.h> exists even on freestanding compilers.
9276 # On the NeXT, cc -E runs the code through the compiler's parser,
9277 # not just through cpp. "Syntax error" is here to catch this case.
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 #ifdef __STDC__
9281 # include <limits.h>
9282 #else
9283 # include <assert.h>
9284 #endif
9285 Syntax error
9286 _ACEOF
9287 if ac_fn_cxx_try_cpp "$LINENO"; then :
9289 else
9290 # Broken: fails on valid input.
9291 continue
9293 rm -f conftest.err conftest.i conftest.$ac_ext
9295 # OK, works on sane cases. Now check whether nonexistent headers
9296 # can be detected and how.
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <ac_nonexistent.h>
9300 _ACEOF
9301 if ac_fn_cxx_try_cpp "$LINENO"; then :
9302 # Broken: success on invalid input.
9303 continue
9304 else
9305 # Passes both tests.
9306 ac_preproc_ok=:
9307 break
9309 rm -f conftest.err conftest.i conftest.$ac_ext
9311 done
9312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9313 rm -f conftest.i conftest.err conftest.$ac_ext
9314 if $ac_preproc_ok; then :
9316 else
9317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9320 See \`config.log' for more details" >&5
9321 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9322 See \`config.log' for more details" >&2;}; }
9325 ac_ext=cpp
9326 ac_cpp='$CXXCPP $CPPFLAGS'
9327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9332 for ac_header in unordered_map
9333 do :
9334 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9335 if test "x$ac_cv_header_unordered_map" = xyes; then :
9336 cat >>confdefs.h <<_ACEOF
9337 #define HAVE_UNORDERED_MAP 1
9338 _ACEOF
9341 done
9343 for ac_header in tr1/unordered_map
9344 do :
9345 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9346 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9347 cat >>confdefs.h <<_ACEOF
9348 #define HAVE_TR1_UNORDERED_MAP 1
9349 _ACEOF
9352 done
9354 for ac_header in ext/hash_map
9355 do :
9356 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9357 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9358 cat >>confdefs.h <<_ACEOF
9359 #define HAVE_EXT_HASH_MAP 1
9360 _ACEOF
9363 done
9366 # --------
9367 # Dependency checking.
9368 # --------
9370 rm -rf .tst 2>/dev/null
9371 mkdir .tst 2>/dev/null
9372 if test -d .tst; then
9373 am__leading_dot=.
9374 else
9375 am__leading_dot=_
9377 rmdir .tst 2>/dev/null
9379 DEPDIR="${am__leading_dot}deps"
9381 ac_config_commands="$ac_config_commands depdir"
9384 ac_config_commands="$ac_config_commands gccdepdir"
9387 depcc="$CXX" am_compiler_list=
9389 am_depcomp=$ac_aux_dir/depcomp
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9391 $as_echo_n "checking dependency style of $depcc... " >&6; }
9392 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 if test -f "$am_depcomp"; then
9396 # We make a subdir and do the tests there. Otherwise we can end up
9397 # making bogus files that we don't know about and never remove. For
9398 # instance it was reported that on HP-UX the gcc test will end up
9399 # making a dummy file named `D' -- because `-MD' means `put the output
9400 # in D'.
9401 mkdir conftest.dir
9402 # Copy depcomp to subdir because otherwise we won't find it if we're
9403 # using a relative directory.
9404 cp "$am_depcomp" conftest.dir
9405 cd conftest.dir
9406 # We will build objects and dependencies in a subdirectory because
9407 # it helps to detect inapplicable dependency modes. For instance
9408 # both Tru64's cc and ICC support -MD to output dependencies as a
9409 # side effect of compilation, but ICC will put the dependencies in
9410 # the current directory while Tru64 will put them in the object
9411 # directory.
9412 mkdir sub
9414 am_cv_CXX_dependencies_compiler_type=none
9415 if test "$am_compiler_list" = ""; then
9416 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9418 for depmode in $am_compiler_list; do
9419 if test $depmode = none; then break; fi
9421 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9422 # Setup a source with many dependencies, because some compilers
9423 # like to wrap large dependency lists on column 80 (with \), and
9424 # we should not choose a depcomp mode which is confused by this.
9426 # We need to recreate these files for each test, as the compiler may
9427 # overwrite some of them when testing with obscure command lines.
9428 # This happens at least with the AIX C compiler.
9429 : > sub/conftest.c
9430 for i in 1 2 3 4 5 6; do
9431 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9432 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9433 # Solaris 8's {/usr,}/bin/sh.
9434 touch sub/conftst$i.h
9435 done
9436 echo "include sub/conftest.Po" > confmf
9438 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9439 # mode. It turns out that the SunPro C++ compiler does not properly
9440 # handle `-M -o', and we need to detect this.
9441 depcmd="depmode=$depmode \
9442 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9443 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9444 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9445 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9446 if env $depcmd > conftest.err 2>&1 &&
9447 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9448 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9449 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9450 # icc doesn't choke on unknown options, it will just issue warnings
9451 # or remarks (even with -Werror). So we grep stderr for any message
9452 # that says an option was ignored or not supported.
9453 # When given -MP, icc 7.0 and 7.1 complain thusly:
9454 # icc: Command line warning: ignoring option '-M'; no argument required
9455 # The diagnosis changed in icc 8.0:
9456 # icc: Command line remark: option '-MP' not supported
9457 if (grep 'ignoring option' conftest.err ||
9458 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9459 am_cv_CXX_dependencies_compiler_type=$depmode
9460 $as_echo "$as_me:$LINENO: success" >&5
9461 break
9464 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9465 sed -e 's/^/| /' < conftest.err >&5
9466 done
9468 cd ..
9469 rm -rf conftest.dir
9470 else
9471 am_cv_CXX_dependencies_compiler_type=none
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9476 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9477 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9478 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9479 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9484 # --------
9485 # UNSORTED
9486 # --------
9489 # These libraries may be used by collect2.
9490 # We may need a special search path to get them linked.
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9492 $as_echo_n "checking for collect2 libraries... " >&6; }
9493 if ${gcc_cv_collect2_libs+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 save_LIBS="$LIBS"
9497 for libs in '' -lld -lmld \
9498 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9499 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9501 LIBS="$libs"
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9505 /* Override any GCC internal prototype to avoid an error.
9506 Use char because int might match the return type of a GCC
9507 builtin and then its argument prototype would still apply. */
9508 #ifdef __cplusplus
9509 extern "C"
9510 #endif
9511 char ldopen ();
9513 main ()
9515 return ldopen ();
9517 return 0;
9519 _ACEOF
9520 if ac_fn_cxx_try_link "$LINENO"; then :
9521 gcc_cv_collect2_libs="$libs"; break
9523 rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9525 done
9526 LIBS="$save_LIBS"
9527 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9530 $as_echo "$gcc_cv_collect2_libs" >&6; }
9531 case $gcc_cv_collect2_libs in
9532 "none required") ;;
9533 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9534 esac
9537 # When building Ada code on Alpha, we need exc_resume which is usually in
9538 # -lexc. So test for it.
9539 save_LIBS="$LIBS"
9540 LIBS=
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9542 $as_echo_n "checking for library containing exc_resume... " >&6; }
9543 if ${ac_cv_search_exc_resume+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 ac_func_search_save_LIBS=$LIBS
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9550 /* Override any GCC internal prototype to avoid an error.
9551 Use char because int might match the return type of a GCC
9552 builtin and then its argument prototype would still apply. */
9553 #ifdef __cplusplus
9554 extern "C"
9555 #endif
9556 char exc_resume ();
9558 main ()
9560 return exc_resume ();
9562 return 0;
9564 _ACEOF
9565 for ac_lib in '' exc; do
9566 if test -z "$ac_lib"; then
9567 ac_res="none required"
9568 else
9569 ac_res=-l$ac_lib
9570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9572 if ac_fn_cxx_try_link "$LINENO"; then :
9573 ac_cv_search_exc_resume=$ac_res
9575 rm -f core conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext
9577 if ${ac_cv_search_exc_resume+:} false; then :
9578 break
9580 done
9581 if ${ac_cv_search_exc_resume+:} false; then :
9583 else
9584 ac_cv_search_exc_resume=no
9586 rm conftest.$ac_ext
9587 LIBS=$ac_func_search_save_LIBS
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9590 $as_echo "$ac_cv_search_exc_resume" >&6; }
9591 ac_res=$ac_cv_search_exc_resume
9592 if test "$ac_res" != no; then :
9593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9597 GNAT_LIBEXC="$LIBS"
9598 LIBS="$save_LIBS"
9601 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9602 save_LIBS="$LIBS"
9603 LIBS=
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9605 $as_echo_n "checking for library containing kstat_open... " >&6; }
9606 if ${ac_cv_search_kstat_open+:} false; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 ac_func_search_save_LIBS=$LIBS
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9613 /* Override any GCC internal prototype to avoid an error.
9614 Use char because int might match the return type of a GCC
9615 builtin and then its argument prototype would still apply. */
9616 #ifdef __cplusplus
9617 extern "C"
9618 #endif
9619 char kstat_open ();
9621 main ()
9623 return kstat_open ();
9625 return 0;
9627 _ACEOF
9628 for ac_lib in '' kstat; do
9629 if test -z "$ac_lib"; then
9630 ac_res="none required"
9631 else
9632 ac_res=-l$ac_lib
9633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9635 if ac_fn_cxx_try_link "$LINENO"; then :
9636 ac_cv_search_kstat_open=$ac_res
9638 rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext
9640 if ${ac_cv_search_kstat_open+:} false; then :
9641 break
9643 done
9644 if ${ac_cv_search_kstat_open+:} false; then :
9646 else
9647 ac_cv_search_kstat_open=no
9649 rm conftest.$ac_ext
9650 LIBS=$ac_func_search_save_LIBS
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9653 $as_echo "$ac_cv_search_kstat_open" >&6; }
9654 ac_res=$ac_cv_search_kstat_open
9655 if test "$ac_res" != no; then :
9656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9660 EXTRA_GCC_LIBS="$LIBS"
9661 LIBS="$save_LIBS"
9664 # Some systems put ldexp and frexp in libm instead of libc; assume
9665 # they're both in the same place. jcf-dump needs them.
9666 save_LIBS="$LIBS"
9667 LIBS=
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9669 $as_echo_n "checking for library containing ldexp... " >&6; }
9670 if ${ac_cv_search_ldexp+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 ac_func_search_save_LIBS=$LIBS
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char ldexp ();
9685 main ()
9687 return ldexp ();
9689 return 0;
9691 _ACEOF
9692 for ac_lib in '' m; do
9693 if test -z "$ac_lib"; then
9694 ac_res="none required"
9695 else
9696 ac_res=-l$ac_lib
9697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9699 if ac_fn_cxx_try_link "$LINENO"; then :
9700 ac_cv_search_ldexp=$ac_res
9702 rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext
9704 if ${ac_cv_search_ldexp+:} false; then :
9705 break
9707 done
9708 if ${ac_cv_search_ldexp+:} false; then :
9710 else
9711 ac_cv_search_ldexp=no
9713 rm conftest.$ac_ext
9714 LIBS=$ac_func_search_save_LIBS
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9717 $as_echo "$ac_cv_search_ldexp" >&6; }
9718 ac_res=$ac_cv_search_ldexp
9719 if test "$ac_res" != no; then :
9720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9724 LDEXP_LIB="$LIBS"
9725 LIBS="$save_LIBS"
9728 # Use <inttypes.h> only if it exists,
9729 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9730 # PRId64
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9732 $as_echo_n "checking for inttypes.h... " >&6; }
9733 if ${gcc_cv_header_inttypes_h+:} false; then :
9734 $as_echo_n "(cached) " >&6
9735 else
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 #define __STDC_FORMAT_MACROS
9739 #include <sys/types.h>
9740 #include <inttypes.h>
9742 main ()
9744 intmax_t i = -1;
9745 #ifndef PRId64
9746 choke me
9747 #endif
9749 return 0;
9751 _ACEOF
9752 if ac_fn_cxx_try_compile "$LINENO"; then :
9753 gcc_cv_header_inttypes_h=yes
9754 else
9755 gcc_cv_header_inttypes_h=no
9757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9761 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9762 if test $gcc_cv_header_inttypes_h = yes; then
9764 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9770 for ac_func in times clock kill getrlimit setrlimit atoq \
9771 popen sysconf strsignal getrusage nl_langinfo \
9772 gettimeofday mbstowcs wcswidth mmap setlocale \
9773 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
9774 do :
9775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9776 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9777 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9778 cat >>confdefs.h <<_ACEOF
9779 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9780 _ACEOF
9783 done
9786 if test x$ac_cv_func_mbstowcs = xyes; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9788 $as_echo_n "checking whether mbstowcs works... " >&6; }
9789 if ${gcc_cv_func_mbstowcs_works+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 if test "$cross_compiling" = yes; then :
9793 gcc_cv_func_mbstowcs_works=yes
9794 else
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9797 #include <stdlib.h>
9798 int main()
9800 mbstowcs(0, "", 0);
9801 return 0;
9803 _ACEOF
9804 if ac_fn_cxx_try_run "$LINENO"; then :
9805 gcc_cv_func_mbstowcs_works=yes
9806 else
9807 gcc_cv_func_mbstowcs_works=no
9809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9810 conftest.$ac_objext conftest.beam conftest.$ac_ext
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9815 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9816 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9818 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9823 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9824 if test "x$ac_cv_type_ssize_t" = xyes; then :
9826 else
9828 cat >>confdefs.h <<_ACEOF
9829 #define ssize_t int
9830 _ACEOF
9834 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9835 if test "x$ac_cv_type_caddr_t" = xyes; then :
9837 else
9839 cat >>confdefs.h <<_ACEOF
9840 #define caddr_t char *
9841 _ACEOF
9847 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9848 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9849 gcc_header_sys_mman_h=yes
9850 else
9851 gcc_header_sys_mman_h=no
9854 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9855 if test "x$ac_cv_func_mmap" = xyes; then :
9856 gcc_func_mmap=yes
9857 else
9858 gcc_func_mmap=no
9861 if test "$gcc_header_sys_mman_h" != yes \
9862 || test "$gcc_func_mmap" != yes; then
9863 gcc_cv_func_mmap_file=no
9864 gcc_cv_func_mmap_dev_zero=no
9865 gcc_cv_func_mmap_anon=no
9866 else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9868 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9869 if ${gcc_cv_func_mmap_file+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 # Add a system to this blacklist if
9873 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9874 # memory area containing the same data that you'd get if you applied
9875 # read() to the same fd. The only system known to have a problem here
9876 # is VMS, where text files have record structure.
9877 case "$host_os" in
9878 *vms* | ultrix*)
9879 gcc_cv_func_mmap_file=no ;;
9881 gcc_cv_func_mmap_file=yes;;
9882 esac
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9885 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9887 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9888 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 # Add a system to this blacklist if it has mmap() but /dev/zero
9892 # does not exist, or if mmapping /dev/zero does not give anonymous
9893 # zeroed pages with both the following properties:
9894 # 1. If you map N consecutive pages in with one call, and then
9895 # unmap any subset of those pages, the pages that were not
9896 # explicitly unmapped remain accessible.
9897 # 2. If you map two adjacent blocks of memory and then unmap them
9898 # both at once, they must both go away.
9899 # Systems known to be in this category are Windows (all variants),
9900 # VMS, and Darwin.
9901 case "$host_os" in
9902 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9903 gcc_cv_func_mmap_dev_zero=no ;;
9905 gcc_cv_func_mmap_dev_zero=yes;;
9906 esac
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9909 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9911 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9913 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9914 if ${gcc_cv_decl_map_anon+:} false; then :
9915 $as_echo_n "(cached) " >&6
9916 else
9917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h. */
9919 #include <sys/types.h>
9920 #include <sys/mman.h>
9921 #include <unistd.h>
9923 #ifndef MAP_ANONYMOUS
9924 #define MAP_ANONYMOUS MAP_ANON
9925 #endif
9928 main ()
9930 int n = MAP_ANONYMOUS;
9932 return 0;
9934 _ACEOF
9935 if ac_fn_cxx_try_compile "$LINENO"; then :
9936 gcc_cv_decl_map_anon=yes
9937 else
9938 gcc_cv_decl_map_anon=no
9940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9943 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9945 if test $gcc_cv_decl_map_anon = no; then
9946 gcc_cv_func_mmap_anon=no
9947 else
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9949 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9950 if ${gcc_cv_func_mmap_anon+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9954 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9955 # doesn't give anonymous zeroed pages with the same properties listed
9956 # above for use of /dev/zero.
9957 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9958 case "$host_os" in
9959 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9960 gcc_cv_func_mmap_anon=no ;;
9962 gcc_cv_func_mmap_anon=yes;;
9963 esac
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9966 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9970 if test $gcc_cv_func_mmap_file = yes; then
9972 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9975 if test $gcc_cv_func_mmap_dev_zero = yes; then
9977 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9980 if test $gcc_cv_func_mmap_anon = yes; then
9982 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9987 case "${host}" in
9988 *-*-*vms*)
9989 # Under VMS, vfork works very differently than on Unix. The standard test
9990 # won't work, and it isn't easily adaptable. It makes more sense to
9991 # just force it.
9992 ac_cv_func_vfork_works=yes
9994 esac
9995 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9996 if test "x$ac_cv_type_pid_t" = xyes; then :
9998 else
10000 cat >>confdefs.h <<_ACEOF
10001 #define pid_t int
10002 _ACEOF
10006 for ac_header in vfork.h
10007 do :
10008 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10009 if test "x$ac_cv_header_vfork_h" = xyes; then :
10010 cat >>confdefs.h <<_ACEOF
10011 #define HAVE_VFORK_H 1
10012 _ACEOF
10015 done
10017 for ac_func in fork vfork
10018 do :
10019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10020 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10021 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10022 cat >>confdefs.h <<_ACEOF
10023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10024 _ACEOF
10027 done
10029 if test "x$ac_cv_func_fork" = xyes; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10031 $as_echo_n "checking for working fork... " >&6; }
10032 if ${ac_cv_func_fork_works+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 if test "$cross_compiling" = yes; then :
10036 ac_cv_func_fork_works=cross
10037 else
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 $ac_includes_default
10042 main ()
10045 /* By Ruediger Kuhlmann. */
10046 return fork () < 0;
10049 return 0;
10051 _ACEOF
10052 if ac_fn_cxx_try_run "$LINENO"; then :
10053 ac_cv_func_fork_works=yes
10054 else
10055 ac_cv_func_fork_works=no
10057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10058 conftest.$ac_objext conftest.beam conftest.$ac_ext
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10063 $as_echo "$ac_cv_func_fork_works" >&6; }
10065 else
10066 ac_cv_func_fork_works=$ac_cv_func_fork
10068 if test "x$ac_cv_func_fork_works" = xcross; then
10069 case $host in
10070 *-*-amigaos* | *-*-msdosdjgpp*)
10071 # Override, as these systems have only a dummy fork() stub
10072 ac_cv_func_fork_works=no
10075 ac_cv_func_fork_works=yes
10077 esac
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10079 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10081 ac_cv_func_vfork_works=$ac_cv_func_vfork
10082 if test "x$ac_cv_func_vfork" = xyes; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10084 $as_echo_n "checking for working vfork... " >&6; }
10085 if ${ac_cv_func_vfork_works+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 if test "$cross_compiling" = yes; then :
10089 ac_cv_func_vfork_works=cross
10090 else
10091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h. */
10093 /* Thanks to Paul Eggert for this test. */
10094 $ac_includes_default
10095 #include <sys/wait.h>
10096 #ifdef HAVE_VFORK_H
10097 # include <vfork.h>
10098 #endif
10099 /* On some sparc systems, changes by the child to local and incoming
10100 argument registers are propagated back to the parent. The compiler
10101 is told about this with #include <vfork.h>, but some compilers
10102 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10103 static variable whose address is put into a register that is
10104 clobbered by the vfork. */
10105 static void
10106 #ifdef __cplusplus
10107 sparc_address_test (int arg)
10108 # else
10109 sparc_address_test (arg) int arg;
10110 #endif
10112 static pid_t child;
10113 if (!child) {
10114 child = vfork ();
10115 if (child < 0) {
10116 perror ("vfork");
10117 _exit(2);
10119 if (!child) {
10120 arg = getpid();
10121 write(-1, "", 0);
10122 _exit (arg);
10128 main ()
10130 pid_t parent = getpid ();
10131 pid_t child;
10133 sparc_address_test (0);
10135 child = vfork ();
10137 if (child == 0) {
10138 /* Here is another test for sparc vfork register problems. This
10139 test uses lots of local variables, at least as many local
10140 variables as main has allocated so far including compiler
10141 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10142 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10143 reuse the register of parent for one of the local variables,
10144 since it will think that parent can't possibly be used any more
10145 in this routine. Assigning to the local variable will thus
10146 munge parent in the parent process. */
10147 pid_t
10148 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10149 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10150 /* Convince the compiler that p..p7 are live; otherwise, it might
10151 use the same hardware register for all 8 local variables. */
10152 if (p != p1 || p != p2 || p != p3 || p != p4
10153 || p != p5 || p != p6 || p != p7)
10154 _exit(1);
10156 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10157 from child file descriptors. If the child closes a descriptor
10158 before it execs or exits, this munges the parent's descriptor
10159 as well. Test for this by closing stdout in the child. */
10160 _exit(close(fileno(stdout)) != 0);
10161 } else {
10162 int status;
10163 struct stat st;
10165 while (wait(&status) != child)
10167 return (
10168 /* Was there some problem with vforking? */
10169 child < 0
10171 /* Did the child fail? (This shouldn't happen.) */
10172 || status
10174 /* Did the vfork/compiler bug occur? */
10175 || parent != getpid()
10177 /* Did the file descriptor bug occur? */
10178 || fstat(fileno(stdout), &st) != 0
10182 _ACEOF
10183 if ac_fn_cxx_try_run "$LINENO"; then :
10184 ac_cv_func_vfork_works=yes
10185 else
10186 ac_cv_func_vfork_works=no
10188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10189 conftest.$ac_objext conftest.beam conftest.$ac_ext
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10194 $as_echo "$ac_cv_func_vfork_works" >&6; }
10197 if test "x$ac_cv_func_fork_works" = xcross; then
10198 ac_cv_func_vfork_works=$ac_cv_func_vfork
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10200 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10203 if test "x$ac_cv_func_vfork_works" = xyes; then
10205 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10207 else
10209 $as_echo "#define vfork fork" >>confdefs.h
10212 if test "x$ac_cv_func_fork_works" = xyes; then
10214 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10220 if test "X$prefix" = "XNONE"; then
10221 acl_final_prefix="$ac_default_prefix"
10222 else
10223 acl_final_prefix="$prefix"
10225 if test "X$exec_prefix" = "XNONE"; then
10226 acl_final_exec_prefix='${prefix}'
10227 else
10228 acl_final_exec_prefix="$exec_prefix"
10230 acl_save_prefix="$prefix"
10231 prefix="$acl_final_prefix"
10232 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10233 prefix="$acl_save_prefix"
10236 # Check whether --with-gnu-ld was given.
10237 if test "${with_gnu_ld+set}" = set; then :
10238 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10239 else
10240 with_gnu_ld=no
10243 # Prepare PATH_SEPARATOR.
10244 # The user is always right.
10245 if test "${PATH_SEPARATOR+set}" != set; then
10246 echo "#! /bin/sh" >conf$$.sh
10247 echo "exit 0" >>conf$$.sh
10248 chmod +x conf$$.sh
10249 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10250 PATH_SEPARATOR=';'
10251 else
10252 PATH_SEPARATOR=:
10254 rm -f conf$$.sh
10256 ac_prog=ld
10257 if test "$GCC" = yes; then
10258 # Check if gcc -print-prog-name=ld gives a path.
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10260 $as_echo_n "checking for ld used by GCC... " >&6; }
10261 case $host in
10262 *-*-mingw*)
10263 # gcc leaves a trailing carriage return which upsets mingw
10264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10267 esac
10268 case $ac_prog in
10269 # Accept absolute paths.
10270 [\\/]* | [A-Za-z]:[\\/]*)
10271 re_direlt='/[^/][^/]*/\.\./'
10272 # Canonicalize the path of ld
10273 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10274 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10275 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10276 done
10277 test -z "$LD" && LD="$ac_prog"
10280 # If it fails, then pretend we aren't using GCC.
10281 ac_prog=ld
10284 # If it is relative, then search for the first ld in PATH.
10285 with_gnu_ld=unknown
10287 esac
10288 elif test "$with_gnu_ld" = yes; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10290 $as_echo_n "checking for GNU ld... " >&6; }
10291 else
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10293 $as_echo_n "checking for non-GNU ld... " >&6; }
10295 if ${acl_cv_path_LD+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 if test -z "$LD"; then
10299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10300 for ac_dir in $PATH; do
10301 test -z "$ac_dir" && ac_dir=.
10302 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10303 acl_cv_path_LD="$ac_dir/$ac_prog"
10304 # Check to see if the program is GNU ld. I'd rather use --version,
10305 # but apparently some GNU ld's only accept -v.
10306 # Break only if it was the GNU/non-GNU ld that we prefer.
10307 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10308 test "$with_gnu_ld" != no && break
10309 else
10310 test "$with_gnu_ld" != yes && break
10313 done
10314 IFS="$ac_save_ifs"
10315 else
10316 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10320 LD="$acl_cv_path_LD"
10321 if test -n "$LD"; then
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10323 $as_echo "$LD" >&6; }
10324 else
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326 $as_echo "no" >&6; }
10328 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10330 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10331 if ${acl_cv_prog_gnu_ld+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10335 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10336 acl_cv_prog_gnu_ld=yes
10337 else
10338 acl_cv_prog_gnu_ld=no
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10342 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10343 with_gnu_ld=$acl_cv_prog_gnu_ld
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10348 $as_echo_n "checking for shared library run path origin... " >&6; }
10349 if ${acl_cv_rpath+:} false; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10353 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10354 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10355 . ./conftest.sh
10356 rm -f ./conftest.sh
10357 acl_cv_rpath=done
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10361 $as_echo "$acl_cv_rpath" >&6; }
10362 wl="$acl_cv_wl"
10363 libext="$acl_cv_libext"
10364 shlibext="$acl_cv_shlibext"
10365 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10366 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10367 hardcode_direct="$acl_cv_hardcode_direct"
10368 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10369 # Check whether --enable-rpath was given.
10370 if test "${enable_rpath+set}" = set; then :
10371 enableval=$enable_rpath; :
10372 else
10373 enable_rpath=yes
10383 use_additional=yes
10385 acl_save_prefix="$prefix"
10386 prefix="$acl_final_prefix"
10387 acl_save_exec_prefix="$exec_prefix"
10388 exec_prefix="$acl_final_exec_prefix"
10390 eval additional_includedir=\"$includedir\"
10391 eval additional_libdir=\"$libdir\"
10393 exec_prefix="$acl_save_exec_prefix"
10394 prefix="$acl_save_prefix"
10397 # Check whether --with-libiconv-prefix was given.
10398 if test "${with_libiconv_prefix+set}" = set; then :
10399 withval=$with_libiconv_prefix;
10400 if test "X$withval" = "Xno"; then
10401 use_additional=no
10402 else
10403 if test "X$withval" = "X"; then
10405 acl_save_prefix="$prefix"
10406 prefix="$acl_final_prefix"
10407 acl_save_exec_prefix="$exec_prefix"
10408 exec_prefix="$acl_final_exec_prefix"
10410 eval additional_includedir=\"$includedir\"
10411 eval additional_libdir=\"$libdir\"
10413 exec_prefix="$acl_save_exec_prefix"
10414 prefix="$acl_save_prefix"
10416 else
10417 additional_includedir="$withval/include"
10418 additional_libdir="$withval/lib"
10424 LIBICONV=
10425 LTLIBICONV=
10426 INCICONV=
10427 rpathdirs=
10428 ltrpathdirs=
10429 names_already_handled=
10430 names_next_round='iconv '
10431 while test -n "$names_next_round"; do
10432 names_this_round="$names_next_round"
10433 names_next_round=
10434 for name in $names_this_round; do
10435 already_handled=
10436 for n in $names_already_handled; do
10437 if test "$n" = "$name"; then
10438 already_handled=yes
10439 break
10441 done
10442 if test -z "$already_handled"; then
10443 names_already_handled="$names_already_handled $name"
10444 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10445 eval value=\"\$HAVE_LIB$uppername\"
10446 if test -n "$value"; then
10447 if test "$value" = yes; then
10448 eval value=\"\$LIB$uppername\"
10449 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10450 eval value=\"\$LTLIB$uppername\"
10451 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10452 else
10455 else
10456 found_dir=
10457 found_la=
10458 found_so=
10459 found_a=
10460 if test $use_additional = yes; then
10461 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10462 found_dir="$additional_libdir"
10463 found_so="$additional_libdir/lib$name.$shlibext"
10464 if test -f "$additional_libdir/lib$name.la"; then
10465 found_la="$additional_libdir/lib$name.la"
10467 else
10468 if test -f "$additional_libdir/lib$name.$libext"; then
10469 found_dir="$additional_libdir"
10470 found_a="$additional_libdir/lib$name.$libext"
10471 if test -f "$additional_libdir/lib$name.la"; then
10472 found_la="$additional_libdir/lib$name.la"
10477 if test "X$found_dir" = "X"; then
10478 for x in $LDFLAGS $LTLIBICONV; do
10480 acl_save_prefix="$prefix"
10481 prefix="$acl_final_prefix"
10482 acl_save_exec_prefix="$exec_prefix"
10483 exec_prefix="$acl_final_exec_prefix"
10484 eval x=\"$x\"
10485 exec_prefix="$acl_save_exec_prefix"
10486 prefix="$acl_save_prefix"
10488 case "$x" in
10489 -L*)
10490 dir=`echo "X$x" | sed -e 's/^X-L//'`
10491 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10492 found_dir="$dir"
10493 found_so="$dir/lib$name.$shlibext"
10494 if test -f "$dir/lib$name.la"; then
10495 found_la="$dir/lib$name.la"
10497 else
10498 if test -f "$dir/lib$name.$libext"; then
10499 found_dir="$dir"
10500 found_a="$dir/lib$name.$libext"
10501 if test -f "$dir/lib$name.la"; then
10502 found_la="$dir/lib$name.la"
10507 esac
10508 if test "X$found_dir" != "X"; then
10509 break
10511 done
10513 if test "X$found_dir" != "X"; then
10514 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10515 if test "X$found_so" != "X"; then
10516 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10517 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10518 else
10519 haveit=
10520 for x in $ltrpathdirs; do
10521 if test "X$x" = "X$found_dir"; then
10522 haveit=yes
10523 break
10525 done
10526 if test -z "$haveit"; then
10527 ltrpathdirs="$ltrpathdirs $found_dir"
10529 if test "$hardcode_direct" = yes; then
10530 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10531 else
10532 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10533 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10534 haveit=
10535 for x in $rpathdirs; do
10536 if test "X$x" = "X$found_dir"; then
10537 haveit=yes
10538 break
10540 done
10541 if test -z "$haveit"; then
10542 rpathdirs="$rpathdirs $found_dir"
10544 else
10545 haveit=
10546 for x in $LDFLAGS $LIBICONV; do
10548 acl_save_prefix="$prefix"
10549 prefix="$acl_final_prefix"
10550 acl_save_exec_prefix="$exec_prefix"
10551 exec_prefix="$acl_final_exec_prefix"
10552 eval x=\"$x\"
10553 exec_prefix="$acl_save_exec_prefix"
10554 prefix="$acl_save_prefix"
10556 if test "X$x" = "X-L$found_dir"; then
10557 haveit=yes
10558 break
10560 done
10561 if test -z "$haveit"; then
10562 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10564 if test "$hardcode_minus_L" != no; then
10565 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10566 else
10567 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10572 else
10573 if test "X$found_a" != "X"; then
10574 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10575 else
10576 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10579 additional_includedir=
10580 case "$found_dir" in
10581 */lib | */lib/)
10582 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10583 additional_includedir="$basedir/include"
10585 esac
10586 if test "X$additional_includedir" != "X"; then
10587 if test "X$additional_includedir" != "X/usr/include"; then
10588 haveit=
10589 if test "X$additional_includedir" = "X/usr/local/include"; then
10590 if test -n "$GCC"; then
10591 case $host_os in
10592 linux*) haveit=yes;;
10593 esac
10596 if test -z "$haveit"; then
10597 for x in $CPPFLAGS $INCICONV; do
10599 acl_save_prefix="$prefix"
10600 prefix="$acl_final_prefix"
10601 acl_save_exec_prefix="$exec_prefix"
10602 exec_prefix="$acl_final_exec_prefix"
10603 eval x=\"$x\"
10604 exec_prefix="$acl_save_exec_prefix"
10605 prefix="$acl_save_prefix"
10607 if test "X$x" = "X-I$additional_includedir"; then
10608 haveit=yes
10609 break
10611 done
10612 if test -z "$haveit"; then
10613 if test -d "$additional_includedir"; then
10614 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10620 if test -n "$found_la"; then
10621 save_libdir="$libdir"
10622 case "$found_la" in
10623 */* | *\\*) . "$found_la" ;;
10624 *) . "./$found_la" ;;
10625 esac
10626 libdir="$save_libdir"
10627 for dep in $dependency_libs; do
10628 case "$dep" in
10629 -L*)
10630 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10631 if test "X$additional_libdir" != "X/usr/lib"; then
10632 haveit=
10633 if test "X$additional_libdir" = "X/usr/local/lib"; then
10634 if test -n "$GCC"; then
10635 case $host_os in
10636 linux*) haveit=yes;;
10637 esac
10640 if test -z "$haveit"; then
10641 haveit=
10642 for x in $LDFLAGS $LIBICONV; do
10644 acl_save_prefix="$prefix"
10645 prefix="$acl_final_prefix"
10646 acl_save_exec_prefix="$exec_prefix"
10647 exec_prefix="$acl_final_exec_prefix"
10648 eval x=\"$x\"
10649 exec_prefix="$acl_save_exec_prefix"
10650 prefix="$acl_save_prefix"
10652 if test "X$x" = "X-L$additional_libdir"; then
10653 haveit=yes
10654 break
10656 done
10657 if test -z "$haveit"; then
10658 if test -d "$additional_libdir"; then
10659 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10662 haveit=
10663 for x in $LDFLAGS $LTLIBICONV; do
10665 acl_save_prefix="$prefix"
10666 prefix="$acl_final_prefix"
10667 acl_save_exec_prefix="$exec_prefix"
10668 exec_prefix="$acl_final_exec_prefix"
10669 eval x=\"$x\"
10670 exec_prefix="$acl_save_exec_prefix"
10671 prefix="$acl_save_prefix"
10673 if test "X$x" = "X-L$additional_libdir"; then
10674 haveit=yes
10675 break
10677 done
10678 if test -z "$haveit"; then
10679 if test -d "$additional_libdir"; then
10680 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10686 -R*)
10687 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10688 if test "$enable_rpath" != no; then
10689 haveit=
10690 for x in $rpathdirs; do
10691 if test "X$x" = "X$dir"; then
10692 haveit=yes
10693 break
10695 done
10696 if test -z "$haveit"; then
10697 rpathdirs="$rpathdirs $dir"
10699 haveit=
10700 for x in $ltrpathdirs; do
10701 if test "X$x" = "X$dir"; then
10702 haveit=yes
10703 break
10705 done
10706 if test -z "$haveit"; then
10707 ltrpathdirs="$ltrpathdirs $dir"
10711 -l*)
10712 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10714 *.la)
10715 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10718 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10719 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10721 esac
10722 done
10724 else
10725 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10726 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10730 done
10731 done
10732 if test "X$rpathdirs" != "X"; then
10733 if test -n "$hardcode_libdir_separator"; then
10734 alldirs=
10735 for found_dir in $rpathdirs; do
10736 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10737 done
10738 acl_save_libdir="$libdir"
10739 libdir="$alldirs"
10740 eval flag=\"$hardcode_libdir_flag_spec\"
10741 libdir="$acl_save_libdir"
10742 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10743 else
10744 for found_dir in $rpathdirs; do
10745 acl_save_libdir="$libdir"
10746 libdir="$found_dir"
10747 eval flag=\"$hardcode_libdir_flag_spec\"
10748 libdir="$acl_save_libdir"
10749 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10750 done
10753 if test "X$ltrpathdirs" != "X"; then
10754 for found_dir in $ltrpathdirs; do
10755 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10756 done
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10766 $as_echo_n "checking for iconv... " >&6; }
10767 if ${am_cv_func_iconv+:} false; then :
10768 $as_echo_n "(cached) " >&6
10769 else
10771 am_cv_func_iconv="no, consider installing GNU libiconv"
10772 am_cv_lib_iconv=no
10773 am_save_CPPFLAGS="$CPPFLAGS"
10774 CPPFLAGS="$CPPFLAGS $INCICONV"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777 #include <stdlib.h>
10778 #include <iconv.h>
10780 main ()
10782 iconv_t cd = iconv_open("","");
10783 iconv(cd,NULL,NULL,NULL,NULL);
10784 iconv_close(cd);
10786 return 0;
10788 _ACEOF
10789 if ac_fn_cxx_try_link "$LINENO"; then :
10790 am_cv_func_iconv=yes
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 CPPFLAGS="$am_save_CPPFLAGS"
10796 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10797 for _libs in .libs _libs; do
10798 am_save_CPPFLAGS="$CPPFLAGS"
10799 am_save_LIBS="$LIBS"
10800 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10801 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 #include <stdlib.h>
10805 #include <iconv.h>
10807 main ()
10809 iconv_t cd = iconv_open("","");
10810 iconv(cd,NULL,NULL,NULL,NULL);
10811 iconv_close(cd);
10813 return 0;
10815 _ACEOF
10816 if ac_fn_cxx_try_link "$LINENO"; then :
10817 INCICONV="-I../libiconv/include"
10818 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10819 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10820 am_cv_lib_iconv=yes
10821 am_cv_func_iconv=yes
10823 rm -f core conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10825 CPPFLAGS="$am_save_CPPFLAGS"
10826 LIBS="$am_save_LIBS"
10827 if test "$am_cv_func_iconv" = "yes"; then
10828 break
10830 done
10833 if test "$am_cv_func_iconv" != yes; then
10834 am_save_CPPFLAGS="$CPPFLAGS"
10835 am_save_LIBS="$LIBS"
10836 CPPFLAGS="$CPPFLAGS $INCICONV"
10837 LIBS="$LIBS $LIBICONV"
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10840 #include <stdlib.h>
10841 #include <iconv.h>
10843 main ()
10845 iconv_t cd = iconv_open("","");
10846 iconv(cd,NULL,NULL,NULL,NULL);
10847 iconv_close(cd);
10849 return 0;
10851 _ACEOF
10852 if ac_fn_cxx_try_link "$LINENO"; then :
10853 am_cv_lib_iconv=yes
10854 am_cv_func_iconv=yes
10856 rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10858 CPPFLAGS="$am_save_CPPFLAGS"
10859 LIBS="$am_save_LIBS"
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10864 $as_echo "$am_cv_func_iconv" >&6; }
10865 if test "$am_cv_func_iconv" = yes; then
10867 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10870 if test "$am_cv_lib_iconv" = yes; then
10872 for element in $INCICONV; do
10873 haveit=
10874 for x in $CPPFLAGS; do
10876 acl_save_prefix="$prefix"
10877 prefix="$acl_final_prefix"
10878 acl_save_exec_prefix="$exec_prefix"
10879 exec_prefix="$acl_final_exec_prefix"
10880 eval x=\"$x\"
10881 exec_prefix="$acl_save_exec_prefix"
10882 prefix="$acl_save_prefix"
10884 if test "X$x" = "X$element"; then
10885 haveit=yes
10886 break
10888 done
10889 if test -z "$haveit"; then
10890 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10892 done
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10895 $as_echo_n "checking how to link with libiconv... " >&6; }
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10897 $as_echo "$LIBICONV" >&6; }
10898 else
10899 LIBICONV=
10900 LTLIBICONV=
10905 if test "$am_cv_func_iconv" = yes; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10907 $as_echo_n "checking for iconv declaration... " >&6; }
10908 if ${am_cv_proto_iconv+:} false; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10915 #include <stdlib.h>
10916 #include <iconv.h>
10917 extern
10918 #ifdef __cplusplus
10920 #endif
10921 #if defined(__STDC__) || defined(__cplusplus)
10922 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10923 #else
10924 size_t iconv();
10925 #endif
10928 main ()
10932 return 0;
10934 _ACEOF
10935 if ac_fn_cxx_try_compile "$LINENO"; then :
10936 am_cv_proto_iconv_arg1=""
10937 else
10938 am_cv_proto_iconv_arg1="const"
10940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941 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);"
10944 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10946 }$am_cv_proto_iconv" >&5
10947 $as_echo "${ac_t:-
10948 }$am_cv_proto_iconv" >&6; }
10950 cat >>confdefs.h <<_ACEOF
10951 #define ICONV_CONST $am_cv_proto_iconv_arg1
10952 _ACEOF
10957 # Until we have in-tree GNU iconv:
10958 LIBICONV_DEP=
10959 if test -f "$LTLIBICONV"; then
10960 LIBICONV_DEP=$LTLIBICONV
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10966 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10967 if ${am_cv_val_LC_MESSAGES+:} false; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10972 #include <locale.h>
10974 main ()
10976 return LC_MESSAGES
10978 return 0;
10980 _ACEOF
10981 if ac_fn_cxx_try_link "$LINENO"; then :
10982 am_cv_val_LC_MESSAGES=yes
10983 else
10984 am_cv_val_LC_MESSAGES=no
10986 rm -f core conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10990 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10991 if test $am_cv_val_LC_MESSAGES = yes; then
10993 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11000 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11001 if ${am_cv_langinfo_codeset+:} false; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 #include <langinfo.h>
11008 main ()
11010 char* cs = nl_langinfo(CODESET);
11012 return 0;
11014 _ACEOF
11015 if ac_fn_cxx_try_link "$LINENO"; then :
11016 am_cv_langinfo_codeset=yes
11017 else
11018 am_cv_langinfo_codeset=no
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11025 $as_echo "$am_cv_langinfo_codeset" >&6; }
11026 if test $am_cv_langinfo_codeset = yes; then
11028 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11033 # We will need to find libiberty.h and ansidecl.h
11034 saved_CFLAGS="$CFLAGS"
11035 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11036 saved_CXXFLAGS="$CXXFLAGS"
11037 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11039 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11040 # normal autoconf function for these. But force definition of
11041 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11042 # basename handling in libiberty.h.
11043 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11044 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11045 #undef HAVE_DECL_BASENAME
11046 #define HAVE_DECL_BASENAME 1
11047 #include \"ansidecl.h\"
11048 #include \"system.h\"
11050 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11051 ac_have_decl=1
11052 else
11053 ac_have_decl=0
11056 cat >>confdefs.h <<_ACEOF
11057 #define HAVE_DECL_BASENAME $ac_have_decl
11058 _ACEOF
11059 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11060 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11061 #undef HAVE_DECL_BASENAME
11062 #define HAVE_DECL_BASENAME 1
11063 #include \"ansidecl.h\"
11064 #include \"system.h\"
11066 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11067 ac_have_decl=1
11068 else
11069 ac_have_decl=0
11072 cat >>confdefs.h <<_ACEOF
11073 #define HAVE_DECL_STRSTR $ac_have_decl
11074 _ACEOF
11077 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11078 madvise stpcpy strnlen strsignal strverscmp \
11079 strtol strtoul strtoll strtoull setenv unsetenv \
11080 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11081 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
11083 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11085 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11086 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11091 #undef $ac_tr_decl
11092 #define $ac_tr_decl 1
11094 #include "ansidecl.h"
11095 #include "system.h"
11098 main ()
11100 #ifndef $ac_func
11101 char *(*pfn) = (char *(*)) $ac_func ;
11102 #endif
11104 return 0;
11106 _ACEOF
11107 if ac_fn_cxx_try_compile "$LINENO"; then :
11108 eval "gcc_cv_have_decl_$ac_func=yes"
11109 else
11110 eval "gcc_cv_have_decl_$ac_func=no"
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11117 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11118 #define $ac_tr_decl 1
11119 _ACEOF
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11124 #define $ac_tr_decl 0
11125 _ACEOF
11129 done
11132 for ac_func in getrlimit setrlimit getrusage
11134 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11136 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11137 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11142 #undef $ac_tr_decl
11143 #define $ac_tr_decl 1
11145 #include "ansidecl.h"
11146 #include "system.h"
11147 #ifdef HAVE_SYS_RESOURCE_H
11148 #include <sys/resource.h>
11149 #endif
11153 main ()
11155 #ifndef $ac_func
11156 char *(*pfn) = (char *(*)) $ac_func ;
11157 #endif
11159 return 0;
11161 _ACEOF
11162 if ac_fn_cxx_try_compile "$LINENO"; then :
11163 eval "gcc_cv_have_decl_$ac_func=yes"
11164 else
11165 eval "gcc_cv_have_decl_$ac_func=no"
11167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11172 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11173 #define $ac_tr_decl 1
11174 _ACEOF
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11179 #define $ac_tr_decl 0
11180 _ACEOF
11184 done
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11190 #include "ansidecl.h"
11191 #include "system.h"
11192 #ifdef HAVE_SYS_RESOURCE_H
11193 #include <sys/resource.h>
11194 #endif
11197 main ()
11199 rlim_t l = 0;
11201 return 0;
11203 _ACEOF
11204 if ac_fn_cxx_try_compile "$LINENO"; then :
11206 else
11208 $as_echo "#define rlim_t long" >>confdefs.h
11211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11213 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11214 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11215 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11216 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11217 for ac_func in ldgetname
11219 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11221 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11222 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227 #undef $ac_tr_decl
11228 #define $ac_tr_decl 1
11230 #include "ansidecl.h"
11231 #include "system.h"
11232 #ifdef HAVE_LDFCN_H
11233 #undef FREAD
11234 #undef FWRITE
11235 #include <ldfcn.h>
11236 #endif
11240 main ()
11242 #ifndef $ac_func
11243 char *(*pfn) = (char *(*)) $ac_func ;
11244 #endif
11246 return 0;
11248 _ACEOF
11249 if ac_fn_cxx_try_compile "$LINENO"; then :
11250 eval "gcc_cv_have_decl_$ac_func=yes"
11251 else
11252 eval "gcc_cv_have_decl_$ac_func=no"
11254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11257 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11260 #define $ac_tr_decl 1
11261 _ACEOF
11263 else
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11266 #define $ac_tr_decl 0
11267 _ACEOF
11271 done
11274 for ac_func in times
11276 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11278 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11279 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11284 #undef $ac_tr_decl
11285 #define $ac_tr_decl 1
11287 #include "ansidecl.h"
11288 #include "system.h"
11289 #ifdef HAVE_SYS_TIMES_H
11290 #include <sys/times.h>
11291 #endif
11295 main ()
11297 #ifndef $ac_func
11298 char *(*pfn) = (char *(*)) $ac_func ;
11299 #endif
11301 return 0;
11303 _ACEOF
11304 if ac_fn_cxx_try_compile "$LINENO"; then :
11305 eval "gcc_cv_have_decl_$ac_func=yes"
11306 else
11307 eval "gcc_cv_have_decl_$ac_func=no"
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11312 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11314 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11315 #define $ac_tr_decl 1
11316 _ACEOF
11318 else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11321 #define $ac_tr_decl 0
11322 _ACEOF
11326 done
11329 for ac_func in sigaltstack
11331 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11333 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11334 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11339 #undef $ac_tr_decl
11340 #define $ac_tr_decl 1
11342 #include "ansidecl.h"
11343 #include "system.h"
11344 #include <signal.h>
11348 main ()
11350 #ifndef $ac_func
11351 char *(*pfn) = (char *(*)) $ac_func ;
11352 #endif
11354 return 0;
11356 _ACEOF
11357 if ac_fn_cxx_try_compile "$LINENO"; then :
11358 eval "gcc_cv_have_decl_$ac_func=yes"
11359 else
11360 eval "gcc_cv_have_decl_$ac_func=no"
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11367 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11368 #define $ac_tr_decl 1
11369 _ACEOF
11371 else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11374 #define $ac_tr_decl 0
11375 _ACEOF
11379 done
11382 # More time-related stuff.
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11384 $as_echo_n "checking for struct tms... " >&6; }
11385 if ${ac_cv_struct_tms+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11392 #include "ansidecl.h"
11393 #include "system.h"
11394 #ifdef HAVE_SYS_TIMES_H
11395 #include <sys/times.h>
11396 #endif
11399 main ()
11401 struct tms tms;
11403 return 0;
11405 _ACEOF
11406 if ac_fn_cxx_try_compile "$LINENO"; then :
11407 ac_cv_struct_tms=yes
11408 else
11409 ac_cv_struct_tms=no
11411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11414 $as_echo "$ac_cv_struct_tms" >&6; }
11415 if test $ac_cv_struct_tms = yes; then
11417 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11421 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11422 # revisit after autoconf 2.50.
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11424 $as_echo_n "checking for clock_t... " >&6; }
11425 if ${gcc_cv_type_clock_t+:} false; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11432 #include "ansidecl.h"
11433 #include "system.h"
11436 main ()
11438 clock_t x;
11440 return 0;
11442 _ACEOF
11443 if ac_fn_cxx_try_compile "$LINENO"; then :
11444 gcc_cv_type_clock_t=yes
11445 else
11446 gcc_cv_type_clock_t=no
11448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11451 $as_echo "$gcc_cv_type_clock_t" >&6; }
11452 if test $gcc_cv_type_clock_t = yes; then
11454 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11458 # Check if F_SETLKW is supported by fcntl.
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11460 $as_echo_n "checking for F_SETLKW... " >&6; }
11461 if ${ac_cv_f_setlkw+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11468 #include <fcntl.h>
11470 main ()
11473 struct flock fl;
11474 fl.l_whence = 0;
11475 fl.l_start = 0;
11476 fl.l_len = 0;
11477 fl.l_pid = 0;
11478 return fcntl (1, F_SETLKW, &fl);
11480 return 0;
11482 _ACEOF
11483 if ac_fn_cxx_try_compile "$LINENO"; then :
11484 ac_cv_f_setlkw=yes
11485 else
11486 ac_cv_f_setlkw=no
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11491 $as_echo "$ac_cv_f_setlkw" >&6; }
11492 if test $ac_cv_f_setlkw = yes; then
11494 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11498 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11499 CFLAGS="$saved_CFLAGS"
11500 CXXFLAGS="$saved_CXXFLAGS"
11502 # mkdir takes a single argument on some systems.
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11504 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11505 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11511 #include <sys/types.h>
11512 #ifdef HAVE_SYS_STAT_H
11513 # include <sys/stat.h>
11514 #endif
11515 #ifdef HAVE_UNISTD_H
11516 # include <unistd.h>
11517 #endif
11518 #ifdef HAVE_DIRECT_H
11519 # include <direct.h>
11520 #endif
11522 main ()
11524 mkdir ("foo", 0);
11526 return 0;
11528 _ACEOF
11529 if ac_fn_cxx_try_compile "$LINENO"; then :
11530 gcc_cv_mkdir_takes_one_arg=no
11531 else
11532 gcc_cv_mkdir_takes_one_arg=yes
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11537 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11538 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11540 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11545 # File extensions
11546 manext='.1'
11547 objext='.o'
11551 # With Setjmp/Longjmp based exception handling.
11552 # Check whether --enable-sjlj-exceptions was given.
11553 if test "${enable_sjlj_exceptions+set}" = set; then :
11554 enableval=$enable_sjlj_exceptions; case $target in
11555 *-*-hpux10*)
11556 if test $enableval != yes; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11558 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11559 enableval=yes
11562 esac
11563 force_sjlj_exceptions=yes
11564 else
11565 case $target in
11566 *-*-hpux10*)
11567 force_sjlj_exceptions=yes
11568 enableval=yes
11570 lm32*-*-*)
11571 force_sjlj_exceptions=yes
11572 enableval=yes
11575 force_sjlj_exceptions=no
11577 esac
11580 if test $force_sjlj_exceptions = yes; then
11581 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11583 cat >>confdefs.h <<_ACEOF
11584 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11585 _ACEOF
11589 # --------------------------------------------------------
11590 # Build, host, and target specific configuration fragments
11591 # --------------------------------------------------------
11593 # Collect build-machine-specific information.
11594 . ${srcdir}/config.build || exit 1
11596 # Collect host-machine-specific information.
11597 . ${srcdir}/config.host || exit 1
11599 target_gtfiles=
11601 # Collect target-machine-specific information.
11602 . ${srcdir}/config.gcc || exit 1
11604 extra_objs="${host_extra_objs} ${extra_objs}"
11605 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11607 # Default the target-machine variables that were not explicitly set.
11608 if test x"$tm_file" = x
11609 then tm_file=$cpu_type/$cpu_type.h; fi
11611 if test x"$extra_headers" = x
11612 then extra_headers=; fi
11614 if test x$md_file = x
11615 then md_file=$cpu_type/$cpu_type.md; fi
11617 if test x$out_file = x
11618 then out_file=$cpu_type/$cpu_type.c; fi
11620 if test x"$tmake_file" = x
11621 then tmake_file=$cpu_type/t-$cpu_type
11624 # Support --enable-initfini-array.
11625 if test x$enable_initfini_array != xno; then
11626 tm_file="${tm_file} initfini-array.h"
11629 if test x"$dwarf2" = xyes
11630 then tm_file="$tm_file tm-dwarf2.h"
11633 # Say what files are being used for the output code and MD file.
11634 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11635 echo "Using \`$srcdir/config/$md_file' as machine description file."
11637 # If any of the xm_file variables contain nonexistent files, warn
11638 # about them and drop them.
11641 for x in $build_xm_file; do
11642 if test -f $srcdir/config/$x
11643 then bx="$bx $x"
11644 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11645 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11647 done
11648 build_xm_file="$bx"
11651 for x in $host_xm_file; do
11652 if test -f $srcdir/config/$x
11653 then hx="$hx $x"
11654 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11655 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11657 done
11658 host_xm_file="$hx"
11661 for x in $xm_file; do
11662 if test -f $srcdir/config/$x
11663 then tx="$tx $x"
11664 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11665 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11667 done
11668 xm_file="$tx"
11670 count=a
11671 for f in $tm_file; do
11672 count=${count}x
11673 done
11674 if test $count = ax; then
11675 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11676 else
11677 echo "Using the following target machine macro files:"
11678 for f in $tm_file; do
11679 echo " $srcdir/config/$f"
11680 done
11683 if test x$use_long_long_for_widest_fast_int = xyes; then
11685 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11689 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11691 cat >>confdefs.h <<_ACEOF
11692 #define HAVE_GNU_LD $gnu_ld_bool
11693 _ACEOF
11696 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11698 cat >>confdefs.h <<_ACEOF
11699 #define HAVE_GNU_AS $gnu_as_bool
11700 _ACEOF
11703 count=a
11704 for f in $host_xm_file; do
11705 count=${count}x
11706 done
11707 if test $count = a; then
11709 elif test $count = ax; then
11710 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11711 else
11712 echo "Using the following host machine macro files:"
11713 for f in $host_xm_file; do
11714 echo " $srcdir/config/$f"
11715 done
11717 echo "Using ${out_host_hook_obj} for host machine hooks."
11719 if test "$host_xm_file" != "$build_xm_file"; then
11720 count=a
11721 for f in $build_xm_file; do
11722 count=${count}x
11723 done
11724 if test $count = a; then
11726 elif test $count = ax; then
11727 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11728 else
11729 echo "Using the following build machine macro files:"
11730 for f in $build_xm_file; do
11731 echo " $srcdir/config/$f"
11732 done
11736 if test -n "$configured_native_system_header_dir"; then
11737 native_system_header_dir=$configured_native_system_header_dir
11739 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11742 case ${host} in
11743 powerpc*-*-darwin*)
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11745 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11746 if ${gcc_cv_mcontext_underscores+:} false; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11752 #include <sys/cdefs.h>
11753 #include <sys/signal.h>
11754 #include <ucontext.h>
11755 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11757 _ACEOF
11758 if ac_fn_cxx_try_compile "$LINENO"; then :
11759 gcc_cv_mcontext_underscores=no
11760 else
11761 gcc_cv_mcontext_underscores=yes
11763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11766 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11767 if test $gcc_cv_mcontext_underscores = yes; then
11769 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11773 esac
11775 # ---------
11776 # Threading
11777 # ---------
11779 # Check if a valid thread package
11780 case ${enable_threads} in
11781 "" | no)
11782 # No threads
11783 target_thread_file='single'
11785 yes)
11786 # default
11787 target_thread_file='single'
11789 aix | dce | lynx | mipssde | posix | rtems | \
11790 single | tpf | vxworks | win32)
11791 target_thread_file=${enable_threads}
11794 echo "${enable_threads} is an unknown thread package" 1>&2
11795 exit 1
11797 esac
11799 if test x${thread_file} = x; then
11800 # No thread file set by target-specific clauses in config.gcc,
11801 # so use file chosen by default logic above
11802 thread_file=${target_thread_file}
11805 # --------
11806 # UNSORTED
11807 # --------
11809 use_cxa_atexit=no
11810 if test x$enable___cxa_atexit = xyes || \
11811 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11812 if test x$host = x$target; then
11813 case $host in
11814 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11815 # keyed to flag_use_cxa_atexit
11816 *-*-mingw32*)
11817 use_cxa_atexit=yes
11819 powerpc-ibm-aix*)
11820 use_cxa_atexit=yes
11823 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11824 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
11825 use_cxa_atexit=yes
11826 else
11827 echo "__cxa_atexit can't be enabled on this target"
11831 esac
11832 else
11833 # We can't check for __cxa_atexit when building a cross, so assume
11834 # it is available
11835 use_cxa_atexit=yes
11837 if test x$use_cxa_atexit = xyes; then
11839 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11844 # Look for a file containing extra machine modes.
11845 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11846 extra_modes_file='$(srcdir)'/config/${extra_modes}
11849 cat >>confdefs.h <<_ACEOF
11850 #define EXTRA_MODES_FILE "config/$extra_modes"
11851 _ACEOF
11855 # Convert extra_options into a form suitable for Makefile use.
11856 extra_opt_files=
11857 all_opt_files=
11858 for f in $extra_options; do
11859 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11860 all_opt_files="$all_opt_files $srcdir/config/$f"
11861 done
11864 # auto-host.h is the file containing items generated by autoconf and is
11865 # the first file included by config.h.
11866 # If host=build, it is correct to have bconfig include auto-host.h
11867 # as well. If host!=build, we are in error and need to do more
11868 # work to find out the build config parameters.
11869 if test x$host = x$build
11870 then
11871 build_auto=auto-host.h
11872 else
11873 # We create a subdir, then run autoconf in the subdir.
11874 # To prevent recursion we set host and build for the new
11875 # invocation of configure to the build for this invocation
11876 # of configure.
11877 tempdir=build.$$
11878 rm -rf $tempdir
11879 mkdir $tempdir
11880 cd $tempdir
11881 case ${srcdir} in
11882 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11883 *) realsrcdir=../${srcdir};;
11884 esac
11885 # Clearing GMPINC is necessary to prevent host headers being
11886 # used by the build compiler. Defining GENERATOR_FILE stops
11887 # system.h from including gmp.h.
11888 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11889 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11890 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11891 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11892 ${realsrcdir}/configure \
11893 --enable-languages=${enable_languages-all} \
11894 --target=$target_alias --host=$build_alias --build=$build_alias
11896 # We just finished tests for the build machine, so rename
11897 # the file auto-build.h in the gcc directory.
11898 mv auto-host.h ../auto-build.h
11899 cd ..
11900 rm -rf $tempdir
11901 build_auto=auto-build.h
11905 tm_file="${tm_file} defaults.h"
11906 tm_p_file="${tm_p_file} tm-preds.h"
11907 tm_d_file="${tm_d_file} defaults.h"
11908 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11909 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11910 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11911 # put this back in temporarily.
11912 xm_file="auto-host.h ansidecl.h ${xm_file}"
11914 # --------
11915 # UNSORTED
11916 # --------
11918 # Compile in configure arguments.
11919 if test -f configargs.h ; then
11920 # Being re-configured.
11921 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11922 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11923 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11924 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11926 else
11927 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11930 # Double all backslashes and backslash all quotes to turn
11931 # gcc_config_arguments into a C string.
11932 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11933 $gcc_config_arguments
11935 gcc_config_arguments_str=`cat conftest.out`
11936 rm -f conftest.out
11938 cat > configargs.h <<EOF
11939 /* Generated automatically. */
11940 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11941 static const char thread_model[] = "$thread_file";
11943 static const struct {
11944 const char *name, *value;
11945 } configure_default_options[] = $configure_default_options;
11948 gcc_BASEVER=`cat $srcdir/BASE-VER`
11949 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11950 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11951 if test -f $srcdir/REVISION ; then
11952 gcc_REVISION=`cat $srcdir/REVISION`
11953 else
11954 gcc_REVISION=""
11956 cat > plugin-version.h <<EOF
11957 #include "configargs.h"
11959 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11960 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11961 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11962 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11964 static char basever[] = "$gcc_BASEVER";
11965 static char datestamp[] = "$gcc_DATESTAMP";
11966 static char devphase[] = "$gcc_DEVPHASE";
11967 static char revision[] = "$gcc_REVISION";
11969 /* FIXME plugins: We should make the version information more precise.
11970 One way to do is to add a checksum. */
11972 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11973 devphase, revision,
11974 configuration_arguments};
11977 # Determine what GCC version number to use in filesystem paths.
11979 get_gcc_base_ver="cat"
11981 # Check whether --with-gcc-major-version-only was given.
11982 if test "${with_gcc_major_version_only+set}" = set; then :
11983 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11984 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11992 # Internationalization
11993 # If we haven't got the data from the intl directory,
11994 # assume NLS is disabled.
11995 USE_NLS=no
11996 LIBINTL=
11997 LIBINTL_DEP=
11998 INCINTL=
11999 XGETTEXT=
12000 GMSGFMT=
12001 POSUB=
12003 if test -f ../intl/config.intl; then
12004 . ../intl/config.intl
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12007 $as_echo_n "checking whether NLS is requested... " >&6; }
12008 if test x"$USE_NLS" != xyes; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12011 else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12013 $as_echo "yes" >&6; }
12015 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12019 $as_echo_n "checking for catalogs to be installed... " >&6; }
12020 # Look for .po and .gmo files in the source directory.
12021 CATALOGS=
12022 XLINGUAS=
12023 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12024 # If there aren't any .gmo files the shell will give us the
12025 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12026 # weeded out.
12027 case "$cat" in *\**)
12028 continue;;
12029 esac
12030 # The quadruple backslash is collapsed to a double backslash
12031 # by the backticks, then collapsed again by the double quotes,
12032 # leaving us with one backslash in the sed expression (right
12033 # before the dot that mustn't act as a wildcard).
12034 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12035 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12036 # The user is allowed to set LINGUAS to a list of languages to
12037 # install catalogs for. If it's empty that means "all of them."
12038 if test "x$LINGUAS" = x; then
12039 CATALOGS="$CATALOGS $cat"
12040 XLINGUAS="$XLINGUAS $lang"
12041 else
12042 case "$LINGUAS" in *$lang*)
12043 CATALOGS="$CATALOGS $cat"
12044 XLINGUAS="$XLINGUAS $lang"
12046 esac
12048 done
12049 LINGUAS="$XLINGUAS"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12051 $as_echo "$LINGUAS" >&6; }
12054 DATADIRNAME=share
12056 INSTOBJEXT=.mo
12058 GENCAT=gencat
12060 CATOBJEXT=.gmo
12064 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12065 # -liconv on the link line twice.
12066 case "$LIBINTL" in *$LIBICONV*)
12067 LIBICONV= ;;
12068 esac
12070 # Check whether --enable-secureplt was given.
12071 if test "${enable_secureplt+set}" = set; then :
12072 enableval=$enable_secureplt;
12076 # Check whether --enable-mingw-wildcard was given.
12077 if test "${enable_mingw_wildcard+set}" = set; then :
12078 enableval=$enable_mingw_wildcard;
12079 else
12080 enable_mingw_wildcard=platform
12083 if test x"$enable_mingw_wildcard" != xplatform ; then :
12085 cat >>confdefs.h <<_ACEOF
12086 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12087 _ACEOF
12091 # Check whether --enable-large-address-aware was given.
12092 if test "${enable_large_address_aware+set}" = set; then :
12093 enableval=$enable_large_address_aware;
12096 if test x"$enable_large_address_aware" = xyes; then :
12098 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12102 # Check whether --enable-leading-mingw64-underscores was given.
12103 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12104 enableval=$enable_leading_mingw64_underscores;
12107 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12109 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12113 # Check whether --enable-cld was given.
12114 if test "${enable_cld+set}" = set; then :
12115 enableval=$enable_cld;
12116 else
12117 enable_cld=no
12121 # Check whether --enable-frame-pointer was given.
12122 if test "${enable_frame_pointer+set}" = set; then :
12123 enableval=$enable_frame_pointer;
12124 else
12126 case $target_os in
12127 linux* | darwin[8912]*)
12128 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12129 # DWARF2.
12130 enable_frame_pointer=no
12133 enable_frame_pointer=yes
12135 esac
12140 # Windows32 Registry support for specifying GCC installation paths.
12141 # Check whether --enable-win32-registry was given.
12142 if test "${enable_win32_registry+set}" = set; then :
12143 enableval=$enable_win32_registry;
12147 case $host_os in
12148 win32 | pe | cygwin* | mingw32*)
12149 if test "x$enable_win32_registry" != xno; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12151 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12152 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 ac_func_search_save_LIBS=$LIBS
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 char RegOpenKeyExA ();
12167 main ()
12169 return RegOpenKeyExA ();
12171 return 0;
12173 _ACEOF
12174 for ac_lib in '' advapi32; do
12175 if test -z "$ac_lib"; then
12176 ac_res="none required"
12177 else
12178 ac_res=-l$ac_lib
12179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12181 if ac_fn_cxx_try_link "$LINENO"; then :
12182 ac_cv_search_RegOpenKeyExA=$ac_res
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext
12186 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12187 break
12189 done
12190 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12192 else
12193 ac_cv_search_RegOpenKeyExA=no
12195 rm conftest.$ac_ext
12196 LIBS=$ac_func_search_save_LIBS
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12199 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12200 ac_res=$ac_cv_search_RegOpenKeyExA
12201 if test "$ac_res" != no; then :
12202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12204 else
12205 enable_win32_registry=no
12210 if test "x$enable_win32_registry" != xno; then
12212 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12215 if test "x$enable_win32_registry" != xyes \
12216 && test "x$enable_win32_registry" != x; then
12218 cat >>confdefs.h <<_ACEOF
12219 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12220 _ACEOF
12225 esac
12227 # Get an absolute path to the GCC top-level source directory
12228 holddir=`${PWDCMD-pwd}`
12229 cd $srcdir
12230 topdir=`${PWDCMD-pwd}`
12231 cd $holddir
12233 # Conditionalize the makefile for this host machine.
12234 xmake_file=
12235 for f in ${host_xmake_file}
12237 if test -f ${srcdir}/config/$f
12238 then
12239 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12241 done
12243 # Conditionalize the makefile for this target machine.
12244 tmake_file_=
12245 for f in ${tmake_file}
12247 if test -f ${srcdir}/config/$f
12248 then
12249 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12251 done
12252 tmake_file="${tmake_file_}"
12254 out_object_file=`basename $out_file .c`.o
12255 common_out_object_file=`basename $common_out_file .c`.o
12257 tm_file_list="options.h"
12258 tm_include_list="options.h insn-constants.h"
12259 for f in $tm_file; do
12260 case $f in
12261 ./* )
12262 f=`echo $f | sed 's/^..//'`
12263 tm_file_list="${tm_file_list} $f"
12264 tm_include_list="${tm_include_list} $f"
12266 defaults.h )
12267 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12268 tm_include_list="${tm_include_list} $f"
12271 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12272 tm_include_list="${tm_include_list} config/$f"
12274 esac
12275 done
12277 tm_p_file_list=
12278 tm_p_include_list=
12279 for f in $tm_p_file; do
12280 case $f in
12281 tm-preds.h )
12282 tm_p_file_list="${tm_p_file_list} $f"
12283 tm_p_include_list="${tm_p_include_list} $f"
12286 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12287 tm_p_include_list="${tm_p_include_list} config/$f"
12288 esac
12289 done
12291 tm_d_file_list=
12292 tm_d_include_list="options.h insn-constants.h"
12293 for f in $tm_d_file; do
12294 case $f in
12295 defaults.h )
12296 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12297 tm_d_include_list="${tm_d_include_list} $f"
12300 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12301 tm_d_include_list="${tm_d_include_list} config/$f"
12303 esac
12304 done
12306 xm_file_list=
12307 xm_include_list=
12308 for f in $xm_file; do
12309 case $f in
12310 ansidecl.h )
12311 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12312 xm_include_list="${xm_include_list} $f"
12314 auto-host.h )
12315 xm_file_list="${xm_file_list} $f"
12316 xm_include_list="${xm_include_list} $f"
12319 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12320 xm_include_list="${xm_include_list} config/$f"
12322 esac
12323 done
12325 host_xm_file_list=
12326 host_xm_include_list=
12327 for f in $host_xm_file; do
12328 case $f in
12329 ansidecl.h )
12330 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12331 host_xm_include_list="${host_xm_include_list} $f"
12333 auto-host.h )
12334 host_xm_file_list="${host_xm_file_list} $f"
12335 host_xm_include_list="${host_xm_include_list} $f"
12338 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12339 host_xm_include_list="${host_xm_include_list} config/$f"
12341 esac
12342 done
12344 build_xm_file_list=
12345 for f in $build_xm_file; do
12346 case $f in
12347 ansidecl.h )
12348 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12349 build_xm_include_list="${build_xm_include_list} $f"
12351 auto-build.h | auto-host.h )
12352 build_xm_file_list="${build_xm_file_list} $f"
12353 build_xm_include_list="${build_xm_include_list} $f"
12356 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12357 build_xm_include_list="${build_xm_include_list} config/$f"
12359 esac
12360 done
12362 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12363 # cross-compiler which does not use the native headers and libraries.
12364 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12365 CROSS=
12366 ALL=all.internal
12367 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12368 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12370 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12371 test x$build != x$host || test "x$with_build_sysroot" != x; then
12372 if test "x$with_build_sysroot" != x; then
12373 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12374 else
12375 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12378 if test x$host != x$target
12379 then
12380 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12381 ALL=all.cross
12382 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12383 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12384 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12387 if test "x$with_build_sysroot" != "x"; then
12388 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12389 elif test "x$with_sysroot" = x; then
12390 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12391 elif test "x$with_sysroot" = xyes; then
12392 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12393 else
12394 target_header_dir="${with_sysroot}${native_system_header_dir}"
12396 else
12397 target_header_dir=${native_system_header_dir}
12400 # If this is a cross-compiler that does not
12401 # have its own set of headers then define
12402 # inhibit_libc
12404 # If this is using newlib, without having the headers available now,
12405 # then define inhibit_libc in LIBGCC2_CFLAGS.
12406 # This prevents libgcc2 from containing any code which requires libc
12407 # support.
12408 : ${inhibit_libc=false}
12409 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12410 test x$with_newlib = xyes ; } &&
12411 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12412 inhibit_libc=true
12416 # When building gcc with a cross-compiler, we need to adjust things so
12417 # that the generator programs are still built with the native compiler.
12418 # Also, we cannot run fixincludes.
12420 # These are the normal (build=host) settings:
12421 CC_FOR_BUILD='$(CC)'
12422 CXX_FOR_BUILD='$(CXX)'
12423 BUILD_CFLAGS='$(ALL_CFLAGS)'
12424 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12425 BUILD_LDFLAGS='$(LDFLAGS)'
12426 STMP_FIXINC=stmp-fixinc
12428 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12429 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12431 # And these apply if build != host, or we are generating coverage data
12432 if test x$build != x$host || test "x$coverage_flags" != x
12433 then
12434 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12435 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12436 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12438 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12439 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12440 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12441 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12446 # Expand extra_headers to include complete path.
12447 # This substitutes for lots of t-* files.
12448 extra_headers_list=
12449 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12450 for file in ${extra_headers} ; do
12451 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12452 done
12454 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12455 if test x"$use_gcc_tgmath" = xyes
12456 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12459 # Define collect2 in Makefile.
12460 case $host_can_use_collect2 in
12461 no) collect2= ;;
12462 *) collect2='collect2$(exeext)' ;;
12463 esac
12466 # Add a definition of USE_COLLECT2 if system wants one.
12467 case $use_collect2 in
12468 no) use_collect2= ;;
12469 "") ;;
12471 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12472 xm_defines="${xm_defines} USE_COLLECT2"
12473 case $host_can_use_collect2 in
12475 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12477 esac
12479 esac
12482 cat >>confdefs.h <<_ACEOF
12483 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12484 _ACEOF
12487 # ---------------------------
12488 # Assembler & linker features
12489 # ---------------------------
12491 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12492 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12493 # However when ld-new is first executed from the build tree, libtool will
12494 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12495 # to the build tree. While doing this we need to use the previous-stage
12496 # linker, or we have an infinite loop. The presence of a shell script as
12497 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12498 # the gcc/collect-ld script. So we need to know how libtool works, or
12499 # exec-tool will fail.
12502 case `pwd` in
12503 *\ * | *\ *)
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12505 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12506 esac
12510 macro_version='2.2.7a'
12511 macro_revision='1.3134'
12525 ltmain="$ac_aux_dir/ltmain.sh"
12527 # Backslashify metacharacters that are still active within
12528 # double-quoted strings.
12529 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12531 # Same as above, but do not quote variable references.
12532 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12534 # Sed substitution to delay expansion of an escaped shell variable in a
12535 # double_quote_subst'ed string.
12536 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12538 # Sed substitution to delay expansion of an escaped single quote.
12539 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12541 # Sed substitution to avoid accidental globbing in evaled expressions
12542 no_glob_subst='s/\*/\\\*/g'
12544 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12545 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12546 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12549 $as_echo_n "checking how to print strings... " >&6; }
12550 # Test print first, because it will be a builtin if present.
12551 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12552 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12553 ECHO='print -r --'
12554 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12555 ECHO='printf %s\n'
12556 else
12557 # Use this function as a fallback that always works.
12558 func_fallback_echo ()
12560 eval 'cat <<_LTECHO_EOF
12562 _LTECHO_EOF'
12564 ECHO='func_fallback_echo'
12567 # func_echo_all arg...
12568 # Invoke $ECHO with all args, space-separated.
12569 func_echo_all ()
12571 $ECHO ""
12574 case "$ECHO" in
12575 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12576 $as_echo "printf" >&6; } ;;
12577 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12578 $as_echo "print -r" >&6; } ;;
12579 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12580 $as_echo "cat" >&6; } ;;
12581 esac
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12597 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12598 if ${ac_cv_path_SED+:} false; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12602 for ac_i in 1 2 3 4 5 6 7; do
12603 ac_script="$ac_script$as_nl$ac_script"
12604 done
12605 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12606 { ac_script=; unset ac_script;}
12607 if test -z "$SED"; then
12608 ac_path_SED_found=false
12609 # Loop through the user's path and test for each of PROGNAME-LIST
12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in $PATH
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
12615 for ac_prog in sed gsed; do
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12618 as_fn_executable_p "$ac_path_SED" || continue
12619 # Check for GNU ac_path_SED and select it if it is found.
12620 # Check for GNU $ac_path_SED
12621 case `"$ac_path_SED" --version 2>&1` in
12622 *GNU*)
12623 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12625 ac_count=0
12626 $as_echo_n 0123456789 >"conftest.in"
12627 while :
12629 cat "conftest.in" "conftest.in" >"conftest.tmp"
12630 mv "conftest.tmp" "conftest.in"
12631 cp "conftest.in" "conftest.nl"
12632 $as_echo '' >> "conftest.nl"
12633 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12635 as_fn_arith $ac_count + 1 && ac_count=$as_val
12636 if test $ac_count -gt ${ac_path_SED_max-0}; then
12637 # Best one so far, save it but keep looking for a better one
12638 ac_cv_path_SED="$ac_path_SED"
12639 ac_path_SED_max=$ac_count
12641 # 10*(2^10) chars as input seems more than enough
12642 test $ac_count -gt 10 && break
12643 done
12644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12645 esac
12647 $ac_path_SED_found && break 3
12648 done
12649 done
12650 done
12651 IFS=$as_save_IFS
12652 if test -z "$ac_cv_path_SED"; then
12653 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12655 else
12656 ac_cv_path_SED=$SED
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12661 $as_echo "$ac_cv_path_SED" >&6; }
12662 SED="$ac_cv_path_SED"
12663 rm -f conftest.sed
12665 test -z "$SED" && SED=sed
12666 Xsed="$SED -e 1s/^X//"
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12679 $as_echo_n "checking for fgrep... " >&6; }
12680 if ${ac_cv_path_FGREP+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12684 then ac_cv_path_FGREP="$GREP -F"
12685 else
12686 if test -z "$FGREP"; then
12687 ac_path_FGREP_found=false
12688 # Loop through the user's path and test for each of PROGNAME-LIST
12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
12694 for ac_prog in fgrep; do
12695 for ac_exec_ext in '' $ac_executable_extensions; do
12696 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12697 as_fn_executable_p "$ac_path_FGREP" || continue
12698 # Check for GNU ac_path_FGREP and select it if it is found.
12699 # Check for GNU $ac_path_FGREP
12700 case `"$ac_path_FGREP" --version 2>&1` in
12701 *GNU*)
12702 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12704 ac_count=0
12705 $as_echo_n 0123456789 >"conftest.in"
12706 while :
12708 cat "conftest.in" "conftest.in" >"conftest.tmp"
12709 mv "conftest.tmp" "conftest.in"
12710 cp "conftest.in" "conftest.nl"
12711 $as_echo 'FGREP' >> "conftest.nl"
12712 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12714 as_fn_arith $ac_count + 1 && ac_count=$as_val
12715 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12716 # Best one so far, save it but keep looking for a better one
12717 ac_cv_path_FGREP="$ac_path_FGREP"
12718 ac_path_FGREP_max=$ac_count
12720 # 10*(2^10) chars as input seems more than enough
12721 test $ac_count -gt 10 && break
12722 done
12723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12724 esac
12726 $ac_path_FGREP_found && break 3
12727 done
12728 done
12729 done
12730 IFS=$as_save_IFS
12731 if test -z "$ac_cv_path_FGREP"; then
12732 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12734 else
12735 ac_cv_path_FGREP=$FGREP
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12741 $as_echo "$ac_cv_path_FGREP" >&6; }
12742 FGREP="$ac_cv_path_FGREP"
12745 test -z "$GREP" && GREP=grep
12765 # Check whether --with-gnu-ld was given.
12766 if test "${with_gnu_ld+set}" = set; then :
12767 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12768 else
12769 with_gnu_ld=no
12772 ac_prog=ld
12773 if test "$GCC" = yes; then
12774 # Check if gcc -print-prog-name=ld gives a path.
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12776 $as_echo_n "checking for ld used by $CC... " >&6; }
12777 case $host in
12778 *-*-mingw*)
12779 # gcc leaves a trailing carriage return which upsets mingw
12780 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12782 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12783 esac
12784 case $ac_prog in
12785 # Accept absolute paths.
12786 [\\/]* | ?:[\\/]*)
12787 re_direlt='/[^/][^/]*/\.\./'
12788 # Canonicalize the pathname of ld
12789 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12790 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12791 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12792 done
12793 test -z "$LD" && LD="$ac_prog"
12796 # If it fails, then pretend we aren't using GCC.
12797 ac_prog=ld
12800 # If it is relative, then search for the first ld in PATH.
12801 with_gnu_ld=unknown
12803 esac
12804 elif test "$with_gnu_ld" = yes; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12806 $as_echo_n "checking for GNU ld... " >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12809 $as_echo_n "checking for non-GNU ld... " >&6; }
12811 if ${lt_cv_path_LD+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 if test -z "$LD"; then
12815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12816 for ac_dir in $PATH; do
12817 IFS="$lt_save_ifs"
12818 test -z "$ac_dir" && ac_dir=.
12819 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12820 lt_cv_path_LD="$ac_dir/$ac_prog"
12821 # Check to see if the program is GNU ld. I'd rather use --version,
12822 # but apparently some variants of GNU ld only accept -v.
12823 # Break only if it was the GNU/non-GNU ld that we prefer.
12824 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12825 *GNU* | *'with BFD'*)
12826 test "$with_gnu_ld" != no && break
12829 test "$with_gnu_ld" != yes && break
12831 esac
12833 done
12834 IFS="$lt_save_ifs"
12835 else
12836 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12840 LD="$lt_cv_path_LD"
12841 if test -n "$LD"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12843 $as_echo "$LD" >&6; }
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12848 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12850 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12851 if ${lt_cv_prog_gnu_ld+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12855 case `$LD -v 2>&1 </dev/null` in
12856 *GNU* | *'with BFD'*)
12857 lt_cv_prog_gnu_ld=yes
12860 lt_cv_prog_gnu_ld=no
12862 esac
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12865 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12866 with_gnu_ld=$lt_cv_prog_gnu_ld
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12877 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12878 if ${lt_cv_path_NM+:} false; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 if test -n "$NM"; then
12882 # Let the user override the test.
12883 lt_cv_path_NM="$NM"
12884 else
12885 lt_nm_to_check="${ac_tool_prefix}nm"
12886 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12887 lt_nm_to_check="$lt_nm_to_check nm"
12889 for lt_tmp_nm in $lt_nm_to_check; do
12890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12891 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12892 IFS="$lt_save_ifs"
12893 test -z "$ac_dir" && ac_dir=.
12894 tmp_nm="$ac_dir/$lt_tmp_nm"
12895 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12896 # Check to see if the nm accepts a BSD-compat flag.
12897 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12898 # nm: unknown option "B" ignored
12899 # Tru64's nm complains that /dev/null is an invalid object file
12900 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12901 */dev/null* | *'Invalid file or object type'*)
12902 lt_cv_path_NM="$tmp_nm -B"
12903 break
12906 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12907 */dev/null*)
12908 lt_cv_path_NM="$tmp_nm -p"
12909 break
12912 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12913 continue # so that we can try to find one that supports BSD flags
12915 esac
12917 esac
12919 done
12920 IFS="$lt_save_ifs"
12921 done
12922 : ${lt_cv_path_NM=no}
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12926 $as_echo "$lt_cv_path_NM" >&6; }
12927 if test "$lt_cv_path_NM" != "no"; then
12928 NM="$lt_cv_path_NM"
12929 else
12930 # Didn't find any BSD compatible name lister, look for dumpbin.
12931 if test -n "$DUMPBIN"; then :
12932 # Let the user override the test.
12933 else
12934 if test -n "$ac_tool_prefix"; then
12935 for ac_prog in dumpbin "link -dump"
12937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12940 $as_echo_n "checking for $ac_word... " >&6; }
12941 if ${ac_cv_prog_DUMPBIN+:} false; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 if test -n "$DUMPBIN"; then
12945 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12946 else
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12954 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12958 done
12959 done
12960 IFS=$as_save_IFS
12964 DUMPBIN=$ac_cv_prog_DUMPBIN
12965 if test -n "$DUMPBIN"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12967 $as_echo "$DUMPBIN" >&6; }
12968 else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12974 test -n "$DUMPBIN" && break
12975 done
12977 if test -z "$DUMPBIN"; then
12978 ac_ct_DUMPBIN=$DUMPBIN
12979 for ac_prog in dumpbin "link -dump"
12981 # Extract the first word of "$ac_prog", so it can be a program name with args.
12982 set dummy $ac_prog; ac_word=$2
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984 $as_echo_n "checking for $ac_word... " >&6; }
12985 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
12986 $as_echo_n "(cached) " >&6
12987 else
12988 if test -n "$ac_ct_DUMPBIN"; then
12989 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12990 else
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12998 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 break 2
13002 done
13003 done
13004 IFS=$as_save_IFS
13008 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13009 if test -n "$ac_ct_DUMPBIN"; then
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13011 $as_echo "$ac_ct_DUMPBIN" >&6; }
13012 else
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13018 test -n "$ac_ct_DUMPBIN" && break
13019 done
13021 if test "x$ac_ct_DUMPBIN" = x; then
13022 DUMPBIN=":"
13023 else
13024 case $cross_compiling:$ac_tool_warned in
13025 yes:)
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13028 ac_tool_warned=yes ;;
13029 esac
13030 DUMPBIN=$ac_ct_DUMPBIN
13034 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13035 *COFF*)
13036 DUMPBIN="$DUMPBIN -symbols"
13039 DUMPBIN=:
13041 esac
13044 if test "$DUMPBIN" != ":"; then
13045 NM="$DUMPBIN"
13048 test -z "$NM" && NM=nm
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13056 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13057 if ${lt_cv_nm_interface+:} false; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 lt_cv_nm_interface="BSD nm"
13061 echo "int some_variable = 0;" > conftest.$ac_ext
13062 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13063 (eval "$ac_compile" 2>conftest.err)
13064 cat conftest.err >&5
13065 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13066 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13067 cat conftest.err >&5
13068 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13069 cat conftest.out >&5
13070 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13071 lt_cv_nm_interface="MS dumpbin"
13073 rm -f conftest*
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13076 $as_echo "$lt_cv_nm_interface" >&6; }
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13079 $as_echo_n "checking whether ln -s works... " >&6; }
13080 LN_S=$as_ln_s
13081 if test "$LN_S" = "ln -s"; then
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13083 $as_echo "yes" >&6; }
13084 else
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13086 $as_echo "no, using $LN_S" >&6; }
13089 # find the maximum length of command line arguments
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13091 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13092 if ${lt_cv_sys_max_cmd_len+:} false; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13096 teststring="ABCD"
13098 case $build_os in
13099 msdosdjgpp*)
13100 # On DJGPP, this test can blow up pretty badly due to problems in libc
13101 # (any single argument exceeding 2000 bytes causes a buffer overrun
13102 # during glob expansion). Even if it were fixed, the result of this
13103 # check would be larger than it should be.
13104 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13107 gnu*)
13108 # Under GNU Hurd, this test is not required because there is
13109 # no limit to the length of command line arguments.
13110 # Libtool will interpret -1 as no limit whatsoever
13111 lt_cv_sys_max_cmd_len=-1;
13114 cygwin* | mingw* | cegcc*)
13115 # On Win9x/ME, this test blows up -- it succeeds, but takes
13116 # about 5 minutes as the teststring grows exponentially.
13117 # Worse, since 9x/ME are not pre-emptively multitasking,
13118 # you end up with a "frozen" computer, even though with patience
13119 # the test eventually succeeds (with a max line length of 256k).
13120 # Instead, let's just punt: use the minimum linelength reported by
13121 # all of the supported platforms: 8192 (on NT/2K/XP).
13122 lt_cv_sys_max_cmd_len=8192;
13125 mint*)
13126 # On MiNT this can take a long time and run out of memory.
13127 lt_cv_sys_max_cmd_len=8192;
13130 amigaos*)
13131 # On AmigaOS with pdksh, this test takes hours, literally.
13132 # So we just punt and use a minimum line length of 8192.
13133 lt_cv_sys_max_cmd_len=8192;
13136 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13137 # This has been around since 386BSD, at least. Likely further.
13138 if test -x /sbin/sysctl; then
13139 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13140 elif test -x /usr/sbin/sysctl; then
13141 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13142 else
13143 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13145 # And add a safety zone
13146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13150 interix*)
13151 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13152 lt_cv_sys_max_cmd_len=196608
13155 osf*)
13156 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13157 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13158 # nice to cause kernel panics so lets avoid the loop below.
13159 # First set a reasonable default.
13160 lt_cv_sys_max_cmd_len=16384
13162 if test -x /sbin/sysconfig; then
13163 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13164 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13165 esac
13168 sco3.2v5*)
13169 lt_cv_sys_max_cmd_len=102400
13171 sysv5* | sco5v6* | sysv4.2uw2*)
13172 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13173 if test -n "$kargmax"; then
13174 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13175 else
13176 lt_cv_sys_max_cmd_len=32768
13180 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13181 if test -n "$lt_cv_sys_max_cmd_len"; then
13182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13184 else
13185 # Make teststring a little bigger before we do anything with it.
13186 # a 1K string should be a reasonable start.
13187 for i in 1 2 3 4 5 6 7 8 ; do
13188 teststring=$teststring$teststring
13189 done
13190 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13191 # If test is not a shell built-in, we'll probably end up computing a
13192 # maximum length that is only half of the actual maximum length, but
13193 # we can't tell.
13194 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13195 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13196 test $i != 17 # 1/2 MB should be enough
13198 i=`expr $i + 1`
13199 teststring=$teststring$teststring
13200 done
13201 # Only check the string length outside the loop.
13202 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13203 teststring=
13204 # Add a significant safety factor because C++ compilers can tack on
13205 # massive amounts of additional arguments before passing them to the
13206 # linker. It appears as though 1/2 is a usable value.
13207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13210 esac
13214 if test -n $lt_cv_sys_max_cmd_len ; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13216 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13219 $as_echo "none" >&6; }
13221 max_cmd_len=$lt_cv_sys_max_cmd_len
13228 : ${CP="cp -f"}
13229 : ${MV="mv -f"}
13230 : ${RM="rm -f"}
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13233 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13234 # Try some XSI features
13235 xsi_shell=no
13236 ( _lt_dummy="a/b/c"
13237 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13238 = c,a/b,, \
13239 && eval 'test $(( 1 + 1 )) -eq 2 \
13240 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13241 && xsi_shell=yes
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13243 $as_echo "$xsi_shell" >&6; }
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13247 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13248 lt_shell_append=no
13249 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13250 >/dev/null 2>&1 \
13251 && lt_shell_append=yes
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13253 $as_echo "$lt_shell_append" >&6; }
13256 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13257 lt_unset=unset
13258 else
13259 lt_unset=false
13266 # test EBCDIC or ASCII
13267 case `echo X|tr X '\101'` in
13268 A) # ASCII based system
13269 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13270 lt_SP2NL='tr \040 \012'
13271 lt_NL2SP='tr \015\012 \040\040'
13273 *) # EBCDIC based system
13274 lt_SP2NL='tr \100 \n'
13275 lt_NL2SP='tr \r\n \100\100'
13277 esac
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13288 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13289 if ${lt_cv_ld_reload_flag+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 lt_cv_ld_reload_flag='-r'
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13295 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13296 reload_flag=$lt_cv_ld_reload_flag
13297 case $reload_flag in
13298 "" | " "*) ;;
13299 *) reload_flag=" $reload_flag" ;;
13300 esac
13301 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13302 case $host_os in
13303 darwin*)
13304 if test "$GCC" = yes; then
13305 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13306 else
13307 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13310 esac
13320 if test -n "$ac_tool_prefix"; then
13321 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13322 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324 $as_echo_n "checking for $ac_word... " >&6; }
13325 if ${ac_cv_prog_OBJDUMP+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 if test -n "$OBJDUMP"; then
13329 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13330 else
13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13334 IFS=$as_save_IFS
13335 test -z "$as_dir" && as_dir=.
13336 for ac_exec_ext in '' $ac_executable_extensions; do
13337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13338 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13340 break 2
13342 done
13343 done
13344 IFS=$as_save_IFS
13348 OBJDUMP=$ac_cv_prog_OBJDUMP
13349 if test -n "$OBJDUMP"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13351 $as_echo "$OBJDUMP" >&6; }
13352 else
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13359 if test -z "$ac_cv_prog_OBJDUMP"; then
13360 ac_ct_OBJDUMP=$OBJDUMP
13361 # Extract the first word of "objdump", so it can be a program name with args.
13362 set dummy objdump; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 if test -n "$ac_ct_OBJDUMP"; then
13369 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13382 done
13383 done
13384 IFS=$as_save_IFS
13388 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13389 if test -n "$ac_ct_OBJDUMP"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13391 $as_echo "$ac_ct_OBJDUMP" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13397 if test "x$ac_ct_OBJDUMP" = x; then
13398 OBJDUMP="false"
13399 else
13400 case $cross_compiling:$ac_tool_warned in
13401 yes:)
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13404 ac_tool_warned=yes ;;
13405 esac
13406 OBJDUMP=$ac_ct_OBJDUMP
13408 else
13409 OBJDUMP="$ac_cv_prog_OBJDUMP"
13412 test -z "$OBJDUMP" && OBJDUMP=objdump
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13423 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13424 if ${lt_cv_deplibs_check_method+:} false; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 lt_cv_file_magic_cmd='$MAGIC_CMD'
13428 lt_cv_file_magic_test_file=
13429 lt_cv_deplibs_check_method='unknown'
13430 # Need to set the preceding variable on all platforms that support
13431 # interlibrary dependencies.
13432 # 'none' -- dependencies not supported.
13433 # `unknown' -- same as none, but documents that we really don't know.
13434 # 'pass_all' -- all dependencies passed with no checks.
13435 # 'test_compile' -- check by making test program.
13436 # 'file_magic [[regex]]' -- check by looking for files in library path
13437 # which responds to the $file_magic_cmd with a given extended regex.
13438 # If you have `file' or equivalent on your system and you're not sure
13439 # whether `pass_all' will *always* work, you probably want this one.
13441 case $host_os in
13442 aix[4-9]*)
13443 lt_cv_deplibs_check_method=pass_all
13446 beos*)
13447 lt_cv_deplibs_check_method=pass_all
13450 bsdi[45]*)
13451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13452 lt_cv_file_magic_cmd='/usr/bin/file -L'
13453 lt_cv_file_magic_test_file=/shlib/libc.so
13456 cygwin*)
13457 # func_win32_libid is a shell function defined in ltmain.sh
13458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13459 lt_cv_file_magic_cmd='func_win32_libid'
13462 mingw* | pw32*)
13463 # Base MSYS/MinGW do not provide the 'file' command needed by
13464 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13465 # unless we find 'file', for example because we are cross-compiling.
13466 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13467 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13468 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13469 lt_cv_file_magic_cmd='func_win32_libid'
13470 else
13471 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13472 lt_cv_file_magic_cmd='$OBJDUMP -f'
13476 cegcc*)
13477 # use the weaker test based on 'objdump'. See mingw*.
13478 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13479 lt_cv_file_magic_cmd='$OBJDUMP -f'
13482 darwin* | rhapsody*)
13483 lt_cv_deplibs_check_method=pass_all
13486 freebsd* | dragonfly*)
13487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13488 case $host_cpu in
13489 i*86 )
13490 # Not sure whether the presence of OpenBSD here was a mistake.
13491 # Let's accept both of them until this is cleared up.
13492 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13493 lt_cv_file_magic_cmd=/usr/bin/file
13494 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13496 esac
13497 else
13498 lt_cv_deplibs_check_method=pass_all
13502 gnu*)
13503 lt_cv_deplibs_check_method=pass_all
13506 haiku*)
13507 lt_cv_deplibs_check_method=pass_all
13510 hpux10.20* | hpux11*)
13511 lt_cv_file_magic_cmd=/usr/bin/file
13512 case $host_cpu in
13513 ia64*)
13514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13515 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13517 hppa*64*)
13518 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]'
13519 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13523 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13525 esac
13528 interix[3-9]*)
13529 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13533 irix5* | irix6* | nonstopux*)
13534 case $LD in
13535 *-32|*"-32 ") libmagic=32-bit;;
13536 *-n32|*"-n32 ") libmagic=N32;;
13537 *-64|*"-64 ") libmagic=64-bit;;
13538 *) libmagic=never-match;;
13539 esac
13540 lt_cv_deplibs_check_method=pass_all
13543 # This must be Linux ELF.
13544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13545 lt_cv_deplibs_check_method=pass_all
13548 netbsd*)
13549 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13551 else
13552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13556 newos6*)
13557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13558 lt_cv_file_magic_cmd=/usr/bin/file
13559 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13562 *nto* | *qnx*)
13563 lt_cv_deplibs_check_method=pass_all
13566 openbsd*)
13567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13569 else
13570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13574 osf3* | osf4* | osf5*)
13575 lt_cv_deplibs_check_method=pass_all
13578 rdos*)
13579 lt_cv_deplibs_check_method=pass_all
13582 solaris*)
13583 lt_cv_deplibs_check_method=pass_all
13586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13587 lt_cv_deplibs_check_method=pass_all
13590 sysv4 | sysv4.3*)
13591 case $host_vendor in
13592 motorola)
13593 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]'
13594 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13596 ncr)
13597 lt_cv_deplibs_check_method=pass_all
13599 sequent)
13600 lt_cv_file_magic_cmd='/bin/file'
13601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13603 sni)
13604 lt_cv_file_magic_cmd='/bin/file'
13605 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13606 lt_cv_file_magic_test_file=/lib/libc.so
13608 siemens)
13609 lt_cv_deplibs_check_method=pass_all
13612 lt_cv_deplibs_check_method=pass_all
13614 esac
13617 tpf*)
13618 lt_cv_deplibs_check_method=pass_all
13620 esac
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13624 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13625 file_magic_cmd=$lt_cv_file_magic_cmd
13626 deplibs_check_method=$lt_cv_deplibs_check_method
13627 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13640 if test -n "$ac_tool_prefix"; then
13641 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13642 set dummy ${ac_tool_prefix}ar; ac_word=$2
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644 $as_echo_n "checking for $ac_word... " >&6; }
13645 if ${ac_cv_prog_AR+:} false; then :
13646 $as_echo_n "(cached) " >&6
13647 else
13648 if test -n "$AR"; then
13649 ac_cv_prog_AR="$AR" # Let the user override the test.
13650 else
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13654 IFS=$as_save_IFS
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658 ac_cv_prog_AR="${ac_tool_prefix}ar"
13659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660 break 2
13662 done
13663 done
13664 IFS=$as_save_IFS
13668 AR=$ac_cv_prog_AR
13669 if test -n "$AR"; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13671 $as_echo "$AR" >&6; }
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13679 if test -z "$ac_cv_prog_AR"; then
13680 ac_ct_AR=$AR
13681 # Extract the first word of "ar", so it can be a program name with args.
13682 set dummy ar; ac_word=$2
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13684 $as_echo_n "checking for $ac_word... " >&6; }
13685 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 if test -n "$ac_ct_AR"; then
13689 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13690 else
13691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13692 for as_dir in $PATH
13694 IFS=$as_save_IFS
13695 test -z "$as_dir" && as_dir=.
13696 for ac_exec_ext in '' $ac_executable_extensions; do
13697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13698 ac_cv_prog_ac_ct_AR="ar"
13699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13700 break 2
13702 done
13703 done
13704 IFS=$as_save_IFS
13708 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13709 if test -n "$ac_ct_AR"; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13711 $as_echo "$ac_ct_AR" >&6; }
13712 else
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714 $as_echo "no" >&6; }
13717 if test "x$ac_ct_AR" = x; then
13718 AR="false"
13719 else
13720 case $cross_compiling:$ac_tool_warned in
13721 yes:)
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13724 ac_tool_warned=yes ;;
13725 esac
13726 AR=$ac_ct_AR
13728 else
13729 AR="$ac_cv_prog_AR"
13732 test -z "$AR" && AR=ar
13733 test -z "$AR_FLAGS" && AR_FLAGS=cru
13745 if test -n "$ac_tool_prefix"; then
13746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13747 set dummy ${ac_tool_prefix}strip; ac_word=$2
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13749 $as_echo_n "checking for $ac_word... " >&6; }
13750 if ${ac_cv_prog_STRIP+:} false; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 if test -n "$STRIP"; then
13754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13755 else
13756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13757 for as_dir in $PATH
13759 IFS=$as_save_IFS
13760 test -z "$as_dir" && as_dir=.
13761 for ac_exec_ext in '' $ac_executable_extensions; do
13762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13763 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13765 break 2
13767 done
13768 done
13769 IFS=$as_save_IFS
13773 STRIP=$ac_cv_prog_STRIP
13774 if test -n "$STRIP"; then
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13776 $as_echo "$STRIP" >&6; }
13777 else
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13784 if test -z "$ac_cv_prog_STRIP"; then
13785 ac_ct_STRIP=$STRIP
13786 # Extract the first word of "strip", so it can be a program name with args.
13787 set dummy strip; ac_word=$2
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13789 $as_echo_n "checking for $ac_word... " >&6; }
13790 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13791 $as_echo_n "(cached) " >&6
13792 else
13793 if test -n "$ac_ct_STRIP"; then
13794 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13795 else
13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797 for as_dir in $PATH
13799 IFS=$as_save_IFS
13800 test -z "$as_dir" && as_dir=.
13801 for ac_exec_ext in '' $ac_executable_extensions; do
13802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13803 ac_cv_prog_ac_ct_STRIP="strip"
13804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13805 break 2
13807 done
13808 done
13809 IFS=$as_save_IFS
13813 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13814 if test -n "$ac_ct_STRIP"; then
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13816 $as_echo "$ac_ct_STRIP" >&6; }
13817 else
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13819 $as_echo "no" >&6; }
13822 if test "x$ac_ct_STRIP" = x; then
13823 STRIP=":"
13824 else
13825 case $cross_compiling:$ac_tool_warned in
13826 yes:)
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13829 ac_tool_warned=yes ;;
13830 esac
13831 STRIP=$ac_ct_STRIP
13833 else
13834 STRIP="$ac_cv_prog_STRIP"
13837 test -z "$STRIP" && STRIP=:
13844 if test -n "$ac_tool_prefix"; then
13845 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13846 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13848 $as_echo_n "checking for $ac_word... " >&6; }
13849 if ${ac_cv_prog_RANLIB+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 if test -n "$RANLIB"; then
13853 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13854 else
13855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856 for as_dir in $PATH
13858 IFS=$as_save_IFS
13859 test -z "$as_dir" && as_dir=.
13860 for ac_exec_ext in '' $ac_executable_extensions; do
13861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13862 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13864 break 2
13866 done
13867 done
13868 IFS=$as_save_IFS
13872 RANLIB=$ac_cv_prog_RANLIB
13873 if test -n "$RANLIB"; then
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13875 $as_echo "$RANLIB" >&6; }
13876 else
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13878 $as_echo "no" >&6; }
13883 if test -z "$ac_cv_prog_RANLIB"; then
13884 ac_ct_RANLIB=$RANLIB
13885 # Extract the first word of "ranlib", so it can be a program name with args.
13886 set dummy ranlib; ac_word=$2
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13888 $as_echo_n "checking for $ac_word... " >&6; }
13889 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 if test -n "$ac_ct_RANLIB"; then
13893 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13894 else
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 for as_dir in $PATH
13898 IFS=$as_save_IFS
13899 test -z "$as_dir" && as_dir=.
13900 for ac_exec_ext in '' $ac_executable_extensions; do
13901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13902 ac_cv_prog_ac_ct_RANLIB="ranlib"
13903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 break 2
13906 done
13907 done
13908 IFS=$as_save_IFS
13912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13913 if test -n "$ac_ct_RANLIB"; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13915 $as_echo "$ac_ct_RANLIB" >&6; }
13916 else
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13921 if test "x$ac_ct_RANLIB" = x; then
13922 RANLIB=":"
13923 else
13924 case $cross_compiling:$ac_tool_warned in
13925 yes:)
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13928 ac_tool_warned=yes ;;
13929 esac
13930 RANLIB=$ac_ct_RANLIB
13932 else
13933 RANLIB="$ac_cv_prog_RANLIB"
13936 test -z "$RANLIB" && RANLIB=:
13943 # Determine commands to create old-style static archives.
13944 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13945 old_postinstall_cmds='chmod 644 $oldlib'
13946 old_postuninstall_cmds=
13948 if test -n "$RANLIB"; then
13949 case $host_os in
13950 openbsd*)
13951 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13954 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13956 esac
13957 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13960 case $host_os in
13961 darwin*)
13962 lock_old_archive_extraction=yes ;;
13964 lock_old_archive_extraction=no ;;
13965 esac
14005 # If no C compiler was specified, use CC.
14006 LTCC=${LTCC-"$CC"}
14008 # If no C compiler flags were specified, use CFLAGS.
14009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14011 # Allow CC to be a program name with arguments.
14012 compiler=$CC
14015 # Check for command to grab the raw symbol name followed by C symbol from nm.
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14017 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14018 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14022 # These are sane defaults that work on at least a few old systems.
14023 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14025 # Character class describing NM global symbol codes.
14026 symcode='[BCDEGRST]'
14028 # Regexp to match symbols that can be accessed directly from C.
14029 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14031 # Define system-specific variables.
14032 case $host_os in
14033 aix*)
14034 symcode='[BCDT]'
14036 cygwin* | mingw* | pw32* | cegcc*)
14037 symcode='[ABCDGISTW]'
14039 hpux*)
14040 if test "$host_cpu" = ia64; then
14041 symcode='[ABCDEGRST]'
14044 irix* | nonstopux*)
14045 symcode='[BCDEGRST]'
14047 osf*)
14048 symcode='[BCDEGQRST]'
14050 solaris*)
14051 symcode='[BDRT]'
14053 sco3.2v5*)
14054 symcode='[DT]'
14056 sysv4.2uw2*)
14057 symcode='[DT]'
14059 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14060 symcode='[ABDT]'
14062 sysv4)
14063 symcode='[DFNSTU]'
14065 esac
14067 # If we're using GNU nm, then use its standard symbol codes.
14068 case `$NM -V 2>&1` in
14069 *GNU* | *'with BFD'*)
14070 symcode='[ABCDGIRSTW]' ;;
14071 esac
14073 # Transform an extracted symbol line into a proper C declaration.
14074 # Some systems (esp. on ia64) link data and code symbols differently,
14075 # so use this general approach.
14076 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14078 # Transform an extracted symbol line into symbol name and symbol address
14079 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14080 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'"
14082 # Handle CRLF in mingw tool chain
14083 opt_cr=
14084 case $build_os in
14085 mingw*)
14086 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14088 esac
14090 # Try without a prefix underscore, then with it.
14091 for ac_symprfx in "" "_"; do
14093 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14094 symxfrm="\\1 $ac_symprfx\\2 \\2"
14096 # Write the raw and C identifiers.
14097 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14098 # Fake it for dumpbin and say T for any non-static function
14099 # and D for any global variable.
14100 # Also find C++ and __fastcall symbols from MSVC++,
14101 # which start with @ or ?.
14102 lt_cv_sys_global_symbol_pipe="$AWK '"\
14103 " {last_section=section; section=\$ 3};"\
14104 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14105 " \$ 0!~/External *\|/{next};"\
14106 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14107 " {if(hide[section]) next};"\
14108 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14109 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14110 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14111 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14112 " ' prfx=^$ac_symprfx"
14113 else
14114 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14117 # Check to see that the pipe works correctly.
14118 pipe_works=no
14120 rm -f conftest*
14121 cat > conftest.$ac_ext <<_LT_EOF
14122 #ifdef __cplusplus
14123 extern "C" {
14124 #endif
14125 char nm_test_var;
14126 void nm_test_func(void);
14127 void nm_test_func(void){}
14128 #ifdef __cplusplus
14130 #endif
14131 int main(){nm_test_var='a';nm_test_func();return(0);}
14132 _LT_EOF
14134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14135 (eval $ac_compile) 2>&5
14136 ac_status=$?
14137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14138 test $ac_status = 0; }; then
14139 # Now try to grab the symbols.
14140 nlist=conftest.nm
14141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14142 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14143 ac_status=$?
14144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14145 test $ac_status = 0; } && test -s "$nlist"; then
14146 # Try sorting and uniquifying the output.
14147 if sort "$nlist" | uniq > "$nlist"T; then
14148 mv -f "$nlist"T "$nlist"
14149 else
14150 rm -f "$nlist"T
14153 # Make sure that we snagged all the symbols we need.
14154 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14155 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14156 cat <<_LT_EOF > conftest.$ac_ext
14157 #ifdef __cplusplus
14158 extern "C" {
14159 #endif
14161 _LT_EOF
14162 # Now generate the symbol file.
14163 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14165 cat <<_LT_EOF >> conftest.$ac_ext
14167 /* The mapping between symbol names and symbols. */
14168 const struct {
14169 const char *name;
14170 void *address;
14172 lt__PROGRAM__LTX_preloaded_symbols[] =
14174 { "@PROGRAM@", (void *) 0 },
14175 _LT_EOF
14176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14177 cat <<\_LT_EOF >> conftest.$ac_ext
14178 {0, (void *) 0}
14181 /* This works around a problem in FreeBSD linker */
14182 #ifdef FREEBSD_WORKAROUND
14183 static const void *lt_preloaded_setup() {
14184 return lt__PROGRAM__LTX_preloaded_symbols;
14186 #endif
14188 #ifdef __cplusplus
14190 #endif
14191 _LT_EOF
14192 # Now try linking the two files.
14193 mv conftest.$ac_objext conftstm.$ac_objext
14194 lt_save_LIBS="$LIBS"
14195 lt_save_CFLAGS="$CFLAGS"
14196 LIBS="conftstm.$ac_objext"
14197 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14199 (eval $ac_link) 2>&5
14200 ac_status=$?
14201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14202 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14203 pipe_works=yes
14205 LIBS="$lt_save_LIBS"
14206 CFLAGS="$lt_save_CFLAGS"
14207 else
14208 echo "cannot find nm_test_func in $nlist" >&5
14210 else
14211 echo "cannot find nm_test_var in $nlist" >&5
14213 else
14214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14216 else
14217 echo "$progname: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14220 rm -rf conftest* conftst*
14222 # Do not use the global_symbol_pipe unless it works.
14223 if test "$pipe_works" = yes; then
14224 break
14225 else
14226 lt_cv_sys_global_symbol_pipe=
14228 done
14232 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14233 lt_cv_sys_global_symbol_to_cdecl=
14235 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14237 $as_echo "failed" >&6; }
14238 else
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14240 $as_echo "ok" >&6; }
14264 # Check whether --enable-libtool-lock was given.
14265 if test "${enable_libtool_lock+set}" = set; then :
14266 enableval=$enable_libtool_lock;
14269 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14271 # Some flags need to be propagated to the compiler or linker for good
14272 # libtool support.
14273 case $host in
14274 ia64-*-hpux*)
14275 # Find out which ABI we are using.
14276 echo 'int i;' > conftest.$ac_ext
14277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14278 (eval $ac_compile) 2>&5
14279 ac_status=$?
14280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14281 test $ac_status = 0; }; then
14282 case `/usr/bin/file conftest.$ac_objext` in
14283 *ELF-32*)
14284 HPUX_IA64_MODE="32"
14286 *ELF-64*)
14287 HPUX_IA64_MODE="64"
14289 esac
14291 rm -rf conftest*
14293 *-*-irix6*)
14294 # Find out which ABI we are using.
14295 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14297 (eval $ac_compile) 2>&5
14298 ac_status=$?
14299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14300 test $ac_status = 0; }; then
14301 if test "$lt_cv_prog_gnu_ld" = yes; then
14302 case `/usr/bin/file conftest.$ac_objext` in
14303 *32-bit*)
14304 LD="${LD-ld} -melf32bsmip"
14306 *N32*)
14307 LD="${LD-ld} -melf32bmipn32"
14309 *64-bit*)
14310 LD="${LD-ld} -melf64bmip"
14312 esac
14313 else
14314 case `/usr/bin/file conftest.$ac_objext` in
14315 *32-bit*)
14316 LD="${LD-ld} -32"
14318 *N32*)
14319 LD="${LD-ld} -n32"
14321 *64-bit*)
14322 LD="${LD-ld} -64"
14324 esac
14327 rm -rf conftest*
14330 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14331 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14332 # Find out which ABI we are using.
14333 echo 'int i;' > conftest.$ac_ext
14334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14335 (eval $ac_compile) 2>&5
14336 ac_status=$?
14337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14338 test $ac_status = 0; }; then
14339 case `/usr/bin/file conftest.o` in
14340 *32-bit*)
14341 case $host in
14342 x86_64-*kfreebsd*-gnu)
14343 LD="${LD-ld} -m elf_i386_fbsd"
14345 x86_64-*linux*)
14346 case `/usr/bin/file conftest.o` in
14347 *x86-64*)
14348 LD="${LD-ld} -m elf32_x86_64"
14351 LD="${LD-ld} -m elf_i386"
14353 esac
14355 powerpc64le-*linux*)
14356 LD="${LD-ld} -m elf32lppclinux"
14358 powerpc64-*linux*)
14359 LD="${LD-ld} -m elf32ppclinux"
14361 s390x-*linux*)
14362 LD="${LD-ld} -m elf_s390"
14364 sparc64-*linux*)
14365 LD="${LD-ld} -m elf32_sparc"
14367 esac
14369 *64-bit*)
14370 case $host in
14371 x86_64-*kfreebsd*-gnu)
14372 LD="${LD-ld} -m elf_x86_64_fbsd"
14374 x86_64-*linux*)
14375 LD="${LD-ld} -m elf_x86_64"
14377 powerpcle-*linux*)
14378 LD="${LD-ld} -m elf64lppc"
14380 powerpc-*linux*)
14381 LD="${LD-ld} -m elf64ppc"
14383 s390*-*linux*|s390*-*tpf*)
14384 LD="${LD-ld} -m elf64_s390"
14386 sparc*-*linux*)
14387 LD="${LD-ld} -m elf64_sparc"
14389 esac
14391 esac
14393 rm -rf conftest*
14396 *-*-sco3.2v5*)
14397 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14398 SAVE_CFLAGS="$CFLAGS"
14399 CFLAGS="$CFLAGS -belf"
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14401 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14402 if ${lt_cv_cc_needs_belf+:} false; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 ac_ext=c
14406 ac_cpp='$CPP $CPPFLAGS'
14407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14415 main ()
14419 return 0;
14421 _ACEOF
14422 if ac_fn_c_try_link "$LINENO"; then :
14423 lt_cv_cc_needs_belf=yes
14424 else
14425 lt_cv_cc_needs_belf=no
14427 rm -f core conftest.err conftest.$ac_objext \
14428 conftest$ac_exeext conftest.$ac_ext
14429 ac_ext=c
14430 ac_cpp='$CPP $CPPFLAGS'
14431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14437 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14438 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14439 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14440 CFLAGS="$SAVE_CFLAGS"
14443 sparc*-*solaris*)
14444 # Find out which ABI we are using.
14445 echo 'int i;' > conftest.$ac_ext
14446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14447 (eval $ac_compile) 2>&5
14448 ac_status=$?
14449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14450 test $ac_status = 0; }; then
14451 case `/usr/bin/file conftest.o` in
14452 *64-bit*)
14453 case $lt_cv_prog_gnu_ld in
14454 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14456 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14457 LD="${LD-ld} -64"
14460 esac
14462 esac
14464 rm -rf conftest*
14466 esac
14468 need_locks="$enable_libtool_lock"
14471 case $host_os in
14472 rhapsody* | darwin*)
14473 if test -n "$ac_tool_prefix"; then
14474 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14475 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14477 $as_echo_n "checking for $ac_word... " >&6; }
14478 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 if test -n "$DSYMUTIL"; then
14482 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14483 else
14484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14485 for as_dir in $PATH
14487 IFS=$as_save_IFS
14488 test -z "$as_dir" && as_dir=.
14489 for ac_exec_ext in '' $ac_executable_extensions; do
14490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14491 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14493 break 2
14495 done
14496 done
14497 IFS=$as_save_IFS
14501 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14502 if test -n "$DSYMUTIL"; then
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14504 $as_echo "$DSYMUTIL" >&6; }
14505 else
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507 $as_echo "no" >&6; }
14512 if test -z "$ac_cv_prog_DSYMUTIL"; then
14513 ac_ct_DSYMUTIL=$DSYMUTIL
14514 # Extract the first word of "dsymutil", so it can be a program name with args.
14515 set dummy dsymutil; ac_word=$2
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14517 $as_echo_n "checking for $ac_word... " >&6; }
14518 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14519 $as_echo_n "(cached) " >&6
14520 else
14521 if test -n "$ac_ct_DSYMUTIL"; then
14522 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14523 else
14524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14525 for as_dir in $PATH
14527 IFS=$as_save_IFS
14528 test -z "$as_dir" && as_dir=.
14529 for ac_exec_ext in '' $ac_executable_extensions; do
14530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14531 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14533 break 2
14535 done
14536 done
14537 IFS=$as_save_IFS
14541 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14542 if test -n "$ac_ct_DSYMUTIL"; then
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14544 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14545 else
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14547 $as_echo "no" >&6; }
14550 if test "x$ac_ct_DSYMUTIL" = x; then
14551 DSYMUTIL=":"
14552 else
14553 case $cross_compiling:$ac_tool_warned in
14554 yes:)
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14557 ac_tool_warned=yes ;;
14558 esac
14559 DSYMUTIL=$ac_ct_DSYMUTIL
14561 else
14562 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14565 if test -n "$ac_tool_prefix"; then
14566 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14567 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14569 $as_echo_n "checking for $ac_word... " >&6; }
14570 if ${ac_cv_prog_NMEDIT+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 if test -n "$NMEDIT"; then
14574 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14575 else
14576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577 for as_dir in $PATH
14579 IFS=$as_save_IFS
14580 test -z "$as_dir" && as_dir=.
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14583 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14585 break 2
14587 done
14588 done
14589 IFS=$as_save_IFS
14593 NMEDIT=$ac_cv_prog_NMEDIT
14594 if test -n "$NMEDIT"; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14596 $as_echo "$NMEDIT" >&6; }
14597 else
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14599 $as_echo "no" >&6; }
14604 if test -z "$ac_cv_prog_NMEDIT"; then
14605 ac_ct_NMEDIT=$NMEDIT
14606 # Extract the first word of "nmedit", so it can be a program name with args.
14607 set dummy nmedit; ac_word=$2
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14609 $as_echo_n "checking for $ac_word... " >&6; }
14610 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14611 $as_echo_n "(cached) " >&6
14612 else
14613 if test -n "$ac_ct_NMEDIT"; then
14614 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14615 else
14616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617 for as_dir in $PATH
14619 IFS=$as_save_IFS
14620 test -z "$as_dir" && as_dir=.
14621 for ac_exec_ext in '' $ac_executable_extensions; do
14622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14623 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14625 break 2
14627 done
14628 done
14629 IFS=$as_save_IFS
14633 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14634 if test -n "$ac_ct_NMEDIT"; then
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14636 $as_echo "$ac_ct_NMEDIT" >&6; }
14637 else
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14639 $as_echo "no" >&6; }
14642 if test "x$ac_ct_NMEDIT" = x; then
14643 NMEDIT=":"
14644 else
14645 case $cross_compiling:$ac_tool_warned in
14646 yes:)
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14649 ac_tool_warned=yes ;;
14650 esac
14651 NMEDIT=$ac_ct_NMEDIT
14653 else
14654 NMEDIT="$ac_cv_prog_NMEDIT"
14657 if test -n "$ac_tool_prefix"; then
14658 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14659 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661 $as_echo_n "checking for $ac_word... " >&6; }
14662 if ${ac_cv_prog_LIPO+:} false; then :
14663 $as_echo_n "(cached) " >&6
14664 else
14665 if test -n "$LIPO"; then
14666 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14667 else
14668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669 for as_dir in $PATH
14671 IFS=$as_save_IFS
14672 test -z "$as_dir" && as_dir=.
14673 for ac_exec_ext in '' $ac_executable_extensions; do
14674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14675 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14677 break 2
14679 done
14680 done
14681 IFS=$as_save_IFS
14685 LIPO=$ac_cv_prog_LIPO
14686 if test -n "$LIPO"; then
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14688 $as_echo "$LIPO" >&6; }
14689 else
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14696 if test -z "$ac_cv_prog_LIPO"; then
14697 ac_ct_LIPO=$LIPO
14698 # Extract the first word of "lipo", so it can be a program name with args.
14699 set dummy lipo; ac_word=$2
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14701 $as_echo_n "checking for $ac_word... " >&6; }
14702 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14703 $as_echo_n "(cached) " >&6
14704 else
14705 if test -n "$ac_ct_LIPO"; then
14706 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14707 else
14708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14709 for as_dir in $PATH
14711 IFS=$as_save_IFS
14712 test -z "$as_dir" && as_dir=.
14713 for ac_exec_ext in '' $ac_executable_extensions; do
14714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14715 ac_cv_prog_ac_ct_LIPO="lipo"
14716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14717 break 2
14719 done
14720 done
14721 IFS=$as_save_IFS
14725 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14726 if test -n "$ac_ct_LIPO"; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14728 $as_echo "$ac_ct_LIPO" >&6; }
14729 else
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731 $as_echo "no" >&6; }
14734 if test "x$ac_ct_LIPO" = x; then
14735 LIPO=":"
14736 else
14737 case $cross_compiling:$ac_tool_warned in
14738 yes:)
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14741 ac_tool_warned=yes ;;
14742 esac
14743 LIPO=$ac_ct_LIPO
14745 else
14746 LIPO="$ac_cv_prog_LIPO"
14749 if test -n "$ac_tool_prefix"; then
14750 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14751 set dummy ${ac_tool_prefix}otool; ac_word=$2
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14753 $as_echo_n "checking for $ac_word... " >&6; }
14754 if ${ac_cv_prog_OTOOL+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 if test -n "$OTOOL"; then
14758 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14759 else
14760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14761 for as_dir in $PATH
14763 IFS=$as_save_IFS
14764 test -z "$as_dir" && as_dir=.
14765 for ac_exec_ext in '' $ac_executable_extensions; do
14766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14767 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14769 break 2
14771 done
14772 done
14773 IFS=$as_save_IFS
14777 OTOOL=$ac_cv_prog_OTOOL
14778 if test -n "$OTOOL"; then
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14780 $as_echo "$OTOOL" >&6; }
14781 else
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14783 $as_echo "no" >&6; }
14788 if test -z "$ac_cv_prog_OTOOL"; then
14789 ac_ct_OTOOL=$OTOOL
14790 # Extract the first word of "otool", so it can be a program name with args.
14791 set dummy otool; ac_word=$2
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14793 $as_echo_n "checking for $ac_word... " >&6; }
14794 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14795 $as_echo_n "(cached) " >&6
14796 else
14797 if test -n "$ac_ct_OTOOL"; then
14798 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14799 else
14800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14801 for as_dir in $PATH
14803 IFS=$as_save_IFS
14804 test -z "$as_dir" && as_dir=.
14805 for ac_exec_ext in '' $ac_executable_extensions; do
14806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14807 ac_cv_prog_ac_ct_OTOOL="otool"
14808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14809 break 2
14811 done
14812 done
14813 IFS=$as_save_IFS
14817 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14818 if test -n "$ac_ct_OTOOL"; then
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14820 $as_echo "$ac_ct_OTOOL" >&6; }
14821 else
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14823 $as_echo "no" >&6; }
14826 if test "x$ac_ct_OTOOL" = x; then
14827 OTOOL=":"
14828 else
14829 case $cross_compiling:$ac_tool_warned in
14830 yes:)
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14833 ac_tool_warned=yes ;;
14834 esac
14835 OTOOL=$ac_ct_OTOOL
14837 else
14838 OTOOL="$ac_cv_prog_OTOOL"
14841 if test -n "$ac_tool_prefix"; then
14842 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14843 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14845 $as_echo_n "checking for $ac_word... " >&6; }
14846 if ${ac_cv_prog_OTOOL64+:} false; then :
14847 $as_echo_n "(cached) " >&6
14848 else
14849 if test -n "$OTOOL64"; then
14850 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14851 else
14852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14853 for as_dir in $PATH
14855 IFS=$as_save_IFS
14856 test -z "$as_dir" && as_dir=.
14857 for ac_exec_ext in '' $ac_executable_extensions; do
14858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14859 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14861 break 2
14863 done
14864 done
14865 IFS=$as_save_IFS
14869 OTOOL64=$ac_cv_prog_OTOOL64
14870 if test -n "$OTOOL64"; then
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14872 $as_echo "$OTOOL64" >&6; }
14873 else
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14875 $as_echo "no" >&6; }
14880 if test -z "$ac_cv_prog_OTOOL64"; then
14881 ac_ct_OTOOL64=$OTOOL64
14882 # Extract the first word of "otool64", so it can be a program name with args.
14883 set dummy otool64; ac_word=$2
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14885 $as_echo_n "checking for $ac_word... " >&6; }
14886 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14887 $as_echo_n "(cached) " >&6
14888 else
14889 if test -n "$ac_ct_OTOOL64"; then
14890 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14891 else
14892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14893 for as_dir in $PATH
14895 IFS=$as_save_IFS
14896 test -z "$as_dir" && as_dir=.
14897 for ac_exec_ext in '' $ac_executable_extensions; do
14898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14899 ac_cv_prog_ac_ct_OTOOL64="otool64"
14900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14901 break 2
14903 done
14904 done
14905 IFS=$as_save_IFS
14909 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14910 if test -n "$ac_ct_OTOOL64"; then
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14912 $as_echo "$ac_ct_OTOOL64" >&6; }
14913 else
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14915 $as_echo "no" >&6; }
14918 if test "x$ac_ct_OTOOL64" = x; then
14919 OTOOL64=":"
14920 else
14921 case $cross_compiling:$ac_tool_warned in
14922 yes:)
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14925 ac_tool_warned=yes ;;
14926 esac
14927 OTOOL64=$ac_ct_OTOOL64
14929 else
14930 OTOOL64="$ac_cv_prog_OTOOL64"
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14960 $as_echo_n "checking for -single_module linker flag... " >&6; }
14961 if ${lt_cv_apple_cc_single_mod+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 lt_cv_apple_cc_single_mod=no
14965 if test -z "${LT_MULTI_MODULE}"; then
14966 # By default we will add the -single_module flag. You can override
14967 # by either setting the environment variable LT_MULTI_MODULE
14968 # non-empty at configure time, or by adding -multi_module to the
14969 # link flags.
14970 rm -rf libconftest.dylib*
14971 echo "int foo(void){return 1;}" > conftest.c
14972 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14973 -dynamiclib -Wl,-single_module conftest.c" >&5
14974 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14975 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14976 _lt_result=$?
14977 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14978 lt_cv_apple_cc_single_mod=yes
14979 else
14980 cat conftest.err >&5
14982 rm -rf libconftest.dylib*
14983 rm -f conftest.*
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14987 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14989 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14990 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 lt_cv_ld_exported_symbols_list=no
14994 save_LDFLAGS=$LDFLAGS
14995 echo "_main" > conftest.sym
14996 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15001 main ()
15005 return 0;
15007 _ACEOF
15008 if ac_fn_c_try_link "$LINENO"; then :
15009 lt_cv_ld_exported_symbols_list=yes
15010 else
15011 lt_cv_ld_exported_symbols_list=no
15013 rm -f core conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15015 LDFLAGS="$save_LDFLAGS"
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15019 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15021 $as_echo_n "checking for -force_load linker flag... " >&6; }
15022 if ${lt_cv_ld_force_load+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 lt_cv_ld_force_load=no
15026 cat > conftest.c << _LT_EOF
15027 int forced_loaded() { return 2;}
15028 _LT_EOF
15029 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15030 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15031 echo "$AR cru libconftest.a conftest.o" >&5
15032 $AR cru libconftest.a conftest.o 2>&5
15033 cat > conftest.c << _LT_EOF
15034 int main() { return 0;}
15035 _LT_EOF
15036 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15037 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15038 _lt_result=$?
15039 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15040 lt_cv_ld_force_load=yes
15041 else
15042 cat conftest.err >&5
15044 rm -f conftest.err libconftest.a conftest conftest.c
15045 rm -rf conftest.dSYM
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15049 $as_echo "$lt_cv_ld_force_load" >&6; }
15050 case $host_os in
15051 rhapsody* | darwin1.[012])
15052 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15053 darwin1.*)
15054 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15055 darwin*) # darwin 5.x on
15056 # if running on 10.5 or later, the deployment target defaults
15057 # to the OS version, if on x86, and 10.4, the deployment
15058 # target defaults to 10.4. Don't you love it?
15059 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15060 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15061 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15062 10.[012][,.]*)
15063 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15064 10.*)
15065 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15066 esac
15068 esac
15069 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15070 _lt_dar_single_mod='$single_module'
15072 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15073 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15074 else
15075 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15077 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15078 _lt_dsymutil='~$DSYMUTIL $lib || :'
15079 else
15080 _lt_dsymutil=
15083 esac
15086 for ac_header in dlfcn.h
15087 do :
15088 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15089 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15090 cat >>confdefs.h <<_ACEOF
15091 #define HAVE_DLFCN_H 1
15092 _ACEOF
15095 done
15101 # Set options
15105 enable_dlopen=no
15108 enable_win32_dll=no
15111 # Check whether --enable-shared was given.
15112 if test "${enable_shared+set}" = set; then :
15113 enableval=$enable_shared; p=${PACKAGE-default}
15114 case $enableval in
15115 yes) enable_shared=yes ;;
15116 no) enable_shared=no ;;
15118 enable_shared=no
15119 # Look at the argument we got. We use all the common list separators.
15120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15121 for pkg in $enableval; do
15122 IFS="$lt_save_ifs"
15123 if test "X$pkg" = "X$p"; then
15124 enable_shared=yes
15126 done
15127 IFS="$lt_save_ifs"
15129 esac
15130 else
15131 enable_shared=yes
15142 # Check whether --enable-static was given.
15143 if test "${enable_static+set}" = set; then :
15144 enableval=$enable_static; p=${PACKAGE-default}
15145 case $enableval in
15146 yes) enable_static=yes ;;
15147 no) enable_static=no ;;
15149 enable_static=no
15150 # Look at the argument we got. We use all the common list separators.
15151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15152 for pkg in $enableval; do
15153 IFS="$lt_save_ifs"
15154 if test "X$pkg" = "X$p"; then
15155 enable_static=yes
15157 done
15158 IFS="$lt_save_ifs"
15160 esac
15161 else
15162 enable_static=yes
15174 # Check whether --with-pic was given.
15175 if test "${with_pic+set}" = set; then :
15176 withval=$with_pic; pic_mode="$withval"
15177 else
15178 pic_mode=default
15182 test -z "$pic_mode" && pic_mode=default
15190 # Check whether --enable-fast-install was given.
15191 if test "${enable_fast_install+set}" = set; then :
15192 enableval=$enable_fast_install; p=${PACKAGE-default}
15193 case $enableval in
15194 yes) enable_fast_install=yes ;;
15195 no) enable_fast_install=no ;;
15197 enable_fast_install=no
15198 # Look at the argument we got. We use all the common list separators.
15199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15200 for pkg in $enableval; do
15201 IFS="$lt_save_ifs"
15202 if test "X$pkg" = "X$p"; then
15203 enable_fast_install=yes
15205 done
15206 IFS="$lt_save_ifs"
15208 esac
15209 else
15210 enable_fast_install=yes
15223 # This can be used to rebuild libtool when needed
15224 LIBTOOL_DEPS="$ltmain"
15226 # Always use our own libtool.
15227 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15254 test -z "$LN_S" && LN_S="ln -s"
15269 if test -n "${ZSH_VERSION+set}" ; then
15270 setopt NO_GLOB_SUBST
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15274 $as_echo_n "checking for objdir... " >&6; }
15275 if ${lt_cv_objdir+:} false; then :
15276 $as_echo_n "(cached) " >&6
15277 else
15278 rm -f .libs 2>/dev/null
15279 mkdir .libs 2>/dev/null
15280 if test -d .libs; then
15281 lt_cv_objdir=.libs
15282 else
15283 # MS-DOS does not allow filenames that begin with a dot.
15284 lt_cv_objdir=_libs
15286 rmdir .libs 2>/dev/null
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15289 $as_echo "$lt_cv_objdir" >&6; }
15290 objdir=$lt_cv_objdir
15296 cat >>confdefs.h <<_ACEOF
15297 #define LT_OBJDIR "$lt_cv_objdir/"
15298 _ACEOF
15303 case $host_os in
15304 aix3*)
15305 # AIX sometimes has problems with the GCC collect2 program. For some
15306 # reason, if we set the COLLECT_NAMES environment variable, the problems
15307 # vanish in a puff of smoke.
15308 if test "X${COLLECT_NAMES+set}" != Xset; then
15309 COLLECT_NAMES=
15310 export COLLECT_NAMES
15313 esac
15315 # Global variables:
15316 ofile=libtool
15317 can_build_shared=yes
15319 # All known linkers require a `.a' archive for static linking (except MSVC,
15320 # which needs '.lib').
15321 libext=a
15323 with_gnu_ld="$lt_cv_prog_gnu_ld"
15325 old_CC="$CC"
15326 old_CFLAGS="$CFLAGS"
15328 # Set sane defaults for various variables
15329 test -z "$CC" && CC=cc
15330 test -z "$LTCC" && LTCC=$CC
15331 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15332 test -z "$LD" && LD=ld
15333 test -z "$ac_objext" && ac_objext=o
15335 for cc_temp in $compiler""; do
15336 case $cc_temp in
15337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15339 \-*) ;;
15340 *) break;;
15341 esac
15342 done
15343 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15346 # Only perform the check for file, if the check method requires it
15347 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15348 case $deplibs_check_method in
15349 file_magic*)
15350 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15352 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15353 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 case $MAGIC_CMD in
15357 [\\/*] | ?:[\\/]*)
15358 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15361 lt_save_MAGIC_CMD="$MAGIC_CMD"
15362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15364 for ac_dir in $ac_dummy; do
15365 IFS="$lt_save_ifs"
15366 test -z "$ac_dir" && ac_dir=.
15367 if test -f $ac_dir/${ac_tool_prefix}file; then
15368 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15369 if test -n "$file_magic_test_file"; then
15370 case $deplibs_check_method in
15371 "file_magic "*)
15372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15375 $EGREP "$file_magic_regex" > /dev/null; then
15377 else
15378 cat <<_LT_EOF 1>&2
15380 *** Warning: the command libtool uses to detect shared libraries,
15381 *** $file_magic_cmd, produces output that libtool cannot recognize.
15382 *** The result is that libtool may fail to recognize shared libraries
15383 *** as such. This will affect the creation of libtool libraries that
15384 *** depend on shared libraries, but programs linked with such libtool
15385 *** libraries will work regardless of this problem. Nevertheless, you
15386 *** may want to report the problem to your system manager and/or to
15387 *** bug-libtool@gnu.org
15389 _LT_EOF
15390 fi ;;
15391 esac
15393 break
15395 done
15396 IFS="$lt_save_ifs"
15397 MAGIC_CMD="$lt_save_MAGIC_CMD"
15399 esac
15402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15403 if test -n "$MAGIC_CMD"; then
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15405 $as_echo "$MAGIC_CMD" >&6; }
15406 else
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15408 $as_echo "no" >&6; }
15415 if test -z "$lt_cv_path_MAGIC_CMD"; then
15416 if test -n "$ac_tool_prefix"; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15418 $as_echo_n "checking for file... " >&6; }
15419 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15420 $as_echo_n "(cached) " >&6
15421 else
15422 case $MAGIC_CMD in
15423 [\\/*] | ?:[\\/]*)
15424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15427 lt_save_MAGIC_CMD="$MAGIC_CMD"
15428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15430 for ac_dir in $ac_dummy; do
15431 IFS="$lt_save_ifs"
15432 test -z "$ac_dir" && ac_dir=.
15433 if test -f $ac_dir/file; then
15434 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15435 if test -n "$file_magic_test_file"; then
15436 case $deplibs_check_method in
15437 "file_magic "*)
15438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15441 $EGREP "$file_magic_regex" > /dev/null; then
15443 else
15444 cat <<_LT_EOF 1>&2
15446 *** Warning: the command libtool uses to detect shared libraries,
15447 *** $file_magic_cmd, produces output that libtool cannot recognize.
15448 *** The result is that libtool may fail to recognize shared libraries
15449 *** as such. This will affect the creation of libtool libraries that
15450 *** depend on shared libraries, but programs linked with such libtool
15451 *** libraries will work regardless of this problem. Nevertheless, you
15452 *** may want to report the problem to your system manager and/or to
15453 *** bug-libtool@gnu.org
15455 _LT_EOF
15456 fi ;;
15457 esac
15459 break
15461 done
15462 IFS="$lt_save_ifs"
15463 MAGIC_CMD="$lt_save_MAGIC_CMD"
15465 esac
15468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15469 if test -n "$MAGIC_CMD"; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15471 $as_echo "$MAGIC_CMD" >&6; }
15472 else
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15474 $as_echo "no" >&6; }
15478 else
15479 MAGIC_CMD=:
15485 esac
15487 # Use C for the default configuration in the libtool script
15489 lt_save_CC="$CC"
15490 ac_ext=c
15491 ac_cpp='$CPP $CPPFLAGS'
15492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15497 # Source file extension for C test sources.
15498 ac_ext=c
15500 # Object file extension for compiled C test sources.
15501 objext=o
15502 objext=$objext
15504 # Code to be used in simple compile tests
15505 lt_simple_compile_test_code="int some_variable = 0;"
15507 # Code to be used in simple link tests
15508 lt_simple_link_test_code='int main(){return(0);}'
15516 # If no C compiler was specified, use CC.
15517 LTCC=${LTCC-"$CC"}
15519 # If no C compiler flags were specified, use CFLAGS.
15520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15522 # Allow CC to be a program name with arguments.
15523 compiler=$CC
15525 # Save the default compiler, since it gets overwritten when the other
15526 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15527 compiler_DEFAULT=$CC
15529 # save warnings/boilerplate of simple test code
15530 ac_outfile=conftest.$ac_objext
15531 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15533 _lt_compiler_boilerplate=`cat conftest.err`
15534 $RM conftest*
15536 ac_outfile=conftest.$ac_objext
15537 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15539 _lt_linker_boilerplate=`cat conftest.err`
15540 $RM -r conftest*
15543 ## CAVEAT EMPTOR:
15544 ## There is no encapsulation within the following macros, do not change
15545 ## the running order or otherwise move them around unless you know exactly
15546 ## what you are doing...
15547 if test -n "$compiler"; then
15549 lt_prog_compiler_no_builtin_flag=
15551 if test "$GCC" = yes; then
15552 case $cc_basename in
15553 nvcc*)
15554 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15556 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15557 esac
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15560 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15561 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15562 $as_echo_n "(cached) " >&6
15563 else
15564 lt_cv_prog_compiler_rtti_exceptions=no
15565 ac_outfile=conftest.$ac_objext
15566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15567 lt_compiler_flag="-fno-rtti -fno-exceptions"
15568 # Insert the option either (1) after the last *FLAGS variable, or
15569 # (2) before a word containing "conftest.", or (3) at the end.
15570 # Note that $ac_compile itself does not contain backslashes and begins
15571 # with a dollar sign (not a hyphen), so the echo should work correctly.
15572 # The option is referenced via a variable to avoid confusing sed.
15573 lt_compile=`echo "$ac_compile" | $SED \
15574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15576 -e 's:$: $lt_compiler_flag:'`
15577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15578 (eval "$lt_compile" 2>conftest.err)
15579 ac_status=$?
15580 cat conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 if (exit $ac_status) && test -s "$ac_outfile"; then
15583 # The compiler can only warn and ignore the option if not recognized
15584 # So say no if there are warnings other than the usual output.
15585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15588 lt_cv_prog_compiler_rtti_exceptions=yes
15591 $RM conftest*
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15595 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15597 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15598 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15599 else
15610 lt_prog_compiler_wl=
15611 lt_prog_compiler_pic=
15612 lt_prog_compiler_static=
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15615 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15617 if test "$GCC" = yes; then
15618 lt_prog_compiler_wl='-Wl,'
15619 lt_prog_compiler_static='-static'
15621 case $host_os in
15622 aix*)
15623 # All AIX code is PIC.
15624 if test "$host_cpu" = ia64; then
15625 # AIX 5 now supports IA64 processor
15626 lt_prog_compiler_static='-Bstatic'
15628 lt_prog_compiler_pic='-fPIC'
15631 amigaos*)
15632 case $host_cpu in
15633 powerpc)
15634 # see comment about AmigaOS4 .so support
15635 lt_prog_compiler_pic='-fPIC'
15637 m68k)
15638 # FIXME: we need at least 68020 code to build shared libraries, but
15639 # adding the `-m68020' flag to GCC prevents building anything better,
15640 # like `-m68040'.
15641 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15643 esac
15646 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15647 # PIC is the default for these OSes.
15650 mingw* | cygwin* | pw32* | os2* | cegcc*)
15651 # This hack is so that the source file can tell whether it is being
15652 # built for inclusion in a dll (and should export symbols for example).
15653 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15654 # (--disable-auto-import) libraries
15655 lt_prog_compiler_pic='-DDLL_EXPORT'
15658 darwin* | rhapsody*)
15659 # PIC is the default on this platform
15660 # Common symbols not allowed in MH_DYLIB files
15661 lt_prog_compiler_pic='-fno-common'
15664 haiku*)
15665 # PIC is the default for Haiku.
15666 # The "-static" flag exists, but is broken.
15667 lt_prog_compiler_static=
15670 hpux*)
15671 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15672 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15673 # sets the default TLS model and affects inlining.
15674 case $host_cpu in
15675 hppa*64*)
15676 # +Z the default
15679 lt_prog_compiler_pic='-fPIC'
15681 esac
15684 interix[3-9]*)
15685 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15686 # Instead, we relocate shared libraries at runtime.
15689 msdosdjgpp*)
15690 # Just because we use GCC doesn't mean we suddenly get shared libraries
15691 # on systems that don't support them.
15692 lt_prog_compiler_can_build_shared=no
15693 enable_shared=no
15696 *nto* | *qnx*)
15697 # QNX uses GNU C++, but need to define -shared option too, otherwise
15698 # it will coredump.
15699 lt_prog_compiler_pic='-fPIC -shared'
15702 sysv4*MP*)
15703 if test -d /usr/nec; then
15704 lt_prog_compiler_pic=-Kconform_pic
15709 lt_prog_compiler_pic='-fPIC'
15711 esac
15713 case $cc_basename in
15714 nvcc*) # Cuda Compiler Driver 2.2
15715 lt_prog_compiler_wl='-Xlinker '
15716 lt_prog_compiler_pic='-Xcompiler -fPIC'
15718 esac
15719 else
15720 # PORTME Check for flag to pass linker flags through the system compiler.
15721 case $host_os in
15722 aix*)
15723 lt_prog_compiler_wl='-Wl,'
15724 if test "$host_cpu" = ia64; then
15725 # AIX 5 now supports IA64 processor
15726 lt_prog_compiler_static='-Bstatic'
15727 else
15728 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15732 mingw* | cygwin* | pw32* | os2* | cegcc*)
15733 # This hack is so that the source file can tell whether it is being
15734 # built for inclusion in a dll (and should export symbols for example).
15735 lt_prog_compiler_pic='-DDLL_EXPORT'
15738 hpux9* | hpux10* | hpux11*)
15739 lt_prog_compiler_wl='-Wl,'
15740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15741 # not for PA HP-UX.
15742 case $host_cpu in
15743 hppa*64*|ia64*)
15744 # +Z the default
15747 lt_prog_compiler_pic='+Z'
15749 esac
15750 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15751 lt_prog_compiler_static='${wl}-a ${wl}archive'
15754 irix5* | irix6* | nonstopux*)
15755 lt_prog_compiler_wl='-Wl,'
15756 # PIC (with -KPIC) is the default.
15757 lt_prog_compiler_static='-non_shared'
15760 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15761 case $cc_basename in
15762 # old Intel for x86_64 which still supported -KPIC.
15763 ecc*)
15764 lt_prog_compiler_wl='-Wl,'
15765 lt_prog_compiler_pic='-KPIC'
15766 lt_prog_compiler_static='-static'
15768 # icc used to be incompatible with GCC.
15769 # ICC 10 doesn't accept -KPIC any more.
15770 icc* | ifort*)
15771 lt_prog_compiler_wl='-Wl,'
15772 lt_prog_compiler_pic='-fPIC'
15773 lt_prog_compiler_static='-static'
15775 # Lahey Fortran 8.1.
15776 lf95*)
15777 lt_prog_compiler_wl='-Wl,'
15778 lt_prog_compiler_pic='--shared'
15779 lt_prog_compiler_static='--static'
15781 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15782 # Portland Group compilers (*not* the Pentium gcc compiler,
15783 # which looks to be a dead project)
15784 lt_prog_compiler_wl='-Wl,'
15785 lt_prog_compiler_pic='-fpic'
15786 lt_prog_compiler_static='-Bstatic'
15788 ccc*)
15789 lt_prog_compiler_wl='-Wl,'
15790 # All Alpha code is PIC.
15791 lt_prog_compiler_static='-non_shared'
15793 xl* | bgxl* | bgf* | mpixl*)
15794 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15795 lt_prog_compiler_wl='-Wl,'
15796 lt_prog_compiler_pic='-qpic'
15797 lt_prog_compiler_static='-qstaticlink'
15800 case `$CC -V 2>&1 | sed 5q` in
15801 *Sun\ F* | *Sun*Fortran*)
15802 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15803 lt_prog_compiler_pic='-KPIC'
15804 lt_prog_compiler_static='-Bstatic'
15805 lt_prog_compiler_wl=''
15807 *Sun\ C*)
15808 # Sun C 5.9
15809 lt_prog_compiler_pic='-KPIC'
15810 lt_prog_compiler_static='-Bstatic'
15811 lt_prog_compiler_wl='-Wl,'
15813 esac
15815 esac
15818 newsos6)
15819 lt_prog_compiler_pic='-KPIC'
15820 lt_prog_compiler_static='-Bstatic'
15823 *nto* | *qnx*)
15824 # QNX uses GNU C++, but need to define -shared option too, otherwise
15825 # it will coredump.
15826 lt_prog_compiler_pic='-fPIC -shared'
15829 osf3* | osf4* | osf5*)
15830 lt_prog_compiler_wl='-Wl,'
15831 # All OSF/1 code is PIC.
15832 lt_prog_compiler_static='-non_shared'
15835 rdos*)
15836 lt_prog_compiler_static='-non_shared'
15839 solaris*)
15840 lt_prog_compiler_pic='-KPIC'
15841 lt_prog_compiler_static='-Bstatic'
15842 case $cc_basename in
15843 f77* | f90* | f95*)
15844 lt_prog_compiler_wl='-Qoption ld ';;
15846 lt_prog_compiler_wl='-Wl,';;
15847 esac
15850 sunos4*)
15851 lt_prog_compiler_wl='-Qoption ld '
15852 lt_prog_compiler_pic='-PIC'
15853 lt_prog_compiler_static='-Bstatic'
15856 sysv4 | sysv4.2uw2* | sysv4.3*)
15857 lt_prog_compiler_wl='-Wl,'
15858 lt_prog_compiler_pic='-KPIC'
15859 lt_prog_compiler_static='-Bstatic'
15862 sysv4*MP*)
15863 if test -d /usr/nec ;then
15864 lt_prog_compiler_pic='-Kconform_pic'
15865 lt_prog_compiler_static='-Bstatic'
15869 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15870 lt_prog_compiler_wl='-Wl,'
15871 lt_prog_compiler_pic='-KPIC'
15872 lt_prog_compiler_static='-Bstatic'
15875 unicos*)
15876 lt_prog_compiler_wl='-Wl,'
15877 lt_prog_compiler_can_build_shared=no
15880 uts4*)
15881 lt_prog_compiler_pic='-pic'
15882 lt_prog_compiler_static='-Bstatic'
15886 lt_prog_compiler_can_build_shared=no
15888 esac
15891 case $host_os in
15892 # For platforms which do not support PIC, -DPIC is meaningless:
15893 *djgpp*)
15894 lt_prog_compiler_pic=
15897 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15899 esac
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15901 $as_echo "$lt_prog_compiler_pic" >&6; }
15909 # Check to make sure the PIC flag actually works.
15911 if test -n "$lt_prog_compiler_pic"; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15913 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15914 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15915 $as_echo_n "(cached) " >&6
15916 else
15917 lt_cv_prog_compiler_pic_works=no
15918 ac_outfile=conftest.$ac_objext
15919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15920 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15921 # Insert the option either (1) after the last *FLAGS variable, or
15922 # (2) before a word containing "conftest.", or (3) at the end.
15923 # Note that $ac_compile itself does not contain backslashes and begins
15924 # with a dollar sign (not a hyphen), so the echo should work correctly.
15925 # The option is referenced via a variable to avoid confusing sed.
15926 lt_compile=`echo "$ac_compile" | $SED \
15927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15929 -e 's:$: $lt_compiler_flag:'`
15930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15931 (eval "$lt_compile" 2>conftest.err)
15932 ac_status=$?
15933 cat conftest.err >&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 if (exit $ac_status) && test -s "$ac_outfile"; then
15936 # The compiler can only warn and ignore the option if not recognized
15937 # So say no if there are warnings other than the usual output.
15938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15941 lt_cv_prog_compiler_pic_works=yes
15944 $RM conftest*
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15948 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15950 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15951 case $lt_prog_compiler_pic in
15952 "" | " "*) ;;
15953 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15954 esac
15955 else
15956 lt_prog_compiler_pic=
15957 lt_prog_compiler_can_build_shared=no
15968 # Check to make sure the static flag actually works.
15970 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15972 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15973 if ${lt_cv_prog_compiler_static_works+:} false; then :
15974 $as_echo_n "(cached) " >&6
15975 else
15976 lt_cv_prog_compiler_static_works=no
15977 save_LDFLAGS="$LDFLAGS"
15978 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15979 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15981 # The linker can only warn and ignore the option if not recognized
15982 # So say no if there are warnings
15983 if test -s conftest.err; then
15984 # Append any errors to the config.log.
15985 cat conftest.err 1>&5
15986 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15988 if diff conftest.exp conftest.er2 >/dev/null; then
15989 lt_cv_prog_compiler_static_works=yes
15991 else
15992 lt_cv_prog_compiler_static_works=yes
15995 $RM -r conftest*
15996 LDFLAGS="$save_LDFLAGS"
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16000 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16002 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16004 else
16005 lt_prog_compiler_static=
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16015 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16016 if ${lt_cv_prog_compiler_c_o+:} false; then :
16017 $as_echo_n "(cached) " >&6
16018 else
16019 lt_cv_prog_compiler_c_o=no
16020 $RM -r conftest 2>/dev/null
16021 mkdir conftest
16022 cd conftest
16023 mkdir out
16024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16026 lt_compiler_flag="-o out/conftest2.$ac_objext"
16027 # Insert the option either (1) after the last *FLAGS variable, or
16028 # (2) before a word containing "conftest.", or (3) at the end.
16029 # Note that $ac_compile itself does not contain backslashes and begins
16030 # with a dollar sign (not a hyphen), so the echo should work correctly.
16031 lt_compile=`echo "$ac_compile" | $SED \
16032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16034 -e 's:$: $lt_compiler_flag:'`
16035 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16036 (eval "$lt_compile" 2>out/conftest.err)
16037 ac_status=$?
16038 cat out/conftest.err >&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16041 then
16042 # The compiler can only warn and ignore the option if not recognized
16043 # So say no if there are warnings
16044 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16045 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16046 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16047 lt_cv_prog_compiler_c_o=yes
16050 chmod u+w . 2>&5
16051 $RM conftest*
16052 # SGI C++ compiler will create directory out/ii_files/ for
16053 # template instantiation
16054 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16055 $RM out/* && rmdir out
16056 cd ..
16057 $RM -r conftest
16058 $RM conftest*
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16062 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16070 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16071 if ${lt_cv_prog_compiler_c_o+:} false; then :
16072 $as_echo_n "(cached) " >&6
16073 else
16074 lt_cv_prog_compiler_c_o=no
16075 $RM -r conftest 2>/dev/null
16076 mkdir conftest
16077 cd conftest
16078 mkdir out
16079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16081 lt_compiler_flag="-o out/conftest2.$ac_objext"
16082 # Insert the option either (1) after the last *FLAGS variable, or
16083 # (2) before a word containing "conftest.", or (3) at the end.
16084 # Note that $ac_compile itself does not contain backslashes and begins
16085 # with a dollar sign (not a hyphen), so the echo should work correctly.
16086 lt_compile=`echo "$ac_compile" | $SED \
16087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16089 -e 's:$: $lt_compiler_flag:'`
16090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16091 (eval "$lt_compile" 2>out/conftest.err)
16092 ac_status=$?
16093 cat out/conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16096 then
16097 # The compiler can only warn and ignore the option if not recognized
16098 # So say no if there are warnings
16099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16102 lt_cv_prog_compiler_c_o=yes
16105 chmod u+w . 2>&5
16106 $RM conftest*
16107 # SGI C++ compiler will create directory out/ii_files/ for
16108 # template instantiation
16109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16110 $RM out/* && rmdir out
16111 cd ..
16112 $RM -r conftest
16113 $RM conftest*
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16117 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16122 hard_links="nottested"
16123 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16124 # do not overwrite the value of need_locks provided by the user
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16126 $as_echo_n "checking if we can lock with hard links... " >&6; }
16127 hard_links=yes
16128 $RM conftest*
16129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16130 touch conftest.a
16131 ln conftest.a conftest.b 2>&5 || hard_links=no
16132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16134 $as_echo "$hard_links" >&6; }
16135 if test "$hard_links" = no; then
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16137 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16138 need_locks=warn
16140 else
16141 need_locks=no
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16152 runpath_var=
16153 allow_undefined_flag=
16154 always_export_symbols=no
16155 archive_cmds=
16156 archive_expsym_cmds=
16157 compiler_needs_object=no
16158 enable_shared_with_static_runtimes=no
16159 export_dynamic_flag_spec=
16160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16161 hardcode_automatic=no
16162 hardcode_direct=no
16163 hardcode_direct_absolute=no
16164 hardcode_libdir_flag_spec=
16165 hardcode_libdir_flag_spec_ld=
16166 hardcode_libdir_separator=
16167 hardcode_minus_L=no
16168 hardcode_shlibpath_var=unsupported
16169 inherit_rpath=no
16170 link_all_deplibs=unknown
16171 module_cmds=
16172 module_expsym_cmds=
16173 old_archive_from_new_cmds=
16174 old_archive_from_expsyms_cmds=
16175 thread_safe_flag_spec=
16176 whole_archive_flag_spec=
16177 # include_expsyms should be a list of space-separated symbols to be *always*
16178 # included in the symbol list
16179 include_expsyms=
16180 # exclude_expsyms can be an extended regexp of symbols to exclude
16181 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16182 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16183 # as well as any symbol that contains `d'.
16184 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16185 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16186 # platforms (ab)use it in PIC code, but their linkers get confused if
16187 # the symbol is explicitly referenced. Since portable code cannot
16188 # rely on this symbol name, it's probably fine to never include it in
16189 # preloaded symbol tables.
16190 # Exclude shared library initialization/finalization symbols.
16191 extract_expsyms_cmds=
16193 case $host_os in
16194 cygwin* | mingw* | pw32* | cegcc*)
16195 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16196 # When not using gcc, we currently assume that we are using
16197 # Microsoft Visual C++.
16198 if test "$GCC" != yes; then
16199 with_gnu_ld=no
16202 interix*)
16203 # we just hope/assume this is gcc and not c89 (= MSVC++)
16204 with_gnu_ld=yes
16206 openbsd*)
16207 with_gnu_ld=no
16209 esac
16211 ld_shlibs=yes
16213 # On some targets, GNU ld is compatible enough with the native linker
16214 # that we're better off using the native interface for both.
16215 lt_use_gnu_ld_interface=no
16216 if test "$with_gnu_ld" = yes; then
16217 case $host_os in
16218 aix*)
16219 # The AIX port of GNU ld has always aspired to compatibility
16220 # with the native linker. However, as the warning in the GNU ld
16221 # block says, versions before 2.19.5* couldn't really create working
16222 # shared libraries, regardless of the interface used.
16223 case `$LD -v 2>&1` in
16224 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16225 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16226 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16228 lt_use_gnu_ld_interface=yes
16230 esac
16233 lt_use_gnu_ld_interface=yes
16235 esac
16238 if test "$lt_use_gnu_ld_interface" = yes; then
16239 # If archive_cmds runs LD, not CC, wlarc should be empty
16240 wlarc='${wl}'
16242 # Set some defaults for GNU ld with shared library support. These
16243 # are reset later if shared libraries are not supported. Putting them
16244 # here allows them to be overridden if necessary.
16245 runpath_var=LD_RUN_PATH
16246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16247 export_dynamic_flag_spec='${wl}--export-dynamic'
16248 # ancient GNU ld didn't support --whole-archive et. al.
16249 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16250 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16251 else
16252 whole_archive_flag_spec=
16254 supports_anon_versioning=no
16255 case `$LD -v 2>&1` in
16256 *GNU\ gold*) supports_anon_versioning=yes ;;
16257 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16258 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16259 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16260 *\ 2.11.*) ;; # other 2.11 versions
16261 *) supports_anon_versioning=yes ;;
16262 esac
16264 # See if GNU ld supports shared libraries.
16265 case $host_os in
16266 aix[3-9]*)
16267 # On AIX/PPC, the GNU linker is very broken
16268 if test "$host_cpu" != ia64; then
16269 ld_shlibs=no
16270 cat <<_LT_EOF 1>&2
16272 *** Warning: the GNU linker, at least up to release 2.19, is reported
16273 *** to be unable to reliably create shared libraries on AIX.
16274 *** Therefore, libtool is disabling shared libraries support. If you
16275 *** really care for shared libraries, you may want to install binutils
16276 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16277 *** You will then need to restart the configuration process.
16279 _LT_EOF
16283 amigaos*)
16284 case $host_cpu in
16285 powerpc)
16286 # see comment about AmigaOS4 .so support
16287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16288 archive_expsym_cmds=''
16290 m68k)
16291 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)'
16292 hardcode_libdir_flag_spec='-L$libdir'
16293 hardcode_minus_L=yes
16295 esac
16298 beos*)
16299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16300 allow_undefined_flag=unsupported
16301 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16302 # support --undefined. This deserves some investigation. FIXME
16303 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16304 else
16305 ld_shlibs=no
16309 cygwin* | mingw* | pw32* | cegcc*)
16310 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16311 # as there is no search path for DLLs.
16312 hardcode_libdir_flag_spec='-L$libdir'
16313 export_dynamic_flag_spec='${wl}--export-all-symbols'
16314 allow_undefined_flag=unsupported
16315 always_export_symbols=no
16316 enable_shared_with_static_runtimes=yes
16317 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16319 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16321 # If the export-symbols file already is a .def file (1st line
16322 # is EXPORTS), use it as is; otherwise, prepend...
16323 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16324 cp $export_symbols $output_objdir/$soname.def;
16325 else
16326 echo EXPORTS > $output_objdir/$soname.def;
16327 cat $export_symbols >> $output_objdir/$soname.def;
16329 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16330 else
16331 ld_shlibs=no
16335 haiku*)
16336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16337 link_all_deplibs=yes
16340 interix[3-9]*)
16341 hardcode_direct=no
16342 hardcode_shlibpath_var=no
16343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16344 export_dynamic_flag_spec='${wl}-E'
16345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16346 # Instead, shared libraries are loaded at an image base (0x10000000 by
16347 # default) and relocated if they conflict, which is a slow very memory
16348 # consuming and fragmenting process. To avoid this, we pick a random,
16349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16350 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16351 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16352 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'
16355 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16356 tmp_diet=no
16357 if test "$host_os" = linux-dietlibc; then
16358 case $cc_basename in
16359 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16360 esac
16362 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16363 && test "$tmp_diet" = no
16364 then
16365 tmp_addflag=' $pic_flag'
16366 tmp_sharedflag='-shared'
16367 case $cc_basename,$host_cpu in
16368 pgcc*) # Portland Group C compiler
16369 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'
16370 tmp_addflag=' $pic_flag'
16372 pgf77* | pgf90* | pgf95* | pgfortran*)
16373 # Portland Group f77 and f90 compilers
16374 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'
16375 tmp_addflag=' $pic_flag -Mnomain' ;;
16376 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16377 tmp_addflag=' -i_dynamic' ;;
16378 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16379 tmp_addflag=' -i_dynamic -nofor_main' ;;
16380 ifc* | ifort*) # Intel Fortran compiler
16381 tmp_addflag=' -nofor_main' ;;
16382 lf95*) # Lahey Fortran 8.1
16383 whole_archive_flag_spec=
16384 tmp_sharedflag='--shared' ;;
16385 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16386 tmp_sharedflag='-qmkshrobj'
16387 tmp_addflag= ;;
16388 nvcc*) # Cuda Compiler Driver 2.2
16389 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'
16390 compiler_needs_object=yes
16392 esac
16393 case `$CC -V 2>&1 | sed 5q` in
16394 *Sun\ C*) # Sun C 5.9
16395 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'
16396 compiler_needs_object=yes
16397 tmp_sharedflag='-G' ;;
16398 *Sun\ F*) # Sun Fortran 8.3
16399 tmp_sharedflag='-G' ;;
16400 esac
16401 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16403 if test "x$supports_anon_versioning" = xyes; then
16404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16406 echo "local: *; };" >> $output_objdir/$libname.ver~
16407 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16410 case $cc_basename in
16411 xlf* | bgf* | bgxlf* | mpixlf*)
16412 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16413 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16414 hardcode_libdir_flag_spec=
16415 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16416 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16417 if test "x$supports_anon_versioning" = xyes; then
16418 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16420 echo "local: *; };" >> $output_objdir/$libname.ver~
16421 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16424 esac
16425 else
16426 ld_shlibs=no
16430 netbsd*)
16431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16432 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16433 wlarc=
16434 else
16435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16440 solaris*)
16441 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16442 ld_shlibs=no
16443 cat <<_LT_EOF 1>&2
16445 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16446 *** create shared libraries on Solaris systems. Therefore, libtool
16447 *** is disabling shared libraries support. We urge you to upgrade GNU
16448 *** binutils to release 2.9.1 or newer. Another option is to modify
16449 *** your PATH or compiler configuration so that the native linker is
16450 *** used, and then restart.
16452 _LT_EOF
16453 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16455 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16456 else
16457 ld_shlibs=no
16461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16462 case `$LD -v 2>&1` in
16463 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16464 ld_shlibs=no
16465 cat <<_LT_EOF 1>&2
16467 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16468 *** reliably create shared libraries on SCO systems. Therefore, libtool
16469 *** is disabling shared libraries support. We urge you to upgrade GNU
16470 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16471 *** your PATH or compiler configuration so that the native linker is
16472 *** used, and then restart.
16474 _LT_EOF
16477 # For security reasons, it is highly recommended that you always
16478 # use absolute paths for naming shared libraries, and exclude the
16479 # DT_RUNPATH tag from executables and libraries. But doing so
16480 # requires that you compile everything twice, which is a pain.
16481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16485 else
16486 ld_shlibs=no
16489 esac
16492 sunos4*)
16493 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16494 wlarc=
16495 hardcode_direct=yes
16496 hardcode_shlibpath_var=no
16500 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16503 else
16504 ld_shlibs=no
16507 esac
16509 if test "$ld_shlibs" = no; then
16510 runpath_var=
16511 hardcode_libdir_flag_spec=
16512 export_dynamic_flag_spec=
16513 whole_archive_flag_spec=
16515 else
16516 # PORTME fill in a description of your system's linker (not GNU ld)
16517 case $host_os in
16518 aix3*)
16519 allow_undefined_flag=unsupported
16520 always_export_symbols=yes
16521 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'
16522 # Note: this linker hardcodes the directories in LIBPATH if there
16523 # are no directories specified by -L.
16524 hardcode_minus_L=yes
16525 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16526 # Neither direct hardcoding nor static linking is supported with a
16527 # broken collect2.
16528 hardcode_direct=unsupported
16532 aix[4-9]*)
16533 if test "$host_cpu" = ia64; then
16534 # On IA64, the linker does run time linking by default, so we don't
16535 # have to do anything special.
16536 aix_use_runtimelinking=no
16537 exp_sym_flag='-Bexport'
16538 no_entry_flag=""
16539 else
16540 # If we're using GNU nm, then we don't want the "-C" option.
16541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16542 # Also, AIX nm treats weak defined symbols like other global
16543 # defined symbols, whereas GNU nm marks them as "W".
16544 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16545 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'
16546 else
16547 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'
16549 aix_use_runtimelinking=no
16551 # Test if we are trying to use run time linking or normal
16552 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16553 # need to do runtime linking.
16554 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16555 for ld_flag in $LDFLAGS; do
16556 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16557 aix_use_runtimelinking=yes
16558 break
16560 done
16562 esac
16564 exp_sym_flag='-bexport'
16565 no_entry_flag='-bnoentry'
16568 # When large executables or shared objects are built, AIX ld can
16569 # have problems creating the table of contents. If linking a library
16570 # or program results in "error TOC overflow" add -mminimal-toc to
16571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16574 archive_cmds=''
16575 hardcode_direct=yes
16576 hardcode_direct_absolute=yes
16577 hardcode_libdir_separator=':'
16578 link_all_deplibs=yes
16579 file_list_spec='${wl}-f,'
16581 if test "$GCC" = yes; then
16582 case $host_os in aix4.[012]|aix4.[012].*)
16583 # We only want to do this on AIX 4.2 and lower, the check
16584 # below for broken collect2 doesn't work under 4.3+
16585 collect2name=`${CC} -print-prog-name=collect2`
16586 if test -f "$collect2name" &&
16587 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16588 then
16589 # We have reworked collect2
16591 else
16592 # We have old collect2
16593 hardcode_direct=unsupported
16594 # It fails to find uninstalled libraries when the uninstalled
16595 # path is not listed in the libpath. Setting hardcode_minus_L
16596 # to unsupported forces relinking
16597 hardcode_minus_L=yes
16598 hardcode_libdir_flag_spec='-L$libdir'
16599 hardcode_libdir_separator=
16602 esac
16603 shared_flag='-shared'
16604 if test "$aix_use_runtimelinking" = yes; then
16605 shared_flag="$shared_flag "'${wl}-G'
16607 else
16608 # not using gcc
16609 if test "$host_cpu" = ia64; then
16610 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16611 # chokes on -Wl,-G. The following line is correct:
16612 shared_flag='-G'
16613 else
16614 if test "$aix_use_runtimelinking" = yes; then
16615 shared_flag='${wl}-G'
16616 else
16617 shared_flag='${wl}-bM:SRE'
16622 export_dynamic_flag_spec='${wl}-bexpall'
16623 # It seems that -bexpall does not export symbols beginning with
16624 # underscore (_), so it is better to generate a list of symbols to export.
16625 always_export_symbols=yes
16626 if test "$aix_use_runtimelinking" = yes; then
16627 # Warning - without using the other runtime loading flags (-brtl),
16628 # -berok will link without error, but may produce a broken library.
16629 allow_undefined_flag='-berok'
16630 # Determine the default libpath from the value encoded in an
16631 # empty executable.
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16636 main ()
16640 return 0;
16642 _ACEOF
16643 if ac_fn_c_try_link "$LINENO"; then :
16645 lt_aix_libpath_sed='
16646 /Import File Strings/,/^$/ {
16647 /^0/ {
16648 s/^0 *\(.*\)$/\1/
16652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16653 # Check for a 64-bit object if we didn't find anything.
16654 if test -z "$aix_libpath"; then
16655 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16658 rm -f core conftest.err conftest.$ac_objext \
16659 conftest$ac_exeext conftest.$ac_ext
16660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16663 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"
16664 else
16665 if test "$host_cpu" = ia64; then
16666 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16667 allow_undefined_flag="-z nodefs"
16668 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"
16669 else
16670 # Determine the default libpath from the value encoded in an
16671 # empty executable.
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16676 main ()
16680 return 0;
16682 _ACEOF
16683 if ac_fn_c_try_link "$LINENO"; then :
16685 lt_aix_libpath_sed='
16686 /Import File Strings/,/^$/ {
16687 /^0/ {
16688 s/^0 *\(.*\)$/\1/
16692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16693 # Check for a 64-bit object if we didn't find anything.
16694 if test -z "$aix_libpath"; then
16695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16698 rm -f core conftest.err conftest.$ac_objext \
16699 conftest$ac_exeext conftest.$ac_ext
16700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16702 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16703 # Warning - without using the other run time loading flags,
16704 # -berok will link without error, but may produce a broken library.
16705 no_undefined_flag=' ${wl}-bernotok'
16706 allow_undefined_flag=' ${wl}-berok'
16707 if test "$with_gnu_ld" = yes; then
16708 # We only use this code for GNU lds that support --whole-archive.
16709 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16710 else
16711 # Exported symbols can be pulled into shared objects from archives
16712 whole_archive_flag_spec='$convenience'
16714 archive_cmds_need_lc=yes
16715 # This is similar to how AIX traditionally builds its shared libraries.
16716 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'
16721 amigaos*)
16722 case $host_cpu in
16723 powerpc)
16724 # see comment about AmigaOS4 .so support
16725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16726 archive_expsym_cmds=''
16728 m68k)
16729 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)'
16730 hardcode_libdir_flag_spec='-L$libdir'
16731 hardcode_minus_L=yes
16733 esac
16736 bsdi[45]*)
16737 export_dynamic_flag_spec=-rdynamic
16740 cygwin* | mingw* | pw32* | cegcc*)
16741 # When not using gcc, we currently assume that we are using
16742 # Microsoft Visual C++.
16743 # hardcode_libdir_flag_spec is actually meaningless, as there is
16744 # no search path for DLLs.
16745 hardcode_libdir_flag_spec=' '
16746 allow_undefined_flag=unsupported
16747 # Tell ltmain to make .lib files, not .a files.
16748 libext=lib
16749 # Tell ltmain to make .dll files, not .so files.
16750 shrext_cmds=".dll"
16751 # FIXME: Setting linknames here is a bad hack.
16752 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16753 # The linker will automatically build a .lib file if we build a DLL.
16754 old_archive_from_new_cmds='true'
16755 # FIXME: Should let the user specify the lib program.
16756 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16757 fix_srcfile_path='`cygpath -w "$srcfile"`'
16758 enable_shared_with_static_runtimes=yes
16761 darwin* | rhapsody*)
16764 archive_cmds_need_lc=no
16765 hardcode_direct=no
16766 hardcode_automatic=yes
16767 hardcode_shlibpath_var=unsupported
16768 if test "$lt_cv_ld_force_load" = "yes"; then
16769 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\"`'
16770 else
16771 whole_archive_flag_spec=''
16773 link_all_deplibs=yes
16774 allow_undefined_flag="$_lt_dar_allow_undefined"
16775 case $cc_basename in
16776 ifort*) _lt_dar_can_shared=yes ;;
16777 *) _lt_dar_can_shared=$GCC ;;
16778 esac
16779 if test "$_lt_dar_can_shared" = "yes"; then
16780 output_verbose_link_cmd=func_echo_all
16781 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16782 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16783 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}"
16784 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}"
16786 else
16787 ld_shlibs=no
16792 dgux*)
16793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794 hardcode_libdir_flag_spec='-L$libdir'
16795 hardcode_shlibpath_var=no
16798 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16799 # support. Future versions do this automatically, but an explicit c++rt0.o
16800 # does not break anything, and helps significantly (at the cost of a little
16801 # extra space).
16802 freebsd2.2*)
16803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16804 hardcode_libdir_flag_spec='-R$libdir'
16805 hardcode_direct=yes
16806 hardcode_shlibpath_var=no
16809 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16810 freebsd2.*)
16811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16812 hardcode_direct=yes
16813 hardcode_minus_L=yes
16814 hardcode_shlibpath_var=no
16817 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16818 freebsd* | dragonfly*)
16819 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16820 hardcode_libdir_flag_spec='-R$libdir'
16821 hardcode_direct=yes
16822 hardcode_shlibpath_var=no
16825 hpux9*)
16826 if test "$GCC" = yes; then
16827 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'
16828 else
16829 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'
16831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16832 hardcode_libdir_separator=:
16833 hardcode_direct=yes
16835 # hardcode_minus_L: Not really in the search PATH,
16836 # but as the default location of the library.
16837 hardcode_minus_L=yes
16838 export_dynamic_flag_spec='${wl}-E'
16841 hpux10*)
16842 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16843 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16844 else
16845 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16847 if test "$with_gnu_ld" = no; then
16848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16849 hardcode_libdir_flag_spec_ld='+b $libdir'
16850 hardcode_libdir_separator=:
16851 hardcode_direct=yes
16852 hardcode_direct_absolute=yes
16853 export_dynamic_flag_spec='${wl}-E'
16854 # hardcode_minus_L: Not really in the search PATH,
16855 # but as the default location of the library.
16856 hardcode_minus_L=yes
16860 hpux11*)
16861 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16862 case $host_cpu in
16863 hppa*64*)
16864 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16866 ia64*)
16867 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16870 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16872 esac
16873 else
16874 case $host_cpu in
16875 hppa*64*)
16876 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16878 ia64*)
16879 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16883 # Older versions of the 11.00 compiler do not understand -b yet
16884 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16886 $as_echo_n "checking if $CC understands -b... " >&6; }
16887 if ${lt_cv_prog_compiler__b+:} false; then :
16888 $as_echo_n "(cached) " >&6
16889 else
16890 lt_cv_prog_compiler__b=no
16891 save_LDFLAGS="$LDFLAGS"
16892 LDFLAGS="$LDFLAGS -b"
16893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16895 # The linker can only warn and ignore the option if not recognized
16896 # So say no if there are warnings
16897 if test -s conftest.err; then
16898 # Append any errors to the config.log.
16899 cat conftest.err 1>&5
16900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16902 if diff conftest.exp conftest.er2 >/dev/null; then
16903 lt_cv_prog_compiler__b=yes
16905 else
16906 lt_cv_prog_compiler__b=yes
16909 $RM -r conftest*
16910 LDFLAGS="$save_LDFLAGS"
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16914 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16916 if test x"$lt_cv_prog_compiler__b" = xyes; then
16917 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16918 else
16919 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16923 esac
16925 if test "$with_gnu_ld" = no; then
16926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16927 hardcode_libdir_separator=:
16929 case $host_cpu in
16930 hppa*64*|ia64*)
16931 hardcode_direct=no
16932 hardcode_shlibpath_var=no
16935 hardcode_direct=yes
16936 hardcode_direct_absolute=yes
16937 export_dynamic_flag_spec='${wl}-E'
16939 # hardcode_minus_L: Not really in the search PATH,
16940 # but as the default location of the library.
16941 hardcode_minus_L=yes
16943 esac
16947 irix5* | irix6* | nonstopux*)
16948 if test "$GCC" = yes; then
16949 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'
16950 # Try to use the -exported_symbol ld option, if it does not
16951 # work, assume that -exports_file does not work either and
16952 # implicitly export all symbols.
16953 save_LDFLAGS="$LDFLAGS"
16954 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 int foo(void) {}
16958 _ACEOF
16959 if ac_fn_c_try_link "$LINENO"; then :
16960 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'
16963 rm -f core conftest.err conftest.$ac_objext \
16964 conftest$ac_exeext conftest.$ac_ext
16965 LDFLAGS="$save_LDFLAGS"
16966 else
16967 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'
16968 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'
16970 archive_cmds_need_lc='no'
16971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16972 hardcode_libdir_separator=:
16973 inherit_rpath=yes
16974 link_all_deplibs=yes
16977 netbsd*)
16978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16980 else
16981 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16983 hardcode_libdir_flag_spec='-R$libdir'
16984 hardcode_direct=yes
16985 hardcode_shlibpath_var=no
16988 newsos6)
16989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16990 hardcode_direct=yes
16991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16992 hardcode_libdir_separator=:
16993 hardcode_shlibpath_var=no
16996 *nto* | *qnx*)
16999 openbsd*)
17000 if test -f /usr/libexec/ld.so; then
17001 hardcode_direct=yes
17002 hardcode_shlibpath_var=no
17003 hardcode_direct_absolute=yes
17004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17006 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17008 export_dynamic_flag_spec='${wl}-E'
17009 else
17010 case $host_os in
17011 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_libdir_flag_spec='-R$libdir'
17016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17019 esac
17021 else
17022 ld_shlibs=no
17026 os2*)
17027 hardcode_libdir_flag_spec='-L$libdir'
17028 hardcode_minus_L=yes
17029 allow_undefined_flag=unsupported
17030 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'
17031 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17034 osf3*)
17035 if test "$GCC" = yes; then
17036 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17037 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'
17038 else
17039 allow_undefined_flag=' -expect_unresolved \*'
17040 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'
17042 archive_cmds_need_lc='no'
17043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17044 hardcode_libdir_separator=:
17047 osf4* | osf5*) # as osf3* with the addition of -msym flag
17048 if test "$GCC" = yes; then
17049 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17050 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'
17051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17052 else
17053 allow_undefined_flag=' -expect_unresolved \*'
17054 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'
17055 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~
17056 $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'
17058 # Both c and cxx compiler support -rpath directly
17059 hardcode_libdir_flag_spec='-rpath $libdir'
17061 archive_cmds_need_lc='no'
17062 hardcode_libdir_separator=:
17065 solaris*)
17066 no_undefined_flag=' -z defs'
17067 if test "$GCC" = yes; then
17068 wlarc='${wl}'
17069 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17071 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17072 else
17073 case `$CC -V 2>&1` in
17074 *"Compilers 5.0"*)
17075 wlarc=''
17076 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17077 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17078 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17081 wlarc='${wl}'
17082 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17084 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17086 esac
17088 hardcode_libdir_flag_spec='-R$libdir'
17089 hardcode_shlibpath_var=no
17090 case $host_os in
17091 solaris2.[0-5] | solaris2.[0-5].*) ;;
17093 # The compiler driver will combine and reorder linker options,
17094 # but understands `-z linker_flag'. GCC discards it without `$wl',
17095 # but is careful enough not to reorder.
17096 # Supported since Solaris 2.6 (maybe 2.5.1?)
17097 if test "$GCC" = yes; then
17098 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17099 else
17100 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17103 esac
17104 link_all_deplibs=yes
17107 sunos4*)
17108 if test "x$host_vendor" = xsequent; then
17109 # Use $CC to link under sequent, because it throws in some extra .o
17110 # files that make .init and .fini sections work.
17111 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17112 else
17113 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17115 hardcode_libdir_flag_spec='-L$libdir'
17116 hardcode_direct=yes
17117 hardcode_minus_L=yes
17118 hardcode_shlibpath_var=no
17121 sysv4)
17122 case $host_vendor in
17123 sni)
17124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17125 hardcode_direct=yes # is this really true???
17127 siemens)
17128 ## LD is ld it makes a PLAMLIB
17129 ## CC just makes a GrossModule.
17130 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17131 reload_cmds='$CC -r -o $output$reload_objs'
17132 hardcode_direct=no
17134 motorola)
17135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17136 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17138 esac
17139 runpath_var='LD_RUN_PATH'
17140 hardcode_shlibpath_var=no
17143 sysv4.3*)
17144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17145 hardcode_shlibpath_var=no
17146 export_dynamic_flag_spec='-Bexport'
17149 sysv4*MP*)
17150 if test -d /usr/nec; then
17151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17152 hardcode_shlibpath_var=no
17153 runpath_var=LD_RUN_PATH
17154 hardcode_runpath_var=yes
17155 ld_shlibs=yes
17159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17160 no_undefined_flag='${wl}-z,text'
17161 archive_cmds_need_lc=no
17162 hardcode_shlibpath_var=no
17163 runpath_var='LD_RUN_PATH'
17165 if test "$GCC" = yes; then
17166 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17167 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17168 else
17169 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17170 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17174 sysv5* | sco3.2v5* | sco5v6*)
17175 # Note: We can NOT use -z defs as we might desire, because we do not
17176 # link with -lc, and that would cause any symbols used from libc to
17177 # always be unresolved, which means just about no library would
17178 # ever link correctly. If we're not using GNU ld we use -z text
17179 # though, which does catch some bad symbols but isn't as heavy-handed
17180 # as -z defs.
17181 no_undefined_flag='${wl}-z,text'
17182 allow_undefined_flag='${wl}-z,nodefs'
17183 archive_cmds_need_lc=no
17184 hardcode_shlibpath_var=no
17185 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17186 hardcode_libdir_separator=':'
17187 link_all_deplibs=yes
17188 export_dynamic_flag_spec='${wl}-Bexport'
17189 runpath_var='LD_RUN_PATH'
17191 if test "$GCC" = yes; then
17192 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17193 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17194 else
17195 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17196 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17200 uts4*)
17201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17202 hardcode_libdir_flag_spec='-L$libdir'
17203 hardcode_shlibpath_var=no
17207 ld_shlibs=no
17209 esac
17211 if test x$host_vendor = xsni; then
17212 case $host in
17213 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17214 export_dynamic_flag_spec='${wl}-Blargedynsym'
17216 esac
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17221 $as_echo "$ld_shlibs" >&6; }
17222 test "$ld_shlibs" = no && can_build_shared=no
17224 with_gnu_ld=$with_gnu_ld
17241 # Do we need to explicitly link libc?
17243 case "x$archive_cmds_need_lc" in
17244 x|xyes)
17245 # Assume -lc should be added
17246 archive_cmds_need_lc=yes
17248 if test "$enable_shared" = yes && test "$GCC" = yes; then
17249 case $archive_cmds in
17250 *'~'*)
17251 # FIXME: we may have to deal with multi-command sequences.
17253 '$CC '*)
17254 # Test whether the compiler implicitly links with -lc since on some
17255 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17256 # to ld, don't add -lc before -lgcc.
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17258 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17259 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17260 $as_echo_n "(cached) " >&6
17261 else
17262 $RM conftest*
17263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17266 (eval $ac_compile) 2>&5
17267 ac_status=$?
17268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17269 test $ac_status = 0; } 2>conftest.err; then
17270 soname=conftest
17271 lib=conftest
17272 libobjs=conftest.$ac_objext
17273 deplibs=
17274 wl=$lt_prog_compiler_wl
17275 pic_flag=$lt_prog_compiler_pic
17276 compiler_flags=-v
17277 linker_flags=-v
17278 verstring=
17279 output_objdir=.
17280 libname=conftest
17281 lt_save_allow_undefined_flag=$allow_undefined_flag
17282 allow_undefined_flag=
17283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17284 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17285 ac_status=$?
17286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17287 test $ac_status = 0; }
17288 then
17289 lt_cv_archive_cmds_need_lc=no
17290 else
17291 lt_cv_archive_cmds_need_lc=yes
17293 allow_undefined_flag=$lt_save_allow_undefined_flag
17294 else
17295 cat conftest.err 1>&5
17297 $RM conftest*
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17301 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17302 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17304 esac
17307 esac
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17466 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17468 if test "$GCC" = yes; then
17469 case $host_os in
17470 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17471 *) lt_awk_arg="/^libraries:/" ;;
17472 esac
17473 case $host_os in
17474 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17475 *) lt_sed_strip_eq="s,=/,/,g" ;;
17476 esac
17477 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17478 case $lt_search_path_spec in
17479 *\;*)
17480 # if the path contains ";" then we assume it to be the separator
17481 # otherwise default to the standard path separator (i.e. ":") - it is
17482 # assumed that no part of a normal pathname contains ";" but that should
17483 # okay in the real world where ";" in dirpaths is itself problematic.
17484 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17487 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17489 esac
17490 # Ok, now we have the path, separated by spaces, we can step through it
17491 # and add multilib dir if necessary.
17492 lt_tmp_lt_search_path_spec=
17493 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17494 for lt_sys_path in $lt_search_path_spec; do
17495 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17496 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17497 else
17498 test -d "$lt_sys_path" && \
17499 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17501 done
17502 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17503 BEGIN {RS=" "; FS="/|\n";} {
17504 lt_foo="";
17505 lt_count=0;
17506 for (lt_i = NF; lt_i > 0; lt_i--) {
17507 if ($lt_i != "" && $lt_i != ".") {
17508 if ($lt_i == "..") {
17509 lt_count++;
17510 } else {
17511 if (lt_count == 0) {
17512 lt_foo="/" $lt_i lt_foo;
17513 } else {
17514 lt_count--;
17519 if (lt_foo != "") { lt_freq[lt_foo]++; }
17520 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17522 # AWK program above erroneously prepends '/' to C:/dos/paths
17523 # for these hosts.
17524 case $host_os in
17525 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17526 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17527 esac
17528 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17529 else
17530 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17532 library_names_spec=
17533 libname_spec='lib$name'
17534 soname_spec=
17535 shrext_cmds=".so"
17536 postinstall_cmds=
17537 postuninstall_cmds=
17538 finish_cmds=
17539 finish_eval=
17540 shlibpath_var=
17541 shlibpath_overrides_runpath=unknown
17542 version_type=none
17543 dynamic_linker="$host_os ld.so"
17544 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17545 need_lib_prefix=unknown
17546 hardcode_into_libs=no
17548 # when you set need_version to no, make sure it does not cause -set_version
17549 # flags to be left without arguments
17550 need_version=unknown
17552 case $host_os in
17553 aix3*)
17554 version_type=linux
17555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17556 shlibpath_var=LIBPATH
17558 # AIX 3 has no versioning support, so we append a major version to the name.
17559 soname_spec='${libname}${release}${shared_ext}$major'
17562 aix[4-9]*)
17563 version_type=linux
17564 need_lib_prefix=no
17565 need_version=no
17566 hardcode_into_libs=yes
17567 if test "$host_cpu" = ia64; then
17568 # AIX 5 supports IA64
17569 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17570 shlibpath_var=LD_LIBRARY_PATH
17571 else
17572 # With GCC up to 2.95.x, collect2 would create an import file
17573 # for dependence libraries. The import file would start with
17574 # the line `#! .'. This would cause the generated library to
17575 # depend on `.', always an invalid library. This was fixed in
17576 # development snapshots of GCC prior to 3.0.
17577 case $host_os in
17578 aix4 | aix4.[01] | aix4.[01].*)
17579 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17580 echo ' yes '
17581 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17583 else
17584 can_build_shared=no
17587 esac
17588 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17589 # soname into executable. Probably we can add versioning support to
17590 # collect2, so additional links can be useful in future.
17591 if test "$aix_use_runtimelinking" = yes; then
17592 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17593 # instead of lib<name>.a to let people know that these are not
17594 # typical AIX shared libraries.
17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596 else
17597 # We preserve .a as extension for shared libraries through AIX4.2
17598 # and later when we are not doing run time linking.
17599 library_names_spec='${libname}${release}.a $libname.a'
17600 soname_spec='${libname}${release}${shared_ext}$major'
17602 shlibpath_var=LIBPATH
17606 amigaos*)
17607 case $host_cpu in
17608 powerpc)
17609 # Since July 2007 AmigaOS4 officially supports .so libraries.
17610 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17613 m68k)
17614 library_names_spec='$libname.ixlibrary $libname.a'
17615 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17616 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'
17618 esac
17621 beos*)
17622 library_names_spec='${libname}${shared_ext}'
17623 dynamic_linker="$host_os ld.so"
17624 shlibpath_var=LIBRARY_PATH
17627 bsdi[45]*)
17628 version_type=linux
17629 need_version=no
17630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17631 soname_spec='${libname}${release}${shared_ext}$major'
17632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17633 shlibpath_var=LD_LIBRARY_PATH
17634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17636 # the default ld.so.conf also contains /usr/contrib/lib and
17637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17638 # libtool to hard-code these into programs
17641 cygwin* | mingw* | pw32* | cegcc*)
17642 version_type=windows
17643 shrext_cmds=".dll"
17644 need_version=no
17645 need_lib_prefix=no
17647 case $GCC,$host_os in
17648 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17649 library_names_spec='$libname.dll.a'
17650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17651 postinstall_cmds='base_file=`basename \${file}`~
17652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17653 dldir=$destdir/`dirname \$dlpath`~
17654 test -d \$dldir || mkdir -p \$dldir~
17655 $install_prog $dir/$dlname \$dldir/$dlname~
17656 chmod a+x \$dldir/$dlname~
17657 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17658 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17661 dlpath=$dir/\$dldll~
17662 $RM \$dlpath'
17663 shlibpath_overrides_runpath=yes
17665 case $host_os in
17666 cygwin*)
17667 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17668 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17670 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17672 mingw* | cegcc*)
17673 # MinGW DLLs use traditional 'lib' prefix
17674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17676 pw32*)
17677 # pw32 DLLs use 'pw' prefix rather than 'lib'
17678 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17680 esac
17684 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17686 esac
17687 dynamic_linker='Win32 ld.exe'
17688 # FIXME: first we should search . and the directory the executable is in
17689 shlibpath_var=PATH
17692 darwin* | rhapsody*)
17693 dynamic_linker="$host_os dyld"
17694 version_type=darwin
17695 need_lib_prefix=no
17696 need_version=no
17697 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17698 soname_spec='${libname}${release}${major}$shared_ext'
17699 shlibpath_overrides_runpath=yes
17700 shlibpath_var=DYLD_LIBRARY_PATH
17701 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17703 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17707 dgux*)
17708 version_type=linux
17709 need_lib_prefix=no
17710 need_version=no
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17712 soname_spec='${libname}${release}${shared_ext}$major'
17713 shlibpath_var=LD_LIBRARY_PATH
17716 freebsd* | dragonfly*)
17717 # DragonFly does not have aout. When/if they implement a new
17718 # versioning mechanism, adjust this.
17719 if test -x /usr/bin/objformat; then
17720 objformat=`/usr/bin/objformat`
17721 else
17722 case $host_os in
17723 freebsd[23].*) objformat=aout ;;
17724 *) objformat=elf ;;
17725 esac
17727 version_type=freebsd-$objformat
17728 case $version_type in
17729 freebsd-elf*)
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17731 need_version=no
17732 need_lib_prefix=no
17734 freebsd-*)
17735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17736 need_version=yes
17738 esac
17739 shlibpath_var=LD_LIBRARY_PATH
17740 case $host_os in
17741 freebsd2.*)
17742 shlibpath_overrides_runpath=yes
17744 freebsd3.[01]* | freebsdelf3.[01]*)
17745 shlibpath_overrides_runpath=yes
17746 hardcode_into_libs=yes
17748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17750 shlibpath_overrides_runpath=no
17751 hardcode_into_libs=yes
17753 *) # from 4.6 on, and DragonFly
17754 shlibpath_overrides_runpath=yes
17755 hardcode_into_libs=yes
17757 esac
17760 gnu*)
17761 version_type=linux
17762 need_lib_prefix=no
17763 need_version=no
17764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17765 soname_spec='${libname}${release}${shared_ext}$major'
17766 shlibpath_var=LD_LIBRARY_PATH
17767 hardcode_into_libs=yes
17770 haiku*)
17771 version_type=linux
17772 need_lib_prefix=no
17773 need_version=no
17774 dynamic_linker="$host_os runtime_loader"
17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17776 soname_spec='${libname}${release}${shared_ext}$major'
17777 shlibpath_var=LIBRARY_PATH
17778 shlibpath_overrides_runpath=yes
17779 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17780 hardcode_into_libs=yes
17783 hpux9* | hpux10* | hpux11*)
17784 # Give a soname corresponding to the major version so that dld.sl refuses to
17785 # link against other versions.
17786 version_type=sunos
17787 need_lib_prefix=no
17788 need_version=no
17789 case $host_cpu in
17790 ia64*)
17791 shrext_cmds='.so'
17792 hardcode_into_libs=yes
17793 dynamic_linker="$host_os dld.so"
17794 shlibpath_var=LD_LIBRARY_PATH
17795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17797 soname_spec='${libname}${release}${shared_ext}$major'
17798 if test "X$HPUX_IA64_MODE" = X32; then
17799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17800 else
17801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17805 hppa*64*)
17806 shrext_cmds='.sl'
17807 hardcode_into_libs=yes
17808 dynamic_linker="$host_os dld.sl"
17809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17812 soname_spec='${libname}${release}${shared_ext}$major'
17813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17817 shrext_cmds='.sl'
17818 dynamic_linker="$host_os dld.sl"
17819 shlibpath_var=SHLIB_PATH
17820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17822 soname_spec='${libname}${release}${shared_ext}$major'
17824 esac
17825 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17826 postinstall_cmds='chmod 555 $lib'
17827 # or fails outright, so override atomically:
17828 install_override_mode=555
17831 interix[3-9]*)
17832 version_type=linux
17833 need_lib_prefix=no
17834 need_version=no
17835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17836 soname_spec='${libname}${release}${shared_ext}$major'
17837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17838 shlibpath_var=LD_LIBRARY_PATH
17839 shlibpath_overrides_runpath=no
17840 hardcode_into_libs=yes
17843 irix5* | irix6* | nonstopux*)
17844 case $host_os in
17845 nonstopux*) version_type=nonstopux ;;
17847 if test "$lt_cv_prog_gnu_ld" = yes; then
17848 version_type=linux
17849 else
17850 version_type=irix
17851 fi ;;
17852 esac
17853 need_lib_prefix=no
17854 need_version=no
17855 soname_spec='${libname}${release}${shared_ext}$major'
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17857 case $host_os in
17858 irix5* | nonstopux*)
17859 libsuff= shlibsuff=
17862 case $LD in # libtool.m4 will add one of these switches to LD
17863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17864 libsuff= shlibsuff= libmagic=32-bit;;
17865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17866 libsuff=32 shlibsuff=N32 libmagic=N32;;
17867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17869 *) libsuff= shlibsuff= libmagic=never-match;;
17870 esac
17872 esac
17873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17874 shlibpath_overrides_runpath=no
17875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17877 hardcode_into_libs=yes
17880 # No shared lib support for Linux oldld, aout, or coff.
17881 linux*oldld* | linux*aout* | linux*coff*)
17882 dynamic_linker=no
17885 # This must be Linux ELF.
17886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17887 version_type=linux
17888 need_lib_prefix=no
17889 need_version=no
17890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17891 soname_spec='${libname}${release}${shared_ext}$major'
17892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17893 shlibpath_var=LD_LIBRARY_PATH
17894 shlibpath_overrides_runpath=no
17896 # Some binutils ld are patched to set DT_RUNPATH
17897 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17898 $as_echo_n "(cached) " >&6
17899 else
17900 lt_cv_shlibpath_overrides_runpath=no
17901 save_LDFLAGS=$LDFLAGS
17902 save_libdir=$libdir
17903 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17904 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h. */
17909 main ()
17913 return 0;
17915 _ACEOF
17916 if ac_fn_c_try_link "$LINENO"; then :
17917 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17918 lt_cv_shlibpath_overrides_runpath=yes
17921 rm -f core conftest.err conftest.$ac_objext \
17922 conftest$ac_exeext conftest.$ac_ext
17923 LDFLAGS=$save_LDFLAGS
17924 libdir=$save_libdir
17928 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17930 # This implies no fast_install, which is unacceptable.
17931 # Some rework will be needed to allow for fast_install
17932 # before this can be enabled.
17933 hardcode_into_libs=yes
17935 # Append ld.so.conf contents to the search path
17936 if test -f /etc/ld.so.conf; then
17937 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' ' '`
17938 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17941 # We used to test for /lib/ld.so.1 and disable shared libraries on
17942 # powerpc, because MkLinux only supported shared libraries with the
17943 # GNU dynamic linker. Since this was broken with cross compilers,
17944 # most powerpc-linux boxes support dynamic linking these days and
17945 # people can always --disable-shared, the test was removed, and we
17946 # assume the GNU/Linux dynamic linker is in use.
17947 dynamic_linker='GNU/Linux ld.so'
17950 netbsd*)
17951 version_type=sunos
17952 need_lib_prefix=no
17953 need_version=no
17954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17957 dynamic_linker='NetBSD (a.out) ld.so'
17958 else
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17960 soname_spec='${libname}${release}${shared_ext}$major'
17961 dynamic_linker='NetBSD ld.elf_so'
17963 shlibpath_var=LD_LIBRARY_PATH
17964 shlibpath_overrides_runpath=yes
17965 hardcode_into_libs=yes
17968 newsos6)
17969 version_type=linux
17970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971 shlibpath_var=LD_LIBRARY_PATH
17972 shlibpath_overrides_runpath=yes
17975 *nto* | *qnx*)
17976 version_type=qnx
17977 need_lib_prefix=no
17978 need_version=no
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=no
17983 hardcode_into_libs=yes
17984 dynamic_linker='ldqnx.so'
17987 openbsd*)
17988 version_type=sunos
17989 sys_lib_dlsearch_path_spec="/usr/lib"
17990 need_lib_prefix=no
17991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17992 case $host_os in
17993 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17994 *) need_version=no ;;
17995 esac
17996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17998 shlibpath_var=LD_LIBRARY_PATH
17999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18000 case $host_os in
18001 openbsd2.[89] | openbsd2.[89].*)
18002 shlibpath_overrides_runpath=no
18005 shlibpath_overrides_runpath=yes
18007 esac
18008 else
18009 shlibpath_overrides_runpath=yes
18013 os2*)
18014 libname_spec='$name'
18015 shrext_cmds=".dll"
18016 need_lib_prefix=no
18017 library_names_spec='$libname${shared_ext} $libname.a'
18018 dynamic_linker='OS/2 ld.exe'
18019 shlibpath_var=LIBPATH
18022 osf3* | osf4* | osf5*)
18023 version_type=osf
18024 need_lib_prefix=no
18025 need_version=no
18026 soname_spec='${libname}${release}${shared_ext}$major'
18027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028 shlibpath_var=LD_LIBRARY_PATH
18029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18033 rdos*)
18034 dynamic_linker=no
18037 solaris*)
18038 version_type=linux
18039 need_lib_prefix=no
18040 need_version=no
18041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18042 soname_spec='${libname}${release}${shared_ext}$major'
18043 shlibpath_var=LD_LIBRARY_PATH
18044 shlibpath_overrides_runpath=yes
18045 hardcode_into_libs=yes
18046 # ldd complains unless libraries are executable
18047 postinstall_cmds='chmod +x $lib'
18050 sunos4*)
18051 version_type=sunos
18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18053 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18054 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=yes
18056 if test "$with_gnu_ld" = yes; then
18057 need_lib_prefix=no
18059 need_version=yes
18062 sysv4 | sysv4.3*)
18063 version_type=linux
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18065 soname_spec='${libname}${release}${shared_ext}$major'
18066 shlibpath_var=LD_LIBRARY_PATH
18067 case $host_vendor in
18068 sni)
18069 shlibpath_overrides_runpath=no
18070 need_lib_prefix=no
18071 runpath_var=LD_RUN_PATH
18073 siemens)
18074 need_lib_prefix=no
18076 motorola)
18077 need_lib_prefix=no
18078 need_version=no
18079 shlibpath_overrides_runpath=no
18080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18082 esac
18085 sysv4*MP*)
18086 if test -d /usr/nec ;then
18087 version_type=linux
18088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18089 soname_spec='$libname${shared_ext}.$major'
18090 shlibpath_var=LD_LIBRARY_PATH
18094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18095 version_type=freebsd-elf
18096 need_lib_prefix=no
18097 need_version=no
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18099 soname_spec='${libname}${release}${shared_ext}$major'
18100 shlibpath_var=LD_LIBRARY_PATH
18101 shlibpath_overrides_runpath=yes
18102 hardcode_into_libs=yes
18103 if test "$with_gnu_ld" = yes; then
18104 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18105 else
18106 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18107 case $host_os in
18108 sco3.2v5*)
18109 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18111 esac
18113 sys_lib_dlsearch_path_spec='/usr/lib'
18116 tpf*)
18117 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18118 version_type=linux
18119 need_lib_prefix=no
18120 need_version=no
18121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18122 shlibpath_var=LD_LIBRARY_PATH
18123 shlibpath_overrides_runpath=no
18124 hardcode_into_libs=yes
18127 uts4*)
18128 version_type=linux
18129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18130 soname_spec='${libname}${release}${shared_ext}$major'
18131 shlibpath_var=LD_LIBRARY_PATH
18135 dynamic_linker=no
18137 esac
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18139 $as_echo "$dynamic_linker" >&6; }
18140 test "$dynamic_linker" = no && can_build_shared=no
18142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18143 if test "$GCC" = yes; then
18144 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18147 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18148 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18150 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18151 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18246 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18247 hardcode_action=
18248 if test -n "$hardcode_libdir_flag_spec" ||
18249 test -n "$runpath_var" ||
18250 test "X$hardcode_automatic" = "Xyes" ; then
18252 # We can hardcode non-existent directories.
18253 if test "$hardcode_direct" != no &&
18254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18255 # have to relink, otherwise we might link with an installed library
18256 # when we should be linking with a yet-to-be-installed one
18257 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18258 test "$hardcode_minus_L" != no; then
18259 # Linking always hardcodes the temporary library directory.
18260 hardcode_action=relink
18261 else
18262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18263 hardcode_action=immediate
18265 else
18266 # We cannot hardcode anything, or else we can only hardcode existing
18267 # directories.
18268 hardcode_action=unsupported
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18271 $as_echo "$hardcode_action" >&6; }
18273 if test "$hardcode_action" = relink ||
18274 test "$inherit_rpath" = yes; then
18275 # Fast installation is not supported
18276 enable_fast_install=no
18277 elif test "$shlibpath_overrides_runpath" = yes ||
18278 test "$enable_shared" = no; then
18279 # Fast installation is not necessary
18280 enable_fast_install=needless
18288 if test "x$enable_dlopen" != xyes; then
18289 enable_dlopen=unknown
18290 enable_dlopen_self=unknown
18291 enable_dlopen_self_static=unknown
18292 else
18293 lt_cv_dlopen=no
18294 lt_cv_dlopen_libs=
18296 case $host_os in
18297 beos*)
18298 lt_cv_dlopen="load_add_on"
18299 lt_cv_dlopen_libs=
18300 lt_cv_dlopen_self=yes
18303 mingw* | pw32* | cegcc*)
18304 lt_cv_dlopen="LoadLibrary"
18305 lt_cv_dlopen_libs=
18308 cygwin*)
18309 lt_cv_dlopen="dlopen"
18310 lt_cv_dlopen_libs=
18313 darwin*)
18314 # if libdl is installed we need to link against it
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18316 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18317 if ${ac_cv_lib_dl_dlopen+:} false; then :
18318 $as_echo_n "(cached) " >&6
18319 else
18320 ac_check_lib_save_LIBS=$LIBS
18321 LIBS="-ldl $LIBS"
18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18325 /* Override any GCC internal prototype to avoid an error.
18326 Use char because int might match the return type of a GCC
18327 builtin and then its argument prototype would still apply. */
18328 #ifdef __cplusplus
18329 extern "C"
18330 #endif
18331 char dlopen ();
18333 main ()
18335 return dlopen ();
18337 return 0;
18339 _ACEOF
18340 if ac_fn_c_try_link "$LINENO"; then :
18341 ac_cv_lib_dl_dlopen=yes
18342 else
18343 ac_cv_lib_dl_dlopen=no
18345 rm -f core conftest.err conftest.$ac_objext \
18346 conftest$ac_exeext conftest.$ac_ext
18347 LIBS=$ac_check_lib_save_LIBS
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18350 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18351 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18352 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18353 else
18355 lt_cv_dlopen="dyld"
18356 lt_cv_dlopen_libs=
18357 lt_cv_dlopen_self=yes
18364 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18365 if test "x$ac_cv_func_shl_load" = xyes; then :
18366 lt_cv_dlopen="shl_load"
18367 else
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18369 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18370 if ${ac_cv_lib_dld_shl_load+:} false; then :
18371 $as_echo_n "(cached) " >&6
18372 else
18373 ac_check_lib_save_LIBS=$LIBS
18374 LIBS="-ldld $LIBS"
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18378 /* Override any GCC internal prototype to avoid an error.
18379 Use char because int might match the return type of a GCC
18380 builtin and then its argument prototype would still apply. */
18381 #ifdef __cplusplus
18382 extern "C"
18383 #endif
18384 char shl_load ();
18386 main ()
18388 return shl_load ();
18390 return 0;
18392 _ACEOF
18393 if ac_fn_c_try_link "$LINENO"; then :
18394 ac_cv_lib_dld_shl_load=yes
18395 else
18396 ac_cv_lib_dld_shl_load=no
18398 rm -f core conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18400 LIBS=$ac_check_lib_save_LIBS
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18403 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18404 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18405 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18406 else
18407 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18408 if test "x$ac_cv_func_dlopen" = xyes; then :
18409 lt_cv_dlopen="dlopen"
18410 else
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18412 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18413 if ${ac_cv_lib_dl_dlopen+:} false; then :
18414 $as_echo_n "(cached) " >&6
18415 else
18416 ac_check_lib_save_LIBS=$LIBS
18417 LIBS="-ldl $LIBS"
18418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18421 /* Override any GCC internal prototype to avoid an error.
18422 Use char because int might match the return type of a GCC
18423 builtin and then its argument prototype would still apply. */
18424 #ifdef __cplusplus
18425 extern "C"
18426 #endif
18427 char dlopen ();
18429 main ()
18431 return dlopen ();
18433 return 0;
18435 _ACEOF
18436 if ac_fn_c_try_link "$LINENO"; then :
18437 ac_cv_lib_dl_dlopen=yes
18438 else
18439 ac_cv_lib_dl_dlopen=no
18441 rm -f core conftest.err conftest.$ac_objext \
18442 conftest$ac_exeext conftest.$ac_ext
18443 LIBS=$ac_check_lib_save_LIBS
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18446 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18447 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18449 else
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18451 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18452 if ${ac_cv_lib_svld_dlopen+:} false; then :
18453 $as_echo_n "(cached) " >&6
18454 else
18455 ac_check_lib_save_LIBS=$LIBS
18456 LIBS="-lsvld $LIBS"
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18460 /* Override any GCC internal prototype to avoid an error.
18461 Use char because int might match the return type of a GCC
18462 builtin and then its argument prototype would still apply. */
18463 #ifdef __cplusplus
18464 extern "C"
18465 #endif
18466 char dlopen ();
18468 main ()
18470 return dlopen ();
18472 return 0;
18474 _ACEOF
18475 if ac_fn_c_try_link "$LINENO"; then :
18476 ac_cv_lib_svld_dlopen=yes
18477 else
18478 ac_cv_lib_svld_dlopen=no
18480 rm -f core conftest.err conftest.$ac_objext \
18481 conftest$ac_exeext conftest.$ac_ext
18482 LIBS=$ac_check_lib_save_LIBS
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18485 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18486 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18488 else
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18490 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18491 if ${ac_cv_lib_dld_dld_link+:} false; then :
18492 $as_echo_n "(cached) " >&6
18493 else
18494 ac_check_lib_save_LIBS=$LIBS
18495 LIBS="-ldld $LIBS"
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18499 /* Override any GCC internal prototype to avoid an error.
18500 Use char because int might match the return type of a GCC
18501 builtin and then its argument prototype would still apply. */
18502 #ifdef __cplusplus
18503 extern "C"
18504 #endif
18505 char dld_link ();
18507 main ()
18509 return dld_link ();
18511 return 0;
18513 _ACEOF
18514 if ac_fn_c_try_link "$LINENO"; then :
18515 ac_cv_lib_dld_dld_link=yes
18516 else
18517 ac_cv_lib_dld_dld_link=no
18519 rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18521 LIBS=$ac_check_lib_save_LIBS
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18524 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18525 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18526 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18545 esac
18547 if test "x$lt_cv_dlopen" != xno; then
18548 enable_dlopen=yes
18549 else
18550 enable_dlopen=no
18553 case $lt_cv_dlopen in
18554 dlopen)
18555 save_CPPFLAGS="$CPPFLAGS"
18556 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18558 save_LDFLAGS="$LDFLAGS"
18559 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18561 save_LIBS="$LIBS"
18562 LIBS="$lt_cv_dlopen_libs $LIBS"
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18565 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18566 if ${lt_cv_dlopen_self+:} false; then :
18567 $as_echo_n "(cached) " >&6
18568 else
18569 if test "$cross_compiling" = yes; then :
18570 lt_cv_dlopen_self=cross
18571 else
18572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18573 lt_status=$lt_dlunknown
18574 cat > conftest.$ac_ext <<_LT_EOF
18575 #line 18575 "configure"
18576 #include "confdefs.h"
18578 #if HAVE_DLFCN_H
18579 #include <dlfcn.h>
18580 #endif
18582 #include <stdio.h>
18584 #ifdef RTLD_GLOBAL
18585 # define LT_DLGLOBAL RTLD_GLOBAL
18586 #else
18587 # ifdef DL_GLOBAL
18588 # define LT_DLGLOBAL DL_GLOBAL
18589 # else
18590 # define LT_DLGLOBAL 0
18591 # endif
18592 #endif
18594 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18595 find out it does not work in some platform. */
18596 #ifndef LT_DLLAZY_OR_NOW
18597 # ifdef RTLD_LAZY
18598 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18599 # else
18600 # ifdef DL_LAZY
18601 # define LT_DLLAZY_OR_NOW DL_LAZY
18602 # else
18603 # ifdef RTLD_NOW
18604 # define LT_DLLAZY_OR_NOW RTLD_NOW
18605 # else
18606 # ifdef DL_NOW
18607 # define LT_DLLAZY_OR_NOW DL_NOW
18608 # else
18609 # define LT_DLLAZY_OR_NOW 0
18610 # endif
18611 # endif
18612 # endif
18613 # endif
18614 #endif
18616 /* When -fvisbility=hidden is used, assume the code has been annotated
18617 correspondingly for the symbols needed. */
18618 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18619 void fnord () __attribute__((visibility("default")));
18620 #endif
18622 void fnord () { int i=42; }
18623 int main ()
18625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18626 int status = $lt_dlunknown;
18628 if (self)
18630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18631 else
18633 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18634 else puts (dlerror ());
18636 /* dlclose (self); */
18638 else
18639 puts (dlerror ());
18641 return status;
18643 _LT_EOF
18644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18645 (eval $ac_link) 2>&5
18646 ac_status=$?
18647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18648 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18649 (./conftest; exit; ) >&5 2>/dev/null
18650 lt_status=$?
18651 case x$lt_status in
18652 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18653 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18654 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18655 esac
18656 else :
18657 # compilation failed
18658 lt_cv_dlopen_self=no
18661 rm -fr conftest*
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18666 $as_echo "$lt_cv_dlopen_self" >&6; }
18668 if test "x$lt_cv_dlopen_self" = xyes; then
18669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18671 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18672 if ${lt_cv_dlopen_self_static+:} false; then :
18673 $as_echo_n "(cached) " >&6
18674 else
18675 if test "$cross_compiling" = yes; then :
18676 lt_cv_dlopen_self_static=cross
18677 else
18678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18679 lt_status=$lt_dlunknown
18680 cat > conftest.$ac_ext <<_LT_EOF
18681 #line 18681 "configure"
18682 #include "confdefs.h"
18684 #if HAVE_DLFCN_H
18685 #include <dlfcn.h>
18686 #endif
18688 #include <stdio.h>
18690 #ifdef RTLD_GLOBAL
18691 # define LT_DLGLOBAL RTLD_GLOBAL
18692 #else
18693 # ifdef DL_GLOBAL
18694 # define LT_DLGLOBAL DL_GLOBAL
18695 # else
18696 # define LT_DLGLOBAL 0
18697 # endif
18698 #endif
18700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18701 find out it does not work in some platform. */
18702 #ifndef LT_DLLAZY_OR_NOW
18703 # ifdef RTLD_LAZY
18704 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18705 # else
18706 # ifdef DL_LAZY
18707 # define LT_DLLAZY_OR_NOW DL_LAZY
18708 # else
18709 # ifdef RTLD_NOW
18710 # define LT_DLLAZY_OR_NOW RTLD_NOW
18711 # else
18712 # ifdef DL_NOW
18713 # define LT_DLLAZY_OR_NOW DL_NOW
18714 # else
18715 # define LT_DLLAZY_OR_NOW 0
18716 # endif
18717 # endif
18718 # endif
18719 # endif
18720 #endif
18722 /* When -fvisbility=hidden is used, assume the code has been annotated
18723 correspondingly for the symbols needed. */
18724 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18725 void fnord () __attribute__((visibility("default")));
18726 #endif
18728 void fnord () { int i=42; }
18729 int main ()
18731 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18732 int status = $lt_dlunknown;
18734 if (self)
18736 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18737 else
18739 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18740 else puts (dlerror ());
18742 /* dlclose (self); */
18744 else
18745 puts (dlerror ());
18747 return status;
18749 _LT_EOF
18750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18751 (eval $ac_link) 2>&5
18752 ac_status=$?
18753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18754 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18755 (./conftest; exit; ) >&5 2>/dev/null
18756 lt_status=$?
18757 case x$lt_status in
18758 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18759 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18760 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18761 esac
18762 else :
18763 # compilation failed
18764 lt_cv_dlopen_self_static=no
18767 rm -fr conftest*
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18772 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18775 CPPFLAGS="$save_CPPFLAGS"
18776 LDFLAGS="$save_LDFLAGS"
18777 LIBS="$save_LIBS"
18779 esac
18781 case $lt_cv_dlopen_self in
18782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18783 *) enable_dlopen_self=unknown ;;
18784 esac
18786 case $lt_cv_dlopen_self_static in
18787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18788 *) enable_dlopen_self_static=unknown ;;
18789 esac
18808 striplib=
18809 old_striplib=
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18811 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18812 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18813 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18814 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18816 $as_echo "yes" >&6; }
18817 else
18818 # FIXME - insert some real tests, host_os isn't really good enough
18819 case $host_os in
18820 darwin*)
18821 if test -n "$STRIP" ; then
18822 striplib="$STRIP -x"
18823 old_striplib="$STRIP -S"
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18825 $as_echo "yes" >&6; }
18826 else
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18828 $as_echo "no" >&6; }
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18833 $as_echo "no" >&6; }
18835 esac
18849 # Report which library types will actually be built
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18851 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18853 $as_echo "$can_build_shared" >&6; }
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18856 $as_echo_n "checking whether to build shared libraries... " >&6; }
18857 test "$can_build_shared" = "no" && enable_shared=no
18859 # On AIX, shared libraries and static libraries use the same namespace, and
18860 # are all built from PIC.
18861 case $host_os in
18862 aix3*)
18863 test "$enable_shared" = yes && enable_static=no
18864 if test -n "$RANLIB"; then
18865 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18866 postinstall_cmds='$RANLIB $lib'
18870 aix[4-9]*)
18871 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18872 test "$enable_shared" = yes && enable_static=no
18875 esac
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18877 $as_echo "$enable_shared" >&6; }
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18880 $as_echo_n "checking whether to build static libraries... " >&6; }
18881 # Make sure either enable_shared or enable_static is yes.
18882 test "$enable_shared" = yes || enable_static=yes
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18884 $as_echo "$enable_static" >&6; }
18890 ac_ext=cpp
18891 ac_cpp='$CXXCPP $CPPFLAGS'
18892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18896 CC="$lt_save_CC"
18898 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18899 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18900 (test "X$CXX" != "Xg++"))) ; then
18901 ac_ext=cpp
18902 ac_cpp='$CXXCPP $CPPFLAGS'
18903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18907 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18908 if test -z "$CXXCPP"; then
18909 if ${ac_cv_prog_CXXCPP+:} false; then :
18910 $as_echo_n "(cached) " >&6
18911 else
18912 # Double quotes because CXXCPP needs to be expanded
18913 for CXXCPP in "$CXX -E" "/lib/cpp"
18915 ac_preproc_ok=false
18916 for ac_cxx_preproc_warn_flag in '' yes
18918 # Use a header file that comes with gcc, so configuring glibc
18919 # with a fresh cross-compiler works.
18920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18921 # <limits.h> exists even on freestanding compilers.
18922 # On the NeXT, cc -E runs the code through the compiler's parser,
18923 # not just through cpp. "Syntax error" is here to catch this case.
18924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925 /* end confdefs.h. */
18926 #ifdef __STDC__
18927 # include <limits.h>
18928 #else
18929 # include <assert.h>
18930 #endif
18931 Syntax error
18932 _ACEOF
18933 if ac_fn_cxx_try_cpp "$LINENO"; then :
18935 else
18936 # Broken: fails on valid input.
18937 continue
18939 rm -f conftest.err conftest.i conftest.$ac_ext
18941 # OK, works on sane cases. Now check whether nonexistent headers
18942 # can be detected and how.
18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h. */
18945 #include <ac_nonexistent.h>
18946 _ACEOF
18947 if ac_fn_cxx_try_cpp "$LINENO"; then :
18948 # Broken: success on invalid input.
18949 continue
18950 else
18951 # Passes both tests.
18952 ac_preproc_ok=:
18953 break
18955 rm -f conftest.err conftest.i conftest.$ac_ext
18957 done
18958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18959 rm -f conftest.i conftest.err conftest.$ac_ext
18960 if $ac_preproc_ok; then :
18961 break
18964 done
18965 ac_cv_prog_CXXCPP=$CXXCPP
18968 CXXCPP=$ac_cv_prog_CXXCPP
18969 else
18970 ac_cv_prog_CXXCPP=$CXXCPP
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18973 $as_echo "$CXXCPP" >&6; }
18974 ac_preproc_ok=false
18975 for ac_cxx_preproc_warn_flag in '' yes
18977 # Use a header file that comes with gcc, so configuring glibc
18978 # with a fresh cross-compiler works.
18979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18980 # <limits.h> exists even on freestanding compilers.
18981 # On the NeXT, cc -E runs the code through the compiler's parser,
18982 # not just through cpp. "Syntax error" is here to catch this case.
18983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18984 /* end confdefs.h. */
18985 #ifdef __STDC__
18986 # include <limits.h>
18987 #else
18988 # include <assert.h>
18989 #endif
18990 Syntax error
18991 _ACEOF
18992 if ac_fn_cxx_try_cpp "$LINENO"; then :
18994 else
18995 # Broken: fails on valid input.
18996 continue
18998 rm -f conftest.err conftest.i conftest.$ac_ext
19000 # OK, works on sane cases. Now check whether nonexistent headers
19001 # can be detected and how.
19002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19003 /* end confdefs.h. */
19004 #include <ac_nonexistent.h>
19005 _ACEOF
19006 if ac_fn_cxx_try_cpp "$LINENO"; then :
19007 # Broken: success on invalid input.
19008 continue
19009 else
19010 # Passes both tests.
19011 ac_preproc_ok=:
19012 break
19014 rm -f conftest.err conftest.i conftest.$ac_ext
19016 done
19017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19018 rm -f conftest.i conftest.err conftest.$ac_ext
19019 if $ac_preproc_ok; then :
19021 else
19022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19024 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19025 See \`config.log' for more details" "$LINENO" 5; }
19028 ac_ext=cpp
19029 ac_cpp='$CXXCPP $CPPFLAGS'
19030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19034 else
19035 _lt_caught_CXX_error=yes
19038 ac_ext=cpp
19039 ac_cpp='$CXXCPP $CPPFLAGS'
19040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19044 archive_cmds_need_lc_CXX=no
19045 allow_undefined_flag_CXX=
19046 always_export_symbols_CXX=no
19047 archive_expsym_cmds_CXX=
19048 compiler_needs_object_CXX=no
19049 export_dynamic_flag_spec_CXX=
19050 hardcode_direct_CXX=no
19051 hardcode_direct_absolute_CXX=no
19052 hardcode_libdir_flag_spec_CXX=
19053 hardcode_libdir_flag_spec_ld_CXX=
19054 hardcode_libdir_separator_CXX=
19055 hardcode_minus_L_CXX=no
19056 hardcode_shlibpath_var_CXX=unsupported
19057 hardcode_automatic_CXX=no
19058 inherit_rpath_CXX=no
19059 module_cmds_CXX=
19060 module_expsym_cmds_CXX=
19061 link_all_deplibs_CXX=unknown
19062 old_archive_cmds_CXX=$old_archive_cmds
19063 reload_flag_CXX=$reload_flag
19064 reload_cmds_CXX=$reload_cmds
19065 no_undefined_flag_CXX=
19066 whole_archive_flag_spec_CXX=
19067 enable_shared_with_static_runtimes_CXX=no
19069 # Source file extension for C++ test sources.
19070 ac_ext=cpp
19072 # Object file extension for compiled C++ test sources.
19073 objext=o
19074 objext_CXX=$objext
19076 # No sense in running all these tests if we already determined that
19077 # the CXX compiler isn't working. Some variables (like enable_shared)
19078 # are currently assumed to apply to all compilers on this platform,
19079 # and will be corrupted by setting them based on a non-working compiler.
19080 if test "$_lt_caught_CXX_error" != yes; then
19081 # Code to be used in simple compile tests
19082 lt_simple_compile_test_code="int some_variable = 0;"
19084 # Code to be used in simple link tests
19085 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19087 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19094 # If no C compiler was specified, use CC.
19095 LTCC=${LTCC-"$CC"}
19097 # If no C compiler flags were specified, use CFLAGS.
19098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19100 # Allow CC to be a program name with arguments.
19101 compiler=$CC
19104 # save warnings/boilerplate of simple test code
19105 ac_outfile=conftest.$ac_objext
19106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19108 _lt_compiler_boilerplate=`cat conftest.err`
19109 $RM conftest*
19111 ac_outfile=conftest.$ac_objext
19112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19114 _lt_linker_boilerplate=`cat conftest.err`
19115 $RM -r conftest*
19118 # Allow CC to be a program name with arguments.
19119 lt_save_CC=$CC
19120 lt_save_LD=$LD
19121 lt_save_GCC=$GCC
19122 GCC=$GXX
19123 lt_save_with_gnu_ld=$with_gnu_ld
19124 lt_save_path_LD=$lt_cv_path_LD
19125 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19126 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19127 else
19128 $as_unset lt_cv_prog_gnu_ld
19130 if test -n "${lt_cv_path_LDCXX+set}"; then
19131 lt_cv_path_LD=$lt_cv_path_LDCXX
19132 else
19133 $as_unset lt_cv_path_LD
19135 test -z "${LDCXX+set}" || LD=$LDCXX
19136 CC=${CXX-"c++"}
19137 compiler=$CC
19138 compiler_CXX=$CC
19139 for cc_temp in $compiler""; do
19140 case $cc_temp in
19141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19143 \-*) ;;
19144 *) break;;
19145 esac
19146 done
19147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19150 if test -n "$compiler"; then
19151 # We don't want -fno-exception when compiling C++ code, so set the
19152 # no_builtin_flag separately
19153 if test "$GXX" = yes; then
19154 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19155 else
19156 lt_prog_compiler_no_builtin_flag_CXX=
19159 if test "$GXX" = yes; then
19160 # Set up default GNU C++ configuration
19164 # Check whether --with-gnu-ld was given.
19165 if test "${with_gnu_ld+set}" = set; then :
19166 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19167 else
19168 with_gnu_ld=no
19171 ac_prog=ld
19172 if test "$GCC" = yes; then
19173 # Check if gcc -print-prog-name=ld gives a path.
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19175 $as_echo_n "checking for ld used by $CC... " >&6; }
19176 case $host in
19177 *-*-mingw*)
19178 # gcc leaves a trailing carriage return which upsets mingw
19179 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19181 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19182 esac
19183 case $ac_prog in
19184 # Accept absolute paths.
19185 [\\/]* | ?:[\\/]*)
19186 re_direlt='/[^/][^/]*/\.\./'
19187 # Canonicalize the pathname of ld
19188 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19189 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19190 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19191 done
19192 test -z "$LD" && LD="$ac_prog"
19195 # If it fails, then pretend we aren't using GCC.
19196 ac_prog=ld
19199 # If it is relative, then search for the first ld in PATH.
19200 with_gnu_ld=unknown
19202 esac
19203 elif test "$with_gnu_ld" = yes; then
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19205 $as_echo_n "checking for GNU ld... " >&6; }
19206 else
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19208 $as_echo_n "checking for non-GNU ld... " >&6; }
19210 if ${lt_cv_path_LD+:} false; then :
19211 $as_echo_n "(cached) " >&6
19212 else
19213 if test -z "$LD"; then
19214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19215 for ac_dir in $PATH; do
19216 IFS="$lt_save_ifs"
19217 test -z "$ac_dir" && ac_dir=.
19218 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19219 lt_cv_path_LD="$ac_dir/$ac_prog"
19220 # Check to see if the program is GNU ld. I'd rather use --version,
19221 # but apparently some variants of GNU ld only accept -v.
19222 # Break only if it was the GNU/non-GNU ld that we prefer.
19223 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19224 *GNU* | *'with BFD'*)
19225 test "$with_gnu_ld" != no && break
19228 test "$with_gnu_ld" != yes && break
19230 esac
19232 done
19233 IFS="$lt_save_ifs"
19234 else
19235 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19239 LD="$lt_cv_path_LD"
19240 if test -n "$LD"; then
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19242 $as_echo "$LD" >&6; }
19243 else
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19247 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19249 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19250 if ${lt_cv_prog_gnu_ld+:} false; then :
19251 $as_echo_n "(cached) " >&6
19252 else
19253 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19254 case `$LD -v 2>&1 </dev/null` in
19255 *GNU* | *'with BFD'*)
19256 lt_cv_prog_gnu_ld=yes
19259 lt_cv_prog_gnu_ld=no
19261 esac
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19264 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19265 with_gnu_ld=$lt_cv_prog_gnu_ld
19273 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19274 # archiving commands below assume that GNU ld is being used.
19275 if test "$with_gnu_ld" = yes; then
19276 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19277 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'
19279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19282 # If archive_cmds runs LD, not CC, wlarc should be empty
19283 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19284 # investigate it a little bit more. (MM)
19285 wlarc='${wl}'
19287 # ancient GNU ld didn't support --whole-archive et. al.
19288 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19289 $GREP 'no-whole-archive' > /dev/null; then
19290 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19291 else
19292 whole_archive_flag_spec_CXX=
19294 else
19295 with_gnu_ld=no
19296 wlarc=
19298 # A generic and very simple default shared library creation
19299 # command for GNU C++ for the case where it uses the native
19300 # linker, instead of GNU ld. If possible, this setting should
19301 # overridden to take advantage of the native linker features on
19302 # the platform it is being used on.
19303 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19306 # Commands to make compiler produce verbose output that lists
19307 # what "hidden" libraries, object files and flags are used when
19308 # linking a shared library.
19309 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19311 else
19312 GXX=no
19313 with_gnu_ld=no
19314 wlarc=
19317 # PORTME: fill in a description of your system's C++ link characteristics
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19319 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19320 ld_shlibs_CXX=yes
19321 case $host_os in
19322 aix3*)
19323 # FIXME: insert proper C++ library support
19324 ld_shlibs_CXX=no
19326 aix[4-9]*)
19327 if test "$host_cpu" = ia64; then
19328 # On IA64, the linker does run time linking by default, so we don't
19329 # have to do anything special.
19330 aix_use_runtimelinking=no
19331 exp_sym_flag='-Bexport'
19332 no_entry_flag=""
19333 else
19334 aix_use_runtimelinking=no
19336 # Test if we are trying to use run time linking or normal
19337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19338 # need to do runtime linking.
19339 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19340 for ld_flag in $LDFLAGS; do
19341 case $ld_flag in
19342 *-brtl*)
19343 aix_use_runtimelinking=yes
19344 break
19346 esac
19347 done
19349 esac
19351 exp_sym_flag='-bexport'
19352 no_entry_flag='-bnoentry'
19355 # When large executables or shared objects are built, AIX ld can
19356 # have problems creating the table of contents. If linking a library
19357 # or program results in "error TOC overflow" add -mminimal-toc to
19358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19361 archive_cmds_CXX=''
19362 hardcode_direct_CXX=yes
19363 hardcode_direct_absolute_CXX=yes
19364 hardcode_libdir_separator_CXX=':'
19365 link_all_deplibs_CXX=yes
19366 file_list_spec_CXX='${wl}-f,'
19368 if test "$GXX" = yes; then
19369 case $host_os in aix4.[012]|aix4.[012].*)
19370 # We only want to do this on AIX 4.2 and lower, the check
19371 # below for broken collect2 doesn't work under 4.3+
19372 collect2name=`${CC} -print-prog-name=collect2`
19373 if test -f "$collect2name" &&
19374 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19375 then
19376 # We have reworked collect2
19378 else
19379 # We have old collect2
19380 hardcode_direct_CXX=unsupported
19381 # It fails to find uninstalled libraries when the uninstalled
19382 # path is not listed in the libpath. Setting hardcode_minus_L
19383 # to unsupported forces relinking
19384 hardcode_minus_L_CXX=yes
19385 hardcode_libdir_flag_spec_CXX='-L$libdir'
19386 hardcode_libdir_separator_CXX=
19388 esac
19389 shared_flag='-shared'
19390 if test "$aix_use_runtimelinking" = yes; then
19391 shared_flag="$shared_flag "'${wl}-G'
19393 else
19394 # not using gcc
19395 if test "$host_cpu" = ia64; then
19396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19397 # chokes on -Wl,-G. The following line is correct:
19398 shared_flag='-G'
19399 else
19400 if test "$aix_use_runtimelinking" = yes; then
19401 shared_flag='${wl}-G'
19402 else
19403 shared_flag='${wl}-bM:SRE'
19408 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19409 # It seems that -bexpall does not export symbols beginning with
19410 # underscore (_), so it is better to generate a list of symbols to
19411 # export.
19412 always_export_symbols_CXX=yes
19413 if test "$aix_use_runtimelinking" = yes; then
19414 # Warning - without using the other runtime loading flags (-brtl),
19415 # -berok will link without error, but may produce a broken library.
19416 allow_undefined_flag_CXX='-berok'
19417 # Determine the default libpath from the value encoded in an empty
19418 # executable.
19419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h. */
19423 main ()
19427 return 0;
19429 _ACEOF
19430 if ac_fn_cxx_try_link "$LINENO"; then :
19432 lt_aix_libpath_sed='
19433 /Import File Strings/,/^$/ {
19434 /^0/ {
19435 s/^0 *\(.*\)$/\1/
19439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19440 # Check for a 64-bit object if we didn't find anything.
19441 if test -z "$aix_libpath"; then
19442 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19445 rm -f core conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
19447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19449 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19451 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"
19452 else
19453 if test "$host_cpu" = ia64; then
19454 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19455 allow_undefined_flag_CXX="-z nodefs"
19456 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"
19457 else
19458 # Determine the default libpath from the value encoded in an
19459 # empty executable.
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19464 main ()
19468 return 0;
19470 _ACEOF
19471 if ac_fn_cxx_try_link "$LINENO"; then :
19473 lt_aix_libpath_sed='
19474 /Import File Strings/,/^$/ {
19475 /^0/ {
19476 s/^0 *\(.*\)$/\1/
19480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19481 # Check for a 64-bit object if we didn't find anything.
19482 if test -z "$aix_libpath"; then
19483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19486 rm -f core conftest.err conftest.$ac_objext \
19487 conftest$ac_exeext conftest.$ac_ext
19488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19490 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19491 # Warning - without using the other run time loading flags,
19492 # -berok will link without error, but may produce a broken library.
19493 no_undefined_flag_CXX=' ${wl}-bernotok'
19494 allow_undefined_flag_CXX=' ${wl}-berok'
19495 if test "$with_gnu_ld" = yes; then
19496 # We only use this code for GNU lds that support --whole-archive.
19497 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19498 else
19499 # Exported symbols can be pulled into shared objects from archives
19500 whole_archive_flag_spec_CXX='$convenience'
19502 archive_cmds_need_lc_CXX=yes
19503 # This is similar to how AIX traditionally builds its shared
19504 # libraries.
19505 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'
19510 beos*)
19511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19512 allow_undefined_flag_CXX=unsupported
19513 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19514 # support --undefined. This deserves some investigation. FIXME
19515 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19516 else
19517 ld_shlibs_CXX=no
19521 chorus*)
19522 case $cc_basename in
19524 # FIXME: insert proper C++ library support
19525 ld_shlibs_CXX=no
19527 esac
19530 cygwin* | mingw* | pw32* | cegcc*)
19531 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19532 # as there is no search path for DLLs.
19533 hardcode_libdir_flag_spec_CXX='-L$libdir'
19534 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19535 allow_undefined_flag_CXX=unsupported
19536 always_export_symbols_CXX=no
19537 enable_shared_with_static_runtimes_CXX=yes
19539 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19540 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'
19541 # If the export-symbols file already is a .def file (1st line
19542 # is EXPORTS), use it as is; otherwise, prepend...
19543 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19544 cp $export_symbols $output_objdir/$soname.def;
19545 else
19546 echo EXPORTS > $output_objdir/$soname.def;
19547 cat $export_symbols >> $output_objdir/$soname.def;
19549 $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'
19550 else
19551 ld_shlibs_CXX=no
19554 darwin* | rhapsody*)
19557 archive_cmds_need_lc_CXX=no
19558 hardcode_direct_CXX=no
19559 hardcode_automatic_CXX=yes
19560 hardcode_shlibpath_var_CXX=unsupported
19561 if test "$lt_cv_ld_force_load" = "yes"; then
19562 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\"`'
19563 else
19564 whole_archive_flag_spec_CXX=''
19566 link_all_deplibs_CXX=yes
19567 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19568 case $cc_basename in
19569 ifort*) _lt_dar_can_shared=yes ;;
19570 *) _lt_dar_can_shared=$GCC ;;
19571 esac
19572 if test "$_lt_dar_can_shared" = "yes"; then
19573 output_verbose_link_cmd=func_echo_all
19574 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}"
19575 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19576 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}"
19577 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}"
19578 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19579 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}"
19580 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}"
19583 else
19584 ld_shlibs_CXX=no
19589 dgux*)
19590 case $cc_basename in
19591 ec++*)
19592 # FIXME: insert proper C++ library support
19593 ld_shlibs_CXX=no
19595 ghcx*)
19596 # Green Hills C++ Compiler
19597 # FIXME: insert proper C++ library support
19598 ld_shlibs_CXX=no
19601 # FIXME: insert proper C++ library support
19602 ld_shlibs_CXX=no
19604 esac
19607 freebsd2.*)
19608 # C++ shared libraries reported to be fairly broken before
19609 # switch to ELF
19610 ld_shlibs_CXX=no
19613 freebsd-elf*)
19614 archive_cmds_need_lc_CXX=no
19617 freebsd* | dragonfly*)
19618 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19619 # conventions
19620 ld_shlibs_CXX=yes
19623 gnu*)
19626 haiku*)
19627 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19628 link_all_deplibs_CXX=yes
19631 hpux9*)
19632 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19633 hardcode_libdir_separator_CXX=:
19634 export_dynamic_flag_spec_CXX='${wl}-E'
19635 hardcode_direct_CXX=yes
19636 hardcode_minus_L_CXX=yes # Not in the search PATH,
19637 # but as the default
19638 # location of the library.
19640 case $cc_basename in
19641 CC*)
19642 # FIXME: insert proper C++ library support
19643 ld_shlibs_CXX=no
19645 aCC*)
19646 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'
19647 # Commands to make compiler produce verbose output that lists
19648 # what "hidden" libraries, object files and flags are used when
19649 # linking a shared library.
19651 # There doesn't appear to be a way to prevent this compiler from
19652 # explicitly linking system object files so we need to strip them
19653 # from the output so that they don't get included in the library
19654 # dependencies.
19655 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"'
19658 if test "$GXX" = yes; then
19659 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'
19660 else
19661 # FIXME: insert proper C++ library support
19662 ld_shlibs_CXX=no
19665 esac
19668 hpux10*|hpux11*)
19669 if test $with_gnu_ld = no; then
19670 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19671 hardcode_libdir_separator_CXX=:
19673 case $host_cpu in
19674 hppa*64*|ia64*)
19677 export_dynamic_flag_spec_CXX='${wl}-E'
19679 esac
19681 case $host_cpu in
19682 hppa*64*|ia64*)
19683 hardcode_direct_CXX=no
19684 hardcode_shlibpath_var_CXX=no
19687 hardcode_direct_CXX=yes
19688 hardcode_direct_absolute_CXX=yes
19689 hardcode_minus_L_CXX=yes # Not in the search PATH,
19690 # but as the default
19691 # location of the library.
19693 esac
19695 case $cc_basename in
19696 CC*)
19697 # FIXME: insert proper C++ library support
19698 ld_shlibs_CXX=no
19700 aCC*)
19701 case $host_cpu in
19702 hppa*64*)
19703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19705 ia64*)
19706 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19709 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19711 esac
19712 # Commands to make compiler produce verbose output that lists
19713 # what "hidden" libraries, object files and flags are used when
19714 # linking a shared library.
19716 # There doesn't appear to be a way to prevent this compiler from
19717 # explicitly linking system object files so we need to strip them
19718 # from the output so that they don't get included in the library
19719 # dependencies.
19720 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"'
19723 if test "$GXX" = yes; then
19724 if test $with_gnu_ld = no; then
19725 case $host_cpu in
19726 hppa*64*)
19727 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19729 ia64*)
19730 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19733 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'
19735 esac
19737 else
19738 # FIXME: insert proper C++ library support
19739 ld_shlibs_CXX=no
19742 esac
19745 interix[3-9]*)
19746 hardcode_direct_CXX=no
19747 hardcode_shlibpath_var_CXX=no
19748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19749 export_dynamic_flag_spec_CXX='${wl}-E'
19750 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19751 # Instead, shared libraries are loaded at an image base (0x10000000 by
19752 # default) and relocated if they conflict, which is a slow very memory
19753 # consuming and fragmenting process. To avoid this, we pick a random,
19754 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19755 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19756 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'
19757 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'
19759 irix5* | irix6*)
19760 case $cc_basename in
19761 CC*)
19762 # SGI C++
19763 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'
19765 # Archives containing C++ object files must be created using
19766 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19767 # necessary to make sure instantiated templates are included
19768 # in the archive.
19769 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19772 if test "$GXX" = yes; then
19773 if test "$with_gnu_ld" = no; then
19774 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'
19775 else
19776 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'
19779 link_all_deplibs_CXX=yes
19781 esac
19782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19783 hardcode_libdir_separator_CXX=:
19784 inherit_rpath_CXX=yes
19787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19788 case $cc_basename in
19789 KCC*)
19790 # Kuck and Associates, Inc. (KAI) C++ Compiler
19792 # KCC will only create a shared library if the output file
19793 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19794 # to its proper name (with version) after linking.
19795 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'
19796 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'
19797 # Commands to make compiler produce verbose output that lists
19798 # what "hidden" libraries, object files and flags are used when
19799 # linking a shared library.
19801 # There doesn't appear to be a way to prevent this compiler from
19802 # explicitly linking system object files so we need to strip them
19803 # from the output so that they don't get included in the library
19804 # dependencies.
19805 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"'
19807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19810 # Archives containing C++ object files must be created using
19811 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19812 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19814 icpc* | ecpc* )
19815 # Intel C++
19816 with_gnu_ld=yes
19817 # version 8.0 and above of icpc choke on multiply defined symbols
19818 # if we add $predep_objects and $postdep_objects, however 7.1 and
19819 # earlier do not add the objects themselves.
19820 case `$CC -V 2>&1` in
19821 *"Version 7."*)
19822 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19823 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'
19825 *) # Version 8.0 or newer
19826 tmp_idyn=
19827 case $host_cpu in
19828 ia64*) tmp_idyn=' -i_dynamic';;
19829 esac
19830 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19831 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'
19833 esac
19834 archive_cmds_need_lc_CXX=no
19835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19836 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19837 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19839 pgCC* | pgcpp*)
19840 # Portland Group C++ compiler
19841 case `$CC -V` in
19842 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19843 prelink_cmds_CXX='tpldir=Template.dir~
19844 rm -rf $tpldir~
19845 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19846 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19847 old_archive_cmds_CXX='tpldir=Template.dir~
19848 rm -rf $tpldir~
19849 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19850 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19851 $RANLIB $oldlib'
19852 archive_cmds_CXX='tpldir=Template.dir~
19853 rm -rf $tpldir~
19854 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19855 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19856 archive_expsym_cmds_CXX='tpldir=Template.dir~
19857 rm -rf $tpldir~
19858 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19859 $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'
19861 *) # Version 6 and above use weak symbols
19862 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19863 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'
19865 esac
19867 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19869 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'
19871 cxx*)
19872 # Compaq C++
19873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19874 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'
19876 runpath_var=LD_RUN_PATH
19877 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19878 hardcode_libdir_separator_CXX=:
19880 # Commands to make compiler produce verbose output that lists
19881 # what "hidden" libraries, object files and flags are used when
19882 # linking a shared library.
19884 # There doesn't appear to be a way to prevent this compiler from
19885 # explicitly linking system object files so we need to strip them
19886 # from the output so that they don't get included in the library
19887 # dependencies.
19888 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'
19890 xl* | mpixl* | bgxl*)
19891 # IBM XL 8.0 on PPC, with GNU ld
19892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19894 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19895 if test "x$supports_anon_versioning" = xyes; then
19896 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19897 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19898 echo "local: *; };" >> $output_objdir/$libname.ver~
19899 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19903 case `$CC -V 2>&1 | sed 5q` in
19904 *Sun\ C*)
19905 # Sun C++ 5.9
19906 no_undefined_flag_CXX=' -zdefs'
19907 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19908 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'
19909 hardcode_libdir_flag_spec_CXX='-R$libdir'
19910 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'
19911 compiler_needs_object_CXX=yes
19913 # Not sure whether something based on
19914 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19915 # would be better.
19916 output_verbose_link_cmd='func_echo_all'
19918 # Archives containing C++ object files must be created using
19919 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19920 # necessary to make sure instantiated templates are included
19921 # in the archive.
19922 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19924 esac
19926 esac
19929 lynxos*)
19930 # FIXME: insert proper C++ library support
19931 ld_shlibs_CXX=no
19934 m88k*)
19935 # FIXME: insert proper C++ library support
19936 ld_shlibs_CXX=no
19939 mvs*)
19940 case $cc_basename in
19941 cxx*)
19942 # FIXME: insert proper C++ library support
19943 ld_shlibs_CXX=no
19946 # FIXME: insert proper C++ library support
19947 ld_shlibs_CXX=no
19949 esac
19952 netbsd*)
19953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19954 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19955 wlarc=
19956 hardcode_libdir_flag_spec_CXX='-R$libdir'
19957 hardcode_direct_CXX=yes
19958 hardcode_shlibpath_var_CXX=no
19960 # Workaround some broken pre-1.5 toolchains
19961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19964 *nto* | *qnx*)
19965 ld_shlibs_CXX=yes
19968 openbsd2*)
19969 # C++ shared libraries are fairly broken
19970 ld_shlibs_CXX=no
19973 openbsd*)
19974 if test -f /usr/libexec/ld.so; then
19975 hardcode_direct_CXX=yes
19976 hardcode_shlibpath_var_CXX=no
19977 hardcode_direct_absolute_CXX=yes
19978 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19981 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19982 export_dynamic_flag_spec_CXX='${wl}-E'
19983 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19985 output_verbose_link_cmd=func_echo_all
19986 else
19987 ld_shlibs_CXX=no
19991 osf3* | osf4* | osf5*)
19992 case $cc_basename in
19993 KCC*)
19994 # Kuck and Associates, Inc. (KAI) C++ Compiler
19996 # KCC will only create a shared library if the output file
19997 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19998 # to its proper name (with version) after linking.
19999 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'
20001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20002 hardcode_libdir_separator_CXX=:
20004 # Archives containing C++ object files must be created using
20005 # the KAI C++ compiler.
20006 case $host in
20007 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20008 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20009 esac
20011 RCC*)
20012 # Rational C++ 2.4.1
20013 # FIXME: insert proper C++ library support
20014 ld_shlibs_CXX=no
20016 cxx*)
20017 case $host in
20018 osf3*)
20019 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20020 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'
20021 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20024 allow_undefined_flag_CXX=' -expect_unresolved \*'
20025 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'
20026 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20027 echo "-hidden">> $lib.exp~
20028 $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~
20029 $RM $lib.exp'
20030 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20032 esac
20034 hardcode_libdir_separator_CXX=:
20036 # Commands to make compiler produce verbose output that lists
20037 # what "hidden" libraries, object files and flags are used when
20038 # linking a shared library.
20040 # There doesn't appear to be a way to prevent this compiler from
20041 # explicitly linking system object files so we need to strip them
20042 # from the output so that they don't get included in the library
20043 # dependencies.
20044 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"'
20047 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20049 case $host in
20050 osf3*)
20051 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'
20054 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'
20056 esac
20058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20059 hardcode_libdir_separator_CXX=:
20061 # Commands to make compiler produce verbose output that lists
20062 # what "hidden" libraries, object files and flags are used when
20063 # linking a shared library.
20064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20066 else
20067 # FIXME: insert proper C++ library support
20068 ld_shlibs_CXX=no
20071 esac
20074 psos*)
20075 # FIXME: insert proper C++ library support
20076 ld_shlibs_CXX=no
20079 sunos4*)
20080 case $cc_basename in
20081 CC*)
20082 # Sun C++ 4.x
20083 # FIXME: insert proper C++ library support
20084 ld_shlibs_CXX=no
20086 lcc*)
20087 # Lucid
20088 # FIXME: insert proper C++ library support
20089 ld_shlibs_CXX=no
20092 # FIXME: insert proper C++ library support
20093 ld_shlibs_CXX=no
20095 esac
20098 solaris*)
20099 case $cc_basename in
20100 CC*)
20101 # Sun C++ 4.2, 5.x and Centerline C++
20102 archive_cmds_need_lc_CXX=yes
20103 no_undefined_flag_CXX=' -zdefs'
20104 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20105 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20106 $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'
20108 hardcode_libdir_flag_spec_CXX='-R$libdir'
20109 hardcode_shlibpath_var_CXX=no
20110 case $host_os in
20111 solaris2.[0-5] | solaris2.[0-5].*) ;;
20113 # The compiler driver will combine and reorder linker options,
20114 # but understands `-z linker_flag'.
20115 # Supported since Solaris 2.6 (maybe 2.5.1?)
20116 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20118 esac
20119 link_all_deplibs_CXX=yes
20121 output_verbose_link_cmd='func_echo_all'
20123 # Archives containing C++ object files must be created using
20124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20125 # necessary to make sure instantiated templates are included
20126 # in the archive.
20127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20129 gcx*)
20130 # Green Hills C++ Compiler
20131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20133 # The C++ compiler must be used to create the archive.
20134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20137 # GNU C++ compiler with Solaris linker
20138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20139 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20140 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20141 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20142 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20143 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20145 # Commands to make compiler produce verbose output that lists
20146 # what "hidden" libraries, object files and flags are used when
20147 # linking a shared library.
20148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20149 else
20150 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20151 # platform.
20152 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20153 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20154 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20156 # Commands to make compiler produce verbose output that lists
20157 # what "hidden" libraries, object files and flags are used when
20158 # linking a shared library.
20159 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20162 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20163 case $host_os in
20164 solaris2.[0-5] | solaris2.[0-5].*) ;;
20166 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20168 esac
20171 esac
20174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20175 no_undefined_flag_CXX='${wl}-z,text'
20176 archive_cmds_need_lc_CXX=no
20177 hardcode_shlibpath_var_CXX=no
20178 runpath_var='LD_RUN_PATH'
20180 case $cc_basename in
20181 CC*)
20182 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20183 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20186 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20187 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20189 esac
20192 sysv5* | sco3.2v5* | sco5v6*)
20193 # Note: We can NOT use -z defs as we might desire, because we do not
20194 # link with -lc, and that would cause any symbols used from libc to
20195 # always be unresolved, which means just about no library would
20196 # ever link correctly. If we're not using GNU ld we use -z text
20197 # though, which does catch some bad symbols but isn't as heavy-handed
20198 # as -z defs.
20199 no_undefined_flag_CXX='${wl}-z,text'
20200 allow_undefined_flag_CXX='${wl}-z,nodefs'
20201 archive_cmds_need_lc_CXX=no
20202 hardcode_shlibpath_var_CXX=no
20203 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20204 hardcode_libdir_separator_CXX=':'
20205 link_all_deplibs_CXX=yes
20206 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20207 runpath_var='LD_RUN_PATH'
20209 case $cc_basename in
20210 CC*)
20211 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20212 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20213 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20214 '"$old_archive_cmds_CXX"
20215 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20216 '"$reload_cmds_CXX"
20219 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20220 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20222 esac
20225 tandem*)
20226 case $cc_basename in
20227 NCC*)
20228 # NonStop-UX NCC 3.20
20229 # FIXME: insert proper C++ library support
20230 ld_shlibs_CXX=no
20233 # FIXME: insert proper C++ library support
20234 ld_shlibs_CXX=no
20236 esac
20239 vxworks*)
20240 # FIXME: insert proper C++ library support
20241 ld_shlibs_CXX=no
20245 # FIXME: insert proper C++ library support
20246 ld_shlibs_CXX=no
20248 esac
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20251 $as_echo "$ld_shlibs_CXX" >&6; }
20252 test "$ld_shlibs_CXX" = no && can_build_shared=no
20254 GCC_CXX="$GXX"
20255 LD_CXX="$LD"
20257 ## CAVEAT EMPTOR:
20258 ## There is no encapsulation within the following macros, do not change
20259 ## the running order or otherwise move them around unless you know exactly
20260 ## what you are doing...
20261 # Dependencies to place before and after the object being linked:
20262 predep_objects_CXX=
20263 postdep_objects_CXX=
20264 predeps_CXX=
20265 postdeps_CXX=
20266 compiler_lib_search_path_CXX=
20268 cat > conftest.$ac_ext <<_LT_EOF
20269 class Foo
20271 public:
20272 Foo (void) { a = 0; }
20273 private:
20274 int a;
20276 _LT_EOF
20278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20279 (eval $ac_compile) 2>&5
20280 ac_status=$?
20281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20282 test $ac_status = 0; }; then
20283 # Parse the compiler output and extract the necessary
20284 # objects, libraries and library flags.
20286 # Sentinel used to keep track of whether or not we are before
20287 # the conftest object file.
20288 pre_test_object_deps_done=no
20290 for p in `eval "$output_verbose_link_cmd"`; do
20291 case $p in
20293 -L* | -R* | -l*)
20294 # Some compilers place space between "-{L,R}" and the path.
20295 # Remove the space.
20296 if test $p = "-L" ||
20297 test $p = "-R"; then
20298 prev=$p
20299 continue
20300 else
20301 prev=
20304 if test "$pre_test_object_deps_done" = no; then
20305 case $p in
20306 -L* | -R*)
20307 # Internal compiler library paths should come after those
20308 # provided the user. The postdeps already come after the
20309 # user supplied libs so there is no need to process them.
20310 if test -z "$compiler_lib_search_path_CXX"; then
20311 compiler_lib_search_path_CXX="${prev}${p}"
20312 else
20313 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20316 # The "-l" case would never come before the object being
20317 # linked, so don't bother handling this case.
20318 esac
20319 else
20320 if test -z "$postdeps_CXX"; then
20321 postdeps_CXX="${prev}${p}"
20322 else
20323 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20328 *.$objext)
20329 # This assumes that the test object file only shows up
20330 # once in the compiler output.
20331 if test "$p" = "conftest.$objext"; then
20332 pre_test_object_deps_done=yes
20333 continue
20336 if test "$pre_test_object_deps_done" = no; then
20337 if test -z "$predep_objects_CXX"; then
20338 predep_objects_CXX="$p"
20339 else
20340 predep_objects_CXX="$predep_objects_CXX $p"
20342 else
20343 if test -z "$postdep_objects_CXX"; then
20344 postdep_objects_CXX="$p"
20345 else
20346 postdep_objects_CXX="$postdep_objects_CXX $p"
20351 *) ;; # Ignore the rest.
20353 esac
20354 done
20356 # Clean up.
20357 rm -f a.out a.exe
20358 else
20359 echo "libtool.m4: error: problem compiling CXX test program"
20362 $RM -f confest.$objext
20364 # PORTME: override above test on systems where it is broken
20365 case $host_os in
20366 interix[3-9]*)
20367 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20368 # hack all around it, let's just trust "g++" to DTRT.
20369 predep_objects_CXX=
20370 postdep_objects_CXX=
20371 postdeps_CXX=
20374 linux*)
20375 case `$CC -V 2>&1 | sed 5q` in
20376 *Sun\ C*)
20377 # Sun C++ 5.9
20379 # The more standards-conforming stlport4 library is
20380 # incompatible with the Cstd library. Avoid specifying
20381 # it if it's in CXXFLAGS. Ignore libCrun as
20382 # -library=stlport4 depends on it.
20383 case " $CXX $CXXFLAGS " in
20384 *" -library=stlport4 "*)
20385 solaris_use_stlport4=yes
20387 esac
20389 if test "$solaris_use_stlport4" != yes; then
20390 postdeps_CXX='-library=Cstd -library=Crun'
20393 esac
20396 solaris*)
20397 case $cc_basename in
20398 CC*)
20399 # The more standards-conforming stlport4 library is
20400 # incompatible with the Cstd library. Avoid specifying
20401 # it if it's in CXXFLAGS. Ignore libCrun as
20402 # -library=stlport4 depends on it.
20403 case " $CXX $CXXFLAGS " in
20404 *" -library=stlport4 "*)
20405 solaris_use_stlport4=yes
20407 esac
20409 # Adding this requires a known-good setup of shared libraries for
20410 # Sun compiler versions before 5.6, else PIC objects from an old
20411 # archive will be linked into the output, leading to subtle bugs.
20412 if test "$solaris_use_stlport4" != yes; then
20413 postdeps_CXX='-library=Cstd -library=Crun'
20416 esac
20418 esac
20421 case " $postdeps_CXX " in
20422 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20423 esac
20424 compiler_lib_search_dirs_CXX=
20425 if test -n "${compiler_lib_search_path_CXX}"; then
20426 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20459 lt_prog_compiler_wl_CXX=
20460 lt_prog_compiler_pic_CXX=
20461 lt_prog_compiler_static_CXX=
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20464 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20466 # C++ specific cases for pic, static, wl, etc.
20467 if test "$GXX" = yes; then
20468 lt_prog_compiler_wl_CXX='-Wl,'
20469 lt_prog_compiler_static_CXX='-static'
20471 case $host_os in
20472 aix*)
20473 # All AIX code is PIC.
20474 if test "$host_cpu" = ia64; then
20475 # AIX 5 now supports IA64 processor
20476 lt_prog_compiler_static_CXX='-Bstatic'
20478 lt_prog_compiler_pic_CXX='-fPIC'
20481 amigaos*)
20482 case $host_cpu in
20483 powerpc)
20484 # see comment about AmigaOS4 .so support
20485 lt_prog_compiler_pic_CXX='-fPIC'
20487 m68k)
20488 # FIXME: we need at least 68020 code to build shared libraries, but
20489 # adding the `-m68020' flag to GCC prevents building anything better,
20490 # like `-m68040'.
20491 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20493 esac
20496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20497 # PIC is the default for these OSes.
20499 mingw* | cygwin* | os2* | pw32* | cegcc*)
20500 # This hack is so that the source file can tell whether it is being
20501 # built for inclusion in a dll (and should export symbols for example).
20502 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20503 # (--disable-auto-import) libraries
20504 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20506 darwin* | rhapsody*)
20507 # PIC is the default on this platform
20508 # Common symbols not allowed in MH_DYLIB files
20509 lt_prog_compiler_pic_CXX='-fno-common'
20511 *djgpp*)
20512 # DJGPP does not support shared libraries at all
20513 lt_prog_compiler_pic_CXX=
20515 haiku*)
20516 # PIC is the default for Haiku.
20517 # The "-static" flag exists, but is broken.
20518 lt_prog_compiler_static_CXX=
20520 interix[3-9]*)
20521 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20522 # Instead, we relocate shared libraries at runtime.
20524 sysv4*MP*)
20525 if test -d /usr/nec; then
20526 lt_prog_compiler_pic_CXX=-Kconform_pic
20529 hpux*)
20530 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20531 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20532 # sets the default TLS model and affects inlining.
20533 case $host_cpu in
20534 hppa*64*)
20537 lt_prog_compiler_pic_CXX='-fPIC'
20539 esac
20541 *qnx* | *nto*)
20542 # QNX uses GNU C++, but need to define -shared option too, otherwise
20543 # it will coredump.
20544 lt_prog_compiler_pic_CXX='-fPIC -shared'
20547 lt_prog_compiler_pic_CXX='-fPIC'
20549 esac
20550 else
20551 case $host_os in
20552 aix[4-9]*)
20553 # All AIX code is PIC.
20554 if test "$host_cpu" = ia64; then
20555 # AIX 5 now supports IA64 processor
20556 lt_prog_compiler_static_CXX='-Bstatic'
20557 else
20558 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20561 chorus*)
20562 case $cc_basename in
20563 cxch68*)
20564 # Green Hills C++ Compiler
20565 # _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"
20567 esac
20569 dgux*)
20570 case $cc_basename in
20571 ec++*)
20572 lt_prog_compiler_pic_CXX='-KPIC'
20574 ghcx*)
20575 # Green Hills C++ Compiler
20576 lt_prog_compiler_pic_CXX='-pic'
20580 esac
20582 freebsd* | dragonfly*)
20583 # FreeBSD uses GNU C++
20585 hpux9* | hpux10* | hpux11*)
20586 case $cc_basename in
20587 CC*)
20588 lt_prog_compiler_wl_CXX='-Wl,'
20589 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20590 if test "$host_cpu" != ia64; then
20591 lt_prog_compiler_pic_CXX='+Z'
20594 aCC*)
20595 lt_prog_compiler_wl_CXX='-Wl,'
20596 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20597 case $host_cpu in
20598 hppa*64*|ia64*)
20599 # +Z the default
20602 lt_prog_compiler_pic_CXX='+Z'
20604 esac
20608 esac
20610 interix*)
20611 # This is c89, which is MS Visual C++ (no shared libs)
20612 # Anyone wants to do a port?
20614 irix5* | irix6* | nonstopux*)
20615 case $cc_basename in
20616 CC*)
20617 lt_prog_compiler_wl_CXX='-Wl,'
20618 lt_prog_compiler_static_CXX='-non_shared'
20619 # CC pic flag -KPIC is the default.
20623 esac
20625 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20626 case $cc_basename in
20627 KCC*)
20628 # KAI C++ Compiler
20629 lt_prog_compiler_wl_CXX='--backend -Wl,'
20630 lt_prog_compiler_pic_CXX='-fPIC'
20632 ecpc* )
20633 # old Intel C++ for x86_64 which still supported -KPIC.
20634 lt_prog_compiler_wl_CXX='-Wl,'
20635 lt_prog_compiler_pic_CXX='-KPIC'
20636 lt_prog_compiler_static_CXX='-static'
20638 icpc* )
20639 # Intel C++, used to be incompatible with GCC.
20640 # ICC 10 doesn't accept -KPIC any more.
20641 lt_prog_compiler_wl_CXX='-Wl,'
20642 lt_prog_compiler_pic_CXX='-fPIC'
20643 lt_prog_compiler_static_CXX='-static'
20645 pgCC* | pgcpp*)
20646 # Portland Group C++ compiler
20647 lt_prog_compiler_wl_CXX='-Wl,'
20648 lt_prog_compiler_pic_CXX='-fpic'
20649 lt_prog_compiler_static_CXX='-Bstatic'
20651 cxx*)
20652 # Compaq C++
20653 # Make sure the PIC flag is empty. It appears that all Alpha
20654 # Linux and Compaq Tru64 Unix objects are PIC.
20655 lt_prog_compiler_pic_CXX=
20656 lt_prog_compiler_static_CXX='-non_shared'
20658 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20659 # IBM XL 8.0, 9.0 on PPC and BlueGene
20660 lt_prog_compiler_wl_CXX='-Wl,'
20661 lt_prog_compiler_pic_CXX='-qpic'
20662 lt_prog_compiler_static_CXX='-qstaticlink'
20665 case `$CC -V 2>&1 | sed 5q` in
20666 *Sun\ C*)
20667 # Sun C++ 5.9
20668 lt_prog_compiler_pic_CXX='-KPIC'
20669 lt_prog_compiler_static_CXX='-Bstatic'
20670 lt_prog_compiler_wl_CXX='-Qoption ld '
20672 esac
20674 esac
20676 lynxos*)
20678 m88k*)
20680 mvs*)
20681 case $cc_basename in
20682 cxx*)
20683 lt_prog_compiler_pic_CXX='-W c,exportall'
20687 esac
20689 netbsd*)
20691 *qnx* | *nto*)
20692 # QNX uses GNU C++, but need to define -shared option too, otherwise
20693 # it will coredump.
20694 lt_prog_compiler_pic_CXX='-fPIC -shared'
20696 osf3* | osf4* | osf5*)
20697 case $cc_basename in
20698 KCC*)
20699 lt_prog_compiler_wl_CXX='--backend -Wl,'
20701 RCC*)
20702 # Rational C++ 2.4.1
20703 lt_prog_compiler_pic_CXX='-pic'
20705 cxx*)
20706 # Digital/Compaq C++
20707 lt_prog_compiler_wl_CXX='-Wl,'
20708 # Make sure the PIC flag is empty. It appears that all Alpha
20709 # Linux and Compaq Tru64 Unix objects are PIC.
20710 lt_prog_compiler_pic_CXX=
20711 lt_prog_compiler_static_CXX='-non_shared'
20715 esac
20717 psos*)
20719 solaris*)
20720 case $cc_basename in
20721 CC*)
20722 # Sun C++ 4.2, 5.x and Centerline C++
20723 lt_prog_compiler_pic_CXX='-KPIC'
20724 lt_prog_compiler_static_CXX='-Bstatic'
20725 lt_prog_compiler_wl_CXX='-Qoption ld '
20727 gcx*)
20728 # Green Hills C++ Compiler
20729 lt_prog_compiler_pic_CXX='-PIC'
20733 esac
20735 sunos4*)
20736 case $cc_basename in
20737 CC*)
20738 # Sun C++ 4.x
20739 lt_prog_compiler_pic_CXX='-pic'
20740 lt_prog_compiler_static_CXX='-Bstatic'
20742 lcc*)
20743 # Lucid
20744 lt_prog_compiler_pic_CXX='-pic'
20748 esac
20750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20751 case $cc_basename in
20752 CC*)
20753 lt_prog_compiler_wl_CXX='-Wl,'
20754 lt_prog_compiler_pic_CXX='-KPIC'
20755 lt_prog_compiler_static_CXX='-Bstatic'
20757 esac
20759 tandem*)
20760 case $cc_basename in
20761 NCC*)
20762 # NonStop-UX NCC 3.20
20763 lt_prog_compiler_pic_CXX='-KPIC'
20767 esac
20769 vxworks*)
20772 lt_prog_compiler_can_build_shared_CXX=no
20774 esac
20777 case $host_os in
20778 # For platforms which do not support PIC, -DPIC is meaningless:
20779 *djgpp*)
20780 lt_prog_compiler_pic_CXX=
20783 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20785 esac
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20787 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20792 # Check to make sure the PIC flag actually works.
20794 if test -n "$lt_prog_compiler_pic_CXX"; then
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20796 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20797 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20798 $as_echo_n "(cached) " >&6
20799 else
20800 lt_cv_prog_compiler_pic_works_CXX=no
20801 ac_outfile=conftest.$ac_objext
20802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20803 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20804 # Insert the option either (1) after the last *FLAGS variable, or
20805 # (2) before a word containing "conftest.", or (3) at the end.
20806 # Note that $ac_compile itself does not contain backslashes and begins
20807 # with a dollar sign (not a hyphen), so the echo should work correctly.
20808 # The option is referenced via a variable to avoid confusing sed.
20809 lt_compile=`echo "$ac_compile" | $SED \
20810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20812 -e 's:$: $lt_compiler_flag:'`
20813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20814 (eval "$lt_compile" 2>conftest.err)
20815 ac_status=$?
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 if (exit $ac_status) && test -s "$ac_outfile"; then
20819 # The compiler can only warn and ignore the option if not recognized
20820 # So say no if there are warnings other than the usual output.
20821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20824 lt_cv_prog_compiler_pic_works_CXX=yes
20827 $RM conftest*
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20831 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20833 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20834 case $lt_prog_compiler_pic_CXX in
20835 "" | " "*) ;;
20836 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20837 esac
20838 else
20839 lt_prog_compiler_pic_CXX=
20840 lt_prog_compiler_can_build_shared_CXX=no
20848 # Check to make sure the static flag actually works.
20850 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20852 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20853 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20854 $as_echo_n "(cached) " >&6
20855 else
20856 lt_cv_prog_compiler_static_works_CXX=no
20857 save_LDFLAGS="$LDFLAGS"
20858 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20859 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20860 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20861 # The linker can only warn and ignore the option if not recognized
20862 # So say no if there are warnings
20863 if test -s conftest.err; then
20864 # Append any errors to the config.log.
20865 cat conftest.err 1>&5
20866 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20868 if diff conftest.exp conftest.er2 >/dev/null; then
20869 lt_cv_prog_compiler_static_works_CXX=yes
20871 else
20872 lt_cv_prog_compiler_static_works_CXX=yes
20875 $RM -r conftest*
20876 LDFLAGS="$save_LDFLAGS"
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20880 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20882 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20884 else
20885 lt_prog_compiler_static_CXX=
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20893 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20894 $as_echo_n "(cached) " >&6
20895 else
20896 lt_cv_prog_compiler_c_o_CXX=no
20897 $RM -r conftest 2>/dev/null
20898 mkdir conftest
20899 cd conftest
20900 mkdir out
20901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20903 lt_compiler_flag="-o out/conftest2.$ac_objext"
20904 # Insert the option either (1) after the last *FLAGS variable, or
20905 # (2) before a word containing "conftest.", or (3) at the end.
20906 # Note that $ac_compile itself does not contain backslashes and begins
20907 # with a dollar sign (not a hyphen), so the echo should work correctly.
20908 lt_compile=`echo "$ac_compile" | $SED \
20909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20911 -e 's:$: $lt_compiler_flag:'`
20912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20913 (eval "$lt_compile" 2>out/conftest.err)
20914 ac_status=$?
20915 cat out/conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20918 then
20919 # The compiler can only warn and ignore the option if not recognized
20920 # So say no if there are warnings
20921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20924 lt_cv_prog_compiler_c_o_CXX=yes
20927 chmod u+w . 2>&5
20928 $RM conftest*
20929 # SGI C++ compiler will create directory out/ii_files/ for
20930 # template instantiation
20931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20932 $RM out/* && rmdir out
20933 cd ..
20934 $RM -r conftest
20935 $RM conftest*
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20939 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20945 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20946 $as_echo_n "(cached) " >&6
20947 else
20948 lt_cv_prog_compiler_c_o_CXX=no
20949 $RM -r conftest 2>/dev/null
20950 mkdir conftest
20951 cd conftest
20952 mkdir out
20953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20955 lt_compiler_flag="-o out/conftest2.$ac_objext"
20956 # Insert the option either (1) after the last *FLAGS variable, or
20957 # (2) before a word containing "conftest.", or (3) at the end.
20958 # Note that $ac_compile itself does not contain backslashes and begins
20959 # with a dollar sign (not a hyphen), so the echo should work correctly.
20960 lt_compile=`echo "$ac_compile" | $SED \
20961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20963 -e 's:$: $lt_compiler_flag:'`
20964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20965 (eval "$lt_compile" 2>out/conftest.err)
20966 ac_status=$?
20967 cat out/conftest.err >&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20970 then
20971 # The compiler can only warn and ignore the option if not recognized
20972 # So say no if there are warnings
20973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20976 lt_cv_prog_compiler_c_o_CXX=yes
20979 chmod u+w . 2>&5
20980 $RM conftest*
20981 # SGI C++ compiler will create directory out/ii_files/ for
20982 # template instantiation
20983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20984 $RM out/* && rmdir out
20985 cd ..
20986 $RM -r conftest
20987 $RM conftest*
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20991 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20996 hard_links="nottested"
20997 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20998 # do not overwrite the value of need_locks provided by the user
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21000 $as_echo_n "checking if we can lock with hard links... " >&6; }
21001 hard_links=yes
21002 $RM conftest*
21003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21004 touch conftest.a
21005 ln conftest.a conftest.b 2>&5 || hard_links=no
21006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21008 $as_echo "$hard_links" >&6; }
21009 if test "$hard_links" = no; then
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21012 need_locks=warn
21014 else
21015 need_locks=no
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21023 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21024 case $host_os in
21025 aix[4-9]*)
21026 # If we're using GNU nm, then we don't want the "-C" option.
21027 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21028 # Also, AIX nm treats weak defined symbols like other global defined
21029 # symbols, whereas GNU nm marks them as "W".
21030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21031 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'
21032 else
21033 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'
21036 pw32*)
21037 export_symbols_cmds_CXX="$ltdll_cmds"
21039 cygwin* | mingw* | cegcc*)
21040 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'
21043 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21045 esac
21046 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21049 $as_echo "$ld_shlibs_CXX" >&6; }
21050 test "$ld_shlibs_CXX" = no && can_build_shared=no
21052 with_gnu_ld_CXX=$with_gnu_ld
21060 # Do we need to explicitly link libc?
21062 case "x$archive_cmds_need_lc_CXX" in
21063 x|xyes)
21064 # Assume -lc should be added
21065 archive_cmds_need_lc_CXX=yes
21067 if test "$enable_shared" = yes && test "$GCC" = yes; then
21068 case $archive_cmds_CXX in
21069 *'~'*)
21070 # FIXME: we may have to deal with multi-command sequences.
21072 '$CC '*)
21073 # Test whether the compiler implicitly links with -lc since on some
21074 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21075 # to ld, don't add -lc before -lgcc.
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21077 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21078 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21079 $as_echo_n "(cached) " >&6
21080 else
21081 $RM conftest*
21082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21085 (eval $ac_compile) 2>&5
21086 ac_status=$?
21087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21088 test $ac_status = 0; } 2>conftest.err; then
21089 soname=conftest
21090 lib=conftest
21091 libobjs=conftest.$ac_objext
21092 deplibs=
21093 wl=$lt_prog_compiler_wl_CXX
21094 pic_flag=$lt_prog_compiler_pic_CXX
21095 compiler_flags=-v
21096 linker_flags=-v
21097 verstring=
21098 output_objdir=.
21099 libname=conftest
21100 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21101 allow_undefined_flag_CXX=
21102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21103 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21104 ac_status=$?
21105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21106 test $ac_status = 0; }
21107 then
21108 lt_cv_archive_cmds_need_lc_CXX=no
21109 else
21110 lt_cv_archive_cmds_need_lc_CXX=yes
21112 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21113 else
21114 cat conftest.err 1>&5
21116 $RM conftest*
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21120 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21121 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21123 esac
21126 esac
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21192 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21194 library_names_spec=
21195 libname_spec='lib$name'
21196 soname_spec=
21197 shrext_cmds=".so"
21198 postinstall_cmds=
21199 postuninstall_cmds=
21200 finish_cmds=
21201 finish_eval=
21202 shlibpath_var=
21203 shlibpath_overrides_runpath=unknown
21204 version_type=none
21205 dynamic_linker="$host_os ld.so"
21206 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21207 need_lib_prefix=unknown
21208 hardcode_into_libs=no
21210 # when you set need_version to no, make sure it does not cause -set_version
21211 # flags to be left without arguments
21212 need_version=unknown
21214 case $host_os in
21215 aix3*)
21216 version_type=linux
21217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21218 shlibpath_var=LIBPATH
21220 # AIX 3 has no versioning support, so we append a major version to the name.
21221 soname_spec='${libname}${release}${shared_ext}$major'
21224 aix[4-9]*)
21225 version_type=linux
21226 need_lib_prefix=no
21227 need_version=no
21228 hardcode_into_libs=yes
21229 if test "$host_cpu" = ia64; then
21230 # AIX 5 supports IA64
21231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21232 shlibpath_var=LD_LIBRARY_PATH
21233 else
21234 # With GCC up to 2.95.x, collect2 would create an import file
21235 # for dependence libraries. The import file would start with
21236 # the line `#! .'. This would cause the generated library to
21237 # depend on `.', always an invalid library. This was fixed in
21238 # development snapshots of GCC prior to 3.0.
21239 case $host_os in
21240 aix4 | aix4.[01] | aix4.[01].*)
21241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21242 echo ' yes '
21243 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21245 else
21246 can_build_shared=no
21249 esac
21250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21251 # soname into executable. Probably we can add versioning support to
21252 # collect2, so additional links can be useful in future.
21253 if test "$aix_use_runtimelinking" = yes; then
21254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21255 # instead of lib<name>.a to let people know that these are not
21256 # typical AIX shared libraries.
21257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21258 else
21259 # We preserve .a as extension for shared libraries through AIX4.2
21260 # and later when we are not doing run time linking.
21261 library_names_spec='${libname}${release}.a $libname.a'
21262 soname_spec='${libname}${release}${shared_ext}$major'
21264 shlibpath_var=LIBPATH
21268 amigaos*)
21269 case $host_cpu in
21270 powerpc)
21271 # Since July 2007 AmigaOS4 officially supports .so libraries.
21272 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21275 m68k)
21276 library_names_spec='$libname.ixlibrary $libname.a'
21277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21278 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'
21280 esac
21283 beos*)
21284 library_names_spec='${libname}${shared_ext}'
21285 dynamic_linker="$host_os ld.so"
21286 shlibpath_var=LIBRARY_PATH
21289 bsdi[45]*)
21290 version_type=linux
21291 need_version=no
21292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21293 soname_spec='${libname}${release}${shared_ext}$major'
21294 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21295 shlibpath_var=LD_LIBRARY_PATH
21296 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21297 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21298 # the default ld.so.conf also contains /usr/contrib/lib and
21299 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21300 # libtool to hard-code these into programs
21303 cygwin* | mingw* | pw32* | cegcc*)
21304 version_type=windows
21305 shrext_cmds=".dll"
21306 need_version=no
21307 need_lib_prefix=no
21309 case $GCC,$host_os in
21310 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21311 library_names_spec='$libname.dll.a'
21312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21313 postinstall_cmds='base_file=`basename \${file}`~
21314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21315 dldir=$destdir/`dirname \$dlpath`~
21316 test -d \$dldir || mkdir -p \$dldir~
21317 $install_prog $dir/$dlname \$dldir/$dlname~
21318 chmod a+x \$dldir/$dlname~
21319 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21320 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21322 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21323 dlpath=$dir/\$dldll~
21324 $RM \$dlpath'
21325 shlibpath_overrides_runpath=yes
21327 case $host_os in
21328 cygwin*)
21329 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21330 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21333 mingw* | cegcc*)
21334 # MinGW DLLs use traditional 'lib' prefix
21335 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21337 pw32*)
21338 # pw32 DLLs use 'pw' prefix rather than 'lib'
21339 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21341 esac
21345 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21347 esac
21348 dynamic_linker='Win32 ld.exe'
21349 # FIXME: first we should search . and the directory the executable is in
21350 shlibpath_var=PATH
21353 darwin* | rhapsody*)
21354 dynamic_linker="$host_os dyld"
21355 version_type=darwin
21356 need_lib_prefix=no
21357 need_version=no
21358 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21359 soname_spec='${libname}${release}${major}$shared_ext'
21360 shlibpath_overrides_runpath=yes
21361 shlibpath_var=DYLD_LIBRARY_PATH
21362 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21364 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21367 dgux*)
21368 version_type=linux
21369 need_lib_prefix=no
21370 need_version=no
21371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21372 soname_spec='${libname}${release}${shared_ext}$major'
21373 shlibpath_var=LD_LIBRARY_PATH
21376 freebsd* | dragonfly*)
21377 # DragonFly does not have aout. When/if they implement a new
21378 # versioning mechanism, adjust this.
21379 if test -x /usr/bin/objformat; then
21380 objformat=`/usr/bin/objformat`
21381 else
21382 case $host_os in
21383 freebsd[23].*) objformat=aout ;;
21384 *) objformat=elf ;;
21385 esac
21387 version_type=freebsd-$objformat
21388 case $version_type in
21389 freebsd-elf*)
21390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21391 need_version=no
21392 need_lib_prefix=no
21394 freebsd-*)
21395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21396 need_version=yes
21398 esac
21399 shlibpath_var=LD_LIBRARY_PATH
21400 case $host_os in
21401 freebsd2.*)
21402 shlibpath_overrides_runpath=yes
21404 freebsd3.[01]* | freebsdelf3.[01]*)
21405 shlibpath_overrides_runpath=yes
21406 hardcode_into_libs=yes
21408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21410 shlibpath_overrides_runpath=no
21411 hardcode_into_libs=yes
21413 *) # from 4.6 on, and DragonFly
21414 shlibpath_overrides_runpath=yes
21415 hardcode_into_libs=yes
21417 esac
21420 gnu*)
21421 version_type=linux
21422 need_lib_prefix=no
21423 need_version=no
21424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21425 soname_spec='${libname}${release}${shared_ext}$major'
21426 shlibpath_var=LD_LIBRARY_PATH
21427 hardcode_into_libs=yes
21430 haiku*)
21431 version_type=linux
21432 need_lib_prefix=no
21433 need_version=no
21434 dynamic_linker="$host_os runtime_loader"
21435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21436 soname_spec='${libname}${release}${shared_ext}$major'
21437 shlibpath_var=LIBRARY_PATH
21438 shlibpath_overrides_runpath=yes
21439 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21440 hardcode_into_libs=yes
21443 hpux9* | hpux10* | hpux11*)
21444 # Give a soname corresponding to the major version so that dld.sl refuses to
21445 # link against other versions.
21446 version_type=sunos
21447 need_lib_prefix=no
21448 need_version=no
21449 case $host_cpu in
21450 ia64*)
21451 shrext_cmds='.so'
21452 hardcode_into_libs=yes
21453 dynamic_linker="$host_os dld.so"
21454 shlibpath_var=LD_LIBRARY_PATH
21455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21457 soname_spec='${libname}${release}${shared_ext}$major'
21458 if test "X$HPUX_IA64_MODE" = X32; then
21459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21460 else
21461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21465 hppa*64*)
21466 shrext_cmds='.sl'
21467 hardcode_into_libs=yes
21468 dynamic_linker="$host_os dld.sl"
21469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21472 soname_spec='${libname}${release}${shared_ext}$major'
21473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21477 shrext_cmds='.sl'
21478 dynamic_linker="$host_os dld.sl"
21479 shlibpath_var=SHLIB_PATH
21480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21482 soname_spec='${libname}${release}${shared_ext}$major'
21484 esac
21485 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21486 postinstall_cmds='chmod 555 $lib'
21487 # or fails outright, so override atomically:
21488 install_override_mode=555
21491 interix[3-9]*)
21492 version_type=linux
21493 need_lib_prefix=no
21494 need_version=no
21495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21496 soname_spec='${libname}${release}${shared_ext}$major'
21497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21498 shlibpath_var=LD_LIBRARY_PATH
21499 shlibpath_overrides_runpath=no
21500 hardcode_into_libs=yes
21503 irix5* | irix6* | nonstopux*)
21504 case $host_os in
21505 nonstopux*) version_type=nonstopux ;;
21507 if test "$lt_cv_prog_gnu_ld" = yes; then
21508 version_type=linux
21509 else
21510 version_type=irix
21511 fi ;;
21512 esac
21513 need_lib_prefix=no
21514 need_version=no
21515 soname_spec='${libname}${release}${shared_ext}$major'
21516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21517 case $host_os in
21518 irix5* | nonstopux*)
21519 libsuff= shlibsuff=
21522 case $LD in # libtool.m4 will add one of these switches to LD
21523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21524 libsuff= shlibsuff= libmagic=32-bit;;
21525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21526 libsuff=32 shlibsuff=N32 libmagic=N32;;
21527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21529 *) libsuff= shlibsuff= libmagic=never-match;;
21530 esac
21532 esac
21533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21534 shlibpath_overrides_runpath=no
21535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21537 hardcode_into_libs=yes
21540 # No shared lib support for Linux oldld, aout, or coff.
21541 linux*oldld* | linux*aout* | linux*coff*)
21542 dynamic_linker=no
21545 # This must be Linux ELF.
21546 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21547 version_type=linux
21548 need_lib_prefix=no
21549 need_version=no
21550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21551 soname_spec='${libname}${release}${shared_ext}$major'
21552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21553 shlibpath_var=LD_LIBRARY_PATH
21554 shlibpath_overrides_runpath=no
21556 # Some binutils ld are patched to set DT_RUNPATH
21557 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21558 $as_echo_n "(cached) " >&6
21559 else
21560 lt_cv_shlibpath_overrides_runpath=no
21561 save_LDFLAGS=$LDFLAGS
21562 save_libdir=$libdir
21563 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21564 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21566 /* end confdefs.h. */
21569 main ()
21573 return 0;
21575 _ACEOF
21576 if ac_fn_cxx_try_link "$LINENO"; then :
21577 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21578 lt_cv_shlibpath_overrides_runpath=yes
21581 rm -f core conftest.err conftest.$ac_objext \
21582 conftest$ac_exeext conftest.$ac_ext
21583 LDFLAGS=$save_LDFLAGS
21584 libdir=$save_libdir
21588 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21590 # This implies no fast_install, which is unacceptable.
21591 # Some rework will be needed to allow for fast_install
21592 # before this can be enabled.
21593 hardcode_into_libs=yes
21595 # Append ld.so.conf contents to the search path
21596 if test -f /etc/ld.so.conf; then
21597 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' ' '`
21598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21601 # We used to test for /lib/ld.so.1 and disable shared libraries on
21602 # powerpc, because MkLinux only supported shared libraries with the
21603 # GNU dynamic linker. Since this was broken with cross compilers,
21604 # most powerpc-linux boxes support dynamic linking these days and
21605 # people can always --disable-shared, the test was removed, and we
21606 # assume the GNU/Linux dynamic linker is in use.
21607 dynamic_linker='GNU/Linux ld.so'
21610 netbsd*)
21611 version_type=sunos
21612 need_lib_prefix=no
21613 need_version=no
21614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21617 dynamic_linker='NetBSD (a.out) ld.so'
21618 else
21619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21620 soname_spec='${libname}${release}${shared_ext}$major'
21621 dynamic_linker='NetBSD ld.elf_so'
21623 shlibpath_var=LD_LIBRARY_PATH
21624 shlibpath_overrides_runpath=yes
21625 hardcode_into_libs=yes
21628 newsos6)
21629 version_type=linux
21630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21631 shlibpath_var=LD_LIBRARY_PATH
21632 shlibpath_overrides_runpath=yes
21635 *nto* | *qnx*)
21636 version_type=qnx
21637 need_lib_prefix=no
21638 need_version=no
21639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21640 soname_spec='${libname}${release}${shared_ext}$major'
21641 shlibpath_var=LD_LIBRARY_PATH
21642 shlibpath_overrides_runpath=no
21643 hardcode_into_libs=yes
21644 dynamic_linker='ldqnx.so'
21647 openbsd*)
21648 version_type=sunos
21649 sys_lib_dlsearch_path_spec="/usr/lib"
21650 need_lib_prefix=no
21651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21652 case $host_os in
21653 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21654 *) need_version=no ;;
21655 esac
21656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21658 shlibpath_var=LD_LIBRARY_PATH
21659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21660 case $host_os in
21661 openbsd2.[89] | openbsd2.[89].*)
21662 shlibpath_overrides_runpath=no
21665 shlibpath_overrides_runpath=yes
21667 esac
21668 else
21669 shlibpath_overrides_runpath=yes
21673 os2*)
21674 libname_spec='$name'
21675 shrext_cmds=".dll"
21676 need_lib_prefix=no
21677 library_names_spec='$libname${shared_ext} $libname.a'
21678 dynamic_linker='OS/2 ld.exe'
21679 shlibpath_var=LIBPATH
21682 osf3* | osf4* | osf5*)
21683 version_type=osf
21684 need_lib_prefix=no
21685 need_version=no
21686 soname_spec='${libname}${release}${shared_ext}$major'
21687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21688 shlibpath_var=LD_LIBRARY_PATH
21689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21693 rdos*)
21694 dynamic_linker=no
21697 solaris*)
21698 version_type=linux
21699 need_lib_prefix=no
21700 need_version=no
21701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21702 soname_spec='${libname}${release}${shared_ext}$major'
21703 shlibpath_var=LD_LIBRARY_PATH
21704 shlibpath_overrides_runpath=yes
21705 hardcode_into_libs=yes
21706 # ldd complains unless libraries are executable
21707 postinstall_cmds='chmod +x $lib'
21710 sunos4*)
21711 version_type=sunos
21712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21714 shlibpath_var=LD_LIBRARY_PATH
21715 shlibpath_overrides_runpath=yes
21716 if test "$with_gnu_ld" = yes; then
21717 need_lib_prefix=no
21719 need_version=yes
21722 sysv4 | sysv4.3*)
21723 version_type=linux
21724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21725 soname_spec='${libname}${release}${shared_ext}$major'
21726 shlibpath_var=LD_LIBRARY_PATH
21727 case $host_vendor in
21728 sni)
21729 shlibpath_overrides_runpath=no
21730 need_lib_prefix=no
21731 runpath_var=LD_RUN_PATH
21733 siemens)
21734 need_lib_prefix=no
21736 motorola)
21737 need_lib_prefix=no
21738 need_version=no
21739 shlibpath_overrides_runpath=no
21740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21742 esac
21745 sysv4*MP*)
21746 if test -d /usr/nec ;then
21747 version_type=linux
21748 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21749 soname_spec='$libname${shared_ext}.$major'
21750 shlibpath_var=LD_LIBRARY_PATH
21754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21755 version_type=freebsd-elf
21756 need_lib_prefix=no
21757 need_version=no
21758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21759 soname_spec='${libname}${release}${shared_ext}$major'
21760 shlibpath_var=LD_LIBRARY_PATH
21761 shlibpath_overrides_runpath=yes
21762 hardcode_into_libs=yes
21763 if test "$with_gnu_ld" = yes; then
21764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21765 else
21766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21767 case $host_os in
21768 sco3.2v5*)
21769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21771 esac
21773 sys_lib_dlsearch_path_spec='/usr/lib'
21776 tpf*)
21777 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21778 version_type=linux
21779 need_lib_prefix=no
21780 need_version=no
21781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21782 shlibpath_var=LD_LIBRARY_PATH
21783 shlibpath_overrides_runpath=no
21784 hardcode_into_libs=yes
21787 uts4*)
21788 version_type=linux
21789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21790 soname_spec='${libname}${release}${shared_ext}$major'
21791 shlibpath_var=LD_LIBRARY_PATH
21795 dynamic_linker=no
21797 esac
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21799 $as_echo "$dynamic_linker" >&6; }
21800 test "$dynamic_linker" = no && can_build_shared=no
21802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21803 if test "$GCC" = yes; then
21804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21807 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21808 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21810 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21811 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21852 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21853 hardcode_action_CXX=
21854 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21855 test -n "$runpath_var_CXX" ||
21856 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21858 # We can hardcode non-existent directories.
21859 if test "$hardcode_direct_CXX" != no &&
21860 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21861 # have to relink, otherwise we might link with an installed library
21862 # when we should be linking with a yet-to-be-installed one
21863 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21864 test "$hardcode_minus_L_CXX" != no; then
21865 # Linking always hardcodes the temporary library directory.
21866 hardcode_action_CXX=relink
21867 else
21868 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21869 hardcode_action_CXX=immediate
21871 else
21872 # We cannot hardcode anything, or else we can only hardcode existing
21873 # directories.
21874 hardcode_action_CXX=unsupported
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21877 $as_echo "$hardcode_action_CXX" >&6; }
21879 if test "$hardcode_action_CXX" = relink ||
21880 test "$inherit_rpath_CXX" = yes; then
21881 # Fast installation is not supported
21882 enable_fast_install=no
21883 elif test "$shlibpath_overrides_runpath" = yes ||
21884 test "$enable_shared" = no; then
21885 # Fast installation is not necessary
21886 enable_fast_install=needless
21895 fi # test -n "$compiler"
21897 CC=$lt_save_CC
21898 LDCXX=$LD
21899 LD=$lt_save_LD
21900 GCC=$lt_save_GCC
21901 with_gnu_ld=$lt_save_with_gnu_ld
21902 lt_cv_path_LDCXX=$lt_cv_path_LD
21903 lt_cv_path_LD=$lt_save_path_LD
21904 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21905 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21906 fi # test "$_lt_caught_CXX_error" != yes
21908 ac_ext=cpp
21909 ac_cpp='$CXXCPP $CPPFLAGS'
21910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21929 # Only expand once:
21935 # Identify the assembler which will work hand-in-glove with the newly
21936 # built GCC, so that we can examine its features. This is the assembler
21937 # which will be driven by the driver program.
21939 # If build != host, and we aren't building gas in-tree, we identify a
21940 # build->target assembler and hope that it will have the same features
21941 # as the host->target assembler we'll be using.
21942 gcc_cv_gas_major_version=
21943 gcc_cv_gas_minor_version=
21944 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21946 if ${gcc_cv_as+:} false; then :
21948 else
21950 if test -x "$DEFAULT_ASSEMBLER"; then
21951 gcc_cv_as="$DEFAULT_ASSEMBLER"
21952 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21953 && test -f ../gas/Makefile \
21954 && test x$build = x$host; then
21955 gcc_cv_as=../gas/as-new$build_exeext
21956 elif test -x as$build_exeext; then
21957 # Build using assembler in the current directory.
21958 gcc_cv_as=./as$build_exeext
21959 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21960 gcc_cv_as="$AS_FOR_TARGET"
21961 else
21962 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21963 set dummy $AS_FOR_TARGET; ac_word=$2
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21965 $as_echo_n "checking for $ac_word... " >&6; }
21966 if ${ac_cv_path_gcc_cv_as+:} false; then :
21967 $as_echo_n "(cached) " >&6
21968 else
21969 case $gcc_cv_as in
21970 [\\/]* | ?:[\\/]*)
21971 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21975 for as_dir in $PATH
21977 IFS=$as_save_IFS
21978 test -z "$as_dir" && as_dir=.
21979 for ac_exec_ext in '' $ac_executable_extensions; do
21980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21981 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21983 break 2
21985 done
21986 done
21987 IFS=$as_save_IFS
21990 esac
21992 gcc_cv_as=$ac_cv_path_gcc_cv_as
21993 if test -n "$gcc_cv_as"; then
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21995 $as_echo "$gcc_cv_as" >&6; }
21996 else
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21998 $as_echo "no" >&6; }
22005 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22007 case "$ORIGINAL_AS_FOR_TARGET" in
22008 ./as | ./as$build_exeext) ;;
22009 *) ac_config_files="$ac_config_files as:exec-tool.in"
22011 esac
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22014 $as_echo_n "checking what assembler to use... " >&6; }
22015 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22016 # Single tree build which includes gas. We want to prefer it
22017 # over whatever linker top-level may have detected, since
22018 # we'll use what we're building after installation anyway.
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22020 $as_echo "newly built gas" >&6; }
22021 in_tree_gas=yes
22022 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22023 for f in $gcc_cv_as_bfd_srcdir/configure \
22024 $gcc_cv_as_gas_srcdir/configure \
22025 $gcc_cv_as_gas_srcdir/configure.ac \
22026 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22027 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22028 if test x$gcc_cv_gas_version != x; then
22029 break
22031 done
22032 case $gcc_cv_gas_version in
22033 VERSION=[0-9]*) ;;
22034 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22035 esac
22036 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22037 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22038 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22039 case $gcc_cv_gas_patch_version in
22040 "") gcc_cv_gas_patch_version="0" ;;
22041 esac
22042 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22043 + $gcc_cv_gas_minor_version \) \* 1000 \
22044 + $gcc_cv_gas_patch_version`
22046 in_tree_gas_is_elf=no
22047 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22048 || (grep 'obj_format = multi' ../gas/Makefile \
22049 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22050 then
22051 in_tree_gas_is_elf=yes
22053 else
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22055 $as_echo "$gcc_cv_as" >&6; }
22056 in_tree_gas=no
22059 default_ld=
22060 # Check whether --enable-ld was given.
22061 if test "${enable_ld+set}" = set; then :
22062 enableval=$enable_ld; case "${enableval}" in
22064 default_ld=ld.gold
22066 esac
22070 install_gold_as_default=no
22071 # Check whether --enable-gold was given.
22072 if test "${enable_gold+set}" = set; then :
22073 enableval=$enable_gold; case "${enableval}" in
22074 default)
22075 install_gold_as_default=yes
22077 yes)
22078 if test x${default_ld} != x; then
22079 install_gold_as_default=yes
22085 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22087 esac
22091 # Identify the linker which will work hand-in-glove with the newly
22092 # built GCC, so that we can examine its features. This is the linker
22093 # which will be driven by the driver program.
22095 # If build != host, and we aren't building gas in-tree, we identify a
22096 # build->target linker and hope that it will have the same features
22097 # as the host->target linker we'll be using.
22098 gcc_cv_gld_major_version=
22099 gcc_cv_gld_minor_version=
22100 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22101 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22102 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22104 if ${gcc_cv_ld+:} false; then :
22106 else
22108 if test -x "$DEFAULT_LINKER"; then
22109 gcc_cv_ld="$DEFAULT_LINKER"
22110 elif test $install_gold_as_default = yes \
22111 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22112 && test -f ../gold/Makefile \
22113 && test x$build = x$host; then
22114 gcc_cv_ld=../gold/ld-new$build_exeext
22115 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22116 && test -f ../ld/Makefile \
22117 && test x$build = x$host; then
22118 gcc_cv_ld=../ld/ld-new$build_exeext
22119 elif test -x collect-ld$build_exeext; then
22120 # Build using linker in the current directory.
22121 gcc_cv_ld=./collect-ld$build_exeext
22122 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22123 gcc_cv_ld="$LD_FOR_TARGET"
22124 else
22125 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22126 set dummy $LD_FOR_TARGET; ac_word=$2
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22128 $as_echo_n "checking for $ac_word... " >&6; }
22129 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22130 $as_echo_n "(cached) " >&6
22131 else
22132 case $gcc_cv_ld in
22133 [\\/]* | ?:[\\/]*)
22134 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22138 for as_dir in $PATH
22140 IFS=$as_save_IFS
22141 test -z "$as_dir" && as_dir=.
22142 for ac_exec_ext in '' $ac_executable_extensions; do
22143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22144 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22146 break 2
22148 done
22149 done
22150 IFS=$as_save_IFS
22153 esac
22155 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22156 if test -n "$gcc_cv_ld"; then
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22158 $as_echo "$gcc_cv_ld" >&6; }
22159 else
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22161 $as_echo "no" >&6; }
22168 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22169 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22170 # if the PLUGIN_LD is set ld-new, just have it as ld
22171 # as that is the installed named.
22172 if test x$PLUGIN_LD_SUFFIX = xld-new \
22173 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22174 PLUGIN_LD_SUFFIX=ld
22177 # Check whether --with-plugin-ld was given.
22178 if test "${with_plugin_ld+set}" = set; then :
22179 withval=$with_plugin_ld; if test x"$withval" != x; then
22180 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22181 PLUGIN_LD_SUFFIX="$withval"
22187 cat >>confdefs.h <<_ACEOF
22188 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22189 _ACEOF
22192 # Check to see if we are using gold instead of ld
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22194 $as_echo_n "checking whether we are using gold... " >&6; }
22195 ld_is_gold=no
22196 if test x$gcc_cv_ld != x; then
22197 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22198 | grep "GNU gold" > /dev/null; then
22199 ld_is_gold=yes
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22203 $as_echo "$ld_is_gold" >&6; }
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22206 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22207 # Check to see if default ld is not gold, but gold is
22208 # available and has support for split stack. If gcc was configured
22209 # with gold then no checking is done.
22211 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22213 # For platforms other than powerpc64*, enable as appropriate.
22215 gold_non_default=no
22216 ld_gold=`which ${gcc_cv_ld}.gold`
22217 # Make sure this gold has minimal split stack support
22218 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22219 ld_vers=`$ld_gold --version | sed 1q`
22220 gold_vers=`echo $ld_vers | sed -n \
22221 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22222 case $target in
22223 # check that the gold version contains the complete split stack support
22224 # on powerpc64 big and little endian
22225 powerpc64*-*-*)
22226 case "$gold_vers" in
22227 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22229 *) gold_non_default=no
22231 esac
22233 esac
22235 if test $gold_non_default = yes; then
22237 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22242 $as_echo "$gold_non_default" >&6; }
22244 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22246 case "$ORIGINAL_LD_FOR_TARGET" in
22247 ./collect-ld | ./collect-ld$build_exeext) ;;
22248 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22250 esac
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22253 $as_echo_n "checking what linker to use... " >&6; }
22254 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22255 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22256 # Single tree build which includes ld. We want to prefer it
22257 # over whatever linker top-level may have detected, since
22258 # we'll use what we're building after installation anyway.
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22260 $as_echo "newly built ld" >&6; }
22261 in_tree_ld=yes
22262 in_tree_ld_is_elf=no
22263 if (grep 'EMUL = .*elf' ../ld/Makefile \
22264 || grep 'EMUL = .*linux' ../ld/Makefile \
22265 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22266 in_tree_ld_is_elf=yes
22267 elif test "$ld_is_gold" = yes; then
22268 in_tree_ld_is_elf=yes
22270 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
22272 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22273 if test x$gcc_cv_gld_version != x; then
22274 break
22276 done
22277 case $gcc_cv_gld_version in
22278 VERSION=[0-9]*) ;;
22279 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22280 esac
22281 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22282 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22283 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22284 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22285 else
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22287 $as_echo "$gcc_cv_ld" >&6; }
22288 in_tree_ld=no
22289 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22290 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22291 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22297 # Figure out what nm we will be using.
22298 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22299 if ${gcc_cv_nm+:} false; then :
22301 else
22303 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22304 && test -f ../binutils/Makefile \
22305 && test x$build = x$host; then
22306 gcc_cv_nm=../binutils/nm-new$build_exeext
22307 elif test -x nm$build_exeext; then
22308 gcc_cv_nm=./nm$build_exeext
22309 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22310 gcc_cv_nm="$NM_FOR_TARGET"
22311 else
22312 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22313 set dummy $NM_FOR_TARGET; ac_word=$2
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22315 $as_echo_n "checking for $ac_word... " >&6; }
22316 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22317 $as_echo_n "(cached) " >&6
22318 else
22319 case $gcc_cv_nm in
22320 [\\/]* | ?:[\\/]*)
22321 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22325 for as_dir in $PATH
22327 IFS=$as_save_IFS
22328 test -z "$as_dir" && as_dir=.
22329 for ac_exec_ext in '' $ac_executable_extensions; do
22330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22331 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22333 break 2
22335 done
22336 done
22337 IFS=$as_save_IFS
22340 esac
22342 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22343 if test -n "$gcc_cv_nm"; then
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22345 $as_echo "$gcc_cv_nm" >&6; }
22346 else
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22348 $as_echo "no" >&6; }
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22356 $as_echo_n "checking what nm to use... " >&6; }
22357 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22358 # Single tree build which includes binutils.
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22360 $as_echo "newly built nm" >&6; }
22361 in_tree_nm=yes
22362 else
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22364 $as_echo "$gcc_cv_nm" >&6; }
22365 in_tree_nm=no
22368 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22370 case "$ORIGINAL_NM_FOR_TARGET" in
22371 ./nm | ./nm$build_exeext) ;;
22372 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22374 esac
22377 # Figure out what objdump we will be using.
22378 if ${gcc_cv_objdump+:} false; then :
22380 else
22382 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22383 && test -f ../binutils/Makefile \
22384 && test x$build = x$host; then
22385 # Single tree build which includes binutils.
22386 gcc_cv_objdump=../binutils/objdump$build_exeext
22387 elif test -x objdump$build_exeext; then
22388 gcc_cv_objdump=./objdump$build_exeext
22389 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22390 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22391 else
22392 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22393 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22395 $as_echo_n "checking for $ac_word... " >&6; }
22396 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22397 $as_echo_n "(cached) " >&6
22398 else
22399 case $gcc_cv_objdump in
22400 [\\/]* | ?:[\\/]*)
22401 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22405 for as_dir in $PATH
22407 IFS=$as_save_IFS
22408 test -z "$as_dir" && as_dir=.
22409 for ac_exec_ext in '' $ac_executable_extensions; do
22410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22411 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22413 break 2
22415 done
22416 done
22417 IFS=$as_save_IFS
22420 esac
22422 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22423 if test -n "$gcc_cv_objdump"; then
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22425 $as_echo "$gcc_cv_objdump" >&6; }
22426 else
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22428 $as_echo "no" >&6; }
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22436 $as_echo_n "checking what objdump to use... " >&6; }
22437 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22438 # Single tree build which includes binutils.
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22440 $as_echo "newly built objdump" >&6; }
22441 elif test x$gcc_cv_objdump = x; then
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22443 $as_echo "not found" >&6; }
22444 else
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22446 $as_echo "$gcc_cv_objdump" >&6; }
22449 # Figure out what readelf we will be using.
22450 if ${gcc_cv_readelf+:} false; then :
22452 else
22454 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22455 && test -f ../binutils/Makefile \
22456 && test x$build = x$host; then
22457 # Single tree build which includes binutils.
22458 gcc_cv_readelf=../binutils/readelf$build_exeext
22459 elif test -x readelf$build_exeext; then
22460 gcc_cv_readelf=./readelf$build_exeext
22461 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22462 gcc_cv_readelf="$READELF_FOR_TARGET"
22463 else
22464 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22465 set dummy $READELF_FOR_TARGET; ac_word=$2
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22467 $as_echo_n "checking for $ac_word... " >&6; }
22468 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22469 $as_echo_n "(cached) " >&6
22470 else
22471 case $gcc_cv_readelf in
22472 [\\/]* | ?:[\\/]*)
22473 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22477 for as_dir in $PATH
22479 IFS=$as_save_IFS
22480 test -z "$as_dir" && as_dir=.
22481 for ac_exec_ext in '' $ac_executable_extensions; do
22482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22483 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22485 break 2
22487 done
22488 done
22489 IFS=$as_save_IFS
22492 esac
22494 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22495 if test -n "$gcc_cv_readelf"; then
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22497 $as_echo "$gcc_cv_readelf" >&6; }
22498 else
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22500 $as_echo "no" >&6; }
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22508 $as_echo_n "checking what readelf to use... " >&6; }
22509 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22510 # Single tree build which includes binutils.
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22512 $as_echo "newly built readelf" >&6; }
22513 elif test x$gcc_cv_readelf = x; then
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22515 $as_echo "not found" >&6; }
22516 else
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22518 $as_echo "$gcc_cv_readelf" >&6; }
22521 # Figure out what assembler alignment features are present.
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22523 $as_echo_n "checking assembler flags... " >&6; }
22524 if ${gcc_cv_as_flags+:} false; then :
22525 $as_echo_n "(cached) " >&6
22526 else
22527 case "$target" in
22528 i[34567]86-*-linux*)
22529 gcc_cv_as_flags=--32
22531 x86_64-*-linux-gnux32)
22532 gcc_cv_as_flags=--x32
22534 x86_64-*-linux*)
22535 gcc_cv_as_flags=--64
22537 powerpc*-*-darwin*)
22538 gcc_cv_as_flags="-arch ppc"
22541 gcc_cv_as_flags=" "
22543 esac
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22546 $as_echo "$gcc_cv_as_flags" >&6; }
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22549 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22550 if ${gcc_cv_as_balign_and_p2align+:} false; then :
22551 $as_echo_n "(cached) " >&6
22552 else
22553 gcc_cv_as_balign_and_p2align=no
22554 if test $in_tree_gas = yes; then
22555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22556 then gcc_cv_as_balign_and_p2align=yes
22558 elif test x$gcc_cv_as != x; then
22559 $as_echo '.balign 4
22560 .p2align 2' > conftest.s
22561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563 (eval $ac_try) 2>&5
22564 ac_status=$?
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }; }
22567 then
22568 gcc_cv_as_balign_and_p2align=yes
22569 else
22570 echo "configure: failed program was" >&5
22571 cat conftest.s >&5
22573 rm -f conftest.o conftest.s
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22577 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22578 if test $gcc_cv_as_balign_and_p2align = yes; then
22580 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22586 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22587 if ${gcc_cv_as_max_skip_p2align+:} false; then :
22588 $as_echo_n "(cached) " >&6
22589 else
22590 gcc_cv_as_max_skip_p2align=no
22591 if test $in_tree_gas = yes; then
22592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22593 then gcc_cv_as_max_skip_p2align=yes
22595 elif test x$gcc_cv_as != x; then
22596 $as_echo '.p2align 4,,7' > conftest.s
22597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22599 (eval $ac_try) 2>&5
22600 ac_status=$?
22601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22602 test $ac_status = 0; }; }
22603 then
22604 gcc_cv_as_max_skip_p2align=yes
22605 else
22606 echo "configure: failed program was" >&5
22607 cat conftest.s >&5
22609 rm -f conftest.o conftest.s
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22613 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22614 if test $gcc_cv_as_max_skip_p2align = yes; then
22616 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22622 $as_echo_n "checking assembler for .literal16... " >&6; }
22623 if ${gcc_cv_as_literal16+:} false; then :
22624 $as_echo_n "(cached) " >&6
22625 else
22626 gcc_cv_as_literal16=no
22627 if test $in_tree_gas = yes; then
22628 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22629 then gcc_cv_as_literal16=yes
22631 elif test x$gcc_cv_as != x; then
22632 $as_echo '.literal16' > conftest.s
22633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22635 (eval $ac_try) 2>&5
22636 ac_status=$?
22637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22638 test $ac_status = 0; }; }
22639 then
22640 gcc_cv_as_literal16=yes
22641 else
22642 echo "configure: failed program was" >&5
22643 cat conftest.s >&5
22645 rm -f conftest.o conftest.s
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22649 $as_echo "$gcc_cv_as_literal16" >&6; }
22650 if test $gcc_cv_as_literal16 = yes; then
22652 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22658 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22659 if ${gcc_cv_as_subsection_m1+:} false; then :
22660 $as_echo_n "(cached) " >&6
22661 else
22662 gcc_cv_as_subsection_m1=no
22663 if test $in_tree_gas = yes; then
22664 if test $in_tree_gas_is_elf = yes \
22665 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22666 then gcc_cv_as_subsection_m1=yes
22668 elif test x$gcc_cv_as != x; then
22669 $as_echo 'conftest_label1: .word 0
22670 .subsection -1
22671 conftest_label2: .word 0
22672 .previous' > conftest.s
22673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22675 (eval $ac_try) 2>&5
22676 ac_status=$?
22677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22678 test $ac_status = 0; }; }
22679 then
22680 if test x$gcc_cv_nm != x; then
22681 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22682 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22683 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22684 then :
22685 else gcc_cv_as_subsection_m1=yes
22687 rm -f conftest.nm1 conftest.nm2
22689 else
22690 echo "configure: failed program was" >&5
22691 cat conftest.s >&5
22693 rm -f conftest.o conftest.s
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22697 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22698 if test $gcc_cv_as_subsection_m1 = yes; then
22700 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22706 $as_echo_n "checking assembler for .weak... " >&6; }
22707 if ${gcc_cv_as_weak+:} false; then :
22708 $as_echo_n "(cached) " >&6
22709 else
22710 gcc_cv_as_weak=no
22711 if test $in_tree_gas = yes; then
22712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22713 then gcc_cv_as_weak=yes
22715 elif test x$gcc_cv_as != x; then
22716 $as_echo ' .weak foobar' > conftest.s
22717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22719 (eval $ac_try) 2>&5
22720 ac_status=$?
22721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22722 test $ac_status = 0; }; }
22723 then
22724 gcc_cv_as_weak=yes
22725 else
22726 echo "configure: failed program was" >&5
22727 cat conftest.s >&5
22729 rm -f conftest.o conftest.s
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22733 $as_echo "$gcc_cv_as_weak" >&6; }
22734 if test $gcc_cv_as_weak = yes; then
22736 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22742 $as_echo_n "checking assembler for .weakref... " >&6; }
22743 if ${gcc_cv_as_weakref+:} false; then :
22744 $as_echo_n "(cached) " >&6
22745 else
22746 gcc_cv_as_weakref=no
22747 if test $in_tree_gas = yes; then
22748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22749 then gcc_cv_as_weakref=yes
22751 elif test x$gcc_cv_as != x; then
22752 $as_echo ' .weakref foobar, barfnot' > conftest.s
22753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22755 (eval $ac_try) 2>&5
22756 ac_status=$?
22757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22758 test $ac_status = 0; }; }
22759 then
22760 gcc_cv_as_weakref=yes
22761 else
22762 echo "configure: failed program was" >&5
22763 cat conftest.s >&5
22765 rm -f conftest.o conftest.s
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22769 $as_echo "$gcc_cv_as_weakref" >&6; }
22770 if test $gcc_cv_as_weakref = yes; then
22772 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22778 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22779 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
22780 $as_echo_n "(cached) " >&6
22781 else
22782 gcc_cv_as_nsubspa_comdat=no
22783 if test $in_tree_gas = yes; then
22784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22785 then gcc_cv_as_nsubspa_comdat=yes
22787 elif test x$gcc_cv_as != x; then
22788 $as_echo ' .SPACE $TEXT$
22789 .NSUBSPA $CODE$,COMDAT' > conftest.s
22790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22792 (eval $ac_try) 2>&5
22793 ac_status=$?
22794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22795 test $ac_status = 0; }; }
22796 then
22797 gcc_cv_as_nsubspa_comdat=yes
22798 else
22799 echo "configure: failed program was" >&5
22800 cat conftest.s >&5
22802 rm -f conftest.o conftest.s
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22806 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22807 if test $gcc_cv_as_nsubspa_comdat = yes; then
22809 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22814 # .hidden needs to be supported in both the assembler and the linker,
22815 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22816 # This is irritatingly difficult to feature test for; we have to check the
22817 # date string after the version number. If we've got an in-tree
22818 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22819 # to be safe.
22820 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22821 case "${target}" in
22822 *-*-aix*)
22823 conftest_s=' .globl foobar,hidden'
22826 conftest_s=' .hidden foobar
22827 foobar:'
22829 esac
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22831 $as_echo_n "checking assembler for .hidden... " >&6; }
22832 if ${gcc_cv_as_hidden+:} false; then :
22833 $as_echo_n "(cached) " >&6
22834 else
22835 gcc_cv_as_hidden=no
22836 if test $in_tree_gas = yes; then
22837 if test $in_tree_gas_is_elf = yes \
22838 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22839 then gcc_cv_as_hidden=yes
22841 elif test x$gcc_cv_as != x; then
22842 $as_echo "$conftest_s" > conftest.s
22843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22845 (eval $ac_try) 2>&5
22846 ac_status=$?
22847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22848 test $ac_status = 0; }; }
22849 then
22850 gcc_cv_as_hidden=yes
22851 else
22852 echo "configure: failed program was" >&5
22853 cat conftest.s >&5
22855 rm -f conftest.o conftest.s
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22859 $as_echo "$gcc_cv_as_hidden" >&6; }
22862 case "${target}" in
22863 *-*-darwin*)
22864 # Darwin as has some visibility support, though with a different syntax.
22865 gcc_cv_as_hidden=yes
22867 esac
22869 # gnu_indirect_function type is an extension proposed at
22870 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22871 # selection of function implementation
22872 # Check whether --enable-gnu-indirect-function was given.
22873 if test "${enable_gnu_indirect_function+set}" = set; then :
22874 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22875 yes | no) ;;
22876 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22877 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22878 esac
22879 else
22880 enable_gnu_indirect_function="$default_gnu_indirect_function"
22884 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22886 cat >>confdefs.h <<_ACEOF
22887 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22888 _ACEOF
22892 if test $in_tree_ld != yes ; then
22893 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22894 if echo "$ld_ver" | grep GNU > /dev/null; then
22895 if test x"$ld_is_gold" = xyes; then
22896 # GNU gold --version looks like this:
22898 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22900 # We extract the binutils version which is more familiar and specific
22901 # than the gold version.
22902 ld_vers=`echo $ld_ver | sed -n \
22903 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22904 else
22905 # GNU ld --version looks like this:
22907 # GNU ld (GNU Binutils) 2.21.51.20110225
22908 ld_vers=`echo $ld_ver | sed -n \
22909 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22911 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'`
22912 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22913 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22914 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22915 else
22916 case "${target}" in
22917 *-*-solaris2*)
22918 # Solaris 2 ld -V output looks like this for a regular version:
22920 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22922 # but test versions add stuff at the end:
22924 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22926 # In Solaris 11.4, this was changed to
22928 # ld: Solaris ELF Utilities: 11.4-1.3123
22930 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22931 # numbers can be used in ld.so.1 feature checks even if a different
22932 # linker is configured.
22933 ld_ver=`$gcc_cv_ld -V 2>&1`
22934 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
22935 ld_vers=`echo $ld_ver | sed -n \
22936 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22937 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22938 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22941 esac
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22946 $as_echo_n "checking linker for .hidden support... " >&6; }
22947 if ${gcc_cv_ld_hidden+:} false; then :
22948 $as_echo_n "(cached) " >&6
22949 else
22950 if test $in_tree_ld = yes ; then
22951 gcc_cv_ld_hidden=no
22952 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 \
22953 && test $in_tree_ld_is_elf = yes; then
22954 gcc_cv_ld_hidden=yes
22956 else
22957 gcc_cv_ld_hidden=yes
22958 if test x"$ld_is_gold" = xyes; then
22960 elif echo "$ld_ver" | grep GNU > /dev/null; then
22961 case "${target}" in
22962 mmix-knuth-mmixware)
22963 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22964 gcc_cv_ld_hidden=no
22966 esac
22967 if test 0"$ld_date" -lt 20020404; then
22968 if test -n "$ld_date"; then
22969 # If there was date string, but was earlier than 2002-04-04, fail
22970 gcc_cv_ld_hidden=no
22971 elif test -z "$ld_vers"; then
22972 # If there was no date string nor ld version number, something is wrong
22973 gcc_cv_ld_hidden=no
22974 else
22975 test -z "$ld_vers_patch" && ld_vers_patch=0
22976 if test "$ld_vers_major" -lt 2; then
22977 gcc_cv_ld_hidden=no
22978 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22979 gcc_cv_ld_hidden="no"
22980 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22981 gcc_cv_ld_hidden=no
22985 else
22986 case "${target}" in
22987 *-*-aix[789]*)
22988 gcc_cv_ld_hidden=yes
22990 *-*-darwin*)
22991 # Darwin ld has some visibility support.
22992 gcc_cv_ld_hidden=yes
22994 hppa64*-*-hpux* | ia64*-*-hpux*)
22995 gcc_cv_ld_hidden=yes
22997 *-*-solaris2.1[0-9]*)
22998 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22999 # .symbolic was only added in Solaris 9 12/02.
23000 gcc_cv_ld_hidden=yes
23003 gcc_cv_ld_hidden=no
23005 esac
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23010 $as_echo "$gcc_cv_ld_hidden" >&6; }
23011 libgcc_visibility=no
23014 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23015 libgcc_visibility=yes
23017 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23022 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23023 gcc_cv_ld_ro_rw_mix=unknown
23024 if test $in_tree_ld = yes ; then
23025 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 \
23026 && test $in_tree_ld_is_elf = yes; then
23027 gcc_cv_ld_ro_rw_mix=read-write
23029 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23030 echo '.section myfoosect, "a"' > conftest1.s
23031 echo '.section myfoosect, "aw"' > conftest2.s
23032 echo '.byte 1' >> conftest2.s
23033 echo '.section myfoosect, "a"' > conftest3.s
23034 echo '.byte 0' >> conftest3.s
23035 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23036 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23037 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23038 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23039 conftest2.o conftest3.o > /dev/null 2>&1; then
23040 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23041 | sed -e '/myfoosect/!d' -e N`
23042 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23043 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23044 gcc_cv_ld_ro_rw_mix=read-only
23045 else
23046 gcc_cv_ld_ro_rw_mix=read-write
23050 rm -f conftest.* conftest[123].*
23052 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23054 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23058 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23060 # Check whether --enable-initfini-array was given.
23061 if test "${enable_initfini_array+set}" = set; then :
23062 enableval=$enable_initfini_array;
23063 else
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23066 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23067 if ${gcc_cv_initfini_array+:} false; then :
23068 $as_echo_n "(cached) " >&6
23069 else
23070 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23071 case "${target}" in
23072 ia64-*)
23073 if test "$cross_compiling" = yes; then :
23074 gcc_cv_initfini_array=no
23075 else
23076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23077 /* end confdefs.h. */
23079 #ifndef __ELF__
23080 #error Not an ELF OS
23081 #endif
23082 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23083 if it can be used. */
23084 static int x = -1;
23085 int main (void) { return x; }
23086 int foo (void) { x = 0; }
23087 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23089 _ACEOF
23090 if ac_fn_cxx_try_run "$LINENO"; then :
23091 gcc_cv_initfini_array=yes
23092 else
23093 gcc_cv_initfini_array=no
23095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23096 conftest.$ac_objext conftest.beam conftest.$ac_ext
23100 gcc_cv_initfini_array=no
23101 if test $in_tree_ld = yes ; then
23102 if test "$gcc_cv_gld_major_version" -eq 2 \
23103 -a "$gcc_cv_gld_minor_version" -ge 22 \
23104 -o "$gcc_cv_gld_major_version" -gt 2 \
23105 && test $in_tree_ld_is_elf = yes; then
23106 gcc_cv_initfini_array=yes
23108 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23109 case $target:$gas in
23110 *:yes)
23111 sh_flags='"a"'
23112 sh_type='%progbits'
23114 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23115 sh_flags='"a"'
23116 sh_type='@progbits'
23118 sparc*-*-solaris2*:no)
23119 sh_flags='#alloc'
23120 sh_type='#progbits'
23121 sh_quote='"'
23123 esac
23124 case "$target:$gnu_ld" in
23125 *:yes)
23126 cat > conftest.s <<EOF
23127 .section .dtors,$sh_flags,$sh_type
23128 .balign 4
23129 .byte 'A', 'A', 'A', 'A'
23130 .section .ctors,$sh_flags,$sh_type
23131 .balign 4
23132 .byte 'B', 'B', 'B', 'B'
23133 .section .fini_array.65530,$sh_flags,$sh_type
23134 .balign 4
23135 .byte 'C', 'C', 'C', 'C'
23136 .section .init_array.65530,$sh_flags,$sh_type
23137 .balign 4
23138 .byte 'D', 'D', 'D', 'D'
23139 .section .dtors.64528,$sh_flags,$sh_type
23140 .balign 4
23141 .byte 'E', 'E', 'E', 'E'
23142 .section .ctors.64528,$sh_flags,$sh_type
23143 .balign 4
23144 .byte 'F', 'F', 'F', 'F'
23145 .section .fini_array.01005,$sh_flags,$sh_type
23146 .balign 4
23147 .byte 'G', 'G', 'G', 'G'
23148 .section .init_array.01005,$sh_flags,$sh_type
23149 .balign 4
23150 .byte 'H', 'H', 'H', 'H'
23151 .text
23152 .globl _start
23153 _start:
23155 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23156 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23157 && $gcc_cv_objdump -s -j .init_array conftest \
23158 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23159 && $gcc_cv_objdump -s -j .fini_array conftest \
23160 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23161 gcc_cv_initfini_array=yes
23164 *-*-solaris2*:no)
23165 # When Solaris ld added constructor priority support, it was
23166 # decided to only handle .init_array.N/.fini_array.N since
23167 # there was no need for backwards compatibility with
23168 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23169 # sections with correct execution order resp. to
23170 # .init_array/.fini_array, while gld merges them into
23171 # .init_array/.fini_array.
23172 cat > conftest.s <<EOF
23173 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23174 .align 4
23175 .byte 'C', 'C', 'C', 'C'
23176 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23177 .align 4
23178 .byte 'D', 'D', 'D', 'D'
23179 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23180 .align 4
23181 .byte 'G', 'G', 'G', 'G'
23182 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23183 .align 4
23184 .byte 'H', 'H', 'H', 'H'
23185 .text
23186 .globl _start
23187 _start:
23189 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23190 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23191 && $gcc_cv_objdump -s -j .init_array conftest \
23192 | grep HHHHDDDD > /dev/null 2>&1 \
23193 && $gcc_cv_objdump -s -j .fini_array conftest \
23194 | grep GGGGCCCC > /dev/null 2>&1; then
23195 gcc_cv_initfini_array=yes
23198 esac
23199 rm -f conftest conftest.*
23201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23202 /* end confdefs.h. */
23204 #ifndef __ELF__
23205 # error Not an ELF OS
23206 #endif
23207 #include <stdlib.h>
23208 #if defined __GLIBC_PREREQ
23209 # if __GLIBC_PREREQ (2, 4)
23210 # else
23211 # error GLIBC 2.4 required
23212 # endif
23213 #else
23214 # if defined __sun__ && defined __svr4__
23215 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23216 # else
23217 # error The C library not known to support .init_array/.fini_array
23218 # endif
23219 #endif
23221 _ACEOF
23222 if ac_fn_cxx_try_cpp "$LINENO"; then :
23224 else
23225 gcc_cv_initfini_array=no
23227 rm -f conftest.err conftest.i conftest.$ac_ext;;
23228 esac
23229 else
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23231 $as_echo_n "checking cross compile... guessing... " >&6; }
23232 gcc_cv_initfini_array=no
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23236 $as_echo "$gcc_cv_initfini_array" >&6; }
23237 enable_initfini_array=$gcc_cv_initfini_array
23242 cat >>confdefs.h <<_ACEOF
23243 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23244 _ACEOF
23248 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23250 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23251 if ${gcc_cv_as_leb128+:} false; then :
23252 $as_echo_n "(cached) " >&6
23253 else
23254 gcc_cv_as_leb128=no
23255 if test $in_tree_gas = yes; then
23256 if test $in_tree_gas_is_elf = yes \
23257 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23258 then gcc_cv_as_leb128=yes
23260 elif test x$gcc_cv_as != x; then
23261 $as_echo ' .data
23262 .uleb128 L2 - L1
23264 .uleb128 1280
23265 .sleb128 -1010
23266 L2:' > conftest.s
23267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23269 (eval $ac_try) 2>&5
23270 ac_status=$?
23271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; }
23273 then
23274 # GAS versions before 2.11 do not support uleb128,
23275 # despite appearing to.
23276 # ??? There exists an elf-specific test that will crash
23277 # the assembler. Perhaps it's better to figure out whether
23278 # arbitrary sections are supported and try the test.
23279 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23280 if echo "$as_ver" | grep GNU > /dev/null; then
23281 as_vers=`echo $as_ver | sed -n \
23282 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23283 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23284 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23285 if test $as_major -eq 2 && test $as_minor -lt 11
23286 then :
23287 else gcc_cv_as_leb128=yes
23290 else
23291 echo "configure: failed program was" >&5
23292 cat conftest.s >&5
23294 rm -f conftest.o conftest.s
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23298 $as_echo "$gcc_cv_as_leb128" >&6; }
23299 if test $gcc_cv_as_leb128 = yes; then
23301 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23304 if test $gcc_cv_as_leb128 != yes; then
23306 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23310 # Determine if an .eh_frame section is read-only.
23311 gcc_fn_eh_frame_ro () {
23312 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23313 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23314 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23317 # Check if we have assembler support for unwind directives.
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23319 $as_echo_n "checking assembler for cfi directives... " >&6; }
23320 if ${gcc_cv_as_cfi_directive+:} false; then :
23321 $as_echo_n "(cached) " >&6
23322 else
23323 gcc_cv_as_cfi_directive=no
23324 if test x$gcc_cv_as != x; then
23325 $as_echo ' .text
23326 .cfi_startproc
23327 .cfi_offset 0, 0
23328 .cfi_same_value 1
23329 .cfi_def_cfa 1, 2
23330 .cfi_escape 1, 2, 3, 4, 5
23331 .cfi_endproc' > conftest.s
23332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23337 test $ac_status = 0; }; }
23338 then
23339 case "$target" in
23340 *-*-solaris*)
23341 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23342 # read-only and read-write sections, we need to make sure that the
23343 # assembler used emits read-write .eh_frame sections.
23344 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23345 gcc_cv_as_cfi_directive=yes
23346 elif test "x$gcc_cv_objdump" = x; then
23347 # No objdump, err on the side of caution.
23348 gcc_cv_as_cfi_directive=no
23349 else
23350 if test x$gas = xyes; then
23351 as_32_opt="--32"
23352 as_64_opt="--64"
23353 else
23354 as_32_opt="-m32"
23355 as_64_opt="-m64"
23357 case "$target" in
23358 sparc*-*-solaris2.*)
23359 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23360 if gcc_fn_eh_frame_ro $as_32_opt \
23361 || gcc_fn_eh_frame_ro $as_64_opt; then
23362 gcc_cv_as_cfi_directive=no
23363 else
23364 gcc_cv_as_cfi_directive=yes
23367 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23368 # On Solaris/x86, make sure that GCC and assembler agree on using
23369 # read-only .eh_frame sections for 64-bit.
23370 if gcc_fn_eh_frame_ro $as_32_opt; then
23371 gcc_cv_as_cfi_directive=no
23372 elif gcc_fn_eh_frame_ro $as_64_opt; then
23373 gcc_cv_as_cfi_directive=yes
23374 else
23375 gcc_cv_as_cfi_directive=no
23378 esac
23381 *-*-*)
23382 gcc_cv_as_cfi_directive=yes
23384 esac
23385 else
23386 echo "configure: failed program was" >&5
23387 cat conftest.s >&5
23389 rm -f conftest.o conftest.s
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23393 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23396 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23398 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23399 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23400 $as_echo_n "(cached) " >&6
23401 else
23402 gcc_cv_as_cfi_advance_working=no
23403 if test x$gcc_cv_as != x; then
23404 $as_echo ' .text
23405 .cfi_startproc
23406 .cfi_adjust_cfa_offset 64
23407 .skip 75040, 0
23408 .cfi_adjust_cfa_offset 128
23409 .cfi_endproc' > conftest.s
23410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23412 (eval $ac_try) 2>&5
23413 ac_status=$?
23414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23415 test $ac_status = 0; }; }
23416 then
23418 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23419 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23420 gcc_cv_as_cfi_advance_working=yes
23423 else
23424 echo "configure: failed program was" >&5
23425 cat conftest.s >&5
23427 rm -f conftest.o conftest.s
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23431 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23434 else
23435 # no objdump, err on the side of caution
23436 gcc_cv_as_cfi_advance_working=no
23440 cat >>confdefs.h <<_ACEOF
23441 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23442 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23443 _ACEOF
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23448 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23449 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23450 $as_echo_n "(cached) " >&6
23451 else
23452 gcc_cv_as_cfi_personality_directive=no
23453 if test x$gcc_cv_as != x; then
23454 $as_echo ' .text
23455 .cfi_startproc
23456 .cfi_personality 0, symbol
23457 .cfi_endproc' > conftest.s
23458 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23460 (eval $ac_try) 2>&5
23461 ac_status=$?
23462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23463 test $ac_status = 0; }; }
23464 then
23465 gcc_cv_as_cfi_personality_directive=yes
23466 else
23467 echo "configure: failed program was" >&5
23468 cat conftest.s >&5
23470 rm -f conftest.o conftest.s
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23474 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23478 cat >>confdefs.h <<_ACEOF
23479 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23480 _ACEOF
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23484 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23485 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23486 $as_echo_n "(cached) " >&6
23487 else
23488 gcc_cv_as_cfi_sections_directive=no
23489 if test x$gcc_cv_as != x; then
23490 $as_echo ' .text
23491 .cfi_sections .debug_frame, .eh_frame
23492 .cfi_startproc
23493 .cfi_endproc' > conftest.s
23494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23496 (eval $ac_try) 2>&5
23497 ac_status=$?
23498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23499 test $ac_status = 0; }; }
23500 then
23501 case $target_os in
23502 win32 | pe | cygwin* | mingw32*)
23503 # Need to check that we generated the correct relocation for the
23504 # .debug_frame section. This was fixed for binutils 2.21.
23505 gcc_cv_as_cfi_sections_directive=no
23506 if test "x$gcc_cv_objdump" != x; then
23507 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23508 grep secrel > /dev/null; then
23509 gcc_cv_as_cfi_sections_directive=yes
23514 gcc_cv_as_cfi_sections_directive=yes
23516 esac
23517 else
23518 echo "configure: failed program was" >&5
23519 cat conftest.s >&5
23521 rm -f conftest.o conftest.s
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23525 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23530 cat >>confdefs.h <<_ACEOF
23531 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23532 _ACEOF
23535 # GAS versions up to and including 2.11.0 may mis-optimize
23536 # .eh_frame data.
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23538 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23539 if ${gcc_cv_as_eh_frame+:} false; then :
23540 $as_echo_n "(cached) " >&6
23541 else
23542 gcc_cv_as_eh_frame=no
23543 if test $in_tree_gas = yes; then
23544 if test $in_tree_gas_is_elf = yes \
23545 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23546 then gcc_cv_as_eh_frame=yes
23548 elif test x$gcc_cv_as != x; then
23549 $as_echo ' .text
23550 .LFB1:
23551 .4byte 0
23552 .L1:
23553 .4byte 0
23554 .LFE1:
23555 .section .eh_frame,"aw",@progbits
23556 __FRAME_BEGIN__:
23557 .4byte .LECIE1-.LSCIE1
23558 .LSCIE1:
23559 .4byte 0x0
23560 .byte 0x1
23561 .ascii "z\0"
23562 .byte 0x1
23563 .byte 0x78
23564 .byte 0x1a
23565 .byte 0x0
23566 .byte 0x4
23567 .4byte 1
23568 .p2align 1
23569 .LECIE1:
23570 .LSFDE1:
23571 .4byte .LEFDE1-.LASFDE1
23572 .LASFDE1:
23573 .4byte .LASFDE1-__FRAME_BEGIN__
23574 .4byte .LFB1
23575 .4byte .LFE1-.LFB1
23576 .byte 0x4
23577 .4byte .LFE1-.LFB1
23578 .byte 0x4
23579 .4byte .L1-.LFB1
23580 .LEFDE1:' > conftest.s
23581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23583 (eval $ac_try) 2>&5
23584 ac_status=$?
23585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23586 test $ac_status = 0; }; }
23587 then
23588 cat > conftest.lit <<EOF
23589 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23590 0010 01000000 12000000 18000000 00000000 ................
23591 0020 08000000 04080000 0044 .........D
23593 cat > conftest.big <<EOF
23594 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23595 0010 00000001 00000012 00000018 00000000 ................
23596 0020 00000008 04000000 0844 .........D
23598 # If the assembler didn't choke, and we can objdump,
23599 # and we got the correct data, then succeed.
23600 # The text in the here-document typically retains its unix-style line
23601 # endings, while the output of objdump will use host line endings.
23602 # Therefore, use diff -b for the comparisons.
23603 if test x$gcc_cv_objdump != x \
23604 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23605 | tail -3 > conftest.got \
23606 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23607 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23608 then
23609 gcc_cv_as_eh_frame=yes
23610 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23612 (eval $ac_try) 2>&5
23613 ac_status=$?
23614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23615 test $ac_status = 0; }; }; then
23616 gcc_cv_as_eh_frame=buggy
23617 else
23618 # Uh oh, what do we do now?
23619 gcc_cv_as_eh_frame=no
23621 else
23622 echo "configure: failed program was" >&5
23623 cat conftest.s >&5
23625 rm -f conftest.o conftest.s
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23629 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23633 if test $gcc_cv_as_eh_frame = buggy; then
23635 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23639 # Test if the assembler supports the section flag 'e' or #exclude for
23640 # specifying an excluded section.
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23642 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23643 if ${gcc_cv_as_section_exclude_e+:} false; then :
23644 $as_echo_n "(cached) " >&6
23645 else
23646 gcc_cv_as_section_exclude_e=no
23647 if test $in_tree_gas = yes; then
23648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23649 then gcc_cv_as_section_exclude_e=yes
23651 elif test x$gcc_cv_as != x; then
23652 $as_echo '.section foo1,"e"
23653 .byte 0,0,0,0' > conftest.s
23654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23659 test $ac_status = 0; }; }
23660 then
23661 gcc_cv_as_section_exclude_e=yes
23662 else
23663 echo "configure: failed program was" >&5
23664 cat conftest.s >&5
23666 rm -f conftest.o conftest.s
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23670 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23673 if test $gcc_cv_as_section_exclude_e = no; then
23674 case "${target}" in
23675 # Solaris as uses #exclude instead.
23676 *-*-solaris2*)
23677 case "${target}" in
23678 sparc*-*-solaris2*)
23679 conftest_s='.section "foo1", #exclude'
23681 i?86-*-solaris2* | x86_64-*-solaris2*)
23682 conftest_s='.section foo1, #exclude'
23684 esac
23686 esac
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23688 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23689 if ${gcc_cv_as_section_exclude_hash+:} false; then :
23690 $as_echo_n "(cached) " >&6
23691 else
23692 gcc_cv_as_section_exclude_hash=no
23693 if test x$gcc_cv_as != x; then
23694 $as_echo "$conftest_s
23695 .byte 0,0,0,0" > conftest.s
23696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23698 (eval $ac_try) 2>&5
23699 ac_status=$?
23700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23701 test $ac_status = 0; }; }
23702 then
23703 gcc_cv_as_section_exclude_hash=yes
23704 else
23705 echo "configure: failed program was" >&5
23706 cat conftest.s >&5
23708 rm -f conftest.o conftest.s
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23712 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23717 cat >>confdefs.h <<_ACEOF
23718 #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`
23719 _ACEOF
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23723 $as_echo_n "checking assembler for section merging support... " >&6; }
23724 if ${gcc_cv_as_shf_merge+:} false; then :
23725 $as_echo_n "(cached) " >&6
23726 else
23727 gcc_cv_as_shf_merge=no
23728 if test $in_tree_gas = yes; then
23729 if test $in_tree_gas_is_elf = yes \
23730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23731 then gcc_cv_as_shf_merge=yes
23733 elif test x$gcc_cv_as != x; then
23734 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23737 (eval $ac_try) 2>&5
23738 ac_status=$?
23739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23740 test $ac_status = 0; }; }
23741 then
23742 gcc_cv_as_shf_merge=yes
23743 else
23744 echo "configure: failed program was" >&5
23745 cat conftest.s >&5
23747 rm -f conftest.o conftest.s
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23751 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23754 if test $gcc_cv_as_shf_merge = no; then
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23756 $as_echo_n "checking assembler for section merging support... " >&6; }
23757 if ${gcc_cv_as_shf_merge+:} false; then :
23758 $as_echo_n "(cached) " >&6
23759 else
23760 gcc_cv_as_shf_merge=no
23761 if test $in_tree_gas = yes; then
23762 if test $in_tree_gas_is_elf = yes \
23763 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23764 then gcc_cv_as_shf_merge=yes
23766 elif test x$gcc_cv_as != x; then
23767 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23770 (eval $ac_try) 2>&5
23771 ac_status=$?
23772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23773 test $ac_status = 0; }; }
23774 then
23775 gcc_cv_as_shf_merge=yes
23776 else
23777 echo "configure: failed program was" >&5
23778 cat conftest.s >&5
23780 rm -f conftest.o conftest.s
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23784 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23788 case "$target" in
23789 i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23790 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23791 if test x"$gnu_ld" = xno; then
23792 gcc_cv_as_shf_merge=no
23795 esac
23797 cat >>confdefs.h <<_ACEOF
23798 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23799 _ACEOF
23802 gcc_cv_ld_aligned_shf_merge=yes
23803 case "$target" in
23804 # While Solaris 10/SPARC ld isn't affected, disable to avoid problems
23805 # relinking on Solaris 11 < 11.4.
23806 sparc*-*-solaris2.10*)
23807 if test x"$gnu_ld" = xno; then
23808 gcc_cv_ld_aligned_shf_merge=no
23811 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23812 # alignment > 1.
23813 sparc*-*-solaris2.11*)
23814 if test x"$gnu_ld" = xno \
23815 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23816 gcc_cv_ld_aligned_shf_merge=no
23819 esac
23821 cat >>confdefs.h <<_ACEOF
23822 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23823 _ACEOF
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23827 $as_echo_n "checking assembler for stabs directive... " >&6; }
23828 if ${gcc_cv_as_stabs_directive+:} false; then :
23829 $as_echo_n "(cached) " >&6
23830 else
23831 gcc_cv_as_stabs_directive=no
23832 if test x$gcc_cv_as != x; then
23833 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23836 (eval $ac_try) 2>&5
23837 ac_status=$?
23838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23839 test $ac_status = 0; }; }
23840 then
23841 gcc_cv_as_stabs_directive=yes
23842 else
23843 echo "configure: failed program was" >&5
23844 cat conftest.s >&5
23846 rm -f conftest.o conftest.s
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23850 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23851 if test $gcc_cv_as_stabs_directive = yes; then
23853 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23859 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23860 if ${gcc_cv_as_comdat_group+:} false; then :
23861 $as_echo_n "(cached) " >&6
23862 else
23863 gcc_cv_as_comdat_group=no
23864 if test $in_tree_gas = yes; then
23865 if test $in_tree_gas_is_elf = yes \
23866 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23867 then gcc_cv_as_comdat_group=yes
23869 elif test x$gcc_cv_as != x; then
23870 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23873 (eval $ac_try) 2>&5
23874 ac_status=$?
23875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23876 test $ac_status = 0; }; }
23877 then
23878 gcc_cv_as_comdat_group=yes
23879 else
23880 echo "configure: failed program was" >&5
23881 cat conftest.s >&5
23883 rm -f conftest.o conftest.s
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23887 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23890 if test $gcc_cv_as_comdat_group = yes; then
23891 gcc_cv_as_comdat_group_percent=no
23892 gcc_cv_as_comdat_group_group=no
23893 else
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23895 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23896 if ${gcc_cv_as_comdat_group_percent+:} false; then :
23897 $as_echo_n "(cached) " >&6
23898 else
23899 gcc_cv_as_comdat_group_percent=no
23900 if test $in_tree_gas = yes; then
23901 if test $in_tree_gas_is_elf = yes \
23902 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23903 then gcc_cv_as_comdat_group_percent=yes
23905 elif test x$gcc_cv_as != x; then
23906 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23912 test $ac_status = 0; }; }
23913 then
23914 gcc_cv_as_comdat_group_percent=yes
23915 else
23916 echo "configure: failed program was" >&5
23917 cat conftest.s >&5
23919 rm -f conftest.o conftest.s
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23923 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23926 if test $gcc_cv_as_comdat_group_percent = yes; then
23927 gcc_cv_as_comdat_group_group=no
23928 else
23929 case "${target}" in
23930 # Sun as uses a completely different syntax.
23931 *-*-solaris2*)
23932 case "${target}" in
23933 sparc*-*-solaris2*)
23934 conftest_s='
23935 .group foo,".text%foo",#comdat
23936 .section ".text%foo", #alloc,#execinstr,#progbits
23937 .globl foo
23938 foo:
23941 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23942 conftest_s='
23943 .group foo,.text%foo,#comdat
23944 .section .text%foo, "ax", @progbits
23945 .globl foo
23946 foo:
23949 esac
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23951 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23952 if ${gcc_cv_as_comdat_group_group+:} false; then :
23953 $as_echo_n "(cached) " >&6
23954 else
23955 gcc_cv_as_comdat_group_group=no
23956 if test x$gcc_cv_as != x; then
23957 $as_echo "$conftest_s" > conftest.s
23958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23960 (eval $ac_try) 2>&5
23961 ac_status=$?
23962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23963 test $ac_status = 0; }; }
23964 then
23965 gcc_cv_as_comdat_group_group=yes
23966 else
23967 echo "configure: failed program was" >&5
23968 cat conftest.s >&5
23970 rm -f conftest.o conftest.s
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23974 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23978 esac
23979 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23980 gcc_cv_as_comdat_group_group=no
23984 if test x"$ld_is_gold" = xyes; then
23985 comdat_group=yes
23986 elif test $in_tree_ld = yes ; then
23987 comdat_group=no
23988 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 \
23989 && test $in_tree_ld_is_elf = yes; then
23990 comdat_group=yes
23992 elif echo "$ld_ver" | grep GNU > /dev/null; then
23993 comdat_group=yes
23994 if test 0"$ld_date" -lt 20050308; then
23995 if test -n "$ld_date"; then
23996 # If there was date string, but was earlier than 2005-03-08, fail
23997 comdat_group=no
23998 elif test "$ld_vers_major" -lt 2; then
23999 comdat_group=no
24000 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24001 comdat_group=no
24004 else
24005 case "${target}" in
24006 *-*-solaris2.1[1-9]*)
24007 comdat_group=no
24008 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24009 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24010 # version 1.688.
24012 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24013 # least ld version 1.2267.
24014 if test "$ld_vers_major" -gt 1; then
24015 comdat_group=yes
24016 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24017 comdat_group=yes
24018 elif test "$ld_vers_minor" -ge 2267; then
24019 comdat_group=yes
24023 # Assume linkers other than GNU ld don't support COMDAT group.
24024 comdat_group=no
24026 esac
24028 # Allow overriding the automatic COMDAT group tests above.
24029 # Check whether --enable-comdat was given.
24030 if test "${enable_comdat+set}" = set; then :
24031 enableval=$enable_comdat; comdat_group="$enable_comdat"
24034 if test $comdat_group = no; then
24035 gcc_cv_as_comdat_group=no
24036 gcc_cv_as_comdat_group_percent=no
24037 gcc_cv_as_comdat_group_group=no
24040 cat >>confdefs.h <<_ACEOF
24041 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24042 || test $gcc_cv_as_comdat_group_percent = yes \
24043 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24044 _ACEOF
24047 # Restrict this test to Solaris/x86: other targets define this statically.
24048 case "${target}" in
24049 i?86-*-solaris2* | x86_64-*-solaris2*)
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24051 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24052 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24053 hidden_linkonce=yes
24054 else
24055 case "${target}" in
24056 # Full support for hidden thunks in linkonce sections only appeared in
24057 # Solaris 11/OpenSolaris.
24058 *-*-solaris2.1[1-9]*)
24059 hidden_linkonce=yes
24062 hidden_linkonce=no
24064 esac
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24067 $as_echo "$hidden_linkonce" >&6; }
24069 cat >>confdefs.h <<_ACEOF
24070 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24071 _ACEOF
24074 esac
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24077 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24078 if ${gcc_cv_as_is_stmt+:} false; then :
24079 $as_echo_n "(cached) " >&6
24080 else
24081 gcc_cv_as_is_stmt=no
24082 if test $in_tree_gas = yes; then
24083 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24084 then gcc_cv_as_is_stmt=yes
24086 elif test x$gcc_cv_as != x; then
24087 $as_echo ' .text
24088 .file 1 "conf.c"
24089 .loc 1 1 0 is_stmt 1' > conftest.s
24090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24092 (eval $ac_try) 2>&5
24093 ac_status=$?
24094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24095 test $ac_status = 0; }; }
24096 then
24097 gcc_cv_as_is_stmt=yes
24098 else
24099 echo "configure: failed program was" >&5
24100 cat conftest.s >&5
24102 rm -f conftest.o conftest.s
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24106 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24107 if test $gcc_cv_as_is_stmt = yes; then
24109 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24115 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24116 if ${gcc_cv_as_discriminator+:} false; then :
24117 $as_echo_n "(cached) " >&6
24118 else
24119 gcc_cv_as_discriminator=no
24120 if test $in_tree_gas = yes; then
24121 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24122 then gcc_cv_as_discriminator=yes
24124 elif test x$gcc_cv_as != x; then
24125 $as_echo ' .text
24126 .file 1 "conf.c"
24127 .loc 1 1 0 discriminator 1' > conftest.s
24128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133 test $ac_status = 0; }; }
24134 then
24135 gcc_cv_as_discriminator=yes
24136 else
24137 echo "configure: failed program was" >&5
24138 cat conftest.s >&5
24140 rm -f conftest.o conftest.s
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24144 $as_echo "$gcc_cv_as_discriminator" >&6; }
24145 if test $gcc_cv_as_discriminator = yes; then
24147 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24152 # Thread-local storage - the check is heavily parameterized.
24153 conftest_s=
24154 tls_first_major=
24155 tls_first_minor=
24156 tls_as_opt=
24157 case "$target" in
24158 alpha*-*-*)
24159 conftest_s='
24160 .section ".tdata","awT",@progbits
24161 foo: .long 25
24162 .text
24163 ldq $27,__tls_get_addr($29) !literal!1
24164 lda $16,foo($29) !tlsgd!1
24165 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24166 ldq $27,__tls_get_addr($29) !literal!2
24167 lda $16,foo($29) !tlsldm!2
24168 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24169 ldq $1,foo($29) !gotdtprel
24170 ldah $2,foo($29) !dtprelhi
24171 lda $3,foo($2) !dtprello
24172 lda $4,foo($29) !dtprel
24173 ldq $1,foo($29) !gottprel
24174 ldah $2,foo($29) !tprelhi
24175 lda $3,foo($2) !tprello
24176 lda $4,foo($29) !tprel'
24177 tls_first_major=2
24178 tls_first_minor=13
24179 tls_as_opt=--fatal-warnings
24181 arc*-*-*)
24182 conftest_s='
24183 add_s r0,r0, @foo@tpoff'
24184 tls_first_major=2
24185 tls_first_minor=23
24187 cris-*-*|crisv32-*-*)
24188 conftest_s='
24189 .section ".tdata","awT",@progbits
24190 x: .long 25
24191 .text
24192 move.d x:IE,$r10
24193 nop'
24194 tls_first_major=2
24195 tls_first_minor=20
24196 tls_as_opt=--fatal-warnings
24198 frv*-*-*)
24199 conftest_s='
24200 .section ".tdata","awT",@progbits
24201 x: .long 25
24202 .text
24203 call #gettlsoff(x)'
24204 tls_first_major=2
24205 tls_first_minor=14
24207 hppa*-*-linux*)
24208 conftest_s='
24209 t1: .reg %r20
24210 t2: .reg %r21
24211 gp: .reg %r19
24212 .section ".tdata","awT",@progbits
24213 foo: .long 25
24214 .text
24215 .align 4
24216 addil LT%foo-$tls_gdidx$,gp
24217 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24218 b __tls_get_addr
24220 addil LT%foo-$tls_ldidx$,gp
24221 b __tls_get_addr
24222 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24223 addil LR%foo-$tls_dtpoff$,%ret0
24224 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24225 mfctl %cr27,%t1
24226 addil LT%foo-$tls_ieoff$,gp
24227 ldw RT%foo-$tls_ieoff$(%r1),%t2
24228 add %t1,%t2,%t3
24229 mfctl %cr27,%t1
24230 addil LR%foo-$tls_leoff$,%t1
24231 ldo RR%foo-$tls_leoff$(%r1),%t2'
24232 tls_first_major=2
24233 tls_first_minor=15
24234 tls_as_opt=--fatal-warnings
24236 arm*-*-*)
24237 conftest_s='
24238 .section ".tdata","awT",%progbits
24239 foo: .long 25
24240 .text
24241 .word foo(gottpoff)
24242 .word foo(tpoff)
24243 .word foo(tlsgd)
24244 .word foo(tlsldm)
24245 .word foo(tlsldo)'
24246 tls_first_major=2
24247 tls_first_minor=17
24249 i[34567]86-*-* | x86_64-*-*)
24250 case "$target" in
24251 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24252 on_solaris=yes
24255 on_solaris=no
24257 esac
24258 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24259 conftest_s='
24260 .section .tdata,"awt",@progbits'
24261 tls_first_major=0
24262 tls_first_minor=0
24263 tls_section_flag=t
24265 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24267 else
24268 conftest_s='
24269 .section ".tdata","awT",@progbits'
24270 tls_first_major=2
24271 tls_first_minor=14
24272 tls_section_flag=T
24273 tls_as_opt="--fatal-warnings"
24275 case "$target" in
24276 i[34567]86-*-*)
24277 conftest_s="$conftest_s
24278 foo: .long 25
24279 .text
24280 movl %gs:0, %eax
24281 leal foo@tlsgd(,%ebx,1), %eax
24282 leal foo@tlsldm(%ebx), %eax
24283 leal foo@dtpoff(%eax), %edx
24284 movl foo@gottpoff(%ebx), %eax
24285 subl foo@gottpoff(%ebx), %eax
24286 addl foo@gotntpoff(%ebx), %eax
24287 movl foo@indntpoff, %eax
24288 movl \$foo@tpoff, %eax
24289 subl \$foo@tpoff, %eax
24290 leal foo@ntpoff(%ecx), %eax"
24292 x86_64-*-*)
24293 if test x$on_solaris = xyes; then
24294 case $gas_flag in
24295 yes) tls_as_opt="$tls_as_opt --64" ;;
24296 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24297 esac
24299 conftest_s="$conftest_s
24300 foo: .long 25
24301 .text
24302 movq %fs:0, %rax
24303 leaq foo@tlsgd(%rip), %rdi
24304 leaq foo@tlsld(%rip), %rdi
24305 leaq foo@dtpoff(%rax), %rdx
24306 movq foo@gottpoff(%rip), %rax
24307 movq \$foo@tpoff, %rax"
24309 esac
24311 ia64-*-*)
24312 conftest_s='
24313 .section ".tdata","awT",@progbits
24314 foo: data8 25
24315 .text
24316 addl r16 = @ltoff(@dtpmod(foo#)), gp
24317 addl r17 = @ltoff(@dtprel(foo#)), gp
24318 addl r18 = @ltoff(@tprel(foo#)), gp
24319 addl r19 = @dtprel(foo#), gp
24320 adds r21 = @dtprel(foo#), r13
24321 movl r23 = @dtprel(foo#)
24322 addl r20 = @tprel(foo#), gp
24323 adds r22 = @tprel(foo#), r13
24324 movl r24 = @tprel(foo#)'
24325 tls_first_major=2
24326 tls_first_minor=13
24327 tls_as_opt=--fatal-warnings
24329 microblaze*-*-*)
24330 conftest_s='
24331 .section .tdata,"awT",@progbits
24333 .word 2
24334 .text
24335 addik r5,r20,x@TLSGD
24336 addik r5,r20,x@TLSLDM'
24337 tls_first_major=2
24338 tls_first_minor=20
24339 tls_as_opt='--fatal-warnings'
24341 mips*-*-*)
24342 conftest_s='
24343 .section .tdata,"awT",@progbits
24345 .word 2
24346 .text
24347 addiu $4, $28, %tlsgd(x)
24348 addiu $4, $28, %tlsldm(x)
24349 lui $4, %dtprel_hi(x)
24350 addiu $4, $4, %dtprel_lo(x)
24351 lw $4, %gottprel(x)($28)
24352 lui $4, %tprel_hi(x)
24353 addiu $4, $4, %tprel_lo(x)'
24354 tls_first_major=2
24355 tls_first_minor=16
24356 tls_as_opt='-32 --fatal-warnings'
24358 m68k-*-*)
24359 conftest_s='
24360 .section .tdata,"awT",@progbits
24362 .word 2
24363 .text
24364 foo:
24365 move.l x@TLSGD(%a5),%a0
24366 move.l x@TLSLDM(%a5),%a0
24367 move.l x@TLSLDO(%a5),%a0
24368 move.l x@TLSIE(%a5),%a0
24369 move.l x@TLSLE(%a5),%a0'
24370 tls_first_major=2
24371 tls_first_minor=19
24372 tls_as_opt='--fatal-warnings'
24374 nios2-*-*)
24375 conftest_s='
24376 .section ".tdata","awT",@progbits'
24377 tls_first_major=2
24378 tls_first_minor=23
24379 tls_as_opt="--fatal-warnings"
24381 aarch64*-*-*)
24382 conftest_s='
24383 .section ".tdata","awT",%progbits
24384 foo: .long 25
24385 .text
24386 adrp x0, :tlsgd:x
24387 add x0, x0, #:tlsgd_lo12:x
24388 bl __tls_get_addr
24389 nop'
24390 tls_first_major=2
24391 tls_first_minor=20
24392 tls_as_opt='--fatal-warnings'
24394 or1k*-*-*)
24395 conftest_s='
24396 .section ".tdata","awT",@progbits
24397 foo: .long 25
24398 .text
24399 l.movhi r3, tpoffha(foo)
24400 l.add r3, r3, r10
24401 l.lwz r4, tpofflo(foo)(r3)'
24402 tls_first_major=2
24403 tls_first_minor=30
24404 tls_as_opt=--fatal-warnings
24406 powerpc-ibm-aix*)
24407 conftest_s='
24408 .extern __get_tpointer
24409 .toc
24410 LC..1:
24411 .tc a[TC],a[TL]@le
24412 .csect .text[PR]
24413 .tlstest:
24414 lwz 9,LC..1(2)
24415 bla __get_tpointer
24416 lwzx 3,9,3
24417 .globl a
24418 .csect a[TL],4
24420 .space 4'
24421 tls_first_major=0
24422 tls_first_minor=0
24424 powerpc64*-*-*)
24425 conftest_s='
24426 .section ".tdata","awT",@progbits
24427 .align 3
24428 ld0: .space 8
24429 ld1: .space 8
24430 x1: .space 8
24431 x2: .space 8
24432 x3: .space 8
24433 .text
24434 addi 3,2,ld0@got@tlsgd
24435 bl .__tls_get_addr
24437 addi 3,2,ld1@toc
24438 bl .__tls_get_addr
24440 addi 3,2,x1@got@tlsld
24441 bl .__tls_get_addr
24443 addi 9,3,x1@dtprel
24444 bl .__tls_get_addr
24446 addis 9,3,x2@dtprel@ha
24447 addi 9,9,x2@dtprel@l
24448 bl .__tls_get_addr
24450 ld 9,x3@got@dtprel(2)
24451 add 9,9,3
24452 bl .__tls_get_addr
24453 nop'
24454 tls_first_major=2
24455 tls_first_minor=14
24456 tls_as_opt="-a64 --fatal-warnings"
24458 powerpc*-*-*)
24459 conftest_s='
24460 .section ".tdata","awT",@progbits
24461 .align 2
24462 ld0: .space 4
24463 ld1: .space 4
24464 x1: .space 4
24465 x2: .space 4
24466 x3: .space 4
24467 .text
24468 addi 3,31,ld0@got@tlsgd
24469 bl __tls_get_addr
24470 addi 3,31,x1@got@tlsld
24471 bl __tls_get_addr
24472 addi 9,3,x1@dtprel
24473 addis 9,3,x2@dtprel@ha
24474 addi 9,9,x2@dtprel@l
24475 lwz 9,x3@got@tprel(31)
24476 add 9,9,x@tls
24477 addi 9,2,x1@tprel
24478 addis 9,2,x2@tprel@ha
24479 addi 9,9,x2@tprel@l'
24480 tls_first_major=2
24481 tls_first_minor=14
24482 tls_as_opt="-a32 --fatal-warnings"
24484 riscv*-*-*)
24485 conftest_s='
24486 .section .tdata,"awT",@progbits
24487 x: .word 2
24488 .text
24489 la.tls.gd a0,x
24490 call __tls_get_addr'
24491 tls_first_major=2
24492 tls_first_minor=21
24493 tls_as_opt='--fatal-warnings'
24495 s390-*-*)
24496 conftest_s='
24497 .section ".tdata","awT",@progbits
24498 foo: .long 25
24499 .text
24500 .long foo@TLSGD
24501 .long foo@TLSLDM
24502 .long foo@DTPOFF
24503 .long foo@NTPOFF
24504 .long foo@GOTNTPOFF
24505 .long foo@INDNTPOFF
24506 l %r1,foo@GOTNTPOFF(%r12)
24507 l %r1,0(%r1):tls_load:foo
24508 bas %r14,0(%r1,%r13):tls_gdcall:foo
24509 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24510 tls_first_major=2
24511 tls_first_minor=14
24512 tls_as_opt="-m31 --fatal-warnings"
24514 s390x-*-*)
24515 conftest_s='
24516 .section ".tdata","awT",@progbits
24517 foo: .long 25
24518 .text
24519 .quad foo@TLSGD
24520 .quad foo@TLSLDM
24521 .quad foo@DTPOFF
24522 .quad foo@NTPOFF
24523 .quad foo@GOTNTPOFF
24524 lg %r1,foo@GOTNTPOFF(%r12)
24525 larl %r1,foo@INDNTPOFF
24526 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24527 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24528 tls_first_major=2
24529 tls_first_minor=14
24530 tls_as_opt="-m64 -Aesame --fatal-warnings"
24532 sh-*-* | sh[123456789lbe]*-*-*)
24533 conftest_s='
24534 .section ".tdata","awT",@progbits
24535 foo: .long 25
24536 .text
24537 .long foo@TLSGD
24538 .long foo@TLSLDM
24539 .long foo@DTPOFF
24540 .long foo@GOTTPOFF
24541 .long foo@TPOFF'
24542 tls_first_major=2
24543 tls_first_minor=13
24544 tls_as_opt=--fatal-warnings
24546 sparc*-*-*)
24547 case "$target" in
24548 sparc*-sun-solaris2.*)
24549 on_solaris=yes
24552 on_solaris=no
24554 esac
24555 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24556 conftest_s='
24557 .section ".tdata",#alloc,#write,#tls'
24558 tls_first_major=0
24559 tls_first_minor=0
24560 else
24561 conftest_s='
24562 .section ".tdata","awT",@progbits'
24563 tls_first_major=2
24564 tls_first_minor=14
24565 tls_as_opt="-32 --fatal-warnings"
24567 conftest_s="$conftest_s
24568 foo: .long 25
24569 .text
24570 sethi %tgd_hi22(foo), %o0
24571 add %o0, %tgd_lo10(foo), %o1
24572 add %l7, %o1, %o0, %tgd_add(foo)
24573 call __tls_get_addr, %tgd_call(foo)
24574 sethi %tldm_hi22(foo), %l1
24575 add %l1, %tldm_lo10(foo), %l2
24576 add %l7, %l2, %o0, %tldm_add(foo)
24577 call __tls_get_addr, %tldm_call(foo)
24578 sethi %tldo_hix22(foo), %l3
24579 xor %l3, %tldo_lox10(foo), %l4
24580 add %o0, %l4, %l5, %tldo_add(foo)
24581 sethi %tie_hi22(foo), %o3
24582 add %o3, %tie_lo10(foo), %o3
24583 ld [%l7 + %o3], %o2, %tie_ld(foo)
24584 add %g7, %o2, %o4, %tie_add(foo)
24585 sethi %tle_hix22(foo), %l1
24586 xor %l1, %tle_lox10(foo), %o5
24587 ld [%g7 + %o5], %o1"
24589 tilepro*-*-*)
24590 conftest_s='
24591 .section ".tdata","awT",@progbits
24592 foo: .long 25
24593 .text
24594 addli r0, zero, tls_gd(foo)
24595 auli r0, zero, tls_gd_ha16(foo)
24596 addli r0, r0, tls_gd_lo16(foo)
24597 jal __tls_get_addr
24598 addli r0, zero, tls_ie(foo)
24599 auli r0, r0, tls_ie_ha16(foo)
24600 addli r0, r0, tls_ie_lo16(foo)'
24601 tls_first_major=2
24602 tls_first_minor=22
24603 tls_as_opt="--fatal-warnings"
24605 tilegx*-*-*)
24606 conftest_s='
24607 .section ".tdata","awT",@progbits
24608 foo: .long 25
24609 .text
24610 shl16insli r0, zero, hw0_last_tls_gd(foo)
24611 shl16insli r0, zero, hw1_last_tls_gd(foo)
24612 shl16insli r0, r0, hw0_tls_gd(foo)
24613 jal __tls_get_addr
24614 shl16insli r0, zero, hw1_last_tls_ie(foo)
24615 shl16insli r0, r0, hw0_tls_ie(foo)'
24616 tls_first_major=2
24617 tls_first_minor=22
24618 tls_as_opt="--fatal-warnings"
24620 xtensa*-*-*)
24621 conftest_s='
24622 .section ".tdata","awT",@progbits
24623 foo: .long 25
24624 .text
24625 movi a8, foo@TLSFUNC
24626 movi a10, foo@TLSARG
24627 callx8.tls a8, foo@TLSCALL'
24628 tls_first_major=2
24629 tls_first_minor=19
24631 esac
24632 set_have_as_tls=no
24633 if test "x$enable_tls" = xno ; then
24634 : # TLS explicitly disabled.
24635 elif test "x$enable_tls" = xyes ; then
24636 set_have_as_tls=yes # TLS explicitly enabled.
24637 elif test -z "$tls_first_major"; then
24638 : # If we don't have a check, assume no support.
24639 else
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24641 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24642 if ${gcc_cv_as_tls+:} false; then :
24643 $as_echo_n "(cached) " >&6
24644 else
24645 gcc_cv_as_tls=no
24646 if test $in_tree_gas = yes; then
24647 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24648 then gcc_cv_as_tls=yes
24650 elif test x$gcc_cv_as != x; then
24651 $as_echo "$conftest_s" > conftest.s
24652 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24654 (eval $ac_try) 2>&5
24655 ac_status=$?
24656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24657 test $ac_status = 0; }; }
24658 then
24659 gcc_cv_as_tls=yes
24660 else
24661 echo "configure: failed program was" >&5
24662 cat conftest.s >&5
24664 rm -f conftest.o conftest.s
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24668 $as_echo "$gcc_cv_as_tls" >&6; }
24669 if test $gcc_cv_as_tls = yes; then
24670 set_have_as_tls=yes
24674 if test $set_have_as_tls = yes ; then
24676 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24680 # Target-specific assembler checks.
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24683 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24684 gcc_cv_ld_static_dynamic=no
24685 gcc_cv_ld_static_option='-Bstatic'
24686 gcc_cv_ld_dynamic_option='-Bdynamic'
24687 if test $in_tree_ld = yes ; then
24688 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
24689 gcc_cv_ld_static_dynamic=yes
24691 elif test x$gcc_cv_ld != x; then
24692 # Check if linker supports -Bstatic/-Bdynamic option
24693 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24694 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24695 gcc_cv_ld_static_dynamic=yes
24696 else
24697 case "$target" in
24698 # AIX ld uses -b flags
24699 *-*-aix4.[23]* | *-*-aix[5-9]*)
24700 gcc_cv_ld_static_dynamic=yes
24701 gcc_cv_ld_static_option="-bstatic"
24702 gcc_cv_ld_dynamic_option="-bdynamic"
24704 # HP-UX ld uses -a flags to select between shared and archive.
24705 *-*-hpux*)
24706 if test x"$gnu_ld" = xno; then
24707 gcc_cv_ld_static_dynamic=yes
24708 gcc_cv_ld_static_option="-aarchive_shared"
24709 gcc_cv_ld_dynamic_option="-adefault"
24712 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24713 *-*-solaris2*)
24714 gcc_cv_ld_static_dynamic=yes
24716 esac
24719 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24721 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24724 cat >>confdefs.h <<_ACEOF
24725 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24726 _ACEOF
24729 cat >>confdefs.h <<_ACEOF
24730 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24731 _ACEOF
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24735 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24738 $as_echo_n "checking linker --version-script option... " >&6; }
24739 gcc_cv_ld_version_script=no
24740 ld_version_script_option=''
24741 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24742 gcc_cv_ld_version_script=yes
24743 ld_version_script_option='--version-script'
24744 elif test x$gcc_cv_ld != x; then
24745 case "$target" in
24746 # Solaris 2 ld always supports -M. It also supports a subset of
24747 # --version-script since Solaris 11.4, but requires
24748 # -z gnu-version-script-compat to activate.
24749 *-*-solaris2*)
24750 gcc_cv_ld_version_script=yes
24751 ld_version_script_option='-M'
24753 esac
24755 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24757 $as_echo "$gcc_cv_ld_version_script" >&6; }
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24761 $as_echo_n "checking linker soname option... " >&6; }
24762 gcc_cv_ld_soname=no
24763 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24764 gcc_cv_ld_soname=yes
24765 ld_soname_option='-soname'
24766 elif test x$gcc_cv_ld != x; then
24767 case "$target" in
24768 *-*-darwin*)
24769 gcc_cv_ld_soname=yes
24770 ld_soname_option='-install_name'
24772 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24773 # ld compatiblity since some Solaris 10 update.
24774 *-*-solaris2*)
24775 gcc_cv_ld_soname=yes
24776 ld_soname_option='-h'
24778 esac
24780 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24782 $as_echo "$gcc_cv_ld_soname" >&6; }
24785 if test x"$demangler_in_ld" = xyes; then
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24787 $as_echo_n "checking linker --demangle support... " >&6; }
24788 gcc_cv_ld_demangle=no
24789 if test $in_tree_ld = yes; then
24790 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 \
24791 gcc_cv_ld_demangle=yes
24793 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24794 # Check if the GNU linker supports --demangle option
24795 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24796 gcc_cv_ld_demangle=yes
24799 if test x"$gcc_cv_ld_demangle" = xyes; then
24801 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24805 $as_echo "$gcc_cv_ld_demangle" >&6; }
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24809 $as_echo_n "checking linker plugin support... " >&6; }
24810 gcc_cv_lto_plugin=0
24811 if test -f liblto_plugin.la; then
24812 save_ld_ver="$ld_ver"
24813 save_ld_vers_major="$ld_vers_major"
24814 save_ld_vers_minor="$ld_vers_minor"
24815 save_ld_is_gold="$ld_is_gold"
24817 ld_is_gold=no
24819 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24820 ld_ver="GNU ld"
24821 # FIXME: ld_is_gold?
24822 ld_vers_major="$gcc_cv_gld_major_version"
24823 ld_vers_minor="$gcc_cv_gld_minor_version"
24824 else
24825 # Determine plugin linker version.
24826 # FIXME: Partial duplicate from above, generalize.
24827 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24828 if echo "$ld_ver" | grep GNU > /dev/null; then
24829 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24830 ld_is_gold=yes
24831 ld_vers=`echo $ld_ver | sed -n \
24832 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24833 else
24834 ld_vers=`echo $ld_ver | sed -n \
24835 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24837 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24838 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24842 # Determine plugin support.
24843 if echo "$ld_ver" | grep GNU > /dev/null; then
24844 # Require GNU ld or gold 2.21+ for plugin support by default.
24845 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24846 gcc_cv_lto_plugin=2
24847 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24848 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24849 gcc_cv_lto_plugin=1
24853 ld_ver="$save_ld_ver"
24854 ld_vers_major="$save_ld_vers_major"
24855 ld_vers_minor="$save_ld_vers_minor"
24856 ld_is_gold="$save_ld_is_gold"
24859 cat >>confdefs.h <<_ACEOF
24860 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24861 _ACEOF
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24864 $as_echo "$gcc_cv_lto_plugin" >&6; }
24866 # Target OS-specific assembler checks.
24868 case "$target_os" in
24869 darwin*)
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24871 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24872 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
24873 $as_echo_n "(cached) " >&6
24874 else
24875 gcc_cv_as_mmacosx_version_min=no
24876 if test x$gcc_cv_as != x; then
24877 $as_echo '.text' > conftest.s
24878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24880 (eval $ac_try) 2>&5
24881 ac_status=$?
24882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24883 test $ac_status = 0; }; }
24884 then
24885 gcc_cv_as_mmacosx_version_min=yes
24886 else
24887 echo "configure: failed program was" >&5
24888 cat conftest.s >&5
24890 rm -f conftest.o conftest.s
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24894 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24895 if test $gcc_cv_as_mmacosx_version_min = yes; then
24897 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24902 esac
24904 # Target CPU-specific assembler checks.
24906 case "$target" in
24907 aarch64*-*-*)
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24909 $as_echo_n "checking assembler for -mabi option... " >&6; }
24910 if ${gcc_cv_as_aarch64_mabi+:} false; then :
24911 $as_echo_n "(cached) " >&6
24912 else
24913 gcc_cv_as_aarch64_mabi=no
24914 if test x$gcc_cv_as != x; then
24915 $as_echo '.text' > conftest.s
24916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24918 (eval $ac_try) 2>&5
24919 ac_status=$?
24920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24921 test $ac_status = 0; }; }
24922 then
24923 gcc_cv_as_aarch64_mabi=yes
24924 else
24925 echo "configure: failed program was" >&5
24926 cat conftest.s >&5
24928 rm -f conftest.o conftest.s
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24932 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24935 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24937 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24939 else
24940 if test x$with_abi = xilp32; then
24941 as_fn_error $? "Assembler does not support -mabi=ilp32.\
24942 Upgrade the Assembler." "$LINENO" 5
24944 if test x"$with_multilib_list" = xdefault; then
24945 TM_MULTILIB_CONFIG=lp64
24946 else
24947 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24948 for aarch64_multilib in ${aarch64_multilibs}; do
24949 case ${aarch64_multilib} in
24950 ilp32)
24951 as_fn_error $? "Assembler does not support -mabi=ilp32.\
24952 Upgrade the Assembler." "$LINENO" 5
24956 esac
24957 done
24960 # Check if we have binutils support for relocations types needed by -fpic
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24962 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24963 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
24964 $as_echo_n "(cached) " >&6
24965 else
24966 gcc_cv_as_aarch64_picreloc=no
24967 if test x$gcc_cv_as != x; then
24968 $as_echo '
24969 .text
24970 ldr x0, [x2, #:gotpage_lo15:globalsym]
24971 ' > conftest.s
24972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24974 (eval $ac_try) 2>&5
24975 ac_status=$?
24976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24977 test $ac_status = 0; }; }
24978 then
24979 gcc_cv_as_aarch64_picreloc=yes
24980 else
24981 echo "configure: failed program was" >&5
24982 cat conftest.s >&5
24984 rm -f conftest.o conftest.s
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24988 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24989 if test $gcc_cv_as_aarch64_picreloc = yes; then
24991 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24995 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24996 # Check whether --enable-fix-cortex-a53-835769 was given.
24997 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24998 enableval=$enable_fix_cortex_a53_835769;
24999 case $enableval in
25000 yes)
25001 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25006 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25007 Valid choices are 'yes' and 'no'." "$LINENO" 5
25010 esac
25014 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25015 # Check whether --enable-fix-cortex-a53-843419 was given.
25016 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25017 enableval=$enable_fix_cortex_a53_843419;
25018 case $enableval in
25019 yes)
25020 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25025 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25026 Valid choices are 'yes' and 'no'." "$LINENO" 5
25029 esac
25035 # All TARGET_ABI_OSF targets.
25036 alpha*-*-linux* | alpha*-*-*bsd*)
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25038 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25039 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25040 $as_echo_n "(cached) " >&6
25041 else
25042 gcc_cv_as_alpha_explicit_relocs=no
25043 if test $in_tree_gas = yes; then
25044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25045 then gcc_cv_as_alpha_explicit_relocs=yes
25047 elif test x$gcc_cv_as != x; then
25048 $as_echo ' .set nomacro
25049 .text
25050 extbl $3, $2, $3 !lituse_bytoff!1
25051 ldq $2, a($29) !literal!1
25052 ldq $4, b($29) !literal!2
25053 ldq_u $3, 0($2) !lituse_base!1
25054 ldq $27, f($29) !literal!5
25055 jsr $26, ($27), f !lituse_jsr!5
25056 ldah $29, 0($26) !gpdisp!3
25057 lda $0, c($29) !gprel
25058 ldah $1, d($29) !gprelhigh
25059 lda $1, d($1) !gprellow
25060 lda $29, 0($29) !gpdisp!3' > conftest.s
25061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25063 (eval $ac_try) 2>&5
25064 ac_status=$?
25065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25066 test $ac_status = 0; }; }
25067 then
25068 gcc_cv_as_alpha_explicit_relocs=yes
25069 else
25070 echo "configure: failed program was" >&5
25071 cat conftest.s >&5
25073 rm -f conftest.o conftest.s
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25077 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25078 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25080 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25085 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25086 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25087 $as_echo_n "(cached) " >&6
25088 else
25089 gcc_cv_as_alpha_jsrdirect_relocs=no
25090 if test $in_tree_gas = yes; then
25091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25092 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25094 elif test x$gcc_cv_as != x; then
25095 $as_echo ' .set nomacro
25096 .text
25097 ldq $27, a($29) !literal!1
25098 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25101 (eval $ac_try) 2>&5
25102 ac_status=$?
25103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25104 test $ac_status = 0; }; }
25105 then
25106 gcc_cv_as_alpha_jsrdirect_relocs=yes
25107 else
25108 echo "configure: failed program was" >&5
25109 cat conftest.s >&5
25111 rm -f conftest.o conftest.s
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25115 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25116 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25118 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25124 avr-*-*)
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25126 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25127 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25128 $as_echo_n "(cached) " >&6
25129 else
25130 gcc_cv_as_avr_mlink_relax=no
25131 if test x$gcc_cv_as != x; then
25132 $as_echo '.text' > conftest.s
25133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25135 (eval $ac_try) 2>&5
25136 ac_status=$?
25137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25138 test $ac_status = 0; }; }
25139 then
25140 gcc_cv_as_avr_mlink_relax=yes
25141 else
25142 echo "configure: failed program was" >&5
25143 cat conftest.s >&5
25145 rm -f conftest.o conftest.s
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25149 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25150 if test $gcc_cv_as_avr_mlink_relax = yes; then
25152 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25158 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25159 if ${gcc_cv_as_avr_mrmw+:} false; then :
25160 $as_echo_n "(cached) " >&6
25161 else
25162 gcc_cv_as_avr_mrmw=no
25163 if test x$gcc_cv_as != x; then
25164 $as_echo '.text' > conftest.s
25165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25167 (eval $ac_try) 2>&5
25168 ac_status=$?
25169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25170 test $ac_status = 0; }; }
25171 then
25172 gcc_cv_as_avr_mrmw=yes
25173 else
25174 echo "configure: failed program was" >&5
25175 cat conftest.s >&5
25177 rm -f conftest.o conftest.s
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25181 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25182 if test $gcc_cv_as_avr_mrmw = yes; then
25184 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25190 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25191 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25192 $as_echo_n "(cached) " >&6
25193 else
25194 gcc_cv_as_avr_mgccisr=no
25195 if test x$gcc_cv_as != x; then
25196 $as_echo '.text
25197 __gcc_isr 1
25198 __gcc_isr 2
25199 __gcc_isr 0,r24
25200 ' > conftest.s
25201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25203 (eval $ac_try) 2>&5
25204 ac_status=$?
25205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25206 test $ac_status = 0; }; }
25207 then
25208 gcc_cv_as_avr_mgccisr=yes
25209 else
25210 echo "configure: failed program was" >&5
25211 cat conftest.s >&5
25213 rm -f conftest.o conftest.s
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25217 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25218 if test $gcc_cv_as_avr_mgccisr = yes; then
25220 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25225 # Check how default linker description file implements .rodata for
25226 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25227 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25229 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25230 cat > conftest.s <<EOF
25231 .section .rodata,"a",@progbits
25232 .global xxvaryy
25233 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25234 xxvaryy:
25235 .word 1
25237 rm -f conftest.nm
25238 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25240 (eval $ac_try) 2>&5
25241 ac_status=$?
25242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25243 test $ac_status = 0; }; }
25244 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25246 (eval $ac_try) 2>&5
25247 ac_status=$?
25248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25249 test $ac_status = 0; }; }
25250 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25252 (eval $ac_try) 2>&5
25253 ac_status=$?
25254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25255 test $ac_status = 0; }; }
25256 if test -s conftest.nm
25257 then
25258 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25260 $as_echo "yes" >&6; }
25262 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25264 else
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25266 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25267 echo "$as_me: nm output was" >&5
25268 cat conftest.nm >&5
25269 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25270 { $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
25271 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25273 else
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25275 $as_echo "test failed" >&6; }
25276 echo "$as_me: failed program was" >&5
25277 cat conftest.s >&5
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25279 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25281 rm -f conftest.s conftest.o conftest.elf conftest.nm
25284 cris-*-*)
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25286 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25287 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25288 $as_echo_n "(cached) " >&6
25289 else
25290 gcc_cv_as_cris_no_mul_bug=no
25291 if test $in_tree_gas = yes; then
25292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25293 then gcc_cv_as_cris_no_mul_bug=yes
25295 elif test x$gcc_cv_as != x; then
25296 $as_echo '.text' > conftest.s
25297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25299 (eval $ac_try) 2>&5
25300 ac_status=$?
25301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25302 test $ac_status = 0; }; }
25303 then
25304 gcc_cv_as_cris_no_mul_bug=yes
25305 else
25306 echo "configure: failed program was" >&5
25307 cat conftest.s >&5
25309 rm -f conftest.o conftest.s
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25313 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25314 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25316 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25322 sparc*-*-*)
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25324 $as_echo_n "checking assembler for -relax option... " >&6; }
25325 if ${gcc_cv_as_sparc_relax+:} false; then :
25326 $as_echo_n "(cached) " >&6
25327 else
25328 gcc_cv_as_sparc_relax=no
25329 if test x$gcc_cv_as != x; then
25330 $as_echo '.text' > conftest.s
25331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25333 (eval $ac_try) 2>&5
25334 ac_status=$?
25335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25336 test $ac_status = 0; }; }
25337 then
25338 gcc_cv_as_sparc_relax=yes
25339 else
25340 echo "configure: failed program was" >&5
25341 cat conftest.s >&5
25343 rm -f conftest.o conftest.s
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25347 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25348 if test $gcc_cv_as_sparc_relax = yes; then
25350 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25356 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25357 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25358 $as_echo_n "(cached) " >&6
25359 else
25360 gcc_cv_as_sparc_gotdata_op=no
25361 if test x$gcc_cv_as != x; then
25362 $as_echo '.text
25363 .align 4
25364 foo:
25366 bar:
25367 sethi %gdop_hix22(foo), %g1
25368 xor %g1, %gdop_lox10(foo), %g1
25369 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25372 (eval $ac_try) 2>&5
25373 ac_status=$?
25374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375 test $ac_status = 0; }; }
25376 then
25377 if test x$gcc_cv_ld != x \
25378 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25379 if test x$gcc_cv_objdump != x; then
25380 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25381 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25382 gcc_cv_as_sparc_gotdata_op=no
25383 else
25384 gcc_cv_as_sparc_gotdata_op=yes
25388 rm -f conftest
25389 else
25390 echo "configure: failed program was" >&5
25391 cat conftest.s >&5
25393 rm -f conftest.o conftest.s
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25397 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25398 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25400 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25406 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25407 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25408 $as_echo_n "(cached) " >&6
25409 else
25410 gcc_cv_as_sparc_ua_pcrel=no
25411 if test x$gcc_cv_as != x; then
25412 $as_echo '.text
25413 foo:
25415 .data
25416 .align 4
25417 .byte 0
25418 .uaword %r_disp32(foo)' > conftest.s
25419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25421 (eval $ac_try) 2>&5
25422 ac_status=$?
25423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25424 test $ac_status = 0; }; }
25425 then
25426 if test x$gcc_cv_ld != x \
25427 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25428 gcc_cv_as_sparc_ua_pcrel=yes
25430 rm -f conftest
25431 else
25432 echo "configure: failed program was" >&5
25433 cat conftest.s >&5
25435 rm -f conftest.o conftest.s
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25439 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25440 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25442 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25446 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25447 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25448 $as_echo_n "(cached) " >&6
25449 else
25450 gcc_cv_as_sparc_ua_pcrel_hidden=no
25451 if test x$gcc_cv_as != x; then
25452 $as_echo '.data
25453 .align 4
25454 .byte 0x31
25455 .uaword %r_disp32(foo)
25456 .byte 0x32, 0x33, 0x34
25457 .global foo
25458 .hidden foo
25459 foo:
25460 .skip 4' > conftest.s
25461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25463 (eval $ac_try) 2>&5
25464 ac_status=$?
25465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25466 test $ac_status = 0; }; }
25467 then
25468 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25469 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25470 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25471 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25472 if $gcc_cv_objdump -R conftest 2> /dev/null \
25473 | grep 'DISP32' > /dev/null 2>&1; then
25475 else
25476 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25479 rm -f conftest
25480 else
25481 echo "configure: failed program was" >&5
25482 cat conftest.s >&5
25484 rm -f conftest.o conftest.s
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25488 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25489 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25491 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25497 # unaligned pcrel relocs
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25500 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25501 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25502 $as_echo_n "(cached) " >&6
25503 else
25504 gcc_cv_as_sparc_offsetable_lo10=no
25505 if test x$gcc_cv_as != x; then
25506 $as_echo '.text
25507 or %g1, %lo(ab) + 12, %g1
25508 or %g1, %lo(ab + 12), %g1' > conftest.s
25509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25514 test $ac_status = 0; }; }
25515 then
25516 if test x$gcc_cv_objdump != x \
25517 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25518 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25519 gcc_cv_as_sparc_offsetable_lo10=yes
25521 else
25522 echo "configure: failed program was" >&5
25523 cat conftest.s >&5
25525 rm -f conftest.o conftest.s
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25529 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25530 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25532 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25538 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25539 if ${gcc_cv_as_sparc_fmaf+:} false; then :
25540 $as_echo_n "(cached) " >&6
25541 else
25542 gcc_cv_as_sparc_fmaf=no
25543 if test x$gcc_cv_as != x; then
25544 $as_echo '.text
25545 .register %g2, #scratch
25546 .register %g3, #scratch
25547 .align 4
25548 fmaddd %f0, %f2, %f4, %f6
25549 addxccc %g1, %g2, %g3
25550 fsrl32 %f2, %f4, %f8
25551 fnaddd %f10, %f12, %f14' > conftest.s
25552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25554 (eval $ac_try) 2>&5
25555 ac_status=$?
25556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25557 test $ac_status = 0; }; }
25558 then
25559 gcc_cv_as_sparc_fmaf=yes
25560 else
25561 echo "configure: failed program was" >&5
25562 cat conftest.s >&5
25564 rm -f conftest.o conftest.s
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25568 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25569 if test $gcc_cv_as_sparc_fmaf = yes; then
25571 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25577 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25578 if ${gcc_cv_as_sparc_sparc4+:} false; then :
25579 $as_echo_n "(cached) " >&6
25580 else
25581 gcc_cv_as_sparc_sparc4=no
25582 if test x$gcc_cv_as != x; then
25583 $as_echo '.text
25584 .register %g2, #scratch
25585 .register %g3, #scratch
25586 .align 4
25587 cxbe %g2, %g3, 1f
25588 1: cwbneg %g2, %g3, 1f
25589 1: sha1
25591 aes_kexpand0 %f4, %f6, %f8
25592 des_round %f38, %f40, %f42, %f44
25593 camellia_f %f54, %f56, %f58, %f60
25594 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25597 (eval $ac_try) 2>&5
25598 ac_status=$?
25599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25600 test $ac_status = 0; }; }
25601 then
25602 gcc_cv_as_sparc_sparc4=yes
25603 else
25604 echo "configure: failed program was" >&5
25605 cat conftest.s >&5
25607 rm -f conftest.o conftest.s
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25611 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25612 if test $gcc_cv_as_sparc_sparc4 = yes; then
25614 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25620 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25621 if ${gcc_cv_as_sparc_sparc5+:} false; then :
25622 $as_echo_n "(cached) " >&6
25623 else
25624 gcc_cv_as_sparc_sparc5=no
25625 if test x$gcc_cv_as != x; then
25626 $as_echo '.text
25627 .register %g2, #scratch
25628 .register %g3, #scratch
25629 .align 4
25630 subxc %g1, %g2, %g3
25631 fpadd8 %f0, %f2, %f4' > conftest.s
25632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25634 (eval $ac_try) 2>&5
25635 ac_status=$?
25636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25637 test $ac_status = 0; }; }
25638 then
25639 gcc_cv_as_sparc_sparc5=yes
25640 else
25641 echo "configure: failed program was" >&5
25642 cat conftest.s >&5
25644 rm -f conftest.o conftest.s
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25648 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25649 if test $gcc_cv_as_sparc_sparc5 = yes; then
25651 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25657 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25658 if ${gcc_cv_as_sparc_sparc6+:} false; then :
25659 $as_echo_n "(cached) " >&6
25660 else
25661 gcc_cv_as_sparc_sparc6=no
25662 if test x$gcc_cv_as != x; then
25663 $as_echo '.text
25664 .register %g2, #scratch
25665 .register %g3, #scratch
25666 .align 4
25667 rd %entropy, %g1
25668 fpsll64x %f0, %f2, %f4' > conftest.s
25669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25671 (eval $ac_try) 2>&5
25672 ac_status=$?
25673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25674 test $ac_status = 0; }; }
25675 then
25676 gcc_cv_as_sparc_sparc6=yes
25677 else
25678 echo "configure: failed program was" >&5
25679 cat conftest.s >&5
25681 rm -f conftest.o conftest.s
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25685 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25686 if test $gcc_cv_as_sparc_sparc6 = yes; then
25688 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25694 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25695 if ${gcc_cv_as_sparc_leon+:} false; then :
25696 $as_echo_n "(cached) " >&6
25697 else
25698 gcc_cv_as_sparc_leon=no
25699 if test x$gcc_cv_as != x; then
25700 $as_echo '.text
25701 .register %g2, #scratch
25702 .register %g3, #scratch
25703 .align 4
25704 smac %g2, %g3, %g1
25705 umac %g2, %g3, %g1
25706 casa [%g2] 0xb, %g3, %g1' > conftest.s
25707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25709 (eval $ac_try) 2>&5
25710 ac_status=$?
25711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25712 test $ac_status = 0; }; }
25713 then
25714 gcc_cv_as_sparc_leon=yes
25715 else
25716 echo "configure: failed program was" >&5
25717 cat conftest.s >&5
25719 rm -f conftest.o conftest.s
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25723 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25724 if test $gcc_cv_as_sparc_leon = yes; then
25726 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25732 i[34567]86-*-* | x86_64-*-*)
25733 case $target_os in
25734 cygwin*)
25735 # Full C++ conformance when using a shared libstdc++-v3 requires some
25736 # support from the Cygwin DLL, which in more recent versions exports
25737 # wrappers to aid in interposing and redirecting operators new, delete,
25738 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25739 # are configuring for a version of Cygwin that exports the wrappers.
25740 if test x$host = x$target && test x$host_cpu = xi686; then
25741 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25742 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
25743 gcc_ac_cygwin_dll_wrappers=yes
25744 else
25745 gcc_ac_cygwin_dll_wrappers=no
25748 else
25749 # Can't check presence of libc functions during cross-compile, so
25750 # we just have to assume we're building for an up-to-date target.
25751 gcc_ac_cygwin_dll_wrappers=yes
25754 cat >>confdefs.h <<_ACEOF
25755 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25756 _ACEOF
25758 esac
25759 case $target_os in
25760 cygwin* | pe | mingw32*)
25761 # Recent binutils allows the three-operand form of ".comm" on PE. This
25762 # definition is used unconditionally to initialise the default state of
25763 # the target option variable that governs usage of the feature.
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25765 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25766 if ${gcc_cv_as_comm_has_align+:} false; then :
25767 $as_echo_n "(cached) " >&6
25768 else
25769 gcc_cv_as_comm_has_align=no
25770 if test $in_tree_gas = yes; then
25771 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25772 then gcc_cv_as_comm_has_align=yes
25774 elif test x$gcc_cv_as != x; then
25775 $as_echo '.comm foo,1,32' > conftest.s
25776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25778 (eval $ac_try) 2>&5
25779 ac_status=$?
25780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25781 test $ac_status = 0; }; }
25782 then
25783 gcc_cv_as_comm_has_align=yes
25784 else
25785 echo "configure: failed program was" >&5
25786 cat conftest.s >&5
25788 rm -f conftest.o conftest.s
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25792 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25796 cat >>confdefs.h <<_ACEOF
25797 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25798 _ACEOF
25800 # Used for DWARF 2 in PE
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25802 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25803 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
25804 $as_echo_n "(cached) " >&6
25805 else
25806 gcc_cv_as_ix86_pe_secrel32=no
25807 if test $in_tree_gas = yes; then
25808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25809 then gcc_cv_as_ix86_pe_secrel32=yes
25811 elif test x$gcc_cv_as != x; then
25812 $as_echo '.text
25813 foo: nop
25814 .data
25815 .secrel32 foo' > conftest.s
25816 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25818 (eval $ac_try) 2>&5
25819 ac_status=$?
25820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25821 test $ac_status = 0; }; }
25822 then
25823 if test x$gcc_cv_ld != x \
25824 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25825 gcc_cv_as_ix86_pe_secrel32=yes
25827 rm -f conftest
25828 else
25829 echo "configure: failed program was" >&5
25830 cat conftest.s >&5
25832 rm -f conftest.o conftest.s
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25836 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25837 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25839 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25843 # Test if the assembler supports the extended form of the .section
25844 # directive that specifies section alignment. LTO support uses this,
25845 # but normally only after installation, so we warn but don't fail the
25846 # configure if LTO is enabled but the assembler does not support it.
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25848 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25849 if ${gcc_cv_as_section_has_align+:} false; then :
25850 $as_echo_n "(cached) " >&6
25851 else
25852 gcc_cv_as_section_has_align=no
25853 if test $in_tree_gas = yes; then
25854 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25855 then gcc_cv_as_section_has_align=yes
25857 elif test x$gcc_cv_as != x; then
25858 $as_echo '.section lto_test,"dr0"' > conftest.s
25859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25861 (eval $ac_try) 2>&5
25862 ac_status=$?
25863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25864 test $ac_status = 0; }; }
25865 then
25866 gcc_cv_as_section_has_align=yes
25867 else
25868 echo "configure: failed program was" >&5
25869 cat conftest.s >&5
25871 rm -f conftest.o conftest.s
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25875 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25878 if test x$gcc_cv_as_section_has_align != xyes; then
25879 case ",$enable_languages," in
25880 *,lto,*)
25881 { $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
25882 $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;}
25884 esac
25887 esac
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25890 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25891 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
25892 $as_echo_n "(cached) " >&6
25893 else
25894 gcc_cv_as_ix86_xbrace_comment=no
25895 if test x$gcc_cv_as != x; then
25896 $as_echo '.text' > conftest.s
25897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25899 (eval $ac_try) 2>&5
25900 ac_status=$?
25901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25902 test $ac_status = 0; }; }
25903 then
25904 gcc_cv_as_ix86_xbrace_comment=yes
25905 else
25906 echo "configure: failed program was" >&5
25907 cat conftest.s >&5
25909 rm -f conftest.o conftest.s
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25913 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25914 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25916 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25922 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25923 if ${gcc_cv_as_ix86_filds+:} false; then :
25924 $as_echo_n "(cached) " >&6
25925 else
25926 gcc_cv_as_ix86_filds=no
25927 if test x$gcc_cv_as != x; then
25928 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25934 test $ac_status = 0; }; }
25935 then
25936 gcc_cv_as_ix86_filds=yes
25937 else
25938 echo "configure: failed program was" >&5
25939 cat conftest.s >&5
25941 rm -f conftest.o conftest.s
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25945 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25946 if test $gcc_cv_as_ix86_filds = yes; then
25948 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25954 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25955 if ${gcc_cv_as_ix86_fildq+:} false; then :
25956 $as_echo_n "(cached) " >&6
25957 else
25958 gcc_cv_as_ix86_fildq=no
25959 if test x$gcc_cv_as != x; then
25960 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_fildq=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_fildq" >&5
25977 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25978 if test $gcc_cv_as_ix86_fildq = yes; then
25980 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25986 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25987 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
25988 $as_echo_n "(cached) " >&6
25989 else
25990 gcc_cv_as_ix86_cmov_sun_syntax=no
25991 if test x$gcc_cv_as != x; then
25992 $as_echo 'cmovl.l %edx, %eax' > 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_cmov_sun_syntax=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_cmov_sun_syntax" >&5
26009 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26010 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26012 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26018 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26019 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26020 $as_echo_n "(cached) " >&6
26021 else
26022 gcc_cv_as_ix86_ffreep=no
26023 if test x$gcc_cv_as != x; then
26024 $as_echo 'ffreep %st(1)' > 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_ffreep=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_ffreep" >&5
26041 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26042 if test $gcc_cv_as_ix86_ffreep = yes; then
26044 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26050 $as_echo_n "checking assembler for .quad directive... " >&6; }
26051 if ${gcc_cv_as_ix86_quad+:} false; then :
26052 $as_echo_n "(cached) " >&6
26053 else
26054 gcc_cv_as_ix86_quad=no
26055 if test x$gcc_cv_as != x; then
26056 $as_echo '.quad 0' > 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_quad=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_quad" >&5
26073 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26074 if test $gcc_cv_as_ix86_quad = yes; then
26076 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26082 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26083 if ${gcc_cv_as_ix86_sahf+:} false; then :
26084 $as_echo_n "(cached) " >&6
26085 else
26086 gcc_cv_as_ix86_sahf=no
26087 if test x$gcc_cv_as != x; then
26088 $as_echo '.code64
26089 sahf' > conftest.s
26090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26092 (eval $ac_try) 2>&5
26093 ac_status=$?
26094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26095 test $ac_status = 0; }; }
26096 then
26097 gcc_cv_as_ix86_sahf=yes
26098 else
26099 echo "configure: failed program was" >&5
26100 cat conftest.s >&5
26102 rm -f conftest.o conftest.s
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26106 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26107 if test $gcc_cv_as_ix86_sahf = yes; then
26109 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26115 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26116 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26117 $as_echo_n "(cached) " >&6
26118 else
26119 gcc_cv_as_ix86_interunit_movq=no
26120 if test x$gcc_cv_as != x; then
26121 $as_echo '.code64
26122 movq %mm0, %rax
26123 movq %rax, %xmm0' > conftest.s
26124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26126 (eval $ac_try) 2>&5
26127 ac_status=$?
26128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26129 test $ac_status = 0; }; }
26130 then
26131 gcc_cv_as_ix86_interunit_movq=yes
26132 else
26133 echo "configure: failed program was" >&5
26134 cat conftest.s >&5
26136 rm -f conftest.o conftest.s
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26140 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26144 cat >>confdefs.h <<_ACEOF
26145 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26146 _ACEOF
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26150 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26151 if ${gcc_cv_as_ix86_hle+:} false; then :
26152 $as_echo_n "(cached) " >&6
26153 else
26154 gcc_cv_as_ix86_hle=no
26155 if test x$gcc_cv_as != x; then
26156 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26159 (eval $ac_try) 2>&5
26160 ac_status=$?
26161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26162 test $ac_status = 0; }; }
26163 then
26164 gcc_cv_as_ix86_hle=yes
26165 else
26166 echo "configure: failed program was" >&5
26167 cat conftest.s >&5
26169 rm -f conftest.o conftest.s
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26173 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26174 if test $gcc_cv_as_ix86_hle = yes; then
26176 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26182 $as_echo_n "checking assembler for swap suffix... " >&6; }
26183 if ${gcc_cv_as_ix86_swap+:} false; then :
26184 $as_echo_n "(cached) " >&6
26185 else
26186 gcc_cv_as_ix86_swap=no
26187 if test x$gcc_cv_as != x; then
26188 $as_echo 'movl.s %esp, %ebp' > conftest.s
26189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26191 (eval $ac_try) 2>&5
26192 ac_status=$?
26193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26194 test $ac_status = 0; }; }
26195 then
26196 gcc_cv_as_ix86_swap=yes
26197 else
26198 echo "configure: failed program was" >&5
26199 cat conftest.s >&5
26201 rm -f conftest.o conftest.s
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26205 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26206 if test $gcc_cv_as_ix86_swap = yes; then
26208 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26214 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26215 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26216 $as_echo_n "(cached) " >&6
26217 else
26218 gcc_cv_as_ix86_diff_sect_delta=no
26219 if test x$gcc_cv_as != x; then
26220 $as_echo '.section .rodata
26221 .L1:
26222 .long .L2-.L1
26223 .long .L3-.L1
26224 .text
26225 .L3: nop
26226 .L2: nop' > conftest.s
26227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26229 (eval $ac_try) 2>&5
26230 ac_status=$?
26231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26232 test $ac_status = 0; }; }
26233 then
26234 gcc_cv_as_ix86_diff_sect_delta=yes
26235 else
26236 echo "configure: failed program was" >&5
26237 cat conftest.s >&5
26239 rm -f conftest.o conftest.s
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26243 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26244 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26246 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26252 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26253 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26254 $as_echo_n "(cached) " >&6
26255 else
26256 gcc_cv_as_ix86_rep_lock_prefix=no
26257 if test x$gcc_cv_as != x; then
26258 $as_echo 'rep movsl
26259 rep ret
26260 rep nop
26261 rep bsf %ecx, %eax
26262 rep bsr %ecx, %eax
26263 lock addl %edi, (%eax,%esi)
26264 lock orl $0, (%esp)' > conftest.s
26265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26267 (eval $ac_try) 2>&5
26268 ac_status=$?
26269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26270 test $ac_status = 0; }; }
26271 then
26272 gcc_cv_as_ix86_rep_lock_prefix=yes
26273 else
26274 echo "configure: failed program was" >&5
26275 cat conftest.s >&5
26277 rm -f conftest.o conftest.s
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26281 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26282 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26284 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26290 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26291 if ${gcc_cv_as_ix86_ud2+:} false; then :
26292 $as_echo_n "(cached) " >&6
26293 else
26294 gcc_cv_as_ix86_ud2=no
26295 if test x$gcc_cv_as != x; then
26296 $as_echo 'ud2' > conftest.s
26297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26299 (eval $ac_try) 2>&5
26300 ac_status=$?
26301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26302 test $ac_status = 0; }; }
26303 then
26304 gcc_cv_as_ix86_ud2=yes
26305 else
26306 echo "configure: failed program was" >&5
26307 cat conftest.s >&5
26309 rm -f conftest.o conftest.s
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26313 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26314 if test $gcc_cv_as_ix86_ud2 = yes; then
26316 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26321 # Enforce 32-bit output with gas and gld.
26322 if test x$gas = xyes; then
26323 as_ix86_gas_32_opt="--32"
26325 if echo "$ld_ver" | grep GNU > /dev/null; then
26326 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26327 ld_ix86_gld_32_opt="-melf_i386_sol2"
26328 else
26329 ld_ix86_gld_32_opt="-melf_i386"
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26334 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26335 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26336 $as_echo_n "(cached) " >&6
26337 else
26338 gcc_cv_as_ix86_tlsgdplt=no
26339 if test x$gcc_cv_as != x; then
26340 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26343 (eval $ac_try) 2>&5
26344 ac_status=$?
26345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26346 test $ac_status = 0; }; }
26347 then
26348 if test x$gcc_cv_ld != x \
26349 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26350 gcc_cv_as_ix86_tlsgdplt=yes
26352 rm -f conftest
26353 else
26354 echo "configure: failed program was" >&5
26355 cat conftest.s >&5
26357 rm -f conftest.o conftest.s
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26361 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26362 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26364 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26369 conftest_s='
26370 .section .tdata,"aw'$tls_section_flag'",@progbits
26371 tls_ld:
26372 .section .text,"ax",@progbits
26373 call tls_ld@tlsldmplt'
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26376 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26377 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26378 $as_echo_n "(cached) " >&6
26379 else
26380 gcc_cv_as_ix86_tlsldmplt=no
26381 if test x$gcc_cv_as != x; then
26382 $as_echo "$conftest_s" > conftest.s
26383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388 test $ac_status = 0; }; }
26389 then
26390 if test x$gcc_cv_ld != x \
26391 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26392 gcc_cv_as_ix86_tlsldmplt=yes
26394 rm -f conftest
26395 else
26396 echo "configure: failed program was" >&5
26397 cat conftest.s >&5
26399 rm -f conftest.o conftest.s
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26403 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26407 cat >>confdefs.h <<_ACEOF
26408 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26409 _ACEOF
26412 conftest_s='
26413 .section .text,"ax",@progbits
26414 .globl _start
26415 .type _start, @function
26416 _start:
26417 leal value@tlsldm(%ebx), %eax
26418 call ___tls_get_addr@plt
26420 .section .tdata,"aw'$tls_section_flag'",@progbits
26421 .type value, @object
26422 value:'
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26424 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26425 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26426 $as_echo_n "(cached) " >&6
26427 else
26428 gcc_cv_as_ix86_tlsldm=no
26429 if test x$gcc_cv_as != x; then
26430 $as_echo "$conftest_s" > conftest.s
26431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26433 (eval $ac_try) 2>&5
26434 ac_status=$?
26435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26436 test $ac_status = 0; }; }
26437 then
26438 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26439 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26440 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26441 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26442 gcc_cv_as_ix86_tlsldm=yes
26445 rm -f conftest
26446 else
26447 echo "configure: failed program was" >&5
26448 cat conftest.s >&5
26450 rm -f conftest.o conftest.s
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26454 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26458 cat >>confdefs.h <<_ACEOF
26459 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26460 _ACEOF
26463 conftest_s='
26464 .data
26465 bar:
26466 .byte 1
26467 .text
26468 .global _start
26469 _start:
26470 cmpl $0, bar@GOT
26471 jmp *_start@GOT'
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26473 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26474 if ${gcc_cv_as_ix86_got32x+:} false; then :
26475 $as_echo_n "(cached) " >&6
26476 else
26477 gcc_cv_as_ix86_got32x=no
26478 if test x$gcc_cv_as != x; then
26479 $as_echo "$conftest_s" > conftest.s
26480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26482 (eval $ac_try) 2>&5
26483 ac_status=$?
26484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26485 test $ac_status = 0; }; }
26486 then
26487 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26488 && test x$gcc_cv_readelf != x \
26489 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26490 | grep R_386_GOT32X > /dev/null 2>&1 \
26491 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26492 if $gcc_cv_objdump -dw conftest 2>&1 \
26493 | grep 0xffffff > /dev/null 2>&1; then
26494 gcc_cv_as_ix86_got32x=no
26495 else
26496 gcc_cv_as_ix86_got32x=yes
26499 rm -f conftest
26500 else
26501 echo "configure: failed program was" >&5
26502 cat conftest.s >&5
26504 rm -f conftest.o conftest.s
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26508 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26512 cat >>confdefs.h <<_ACEOF
26513 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26514 _ACEOF
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26518 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26519 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26520 $as_echo_n "(cached) " >&6
26521 else
26522 gcc_cv_as_ix86_gotoff_in_data=no
26523 if test $in_tree_gas = yes; then
26524 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26525 then gcc_cv_as_ix86_gotoff_in_data=yes
26527 elif test x$gcc_cv_as != x; then
26528 $as_echo ' .text
26529 .L0:
26531 .data
26532 .long .L0@GOTOFF' > conftest.s
26533 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26538 test $ac_status = 0; }; }
26539 then
26540 gcc_cv_as_ix86_gotoff_in_data=yes
26541 else
26542 echo "configure: failed program was" >&5
26543 cat conftest.s >&5
26545 rm -f conftest.o conftest.s
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26549 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26553 cat >>confdefs.h <<_ACEOF
26554 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26555 _ACEOF
26558 conftest_s='
26559 .section .text,"ax",@progbits
26560 .globl _start
26561 .type _start, @function
26562 _start:
26563 leal ld@tlsldm(%ecx), %eax
26564 call *___tls_get_addr@GOT(%ecx)
26565 leal gd@tlsgd(%ecx), %eax
26566 call *___tls_get_addr@GOT(%ecx)
26568 .section .tdata,"aw'$tls_section_flag'",@progbits
26569 .type ld, @object
26571 .byte 0
26572 .globl gd
26573 .type gd, @object
26575 .byte 0'
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26577 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26578 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
26579 $as_echo_n "(cached) " >&6
26580 else
26581 gcc_cv_as_ix86_tls_get_addr_via_got=no
26582 if test x$gcc_cv_as != x; then
26583 $as_echo "$conftest_s" > conftest.s
26584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26586 (eval $ac_try) 2>&5
26587 ac_status=$?
26588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26589 test $ac_status = 0; }; }
26590 then
26591 if test x$gcc_cv_ld != x \
26592 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26593 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26595 rm -f conftest
26596 else
26597 echo "configure: failed program was" >&5
26598 cat conftest.s >&5
26600 rm -f conftest.o conftest.s
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26604 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26608 cat >>confdefs.h <<_ACEOF
26609 #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`
26610 _ACEOF
26614 ia64*-*-*)
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26616 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26617 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
26618 $as_echo_n "(cached) " >&6
26619 else
26620 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26621 if test $in_tree_gas = yes; then
26622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26623 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26625 elif test x$gcc_cv_as != x; then
26626 $as_echo ' .text
26627 addl r15 = @ltoffx(x#), gp
26629 ld8.mov r16 = [r15], x#
26630 ' > conftest.s
26631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26633 (eval $ac_try) 2>&5
26634 ac_status=$?
26635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26636 test $ac_status = 0; }; }
26637 then
26638 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26639 else
26640 echo "configure: failed program was" >&5
26641 cat conftest.s >&5
26643 rm -f conftest.o conftest.s
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26647 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26648 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26650 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26657 powerpc*-*-*)
26659 case $target in
26660 *-*-darwin*)
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26662 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26663 if ${gcc_cv_as_machine_directive+:} false; then :
26664 $as_echo_n "(cached) " >&6
26665 else
26666 gcc_cv_as_machine_directive=no
26667 if test x$gcc_cv_as != x; then
26668 $as_echo ' .machine ppc7400' > conftest.s
26669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26671 (eval $ac_try) 2>&5
26672 ac_status=$?
26673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26674 test $ac_status = 0; }; }
26675 then
26676 gcc_cv_as_machine_directive=yes
26677 else
26678 echo "configure: failed program was" >&5
26679 cat conftest.s >&5
26681 rm -f conftest.o conftest.s
26684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26685 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26688 if test x$gcc_cv_as_machine_directive != xyes; then
26689 echo "*** This target requires an assembler supporting \".machine\"" >&2
26690 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26691 test x$build = x$target && exit 1
26694 esac
26696 case $target in
26697 *-*-aix*) conftest_s=' .machine "pwr5"
26698 .csect .text[PR]
26699 mfcr 3,128';;
26700 *-*-darwin*) conftest_s=' .text
26701 mfcr r3,128';;
26702 *) conftest_s=' .machine power4
26703 .text
26704 mfcr 3,128';;
26705 esac
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26708 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26709 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
26710 $as_echo_n "(cached) " >&6
26711 else
26712 gcc_cv_as_powerpc_mfcrf=no
26713 if test $in_tree_gas = yes; then
26714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26715 then gcc_cv_as_powerpc_mfcrf=yes
26717 elif test x$gcc_cv_as != x; then
26718 $as_echo "$conftest_s" > conftest.s
26719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26721 (eval $ac_try) 2>&5
26722 ac_status=$?
26723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26724 test $ac_status = 0; }; }
26725 then
26726 gcc_cv_as_powerpc_mfcrf=yes
26727 else
26728 echo "configure: failed program was" >&5
26729 cat conftest.s >&5
26731 rm -f conftest.o conftest.s
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26735 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26736 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26738 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26743 case $target in
26744 *-*-aix*) conftest_s=' .csect .text[PR]
26745 LCF..0:
26746 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26747 *-*-darwin*)
26748 conftest_s=' .text
26749 LCF0:
26750 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26751 *) conftest_s=' .text
26752 .LCF0:
26753 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26754 esac
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26757 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26758 if ${gcc_cv_as_powerpc_rel16+:} false; then :
26759 $as_echo_n "(cached) " >&6
26760 else
26761 gcc_cv_as_powerpc_rel16=no
26762 if test $in_tree_gas = yes; then
26763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26764 then gcc_cv_as_powerpc_rel16=yes
26766 elif test x$gcc_cv_as != x; then
26767 $as_echo "$conftest_s" > conftest.s
26768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26770 (eval $ac_try) 2>&5
26771 ac_status=$?
26772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26773 test $ac_status = 0; }; }
26774 then
26775 gcc_cv_as_powerpc_rel16=yes
26776 else
26777 echo "configure: failed program was" >&5
26778 cat conftest.s >&5
26780 rm -f conftest.o conftest.s
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26784 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26785 if test $gcc_cv_as_powerpc_rel16 = yes; then
26787 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26792 case $target in
26793 *-*-aix*) conftest_s=' .machine "pwr7"
26794 .csect .text[PR]
26795 lxvd2x 1,2,3';;
26796 *) conftest_s=' .machine power7
26797 .text
26798 lxvd2x 1,2,3';;
26799 esac
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26802 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26803 if ${gcc_cv_as_powerpc_vsx+:} false; then :
26804 $as_echo_n "(cached) " >&6
26805 else
26806 gcc_cv_as_powerpc_vsx=no
26807 if test $in_tree_gas = yes; then
26808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26809 then gcc_cv_as_powerpc_vsx=yes
26811 elif test x$gcc_cv_as != x; then
26812 $as_echo "$conftest_s" > conftest.s
26813 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26815 (eval $ac_try) 2>&5
26816 ac_status=$?
26817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26818 test $ac_status = 0; }; }
26819 then
26820 gcc_cv_as_powerpc_vsx=yes
26821 else
26822 echo "configure: failed program was" >&5
26823 cat conftest.s >&5
26825 rm -f conftest.o conftest.s
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26829 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26830 if test $gcc_cv_as_powerpc_vsx = yes; then
26832 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26838 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26839 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
26840 $as_echo_n "(cached) " >&6
26841 else
26842 gcc_cv_as_powerpc_gnu_attribute=no
26843 if test $in_tree_gas = yes; then
26844 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26845 then gcc_cv_as_powerpc_gnu_attribute=yes
26847 elif test x$gcc_cv_as != x; then
26848 $as_echo '.gnu_attribute 4,1' > conftest.s
26849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26851 (eval $ac_try) 2>&5
26852 ac_status=$?
26853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26854 test $ac_status = 0; }; }
26855 then
26856 gcc_cv_as_powerpc_gnu_attribute=yes
26857 else
26858 echo "configure: failed program was" >&5
26859 cat conftest.s >&5
26861 rm -f conftest.o conftest.s
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26865 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26866 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26868 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26874 $as_echo_n "checking assembler for tls marker support... " >&6; }
26875 if ${gcc_cv_as_powerpc_tls_markers+:} false; then :
26876 $as_echo_n "(cached) " >&6
26877 else
26878 gcc_cv_as_powerpc_tls_markers=no
26879 if test $in_tree_gas = yes; then
26880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26881 then gcc_cv_as_powerpc_tls_markers=yes
26883 elif test x$gcc_cv_as != x; then
26884 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26887 (eval $ac_try) 2>&5
26888 ac_status=$?
26889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26890 test $ac_status = 0; }; }
26891 then
26892 gcc_cv_as_powerpc_tls_markers=yes
26893 else
26894 echo "configure: failed program was" >&5
26895 cat conftest.s >&5
26897 rm -f conftest.o conftest.s
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26901 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26902 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26904 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26910 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26911 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
26912 $as_echo_n "(cached) " >&6
26913 else
26914 gcc_cv_as_powerpc_entry_markers=no
26915 if test $in_tree_gas = yes; then
26916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26917 then gcc_cv_as_powerpc_entry_markers=yes
26919 elif test x$gcc_cv_as != x; then
26920 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26923 (eval $ac_try) 2>&5
26924 ac_status=$?
26925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26926 test $ac_status = 0; }; }
26927 then
26928 gcc_cv_as_powerpc_entry_markers=yes
26929 else
26930 echo "configure: failed program was" >&5
26931 cat conftest.s >&5
26933 rm -f conftest.o conftest.s
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26937 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26938 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26940 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26945 case $target in
26946 *-*-aix*)
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26948 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26949 if ${gcc_cv_as_aix_ref+:} false; then :
26950 $as_echo_n "(cached) " >&6
26951 else
26952 gcc_cv_as_aix_ref=no
26953 if test $in_tree_gas = yes; then
26954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26955 then gcc_cv_as_aix_ref=yes
26957 elif test x$gcc_cv_as != x; then
26958 $as_echo ' .csect stuff[rw]
26959 stuff:
26960 .long 1
26961 .extern sym
26962 .ref sym
26963 ' > conftest.s
26964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26966 (eval $ac_try) 2>&5
26967 ac_status=$?
26968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26969 test $ac_status = 0; }; }
26970 then
26971 gcc_cv_as_aix_ref=yes
26972 else
26973 echo "configure: failed program was" >&5
26974 cat conftest.s >&5
26976 rm -f conftest.o conftest.s
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26980 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26981 if test $gcc_cv_as_aix_ref = yes; then
26983 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26989 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26990 if ${gcc_cv_as_aix_dwloc+:} false; then :
26991 $as_echo_n "(cached) " >&6
26992 else
26993 gcc_cv_as_aix_dwloc=no
26994 if test $in_tree_gas = yes; then
26995 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26996 then gcc_cv_as_aix_dwloc=yes
26998 elif test x$gcc_cv_as != x; then
26999 $as_echo ' .dwsect 0xA0000
27000 Lframe..0:
27001 .vbyte 4,Lframe..0
27002 ' > conftest.s
27003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27005 (eval $ac_try) 2>&5
27006 ac_status=$?
27007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27008 test $ac_status = 0; }; }
27009 then
27010 gcc_cv_as_aix_dwloc=yes
27011 else
27012 echo "configure: failed program was" >&5
27013 cat conftest.s >&5
27015 rm -f conftest.o conftest.s
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27019 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27020 if test $gcc_cv_as_aix_dwloc = yes; then
27022 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27027 esac
27030 mips*-*-*)
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27032 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27033 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27034 $as_echo_n "(cached) " >&6
27035 else
27036 gcc_cv_as_mips_explicit_relocs=no
27037 if test $in_tree_gas = yes; then
27038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27039 then gcc_cv_as_mips_explicit_relocs=yes
27041 elif test x$gcc_cv_as != x; then
27042 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27045 (eval $ac_try) 2>&5
27046 ac_status=$?
27047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27048 test $ac_status = 0; }; }
27049 then
27050 gcc_cv_as_mips_explicit_relocs=yes
27051 else
27052 echo "configure: failed program was" >&5
27053 cat conftest.s >&5
27055 rm -f conftest.o conftest.s
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27059 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27060 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27061 if test x$target_cpu_default = x
27062 then target_cpu_default=MASK_EXPLICIT_RELOCS
27063 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27069 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27070 if ${gcc_cv_as_mips_no_shared+:} false; then :
27071 $as_echo_n "(cached) " >&6
27072 else
27073 gcc_cv_as_mips_no_shared=no
27074 if test $in_tree_gas = yes; then
27075 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27076 then gcc_cv_as_mips_no_shared=yes
27078 elif test x$gcc_cv_as != x; then
27079 $as_echo 'nop' > conftest.s
27080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27082 (eval $ac_try) 2>&5
27083 ac_status=$?
27084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27085 test $ac_status = 0; }; }
27086 then
27087 gcc_cv_as_mips_no_shared=yes
27088 else
27089 echo "configure: failed program was" >&5
27090 cat conftest.s >&5
27092 rm -f conftest.o conftest.s
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27096 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27097 if test $gcc_cv_as_mips_no_shared = yes; then
27099 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27105 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27106 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27107 $as_echo_n "(cached) " >&6
27108 else
27109 gcc_cv_as_mips_gnu_attribute=no
27110 if test $in_tree_gas = yes; then
27111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27112 then gcc_cv_as_mips_gnu_attribute=yes
27114 elif test x$gcc_cv_as != x; then
27115 $as_echo '.gnu_attribute 4,1' > conftest.s
27116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27118 (eval $ac_try) 2>&5
27119 ac_status=$?
27120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27121 test $ac_status = 0; }; }
27122 then
27123 gcc_cv_as_mips_gnu_attribute=yes
27124 else
27125 echo "configure: failed program was" >&5
27126 cat conftest.s >&5
27128 rm -f conftest.o conftest.s
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27132 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27133 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27135 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27141 $as_echo_n "checking assembler for .module support... " >&6; }
27142 if ${gcc_cv_as_mips_dot_module+:} false; then :
27143 $as_echo_n "(cached) " >&6
27144 else
27145 gcc_cv_as_mips_dot_module=no
27146 if test x$gcc_cv_as != x; then
27147 $as_echo '.module mips2
27148 .module fp=xx' > conftest.s
27149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27151 (eval $ac_try) 2>&5
27152 ac_status=$?
27153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27154 test $ac_status = 0; }; }
27155 then
27156 gcc_cv_as_mips_dot_module=yes
27157 else
27158 echo "configure: failed program was" >&5
27159 cat conftest.s >&5
27161 rm -f conftest.o conftest.s
27164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27165 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27166 if test $gcc_cv_as_mips_dot_module = yes; then
27168 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27172 if test x$gcc_cv_as_mips_dot_module = xno \
27173 && test x$with_fp_32 != x; then
27174 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27178 $as_echo_n "checking assembler for .micromips support... " >&6; }
27179 if ${gcc_cv_as_micromips_support+:} false; then :
27180 $as_echo_n "(cached) " >&6
27181 else
27182 gcc_cv_as_micromips_support=no
27183 if test x$gcc_cv_as != x; then
27184 $as_echo '.set micromips' > conftest.s
27185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27187 (eval $ac_try) 2>&5
27188 ac_status=$?
27189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27190 test $ac_status = 0; }; }
27191 then
27192 gcc_cv_as_micromips_support=yes
27193 else
27194 echo "configure: failed program was" >&5
27195 cat conftest.s >&5
27197 rm -f conftest.o conftest.s
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27201 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27202 if test $gcc_cv_as_micromips_support = yes; then
27204 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27210 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27211 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27212 $as_echo_n "(cached) " >&6
27213 else
27214 gcc_cv_as_mips_dtprelword=no
27215 if test $in_tree_gas = yes; then
27216 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27217 then gcc_cv_as_mips_dtprelword=yes
27219 elif test x$gcc_cv_as != x; then
27220 $as_echo '.section .tdata,"awT",@progbits
27222 .word 2
27223 .text
27224 .dtprelword x+0x8000' > conftest.s
27225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27227 (eval $ac_try) 2>&5
27228 ac_status=$?
27229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27230 test $ac_status = 0; }; }
27231 then
27232 gcc_cv_as_mips_dtprelword=yes
27233 else
27234 echo "configure: failed program was" >&5
27235 cat conftest.s >&5
27237 rm -f conftest.o conftest.s
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27241 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27242 if test $gcc_cv_as_mips_dtprelword = yes; then
27244 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27250 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27251 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27252 $as_echo_n "(cached) " >&6
27253 else
27254 gcc_cv_as_mips_dspr1_mult=no
27255 if test x$gcc_cv_as != x; then
27256 $as_echo ' .set mips32r2
27257 .set nodspr2
27258 .set dsp
27259 madd $ac3,$4,$5
27260 maddu $ac3,$4,$5
27261 msub $ac3,$4,$5
27262 msubu $ac3,$4,$5
27263 mult $ac3,$4,$5
27264 multu $ac3,$4,$5' > conftest.s
27265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27267 (eval $ac_try) 2>&5
27268 ac_status=$?
27269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27270 test $ac_status = 0; }; }
27271 then
27272 gcc_cv_as_mips_dspr1_mult=yes
27273 else
27274 echo "configure: failed program was" >&5
27275 cat conftest.s >&5
27277 rm -f conftest.o conftest.s
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27281 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27282 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27284 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27290 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27291 gcc_cv_as_ld_jalr_reloc=no
27292 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27293 if test $in_tree_ld = yes ; then
27294 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 \
27295 && test $in_tree_ld_is_elf = yes; then
27296 gcc_cv_as_ld_jalr_reloc=yes
27298 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27299 echo ' .ent x' > conftest.s
27300 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27301 echo ' lw $25,%call16(y)($28)' >> conftest.s
27302 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27303 echo '1: jalr $25' >> conftest.s
27304 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27305 echo '1: jalr $25' >> conftest.s
27306 echo ' .end x' >> conftest.s
27307 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27308 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27309 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27310 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27311 gcc_cv_as_ld_jalr_reloc=yes
27314 rm -f conftest.*
27317 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27318 if test x$target_cpu_default = x; then
27319 target_cpu_default=MASK_RELAX_PIC_CALLS
27320 else
27321 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27325 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27328 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27329 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27330 $as_echo_n "(cached) " >&6
27331 else
27332 gcc_cv_ld_mips_personality_relaxation=no
27333 if test $in_tree_ld = yes ; then
27334 if test "$gcc_cv_gld_major_version" -eq 2 \
27335 -a "$gcc_cv_gld_minor_version" -ge 21 \
27336 -o "$gcc_cv_gld_major_version" -gt 2; then
27337 gcc_cv_ld_mips_personality_relaxation=yes
27339 elif test x$gcc_cv_as != x \
27340 -a x$gcc_cv_ld != x \
27341 -a x$gcc_cv_readelf != x ; then
27342 cat > conftest.s <<EOF
27343 .cfi_startproc
27344 .cfi_personality 0x80,indirect_ptr
27345 .ent test
27346 test:
27348 .end test
27349 .cfi_endproc
27351 .section .data,"aw",@progbits
27352 indirect_ptr:
27353 .dc.a personality
27355 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27356 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27357 if $gcc_cv_readelf -d conftest 2>&1 \
27358 | grep TEXTREL > /dev/null 2>&1; then
27360 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27361 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27363 else
27364 gcc_cv_ld_mips_personality_relaxation=yes
27368 rm -f conftest.s conftest.o conftest
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27371 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27372 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27374 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27379 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27380 if ${gcc_cv_as_mips_nan+:} false; then :
27381 $as_echo_n "(cached) " >&6
27382 else
27383 gcc_cv_as_mips_nan=no
27384 if test x$gcc_cv_as != x; then
27385 $as_echo '' > conftest.s
27386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27388 (eval $ac_try) 2>&5
27389 ac_status=$?
27390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27391 test $ac_status = 0; }; }
27392 then
27393 gcc_cv_as_mips_nan=yes
27394 else
27395 echo "configure: failed program was" >&5
27396 cat conftest.s >&5
27398 rm -f conftest.o conftest.s
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27402 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27403 if test $gcc_cv_as_mips_nan = yes; then
27405 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27409 if test x$gcc_cv_as_mips_nan = xno \
27410 && test x$with_nan != x; then
27411 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27414 s390*-*-*)
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27416 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27417 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
27418 $as_echo_n "(cached) " >&6
27419 else
27420 gcc_cv_as_s390_gnu_attribute=no
27421 if test $in_tree_gas = yes; then
27422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27423 then gcc_cv_as_s390_gnu_attribute=yes
27425 elif test x$gcc_cv_as != x; then
27426 $as_echo '.gnu_attribute 8,1' > conftest.s
27427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27429 (eval $ac_try) 2>&5
27430 ac_status=$?
27431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27432 test $ac_status = 0; }; }
27433 then
27434 gcc_cv_as_s390_gnu_attribute=yes
27435 else
27436 echo "configure: failed program was" >&5
27437 cat conftest.s >&5
27439 rm -f conftest.o conftest.s
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27443 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27444 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27446 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27451 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27452 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
27453 $as_echo_n "(cached) " >&6
27454 else
27455 gcc_cv_as_s390_machine_machinemode=no
27456 if test $in_tree_gas = yes; then
27457 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27458 then gcc_cv_as_s390_machine_machinemode=yes
27460 elif test x$gcc_cv_as != x; then
27461 $as_echo ' .machinemode push
27462 .machinemode pop
27463 .machine push
27464 .machine pop' > conftest.s
27465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27467 (eval $ac_try) 2>&5
27468 ac_status=$?
27469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27470 test $ac_status = 0; }; }
27471 then
27472 gcc_cv_as_s390_machine_machinemode=yes
27473 else
27474 echo "configure: failed program was" >&5
27475 cat conftest.s >&5
27477 rm -f conftest.o conftest.s
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27481 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27482 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27484 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27489 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27490 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
27491 $as_echo_n "(cached) " >&6
27492 else
27493 gcc_cv_as_s390_architecture_modifiers=no
27494 if test $in_tree_gas = yes; then
27495 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27496 then gcc_cv_as_s390_architecture_modifiers=yes
27498 elif test x$gcc_cv_as != x; then
27499 $as_echo ' .machine z13+vx ' > conftest.s
27500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27502 (eval $ac_try) 2>&5
27503 ac_status=$?
27504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27505 test $ac_status = 0; }; }
27506 then
27507 gcc_cv_as_s390_architecture_modifiers=yes
27508 else
27509 echo "configure: failed program was" >&5
27510 cat conftest.s >&5
27512 rm -f conftest.o conftest.s
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27516 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27517 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27519 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
27524 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
27525 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
27526 $as_echo_n "(cached) " >&6
27527 else
27528 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
27529 if test $in_tree_gas = yes; then
27530 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27531 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27533 elif test x$gcc_cv_as != x; then
27534 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
27535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27537 (eval $ac_try) 2>&5
27538 ac_status=$?
27539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27540 test $ac_status = 0; }; }
27541 then
27542 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27543 else
27544 echo "configure: failed program was" >&5
27545 cat conftest.s >&5
27547 rm -f conftest.o conftest.s
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
27551 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
27552 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
27554 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
27560 esac
27562 # Mips and HP-UX need the GNU assembler.
27563 # Linux on IA64 might be able to use the Intel assembler.
27565 case "$target" in
27566 mips*-*-* | *-*-hpux* )
27567 if test x$gas_flag = xyes \
27568 || test x"$host" != x"$build" \
27569 || test ! -x "$gcc_cv_as" \
27570 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27572 else
27573 echo "*** This configuration requires the GNU assembler" >&2
27574 exit 1
27577 esac
27579 # ??? Not all targets support dwarf2 debug_line, even within a version
27580 # of gas. Moreover, we need to emit a valid instruction to trigger any
27581 # info to the output file. So, as supported targets are added to gas 2.11,
27582 # add some instruction here to (also) show we expect this might work.
27583 # ??? Once 2.11 is released, probably need to add first known working
27584 # version to the per-target configury.
27585 case "$cpu_type" in
27586 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27587 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27588 | tilegx | tilepro | visium | xstormy16 | xtensa)
27589 insn="nop"
27591 ia64 | s390)
27592 insn="nop 0"
27594 mmix)
27595 insn="swym 0"
27597 esac
27598 if test x"$insn" != x; then
27599 conftest_s="\
27600 .file 1 \"conftest.s\"
27601 .loc 1 3 0
27602 $insn"
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27604 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27605 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
27606 $as_echo_n "(cached) " >&6
27607 else
27608 gcc_cv_as_dwarf2_debug_line=no
27609 if test $in_tree_gas = yes; then
27610 if test $in_tree_gas_is_elf = yes \
27611 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27612 then gcc_cv_as_dwarf2_debug_line=yes
27614 elif test x$gcc_cv_as != x; then
27615 $as_echo "$conftest_s" > conftest.s
27616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27618 (eval $ac_try) 2>&5
27619 ac_status=$?
27620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27621 test $ac_status = 0; }; }
27622 then
27623 if test x$gcc_cv_objdump != x \
27624 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27625 | grep debug_line > /dev/null 2>&1; then
27626 gcc_cv_as_dwarf2_debug_line=yes
27628 else
27629 echo "configure: failed program was" >&5
27630 cat conftest.s >&5
27632 rm -f conftest.o conftest.s
27635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27636 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27640 # The .debug_line file table must be in the exact order that
27641 # we specified the files, since these indices are also used
27642 # by DW_AT_decl_file. Approximate this test by testing if
27643 # the assembler bitches if the same index is assigned twice.
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27645 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27646 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
27647 $as_echo_n "(cached) " >&6
27648 else
27649 gcc_cv_as_dwarf2_file_buggy=no
27650 if test x$gcc_cv_as != x; then
27651 $as_echo ' .file 1 "foo.s"
27652 .file 1 "bar.s"' > conftest.s
27653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27655 (eval $ac_try) 2>&5
27656 ac_status=$?
27657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27658 test $ac_status = 0; }; }
27659 then
27660 gcc_cv_as_dwarf2_file_buggy=yes
27661 else
27662 echo "configure: failed program was" >&5
27663 cat conftest.s >&5
27665 rm -f conftest.o conftest.s
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27669 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27673 if test $gcc_cv_as_dwarf2_debug_line = yes \
27674 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27676 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27679 if test $gcc_cv_as_leb128 = yes; then
27680 conftest_s="\
27681 .file 1 \"conftest.s\"
27682 .loc 1 3 0 view .LVU1
27683 $insn
27684 .data
27685 .uleb128 .LVU1
27686 .uleb128 .LVU1
27688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27689 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27690 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
27691 $as_echo_n "(cached) " >&6
27692 else
27693 gcc_cv_as_dwarf2_debug_view=no
27694 if test $in_tree_gas = yes; then
27695 if test $in_tree_gas_is_elf = yes \
27696 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27697 then gcc_cv_as_dwarf2_debug_view=yes
27699 elif test x$gcc_cv_as != x; then
27700 $as_echo "$conftest_s" > conftest.s
27701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27703 (eval $ac_try) 2>&5
27704 ac_status=$?
27705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27706 test $ac_status = 0; }; }
27707 then
27708 gcc_cv_as_dwarf2_debug_view=yes
27709 else
27710 echo "configure: failed program was" >&5
27711 cat conftest.s >&5
27713 rm -f conftest.o conftest.s
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27717 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27718 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27720 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27728 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27729 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
27730 $as_echo_n "(cached) " >&6
27731 else
27732 gcc_cv_as_gdwarf2_flag=no
27733 if test $in_tree_gas = yes; then
27734 if test $in_tree_gas_is_elf = yes \
27735 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27736 then gcc_cv_as_gdwarf2_flag=yes
27738 elif test x$gcc_cv_as != x; then
27739 $as_echo "$insn" > conftest.s
27740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27742 (eval $ac_try) 2>&5
27743 ac_status=$?
27744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27745 test $ac_status = 0; }; }
27746 then
27747 gcc_cv_as_gdwarf2_flag=yes
27748 else
27749 echo "configure: failed program was" >&5
27750 cat conftest.s >&5
27752 rm -f conftest.o conftest.s
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27756 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27757 if test $gcc_cv_as_gdwarf2_flag = yes; then
27759 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27765 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27766 if ${gcc_cv_as_gstabs_flag+:} false; then :
27767 $as_echo_n "(cached) " >&6
27768 else
27769 gcc_cv_as_gstabs_flag=no
27770 if test $in_tree_gas = yes; then
27771 if test $in_tree_gas_is_elf = yes \
27772 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27773 then gcc_cv_as_gstabs_flag=yes
27775 elif test x$gcc_cv_as != x; then
27776 $as_echo "$insn" > conftest.s
27777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27779 (eval $ac_try) 2>&5
27780 ac_status=$?
27781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27782 test $ac_status = 0; }; }
27783 then
27784 gcc_cv_as_gstabs_flag=yes
27785 else
27786 echo "configure: failed program was" >&5
27787 cat conftest.s >&5
27789 rm -f conftest.o conftest.s
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27793 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27794 if test $gcc_cv_as_gstabs_flag = yes; then
27796 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27802 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27803 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
27804 $as_echo_n "(cached) " >&6
27805 else
27806 gcc_cv_as_debug_prefix_map_flag=no
27807 if test $in_tree_gas = yes; then
27808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27809 then gcc_cv_as_debug_prefix_map_flag=yes
27811 elif test x$gcc_cv_as != x; then
27812 $as_echo "$insn" > conftest.s
27813 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27815 (eval $ac_try) 2>&5
27816 ac_status=$?
27817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27818 test $ac_status = 0; }; }
27819 then
27820 gcc_cv_as_debug_prefix_map_flag=yes
27821 else
27822 echo "configure: failed program was" >&5
27823 cat conftest.s >&5
27825 rm -f conftest.o conftest.s
27828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27829 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27830 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27832 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27839 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27840 if ${gcc_cv_as_compress_debug+:} false; then :
27841 $as_echo_n "(cached) " >&6
27842 else
27843 gcc_cv_as_compress_debug=no
27844 if test x$gcc_cv_as != x; then
27845 $as_echo '' > conftest.s
27846 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27848 (eval $ac_try) 2>&5
27849 ac_status=$?
27850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27851 test $ac_status = 0; }; }
27852 then
27853 # gas compiled without zlib cannot compress debug sections and warns
27854 # about it, but still exits successfully. So check for this, too.
27855 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27856 then
27857 gcc_cv_as_compress_debug=0
27858 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27859 # defaulting to the ELF gABI format.
27860 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27861 then
27862 gcc_cv_as_compress_debug=2
27863 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27864 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27865 # Before binutils 2.26, gas only supported --compress-debug-options and
27866 # emitted the traditional GNU format.
27867 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27868 then
27869 gcc_cv_as_compress_debug=1
27870 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27871 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27872 else
27873 gcc_cv_as_compress_debug=0
27875 else
27876 echo "configure: failed program was" >&5
27877 cat conftest.s >&5
27879 rm -f conftest.o conftest.s
27882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27883 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27887 cat >>confdefs.h <<_ACEOF
27888 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27889 _ACEOF
27892 cat >>confdefs.h <<_ACEOF
27893 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27894 _ACEOF
27897 cat >>confdefs.h <<_ACEOF
27898 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27899 _ACEOF
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27903 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27904 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
27905 $as_echo_n "(cached) " >&6
27906 else
27907 gcc_cv_as_lcomm_with_alignment=no
27908 if test x$gcc_cv_as != x; then
27909 $as_echo '.lcomm bar,4,16' > conftest.s
27910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27912 (eval $ac_try) 2>&5
27913 ac_status=$?
27914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27915 test $ac_status = 0; }; }
27916 then
27917 gcc_cv_as_lcomm_with_alignment=yes
27918 else
27919 echo "configure: failed program was" >&5
27920 cat conftest.s >&5
27922 rm -f conftest.o conftest.s
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27926 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27927 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27929 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27934 if test x$with_sysroot = x && test x$host = x$target \
27935 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27936 && test "$prefix" != "NONE"; then
27938 cat >>confdefs.h <<_ACEOF
27939 #define PREFIX_INCLUDE_DIR "$prefix/include"
27940 _ACEOF
27944 # Determine the version of glibc, if any, used on the target.
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27946 $as_echo_n "checking for target glibc version... " >&6; }
27948 # Check whether --with-glibc-version was given.
27949 if test "${with_glibc_version+set}" = set; then :
27950 withval=$with_glibc_version;
27951 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27952 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27953 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27954 else
27955 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27957 else
27959 glibc_version_major=0
27960 glibc_version_minor=0
27961 if test -f $target_header_dir/features.h \
27962 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27963 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27964 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27965 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27970 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27972 cat >>confdefs.h <<_ACEOF
27973 #define TARGET_GLIBC_MAJOR $glibc_version_major
27974 _ACEOF
27977 cat >>confdefs.h <<_ACEOF
27978 #define TARGET_GLIBC_MINOR $glibc_version_minor
27979 _ACEOF
27982 # Check whether --enable-gnu-unique-object was given.
27983 if test "${enable_gnu_unique_object+set}" = set; then :
27984 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27985 yes | no) ;;
27986 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27987 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27988 esac
27989 else
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27991 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27992 if ${gcc_cv_as_gnu_unique_object+:} false; then :
27993 $as_echo_n "(cached) " >&6
27994 else
27995 gcc_cv_as_gnu_unique_object=no
27996 if test $in_tree_gas = yes; then
27997 if test $in_tree_gas_is_elf = yes \
27998 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27999 then gcc_cv_as_gnu_unique_object=yes
28001 elif test x$gcc_cv_as != x; then
28002 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28005 (eval $ac_try) 2>&5
28006 ac_status=$?
28007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28008 test $ac_status = 0; }; }
28009 then
28010 gcc_cv_as_gnu_unique_object=yes
28011 else
28012 echo "configure: failed program was" >&5
28013 cat conftest.s >&5
28015 rm -f conftest.o conftest.s
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28019 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28020 if test $gcc_cv_as_gnu_unique_object = yes; then
28021 # We need to unquote above to to use the definition from config.gcc.
28022 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28024 if test $glibc_version_major -gt 2 \
28025 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28026 enable_gnu_unique_object=yes
28033 if test x$enable_gnu_unique_object = xyes; then
28035 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28040 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28041 if ${gcc_cv_as_line_zero+:} false; then :
28042 $as_echo_n "(cached) " >&6
28043 else
28044 gcc_cv_as_line_zero=no
28045 if test $in_tree_gas = yes; then
28046 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28047 then gcc_cv_as_line_zero=yes
28049 elif test "x$gcc_cv_as" != x; then
28050 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28051 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28053 (eval $ac_try) 2>&5
28054 ac_status=$?
28055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28056 test $ac_status = 0; }; } &&
28057 test "x`cat conftest.out`" = x
28058 then
28059 gcc_cv_as_line_zero=yes
28060 else
28061 echo "configure: failed program was" >&5
28062 cat conftest.s >&5
28063 echo "configure: error output was" >&5
28064 cat conftest.out >&5
28066 rm -f conftest.o conftest.s conftest.out
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28070 $as_echo "$gcc_cv_as_line_zero" >&6; }
28071 if test "x$gcc_cv_as_line_zero" = xyes; then
28073 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28078 $as_echo_n "checking support for thin archives... " >&6; }
28079 thin_archive_support=no
28080 echo 'int main (void) { return 0; }' > conftest.c
28081 if ($AR --version | sed 1q | grep "GNU ar" \
28082 && $CC $CFLAGS -c conftest.c \
28083 && $AR rcT conftest.a conftest.o \
28084 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28085 thin_archive_support=yes
28087 rm -f conftest.c conftest.o conftest.a conftest
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28089 $as_echo "$thin_archive_support" >&6; }
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28093 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28094 gcc_cv_ld_eh_frame_hdr=no
28095 if test $in_tree_ld = yes ; then
28096 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 \
28097 && test $in_tree_ld_is_elf = yes; then
28098 gcc_cv_ld_eh_frame_hdr=yes
28100 elif test x$gcc_cv_ld != x; then
28101 if echo "$ld_ver" | grep GNU > /dev/null; then
28102 # Check if linker supports --eh-frame-hdr option
28103 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28104 gcc_cv_ld_eh_frame_hdr=yes
28106 else
28107 case "$target" in
28108 *-*-solaris2*)
28109 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28110 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28111 gcc_cv_ld_eh_frame_hdr=yes
28114 esac
28118 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28120 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28124 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28127 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28128 gcc_cv_ld_eh_frame_ciev3=no
28129 if test $in_tree_ld = yes ; then
28130 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 \
28131 && test $in_tree_ld_is_elf = yes; then
28132 gcc_cv_ld_eh_frame_ciev3=yes
28134 elif test x$gcc_cv_ld != x; then
28135 if echo "$ld_ver" | grep GNU > /dev/null; then
28136 gcc_cv_ld_eh_frame_ciev3=yes
28137 if test 0"$ld_date" -lt 20040513; then
28138 if test -n "$ld_date"; then
28139 # If there was date string, but was earlier than 2004-05-13, fail
28140 gcc_cv_ld_eh_frame_ciev3=no
28141 elif test "$ld_vers_major" -lt 2; then
28142 gcc_cv_ld_eh_frame_ciev3=no
28143 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28144 gcc_cv_ld_eh_frame_ciev3=no
28147 else
28148 case "$target" in
28149 *-*-solaris2*)
28150 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28151 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28152 gcc_cv_ld_eh_frame_ciev3=yes
28155 esac
28159 cat >>confdefs.h <<_ACEOF
28160 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28161 _ACEOF
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28164 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28167 $as_echo_n "checking linker position independent executable support... " >&6; }
28168 gcc_cv_ld_pie=no
28169 if test $in_tree_ld = yes ; then
28170 case "$target" in
28171 # Full PIE support on Solaris was only introduced in gld 2.26.
28172 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28173 *) gcc_gld_pie_min_version=15 ;;
28174 esac
28175 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 \
28176 && test $in_tree_ld_is_elf = yes; then
28177 gcc_cv_ld_pie=yes
28179 elif test x$gcc_cv_ld != x; then
28180 # Check if linker supports -pie option
28181 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28182 gcc_cv_ld_pie=yes
28183 case "$target" in
28184 *-*-solaris2*)
28185 if echo "$ld_ver" | grep GNU > /dev/null \
28186 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28187 gcc_cv_ld_pie=no
28190 esac
28191 else
28192 case "$target" in
28193 *-*-solaris2.1[1-9]*)
28194 # Solaris 11.3 added PIE support.
28195 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28196 gcc_cv_ld_pie=yes
28199 esac
28202 if test x"$gcc_cv_ld_pie" = xyes; then
28204 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28208 $as_echo "$gcc_cv_ld_pie" >&6; }
28210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28211 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28212 gcc_cv_ld_pie_copyreloc=no
28213 if test $gcc_cv_ld_pie = yes ; then
28214 if test $in_tree_ld = yes ; then
28215 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
28216 gcc_cv_ld_pie_copyreloc=yes
28218 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28219 # Check if linker supports -pie option with copy reloc
28220 case "$target" in
28221 i?86-*-linux* | x86_64-*-linux*)
28222 cat > conftest1.s <<EOF
28223 .globl a_glob
28224 .data
28225 .type a_glob, @object
28226 .size a_glob, 4
28227 a_glob:
28228 .long 2
28230 cat > conftest2.s <<EOF
28231 .text
28232 .globl main
28233 .type main, @function
28234 main:
28235 movl %eax, a_glob(%rip)
28236 .size main, .-main
28237 .globl ptr
28238 .section .data.rel,"aw",@progbits
28239 .type ptr, @object
28240 ptr:
28241 .quad a_glob
28243 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28244 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28245 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28246 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28247 gcc_cv_ld_pie_copyreloc=yes
28249 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28251 esac
28255 cat >>confdefs.h <<_ACEOF
28256 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28257 _ACEOF
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28260 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28263 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28264 gcc_cv_ld_eh_gc_sections=no
28265 if test $in_tree_ld = yes ; then
28266 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 \
28267 && test $in_tree_ld_is_elf = yes; then
28268 gcc_cv_ld_eh_gc_sections=yes
28270 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28271 cat > conftest.s <<EOF
28272 .section .text
28273 .globl _start
28274 .type _start, @function
28275 _start:
28276 .long foo
28277 .size _start, .-_start
28278 .section .text.foo,"ax",@progbits
28279 .type foo, @function
28280 foo:
28281 .long 0
28282 .size foo, .-foo
28283 .section .gcc_except_table.foo,"a",@progbits
28284 .L0:
28285 .long 0
28286 .section .eh_frame,"a",@progbits
28287 .long .L0
28289 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28290 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28291 | grep "gc-sections option ignored" > /dev/null; then
28292 gcc_cv_ld_eh_gc_sections=no
28293 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28294 | grep gcc_except_table > /dev/null; then
28295 gcc_cv_ld_eh_gc_sections=yes
28296 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28297 if test x$gcc_cv_as_comdat_group != xyes; then
28298 gcc_cv_ld_eh_gc_sections=no
28299 cat > conftest.s <<EOF
28300 .section .text
28301 .globl _start
28302 .type _start, @function
28303 _start:
28304 .long foo
28305 .size _start, .-_start
28306 .section .gnu.linkonce.t.foo,"ax",@progbits
28307 .type foo, @function
28308 foo:
28309 .long 0
28310 .size foo, .-foo
28311 .section .gcc_except_table.foo,"a",@progbits
28312 .L0:
28313 .long 0
28314 .section .eh_frame,"a",@progbits
28315 .long .L0
28317 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28318 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28319 | grep "gc-sections option ignored" > /dev/null; then
28320 gcc_cv_ld_eh_gc_sections=no
28321 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28322 | grep gcc_except_table > /dev/null; then
28323 gcc_cv_ld_eh_gc_sections=yes
28329 rm -f conftest.s conftest.o conftest
28331 case "$target" in
28332 hppa*-*-linux*)
28333 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28334 gcc_cv_ld_eh_gc_sections=no
28336 esac
28337 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28339 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28343 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28346 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28347 gcc_cv_ld_eh_gc_sections_bug=no
28348 if test $in_tree_ld = yes ; then
28349 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 \
28350 && test $in_tree_ld_is_elf = yes; then
28351 gcc_cv_ld_eh_gc_sections_bug=yes
28353 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
28354 gcc_cv_ld_eh_gc_sections_bug=yes
28355 cat > conftest.s <<EOF
28356 .section .text
28357 .globl _start
28358 .type _start, @function
28359 _start:
28360 .long foo
28361 .size _start, .-_start
28362 .section .text.startup.foo,"ax",@progbits
28363 .type foo, @function
28364 foo:
28365 .long 0
28366 .size foo, .-foo
28367 .section .gcc_except_table.foo,"a",@progbits
28368 .L0:
28369 .long 0
28370 .section .eh_frame,"a",@progbits
28371 .long .L0
28373 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28374 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28375 | grep "gc-sections option ignored" > /dev/null; then
28377 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28378 | grep gcc_except_table > /dev/null; then
28379 gcc_cv_ld_eh_gc_sections_bug=no
28382 rm -f conftest.s conftest.o conftest
28384 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28386 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28390 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28393 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28394 # gold/gld support compressed debug sections since binutils 2.19/2.21
28395 # In binutils 2.26, gld gained support for the ELF gABI format.
28396 if test $in_tree_ld = yes ; then
28397 gcc_cv_ld_compress_debug=0
28398 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 \
28399 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28400 gcc_cv_ld_compress_debug=2
28401 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28402 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 \
28403 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28404 gcc_cv_ld_compress_debug=3
28405 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28406 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 \
28407 && test $in_tree_ld_is_elf = yes; then
28408 gcc_cv_ld_compress_debug=1
28410 elif echo "$ld_ver" | grep GNU > /dev/null; then
28411 if test "$ld_vers_major" -lt 2 \
28412 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28413 gcc_cv_ld_compress_debug=0
28414 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28415 gcc_cv_ld_compress_debug=1
28416 else
28417 gcc_cv_ld_compress_debug=3
28418 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28420 if test $ld_is_gold = yes; then
28421 gcc_cv_ld_compress_debug=2
28422 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28424 else
28425 case "${target}" in
28426 *-*-solaris2*)
28427 # Introduced in Solaris 11.2.
28428 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28429 gcc_cv_ld_compress_debug=3
28430 gcc_cv_ld_compress_debug_option="-z compress-sections"
28431 else
28432 gcc_cv_ld_compress_debug=0
28436 # Assume linkers other than GNU ld don't support compessed debug
28437 # sections.
28438 gcc_cv_ld_compress_debug=0
28440 esac
28443 cat >>confdefs.h <<_ACEOF
28444 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28445 _ACEOF
28448 cat >>confdefs.h <<_ACEOF
28449 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28450 _ACEOF
28452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28453 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28455 if test x"$ld64_flag" = x"yes"; then
28457 # Set defaults for possibly untestable items.
28458 gcc_cv_ld64_export_dynamic=0
28460 if test "$build" = "$host"; then
28461 darwin_try_test=1
28462 else
28463 darwin_try_test=0
28466 # On Darwin, because of FAT library support, it is often possible to execute
28467 # exes from compatible archs even when the host differs from the build system.
28468 case "$build","$host" in
28469 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28470 darwin_try_test=1;;
28471 *) ;;
28472 esac
28474 # If the configurer specified a minimum ld64 version to be supported, then use
28475 # that to determine feature support.
28476 if test x"${gcc_cv_ld64_version}" != x; then
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28478 $as_echo_n "checking ld64 specified version... " >&6; }
28479 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28481 $as_echo "$gcc_cv_ld64_major" >&6; }
28482 if test "$gcc_cv_ld64_major" -ge 236; then
28483 gcc_cv_ld64_export_dynamic=1
28485 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28486 # If the version was not specified, try to find it.
28487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28488 $as_echo_n "checking linker version... " >&6; }
28489 if test x"${gcc_cv_ld64_version}" = x; then
28490 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28493 $as_echo "$gcc_cv_ld64_version" >&6; }
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28496 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28497 gcc_cv_ld64_export_dynamic=1
28498 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28499 gcc_cv_ld64_export_dynamic=0
28501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28502 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28505 if test x"${gcc_cv_ld64_version}" != x; then
28507 cat >>confdefs.h <<_ACEOF
28508 #define LD64_VERSION "${gcc_cv_ld64_version}"
28509 _ACEOF
28514 cat >>confdefs.h <<_ACEOF
28515 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28516 _ACEOF
28520 # --------
28521 # UNSORTED
28522 # --------
28524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28525 $as_echo_n "checking linker --as-needed support... " >&6; }
28526 if ${gcc_cv_ld_as_needed+:} false; then :
28527 $as_echo_n "(cached) " >&6
28528 else
28529 gcc_cv_ld_as_needed=no
28530 gcc_cv_ld_as_needed_option='--as-needed'
28531 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28532 if test $in_tree_ld = yes ; then
28533 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 \
28534 && test $in_tree_ld_is_elf = yes; then
28535 gcc_cv_ld_as_needed=yes
28536 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28537 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28538 gcc_cv_ld_no_as_needed_option='--pop-state'
28541 elif test x$gcc_cv_ld != x; then
28542 # Check if linker supports --as-needed and --no-as-needed options
28543 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28544 gcc_cv_ld_as_needed=yes
28545 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28546 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28547 && echo "$ld_ver" | grep GNU > /dev/null \
28548 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28549 # Use these options only when both ld.bfd and ld.gold support
28550 # --push-state/--pop-state, which unfortunately wasn't added
28551 # at the same time.
28552 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28553 gcc_cv_ld_no_as_needed_option='--pop-state'
28556 case "$target:$gnu_ld" in
28557 *-*-solaris2*:no)
28558 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28559 # forms.
28560 gcc_cv_ld_as_needed=yes
28561 gcc_cv_ld_as_needed_option="-z ignore"
28562 gcc_cv_ld_no_as_needed_option="-z record"
28564 esac
28566 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28567 # dl_iterate_phdr, i.e. since Solaris 11.
28568 case "$target" in
28569 *-*-solaris2.1[1-9]*)
28570 case "$target" in
28571 i?86-*-* | x86_64-*-*)
28572 if echo "$ld_ver" | grep GNU > /dev/null; then
28573 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28574 gcc_cv_ld_as_needed=no
28577 esac
28579 *-*-solaris2*)
28580 gcc_cv_ld_as_needed=no
28582 esac
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28586 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28587 if test x"$gcc_cv_ld_as_needed" = xyes; then
28589 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28592 cat >>confdefs.h <<_ACEOF
28593 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28594 _ACEOF
28597 cat >>confdefs.h <<_ACEOF
28598 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28599 _ACEOF
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28604 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28605 saved_LDFLAGS="$LDFLAGS"
28606 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28607 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28609 /* end confdefs.h. */
28610 int main(void) {return 0;}
28611 _ACEOF
28612 if ac_fn_cxx_try_link "$LINENO"; then :
28613 gcc_cv_ld_clearcap=yes; break
28614 else
28615 gcc_cv_ld_clearcap=no
28617 rm -f core conftest.err conftest.$ac_objext \
28618 conftest$ac_exeext conftest.$ac_ext
28619 done
28620 LDFLAGS="$saved_LDFLAGS"
28621 if test "x$gcc_cv_ld_clearcap" = xyes; then
28623 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28625 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28629 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28631 case "$target" in
28632 powerpc*-*-*)
28633 case "$target" in
28634 *le-*-linux*)
28635 emul_name="-melf32lppc"
28638 emul_name="-melf32ppc"
28640 esac
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28642 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28643 if ${gcc_cv_ld_ppc_attr+:} false; then :
28644 $as_echo_n "(cached) " >&6
28645 else
28646 gcc_cv_ld_ppc_attr=no
28647 if test x"$ld_is_gold" = xyes; then
28648 gcc_cv_ld_ppc_attr=yes
28649 elif test $in_tree_ld = yes ; then
28650 if test "$gcc_cv_gld_major_version" -eq 2 \
28651 -a "$gcc_cv_gld_minor_version" -ge 28 \
28652 -o "$gcc_cv_gld_major_version" -gt 2; then
28653 gcc_cv_ld_ppc_attr=yes
28655 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28656 # check that merging the long double .gnu_attribute doesn't warn
28657 cat > conftest1.s <<EOF
28658 .gnu_attribute 4,1
28660 cat > conftest2.s <<EOF
28661 .gnu_attribute 4,9
28663 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28664 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28665 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28666 && test ! -s conftest.err; then
28667 gcc_cv_ld_ppc_attr=yes
28669 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28674 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28675 if test x$gcc_cv_ld_ppc_attr = xyes; then
28677 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28681 esac
28683 case "$target:$tm_file" in
28684 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28685 case "$target" in
28686 *le-*-linux*)
28687 emul_name="-melf64lppc"
28689 *-*-linux*)
28690 emul_name="-melf64ppc"
28692 *-*-freebsd*)
28693 emul_name="-melf64ppc_fbsd"
28695 esac
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28697 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28698 if ${gcc_cv_ld_no_dot_syms+:} false; then :
28699 $as_echo_n "(cached) " >&6
28700 else
28701 gcc_cv_ld_no_dot_syms=no
28702 if test x"$ld_is_gold" = xyes; then
28703 gcc_cv_ld_no_dot_syms=yes
28704 elif test $in_tree_ld = yes ; then
28705 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
28706 gcc_cv_ld_no_dot_syms=yes
28708 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28709 cat > conftest1.s <<EOF
28710 .text
28711 bl .foo
28713 cat > conftest2.s <<EOF
28714 .section ".opd","aw"
28715 .align 3
28716 .globl foo
28717 .type foo,@function
28718 foo:
28719 .quad .LEfoo,.TOC.@tocbase,0
28720 .text
28721 .LEfoo:
28723 .size foo,.-.LEfoo
28725 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28726 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28727 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28728 gcc_cv_ld_no_dot_syms=yes
28730 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28735 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28736 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28738 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28743 $as_echo_n "checking linker large toc support... " >&6; }
28744 if ${gcc_cv_ld_large_toc+:} false; then :
28745 $as_echo_n "(cached) " >&6
28746 else
28747 gcc_cv_ld_large_toc=no
28748 if test x"$ld_is_gold" = xyes; then
28749 gcc_cv_ld_large_toc=yes
28750 elif test $in_tree_ld = yes ; then
28751 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
28752 gcc_cv_ld_large_toc=yes
28754 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28755 cat > conftest.s <<EOF
28756 .section ".tbss","awT",@nobits
28757 .align 3
28758 ie0: .space 8
28759 .global _start
28760 .text
28761 _start:
28762 addis 9,13,ie0@got@tprel@ha
28763 ld 9,ie0@got@tprel@l(9)
28765 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28766 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28767 gcc_cv_ld_large_toc=yes
28769 rm -f conftest conftest.o conftest.s
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28774 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28775 if test x"$gcc_cv_ld_large_toc" = xyes; then
28777 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28782 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28783 if ${gcc_cv_ld_toc_align+:} false; then :
28784 $as_echo_n "(cached) " >&6
28785 else
28786 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28787 cat > conftest.s <<EOF
28788 .global _start
28789 .text
28790 _start:
28791 addis 9,2,x@got@ha
28792 .section .data.rel.ro,"aw",@progbits
28793 .p2align 16
28794 .space 32768
28795 x: .quad .TOC.
28797 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28798 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28799 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)) }'`
28801 rm -f conftest conftest.o conftest.s
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28806 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28807 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28809 cat >>confdefs.h <<_ACEOF
28810 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28811 _ACEOF
28815 esac
28817 case "$target" in
28818 *-*-aix*)
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28820 $as_echo_n "checking linker large toc support... " >&6; }
28821 if ${gcc_cv_ld_large_toc+:} false; then :
28822 $as_echo_n "(cached) " >&6
28823 else
28824 gcc_cv_ld_large_toc=no
28825 if test x$gcc_cv_as != x ; then
28826 cat > conftest.s <<EOF
28827 .toc
28828 LC..1:
28829 .tc a[TC],a[RW]
28830 .extern a[RW]
28831 .csect .text[PR]
28832 .largetoctest:
28833 addis 9,LC..1@u(2)
28834 ld 3,LC..1@l(9)
28836 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28837 gcc_cv_ld_large_toc=yes
28839 rm -f conftest conftest.o conftest.s
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28844 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28845 if test x"$gcc_cv_ld_large_toc" = xyes; then
28847 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28851 esac
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28854 $as_echo_n "checking linker --build-id support... " >&6; }
28855 if ${gcc_cv_ld_buildid+:} false; then :
28856 $as_echo_n "(cached) " >&6
28857 else
28858 gcc_cv_ld_buildid=no
28859 if test $in_tree_ld = yes ; then
28860 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28861 "$gcc_cv_gld_minor_version" -ge 18 -o \
28862 "$gcc_cv_gld_major_version" -gt 2 \
28863 && test $in_tree_ld_is_elf = yes; then
28864 gcc_cv_ld_buildid=yes
28866 elif test x$gcc_cv_ld != x; then
28867 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
28868 gcc_cv_ld_buildid=yes
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28873 $as_echo "$gcc_cv_ld_buildid" >&6; }
28874 if test x"$gcc_cv_ld_buildid" = xyes; then
28876 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28880 # Check whether --enable-linker-build-id was given.
28881 if test "${enable_linker_build_id+set}" = set; then :
28882 enableval=$enable_linker_build_id;
28883 else
28884 enable_linker_build_id=no
28888 if test x"$enable_linker_build_id" = xyes; then
28889 if test x"$gcc_cv_ld_buildid" = xyes; then
28891 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28893 else
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28895 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28899 # In binutils 2.21, GNU ld gained support for new emulations fully
28900 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28902 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28903 if ${gcc_cv_ld_sol2_emulation+:} false; then :
28904 $as_echo_n "(cached) " >&6
28905 else
28906 gcc_cv_ld_sol2_emulation=no
28907 if test $in_tree_ld = yes ; then
28908 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28909 "$gcc_cv_gld_minor_version" -ge 21 -o \
28910 "$gcc_cv_gld_major_version" -gt 2 \
28911 && test $in_tree_ld_is_elf = yes; then
28912 gcc_cv_ld_sol2_emulation=yes
28914 elif test x$gcc_cv_ld != x; then
28915 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28916 grep _sol2 > /dev/null; then
28917 gcc_cv_ld_sol2_emulation=yes
28921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28922 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28923 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28925 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28930 $as_echo_n "checking linker --sysroot support... " >&6; }
28931 if ${gcc_cv_ld_sysroot+:} false; then :
28932 $as_echo_n "(cached) " >&6
28933 else
28934 gcc_cv_ld_sysroot=no
28935 if test $in_tree_ld = yes ; then
28936 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
28937 gcc_cv_ld_sysroot=yes
28939 elif test x$gcc_cv_ld != x; then
28940 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
28941 gcc_cv_ld_sysroot=yes
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28946 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28947 if test x"$gcc_cv_ld_sysroot" = xyes; then
28949 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28953 case $target in
28954 *-*-solaris2*)
28955 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28957 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28958 if ${gcc_cv_solaris_crts+:} false; then :
28959 $as_echo_n "(cached) " >&6
28960 else
28961 gcc_cv_solaris_crts=no
28962 if test x$host != x$target; then
28963 if test "x$with_sysroot" = xyes; then
28964 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28965 else
28966 target_sysroot="${with_sysroot}"
28969 target_libdir="$target_sysroot/usr/lib"
28970 # At the time they were added, gcrt1.o became a symlink for backwards
28971 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28972 case $target in
28973 i?86-*-solaris2* | x86_64-*-solaris2*)
28974 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28976 sparc*-*-solaris2*)
28977 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28979 esac
28981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28982 $as_echo "$gcc_cv_solaris_crts" >&6; }
28984 esac
28985 if test x$gcc_cv_solaris_crts = xyes; then
28987 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28991 # Check whether --enable-libssp was given.
28992 if test "${enable_libssp+set}" = set; then :
28993 enableval=$enable_libssp; case "${enableval}" in
28994 yes|no)
28997 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
28999 esac
29003 # Test for stack protector support in target C library.
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29005 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29006 if ${gcc_cv_libc_provides_ssp+:} false; then :
29007 $as_echo_n "(cached) " >&6
29008 else
29009 gcc_cv_libc_provides_ssp=no
29010 if test "x$enable_libssp" = "xno"; then
29011 gcc_cv_libc_provides_ssp=yes
29012 elif test "x$enable_libssp" = "xyes"; then
29013 gcc_cv_libc_provides_ssp=no
29014 else
29015 case "$target" in
29016 *-*-musl*)
29017 # All versions of musl provide stack protector
29018 gcc_cv_libc_provides_ssp=yes;;
29019 *-*-linux* | *-*-kfreebsd*-gnu)
29020 # glibc 2.4 and later provides __stack_chk_fail and
29021 # either __stack_chk_guard, or TLS access to stack guard canary.
29023 if test $glibc_version_major -gt 2 \
29024 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29025 gcc_cv_libc_provides_ssp=yes
29026 else
29028 if test -f $target_header_dir/features.h \
29029 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29030 $target_header_dir/features.h > /dev/null; then
29031 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29032 $target_header_dir/features.h > /dev/null && \
29033 test -f $target_header_dir/bits/uClibc_config.h && \
29034 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29035 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29036 gcc_cv_libc_provides_ssp=yes
29038 # all versions of Bionic support stack protector
29039 elif test -f $target_header_dir/sys/cdefs.h \
29040 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29041 $target_header_dir/sys/cdefs.h > /dev/null; then
29042 gcc_cv_libc_provides_ssp=yes
29046 *-*-gnu*)
29047 # Avoid complicated tests (see
29048 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29049 # simply assert that glibc does provide this, which is true for all
29050 # realistically usable GNU/Hurd configurations.
29051 # All supported versions of musl provide it as well
29052 gcc_cv_libc_provides_ssp=yes;;
29053 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29054 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29055 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29056 gcc_cv_libc_provides_ssp=yes
29057 else
29058 echo "no __stack_chk_fail on this target"
29062 *) gcc_cv_libc_provides_ssp=no ;;
29063 esac
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29067 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29069 if test x$gcc_cv_libc_provides_ssp = xyes; then
29071 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29075 # Check whether --enable-default-ssp was given.
29076 # Check whether --enable-default-ssp was given.
29077 if test "${enable_default_ssp+set}" = set; then :
29078 enableval=$enable_default_ssp;
29079 if test x$gcc_cv_libc_provides_ssp = xyes; then
29080 case "$target" in
29081 ia64*-*-*) enable_default_ssp=no ;;
29082 *) enable_default_ssp=$enableval ;;
29083 esac
29084 else
29085 enable_default_ssp=no
29087 else
29088 enable_default_ssp=no
29091 if test x$enable_default_ssp = xyes ; then
29093 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29098 # Test for <sys/sdt.h> on the target.
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29101 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29102 have_sys_sdt_h=no
29103 if test -f $target_header_dir/sys/sdt.h; then
29104 have_sys_sdt_h=yes
29106 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29110 $as_echo "$have_sys_sdt_h" >&6; }
29112 # Check if TFmode long double should be used by default or not.
29113 # Some glibc targets used DFmode long double, but with glibc 2.4
29114 # and later they can use TFmode.
29115 case "$target" in
29116 powerpc*-*-linux* | \
29117 sparc*-*-linux* | \
29118 s390*-*-linux* | \
29119 alpha*-*-linux*)
29121 # Check whether --with-long-double-128 was given.
29122 if test "${with_long_double_128+set}" = set; then :
29123 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29124 else
29126 if test $glibc_version_major -gt 2 \
29127 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29128 gcc_cv_target_ldbl128=yes
29129 else
29131 gcc_cv_target_ldbl128=no
29132 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29133 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29134 && gcc_cv_target_ldbl128=yes
29140 esac
29141 if test x$gcc_cv_target_ldbl128 = xyes; then
29143 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29147 # Check if TFmode long double target should use the IBM extended double or IEEE
29148 # 128-bit floating point formats if long doubles are 128-bits long. The long
29149 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29150 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29151 # libgcc.
29153 # Check whether --with-long-double-format was given.
29154 if test "${with_long_double_format+set}" = set; then :
29155 withval=$with_long_double_format;
29156 case "$target:$with_long_double_format" in
29157 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29160 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29161 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29162 case "$with_cpu" in
29163 power7 | power8 | power9 | power1*)
29167 as_fn_error $? "Configuration option --with-long-double-format is only \
29168 supported if the default cpu is power7 or newer" "$LINENO" 5
29169 with_long_double_format=""
29171 esac
29173 xpowerpc64*-*-linux*:*)
29174 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29175 with_long_double_format=""
29178 as_fn_error $? "Configure option --with-long-double-format is only supported \
29179 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29180 with_long_double_format=""
29182 esac
29186 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29187 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29188 gcc_cv_libc_provides_hwcap_in_tcb=no
29189 case "$target" in
29190 powerpc*-*-linux*)
29192 if test $glibc_version_major -gt 2 \
29193 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29194 gcc_cv_libc_provides_hwcap_in_tcb=yes
29197 esac
29198 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29200 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29205 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29206 gcc_cv_target_dl_iterate_phdr=unknown
29207 case "$target" in
29208 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29209 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29210 # libdl there, both complicating its use and breaking compatibility
29211 # between Solaris 10 updates.
29212 *-*-solaris2.1[1-9]*)
29213 # <link.h> needs both a dl_iterate_phdr declaration and support for
29214 # compilation with largefile support.
29215 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29216 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29217 gcc_cv_target_dl_iterate_phdr=yes
29218 else
29219 gcc_cv_target_dl_iterate_phdr=no
29222 *-*-dragonfly* | *-*-freebsd*)
29223 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29224 gcc_cv_target_dl_iterate_phdr=yes
29225 else
29226 gcc_cv_target_dl_iterate_phdr=no
29229 *-linux-musl*)
29230 gcc_cv_target_dl_iterate_phdr=yes
29232 esac
29234 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29236 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29240 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29242 # We no longer support different GC mechanisms. Emit an error if
29243 # the user configures with --with-gc.
29245 # Check whether --with-gc was given.
29246 if test "${with_gc+set}" = set; then :
29247 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29251 # Libraries to use on the host. This will normally be set by the top
29252 # level Makefile. Here we simply capture the value for our Makefile.
29253 if test -z "${HOST_LIBS+set}"; then
29254 HOST_LIBS=
29258 # Use the system's zlib library.
29260 # Use the system's zlib library.
29261 zlibdir="-L\$(top_builddir)/../zlib"
29262 zlibinc="-I\$(top_srcdir)/../zlib"
29264 # Check whether --with-system-zlib was given.
29265 if test "${with_system_zlib+set}" = set; then :
29266 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29267 zlibdir=
29268 zlibinc=
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29279 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29280 # Check whether --enable-maintainer-mode was given.
29281 if test "${enable_maintainer_mode+set}" = set; then :
29282 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29283 else
29284 maintainer_mode=no
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29289 $as_echo "$maintainer_mode" >&6; }
29291 if test "$maintainer_mode" = "yes"; then
29292 MAINT=''
29293 else
29294 MAINT='#'
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29299 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29300 # Check whether --enable-link-mutex was given.
29301 if test "${enable_link_mutex+set}" = set; then :
29302 enableval=$enable_link_mutex; do_link_mutex=$enableval
29303 else
29304 do_link_mutex=no
29307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29308 $as_echo "$do_link_mutex" >&6; }
29310 if test "$do_link_mutex" = "yes"; then
29311 DO_LINK_MUTEX=true
29312 else
29313 DO_LINK_MUTEX=false
29317 # --------------
29318 # Language hooks
29319 # --------------
29321 # Make empty files to contain the specs and options for each language.
29322 # Then add #include lines to for a compiler that has specs and/or options.
29324 subdirs=
29325 lang_opt_files=
29326 lang_specs_files=
29327 lang_tree_files=
29328 # These (without "all_") are set in each config-lang.in.
29329 # `language' must be a single word so is spelled singularly.
29330 all_languages=
29331 all_compilers=
29332 all_outputs='Makefile'
29333 # List of language makefile fragments.
29334 all_lang_makefrags=
29335 # Additional files for gengtype
29336 all_gtfiles="$target_gtfiles"
29338 # These are the languages that are set in --enable-languages,
29339 # and are available in the GCC tree.
29340 all_selected_languages=
29342 # Add the language fragments.
29343 # Languages are added via two mechanisms. Some information must be
29344 # recorded in makefile variables, these are defined in config-lang.in.
29345 # We accumulate them and plug them into the main Makefile.
29346 # The other mechanism is a set of hooks for each of the main targets
29347 # like `clean', `install', etc.
29349 language_hooks="Make-hooks"
29351 for lang in ${srcdir}/*/config-lang.in
29353 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29355 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29356 if test "x$lang_alias" = x
29357 then
29358 echo "$lang doesn't set \$language." 1>&2
29359 exit 1
29361 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29362 subdirs="$subdirs $subdir"
29364 # $gcc_subdir is where the gcc integration files are to be found
29365 # for a language, both for internal compiler purposes (compiler
29366 # sources implementing front-end to GCC tree converters), and for
29367 # build infrastructure purposes (Make-lang.in, etc.)
29369 # This will be <subdir> (relative to $srcdir) if a line like
29370 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29371 # is found in <langdir>/config-lang.in, and will remain <langdir>
29372 # otherwise.
29374 # Except for the language alias (fetched above), the regular
29375 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29376 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29377 # only this and the language alias.
29379 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29380 if [ "$gcc_subdir" = "" ]; then
29381 gcc_subdir="$subdir"
29384 case ",$enable_languages," in
29385 *,$lang_alias,*)
29386 all_selected_languages="$all_selected_languages $lang_alias"
29387 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29388 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29391 esac
29393 language=
29394 boot_language=
29395 compilers=
29396 outputs=
29397 gtfiles=
29398 subdir_requires=
29399 . ${srcdir}/$gcc_subdir/config-lang.in
29400 if test "x$language" = x
29401 then
29402 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29403 exit 1
29406 ok=:
29407 case ",$enable_languages," in
29408 *,$lang_alias,*) ;;
29410 for i in $subdir_requires; do
29411 test -f "${srcdir}/$i/config-lang.in" && continue
29412 ok=false
29413 break
29414 done
29416 esac
29417 $ok || continue
29419 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29420 if test -f $srcdir/$gcc_subdir/lang.opt; then
29421 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29422 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29424 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29425 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29427 all_languages="$all_languages $language"
29428 all_compilers="$all_compilers $compilers"
29429 all_outputs="$all_outputs $outputs"
29430 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29431 case ",$enable_languages," in
29432 *,lto,*)
29434 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29436 enable_lto=yes
29439 *) ;;
29440 esac
29441 done
29443 check_languages=
29444 for language in $all_selected_languages
29446 check_languages="$check_languages check-$language"
29447 done
29449 selftest_languages=
29450 for language in $all_selected_languages
29452 selftest_languages="$selftest_languages selftest-$language"
29453 done
29455 # We link each language in with a set of hooks, reached indirectly via
29456 # lang.${target}. Only do so for selected languages.
29458 rm -f Make-hooks
29459 touch Make-hooks
29460 target_list="all.cross start.encap rest.encap tags \
29461 install-common install-man install-info install-pdf install-html dvi \
29462 pdf html uninstall info man srcextra srcman srcinfo \
29463 mostlyclean clean distclean maintainer-clean install-plugin"
29465 for t in $target_list
29468 for lang in $all_selected_languages
29470 x="$x $lang.$t"
29471 done
29472 echo "lang.$t: $x" >> Make-hooks
29473 done
29475 # --------
29476 # Option include files
29477 # --------
29479 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29480 option_includes="option-includes.mk"
29483 # --------
29484 # UNSORTED
29485 # --------
29487 # Create .gdbinit.
29489 echo "dir ." > .gdbinit
29490 echo "dir ${srcdir}" >> .gdbinit
29491 if test x$gdb_needs_out_file_path = xyes
29492 then
29493 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29495 if test "x$subdirs" != x; then
29496 for s in $subdirs
29498 echo "dir ${srcdir}/$s" >> .gdbinit
29499 done
29501 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29502 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29504 # Put a breakpoint on __asan_report_error to help with debugging buffer
29505 # overflow.
29506 case "$CFLAGS" in
29507 *-fsanitize=address*)
29508 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29510 esac
29512 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29516 # Find a directory in which to install a shared libgcc.
29518 # Check whether --enable-version-specific-runtime-libs was given.
29519 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29520 enableval=$enable_version_specific_runtime_libs;
29524 # Substitute configuration variables
29591 # Echo link setup.
29592 if test x${build} = x${host} ; then
29593 if test x${host} = x${target} ; then
29594 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29595 else
29596 echo "Links are now set up to build a cross-compiler" 1>&2
29597 echo " from ${host} to ${target}." 1>&2
29599 else
29600 if test x${host} = x${target} ; then
29601 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29602 echo " for ${target}." 1>&2
29603 else
29604 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29605 echo " from ${host} to ${target}." 1>&2
29614 if test "x${ISLLIBS}" != "x" ; then
29616 $as_echo "#define HAVE_isl 1" >>confdefs.h
29620 # Check for plugin support
29621 # Check whether --enable-plugin was given.
29622 if test "${enable_plugin+set}" = set; then :
29623 enableval=$enable_plugin; enable_plugin=$enableval
29624 else
29625 enable_plugin=yes; default_plugin=yes
29629 pluginlibs=
29630 plugin_check=yes
29632 case "${host}" in
29633 *-*-mingw*)
29634 # Since plugin support under MinGW is not as straightforward as on
29635 # other platforms (e.g., we have to link import library, etc), we
29636 # only enable it if explicitly requested.
29637 if test x"$default_plugin" = x"yes"; then
29638 enable_plugin=no
29639 elif test x"$enable_plugin" = x"yes"; then
29640 # Use make's target variable to derive import library name.
29641 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29642 plugin_check=no
29645 *-*-darwin*)
29646 if test x$build = x$host; then
29647 export_sym_check="nm${exeext} -g"
29648 elif test x$host = x$target; then
29649 export_sym_check="$gcc_cv_nm -g"
29650 else
29651 export_sym_check=
29655 if test x$build = x$host; then
29656 export_sym_check="objdump${exeext} -T"
29657 elif test x$host = x$target; then
29658 export_sym_check="$gcc_cv_objdump -T"
29659 else
29660 export_sym_check=
29663 esac
29665 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29668 $as_echo_n "checking for exported symbols... " >&6; }
29669 if test "x$export_sym_check" != x; then
29670 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29671 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29672 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29673 : # No need to use a flag
29674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29675 $as_echo "yes" >&6; }
29676 else
29677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29678 $as_echo "yes" >&6; }
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29680 $as_echo_n "checking for -rdynamic... " >&6; }
29681 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29682 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29683 plugin_rdynamic=yes
29684 pluginlibs="-rdynamic"
29685 else
29686 plugin_rdynamic=no
29687 enable_plugin=no
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29690 $as_echo "$plugin_rdynamic" >&6; }
29692 else
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29694 $as_echo "unable to check" >&6; }
29697 # Check -ldl
29698 saved_LIBS="$LIBS"
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29700 $as_echo_n "checking for library containing dlopen... " >&6; }
29701 if ${ac_cv_search_dlopen+:} false; then :
29702 $as_echo_n "(cached) " >&6
29703 else
29704 ac_func_search_save_LIBS=$LIBS
29705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29706 /* end confdefs.h. */
29708 /* Override any GCC internal prototype to avoid an error.
29709 Use char because int might match the return type of a GCC
29710 builtin and then its argument prototype would still apply. */
29711 #ifdef __cplusplus
29712 extern "C"
29713 #endif
29714 char dlopen ();
29716 main ()
29718 return dlopen ();
29720 return 0;
29722 _ACEOF
29723 for ac_lib in '' dl; do
29724 if test -z "$ac_lib"; then
29725 ac_res="none required"
29726 else
29727 ac_res=-l$ac_lib
29728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29730 if ac_fn_cxx_try_link "$LINENO"; then :
29731 ac_cv_search_dlopen=$ac_res
29733 rm -f core conftest.err conftest.$ac_objext \
29734 conftest$ac_exeext
29735 if ${ac_cv_search_dlopen+:} false; then :
29736 break
29738 done
29739 if ${ac_cv_search_dlopen+:} false; then :
29741 else
29742 ac_cv_search_dlopen=no
29744 rm conftest.$ac_ext
29745 LIBS=$ac_func_search_save_LIBS
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29748 $as_echo "$ac_cv_search_dlopen" >&6; }
29749 ac_res=$ac_cv_search_dlopen
29750 if test "$ac_res" != no; then :
29751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29755 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29756 pluginlibs="$pluginlibs -ldl"
29758 LIBS="$saved_LIBS"
29760 # Check that we can build shared objects with -fPIC -shared
29761 saved_LDFLAGS="$LDFLAGS"
29762 saved_CFLAGS="$CFLAGS"
29763 case "${host}" in
29764 *-*-darwin*)
29765 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29766 CFLAGS="$CFLAGS -fPIC"
29767 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29770 CFLAGS="$CFLAGS -fPIC"
29771 LDFLAGS="$LDFLAGS -fPIC -shared"
29773 esac
29774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29775 $as_echo_n "checking for -fPIC -shared... " >&6; }
29776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29777 /* end confdefs.h. */
29778 extern int X;
29780 main ()
29782 return X == 0;
29784 return 0;
29786 _ACEOF
29787 if ac_fn_cxx_try_link "$LINENO"; then :
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29789 $as_echo "yes" >&6; }; have_pic_shared=yes
29790 else
29791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29792 $as_echo "no" >&6; }; have_pic_shared=no
29794 rm -f core conftest.err conftest.$ac_objext \
29795 conftest$ac_exeext conftest.$ac_ext
29796 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29797 pluginlibs=
29798 enable_plugin=no
29800 LDFLAGS="$saved_LDFLAGS"
29801 CFLAGS="$saved_CFLAGS"
29803 # If plugin support had been requested but not available, fail.
29804 if test x"$enable_plugin" = x"no" ; then
29805 if test x"$default_plugin" != x"yes"; then
29806 as_fn_error $? "
29807 Building GCC with plugin support requires a host that supports
29808 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29815 if test x"$enable_plugin" = x"yes"; then
29817 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29822 # Enable --enable-host-shared
29823 # Check whether --enable-host-shared was given.
29824 if test "${enable_host_shared+set}" = set; then :
29825 enableval=$enable_host_shared; PICFLAG=-fPIC
29826 else
29827 PICFLAG=
29834 # Check whether --enable-libquadmath-support was given.
29835 if test "${enable_libquadmath_support+set}" = set; then :
29836 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29837 else
29838 ENABLE_LIBQUADMATH_SUPPORT=yes
29841 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29843 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29848 # Specify what hash style to use by default.
29850 # Check whether --with-linker-hash-style was given.
29851 if test "${with_linker_hash_style+set}" = set; then :
29852 withval=$with_linker_hash_style; case x"$withval" in
29853 xsysv)
29854 LINKER_HASH_STYLE=sysv
29856 xgnu)
29857 LINKER_HASH_STYLE=gnu
29859 xboth)
29860 LINKER_HASH_STYLE=both
29863 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29865 esac
29866 else
29867 LINKER_HASH_STYLE=''
29870 if test x"${LINKER_HASH_STYLE}" != x; then
29872 cat >>confdefs.h <<_ACEOF
29873 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29874 _ACEOF
29878 # Specify what should be the default of -fdiagnostics-color option.
29880 # Check whether --with-diagnostics-color was given.
29881 if test "${with_diagnostics_color+set}" = set; then :
29882 withval=$with_diagnostics_color; case x"$withval" in
29883 xnever)
29884 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29886 xauto)
29887 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29889 xauto-if-env)
29890 DIAGNOSTICS_COLOR_DEFAULT=-1
29892 xalways)
29893 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29896 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29898 esac
29899 else
29900 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29904 cat >>confdefs.h <<_ACEOF
29905 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29906 _ACEOF
29909 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29910 # of jit/jit-playback.c.
29911 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
29912 echo "gcc_driver_version: ${gcc_driver_version}"
29913 cat > gcc-driver-name.h <<EOF
29914 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
29917 # Check whether --enable-default-pie was given.
29918 # Check whether --enable-default-pie was given.
29919 if test "${enable_default_pie+set}" = set; then :
29920 enableval=$enable_default_pie; enable_default_pie=$enableval
29921 else
29922 enable_default_pie=no
29925 if test x$enable_default_pie = xyes ; then
29927 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29932 # Check if -fno-PIE works.
29933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29934 $as_echo_n "checking for -fno-PIE option... " >&6; }
29935 if ${gcc_cv_c_no_fpie+:} false; then :
29936 $as_echo_n "(cached) " >&6
29937 else
29938 saved_CXXFLAGS="$CXXFLAGS"
29939 CXXFLAGS="$CXXFLAGS -fno-PIE"
29940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29941 /* end confdefs.h. */
29942 int main(void) {return 0;}
29943 _ACEOF
29944 if ac_fn_cxx_try_compile "$LINENO"; then :
29945 gcc_cv_c_no_fpie=yes
29946 else
29947 gcc_cv_c_no_fpie=no
29949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29950 CXXFLAGS="$saved_CXXFLAGS"
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29953 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29954 if test "$gcc_cv_c_no_fpie" = "yes"; then
29955 NO_PIE_CFLAGS="-fno-PIE"
29959 # Check if -no-pie works.
29960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29961 $as_echo_n "checking for -no-pie option... " >&6; }
29962 if ${gcc_cv_no_pie+:} false; then :
29963 $as_echo_n "(cached) " >&6
29964 else
29965 saved_LDFLAGS="$LDFLAGS"
29966 LDFLAGS="$LDFLAGS -no-pie"
29967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29968 /* end confdefs.h. */
29969 int main(void) {return 0;}
29970 _ACEOF
29971 if ac_fn_cxx_try_link "$LINENO"; then :
29972 gcc_cv_no_pie=yes
29973 else
29974 gcc_cv_no_pie=no
29976 rm -f core conftest.err conftest.$ac_objext \
29977 conftest$ac_exeext conftest.$ac_ext
29978 LDFLAGS="$saved_LDFLAGS"
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29981 $as_echo "$gcc_cv_no_pie" >&6; }
29982 if test "$gcc_cv_no_pie" = "yes"; then
29983 NO_PIE_FLAG="-no-pie"
29987 # Check linker supports '-z bndplt'
29988 ld_bndplt_support=no
29989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29990 $as_echo_n "checking linker -z bndplt option... " >&6; }
29991 if test x"$ld_is_gold" = xno; then
29992 if test $in_tree_ld = yes ; then
29993 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
29994 ld_bndplt_support=yes
29996 elif test x$gcc_cv_ld != x; then
29997 # Check if linker supports -a bndplt option
29998 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
29999 ld_bndplt_support=yes
30003 if test x"$ld_bndplt_support" = xyes; then
30005 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30009 $as_echo "$ld_bndplt_support" >&6; }
30011 # Check linker supports '--push-state'/'--pop-state'
30012 ld_pushpopstate_support=no
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30014 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30015 if test x"$ld_is_gold" = xno; then
30016 if test $in_tree_ld = yes ; then
30017 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
30018 ld_pushpopstate_support=yes
30020 elif test x$gcc_cv_ld != x; then
30021 # Check if linker supports --push-state/--pop-state options
30022 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30023 ld_pushpopstate_support=yes
30027 if test x"$ld_pushpopstate_support" = xyes; then
30029 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30033 $as_echo "$ld_pushpopstate_support" >&6; }
30035 # Configure the subdirectories
30036 # AC_CONFIG_SUBDIRS($subdirs)
30038 # Create the Makefile
30039 # and configure language subdirectories
30040 ac_config_files="$ac_config_files $all_outputs"
30043 ac_config_commands="$ac_config_commands default"
30045 cat >confcache <<\_ACEOF
30046 # This file is a shell script that caches the results of configure
30047 # tests run on this system so they can be shared between configure
30048 # scripts and configure runs, see configure's option --config-cache.
30049 # It is not useful on other systems. If it contains results you don't
30050 # want to keep, you may remove or edit it.
30052 # config.status only pays attention to the cache file if you give it
30053 # the --recheck option to rerun configure.
30055 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30056 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30057 # following values.
30059 _ACEOF
30061 # The following way of writing the cache mishandles newlines in values,
30062 # but we know of no workaround that is simple, portable, and efficient.
30063 # So, we kill variables containing newlines.
30064 # Ultrix sh set writes to stderr and can't be redirected directly,
30065 # and sets the high bit in the cache file unless we assign to the vars.
30067 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30068 eval ac_val=\$$ac_var
30069 case $ac_val in #(
30070 *${as_nl}*)
30071 case $ac_var in #(
30072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30073 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30074 esac
30075 case $ac_var in #(
30076 _ | IFS | as_nl) ;; #(
30077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30078 *) { eval $ac_var=; unset $ac_var;} ;;
30079 esac ;;
30080 esac
30081 done
30083 (set) 2>&1 |
30084 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30085 *${as_nl}ac_space=\ *)
30086 # `set' does not quote correctly, so add quotes: double-quote
30087 # substitution turns \\\\ into \\, and sed turns \\ into \.
30088 sed -n \
30089 "s/'/'\\\\''/g;
30090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30091 ;; #(
30093 # `set' quotes correctly as required by POSIX, so do not add quotes.
30094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30096 esac |
30097 sort
30099 sed '
30100 /^ac_cv_env_/b end
30101 t clear
30102 :clear
30103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30104 t end
30105 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30106 :end' >>confcache
30107 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30108 if test -w "$cache_file"; then
30109 if test "x$cache_file" != "x/dev/null"; then
30110 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30111 $as_echo "$as_me: updating cache $cache_file" >&6;}
30112 if test ! -f "$cache_file" || test -h "$cache_file"; then
30113 cat confcache >"$cache_file"
30114 else
30115 case $cache_file in #(
30116 */* | ?:*)
30117 mv -f confcache "$cache_file"$$ &&
30118 mv -f "$cache_file"$$ "$cache_file" ;; #(
30120 mv -f confcache "$cache_file" ;;
30121 esac
30124 else
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30126 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30129 rm -f confcache
30131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30132 # Let make expand exec_prefix.
30133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30135 DEFS=-DHAVE_CONFIG_H
30137 ac_libobjs=
30138 ac_ltlibobjs=
30140 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30141 # 1. Remove the extension, and $U if already installed.
30142 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30143 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30144 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30145 # will be set to the directory where LIBOBJS objects are built.
30146 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30147 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30148 done
30149 LIBOBJS=$ac_libobjs
30151 LTLIBOBJS=$ac_ltlibobjs
30156 : "${CONFIG_STATUS=./config.status}"
30157 ac_write_fail=0
30158 ac_clean_files_save=$ac_clean_files
30159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30161 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30162 as_write_fail=0
30163 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30164 #! $SHELL
30165 # Generated by $as_me.
30166 # Run this file to recreate the current configuration.
30167 # Compiler output produced by configure, useful for debugging
30168 # configure, is in config.log if it exists.
30170 debug=false
30171 ac_cs_recheck=false
30172 ac_cs_silent=false
30174 SHELL=\${CONFIG_SHELL-$SHELL}
30175 export SHELL
30176 _ASEOF
30177 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30178 ## -------------------- ##
30179 ## M4sh Initialization. ##
30180 ## -------------------- ##
30182 # Be more Bourne compatible
30183 DUALCASE=1; export DUALCASE # for MKS sh
30184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30185 emulate sh
30186 NULLCMD=:
30187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30188 # is contrary to our usage. Disable this feature.
30189 alias -g '${1+"$@"}'='"$@"'
30190 setopt NO_GLOB_SUBST
30191 else
30192 case `(set -o) 2>/dev/null` in #(
30193 *posix*) :
30194 set -o posix ;; #(
30195 *) :
30197 esac
30201 as_nl='
30203 export as_nl
30204 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30205 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30208 # Prefer a ksh shell builtin over an external printf program on Solaris,
30209 # but without wasting forks for bash or zsh.
30210 if test -z "$BASH_VERSION$ZSH_VERSION" \
30211 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30212 as_echo='print -r --'
30213 as_echo_n='print -rn --'
30214 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30215 as_echo='printf %s\n'
30216 as_echo_n='printf %s'
30217 else
30218 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30219 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30220 as_echo_n='/usr/ucb/echo -n'
30221 else
30222 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30223 as_echo_n_body='eval
30224 arg=$1;
30225 case $arg in #(
30226 *"$as_nl"*)
30227 expr "X$arg" : "X\\(.*\\)$as_nl";
30228 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30229 esac;
30230 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30232 export as_echo_n_body
30233 as_echo_n='sh -c $as_echo_n_body as_echo'
30235 export as_echo_body
30236 as_echo='sh -c $as_echo_body as_echo'
30239 # The user is always right.
30240 if test "${PATH_SEPARATOR+set}" != set; then
30241 PATH_SEPARATOR=:
30242 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30243 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30244 PATH_SEPARATOR=';'
30249 # IFS
30250 # We need space, tab and new line, in precisely that order. Quoting is
30251 # there to prevent editors from complaining about space-tab.
30252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30253 # splitting by setting IFS to empty value.)
30254 IFS=" "" $as_nl"
30256 # Find who we are. Look in the path if we contain no directory separator.
30257 as_myself=
30258 case $0 in #((
30259 *[\\/]* ) as_myself=$0 ;;
30260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30261 for as_dir in $PATH
30263 IFS=$as_save_IFS
30264 test -z "$as_dir" && as_dir=.
30265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30266 done
30267 IFS=$as_save_IFS
30270 esac
30271 # We did not find ourselves, most probably we were run as `sh COMMAND'
30272 # in which case we are not to be found in the path.
30273 if test "x$as_myself" = x; then
30274 as_myself=$0
30276 if test ! -f "$as_myself"; then
30277 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30278 exit 1
30281 # Unset variables that we do not need and which cause bugs (e.g. in
30282 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30283 # suppresses any "Segmentation fault" message there. '((' could
30284 # trigger a bug in pdksh 5.2.14.
30285 for as_var in BASH_ENV ENV MAIL MAILPATH
30286 do eval test x\${$as_var+set} = xset \
30287 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30288 done
30289 PS1='$ '
30290 PS2='> '
30291 PS4='+ '
30293 # NLS nuisances.
30294 LC_ALL=C
30295 export LC_ALL
30296 LANGUAGE=C
30297 export LANGUAGE
30299 # CDPATH.
30300 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30303 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30304 # ----------------------------------------
30305 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30306 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30307 # script with STATUS, using 1 if that was 0.
30308 as_fn_error ()
30310 as_status=$1; test $as_status -eq 0 && as_status=1
30311 if test "$4"; then
30312 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30313 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30315 $as_echo "$as_me: error: $2" >&2
30316 as_fn_exit $as_status
30317 } # as_fn_error
30320 # as_fn_set_status STATUS
30321 # -----------------------
30322 # Set $? to STATUS, without forking.
30323 as_fn_set_status ()
30325 return $1
30326 } # as_fn_set_status
30328 # as_fn_exit STATUS
30329 # -----------------
30330 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30331 as_fn_exit ()
30333 set +e
30334 as_fn_set_status $1
30335 exit $1
30336 } # as_fn_exit
30338 # as_fn_unset VAR
30339 # ---------------
30340 # Portably unset VAR.
30341 as_fn_unset ()
30343 { eval $1=; unset $1;}
30345 as_unset=as_fn_unset
30346 # as_fn_append VAR VALUE
30347 # ----------------------
30348 # Append the text in VALUE to the end of the definition contained in VAR. Take
30349 # advantage of any shell optimizations that allow amortized linear growth over
30350 # repeated appends, instead of the typical quadratic growth present in naive
30351 # implementations.
30352 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30353 eval 'as_fn_append ()
30355 eval $1+=\$2
30357 else
30358 as_fn_append ()
30360 eval $1=\$$1\$2
30362 fi # as_fn_append
30364 # as_fn_arith ARG...
30365 # ------------------
30366 # Perform arithmetic evaluation on the ARGs, and store the result in the
30367 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30368 # must be portable across $(()) and expr.
30369 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30370 eval 'as_fn_arith ()
30372 as_val=$(( $* ))
30374 else
30375 as_fn_arith ()
30377 as_val=`expr "$@" || test $? -eq 1`
30379 fi # as_fn_arith
30382 if expr a : '\(a\)' >/dev/null 2>&1 &&
30383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30384 as_expr=expr
30385 else
30386 as_expr=false
30389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30390 as_basename=basename
30391 else
30392 as_basename=false
30395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30396 as_dirname=dirname
30397 else
30398 as_dirname=false
30401 as_me=`$as_basename -- "$0" ||
30402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30403 X"$0" : 'X\(//\)$' \| \
30404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30405 $as_echo X/"$0" |
30406 sed '/^.*\/\([^/][^/]*\)\/*$/{
30407 s//\1/
30410 /^X\/\(\/\/\)$/{
30411 s//\1/
30414 /^X\/\(\/\).*/{
30415 s//\1/
30418 s/.*/./; q'`
30420 # Avoid depending upon Character Ranges.
30421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30424 as_cr_digits='0123456789'
30425 as_cr_alnum=$as_cr_Letters$as_cr_digits
30427 ECHO_C= ECHO_N= ECHO_T=
30428 case `echo -n x` in #(((((
30429 -n*)
30430 case `echo 'xy\c'` in
30431 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30432 xy) ECHO_C='\c';;
30433 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30434 ECHO_T=' ';;
30435 esac;;
30437 ECHO_N='-n';;
30438 esac
30440 rm -f conf$$ conf$$.exe conf$$.file
30441 if test -d conf$$.dir; then
30442 rm -f conf$$.dir/conf$$.file
30443 else
30444 rm -f conf$$.dir
30445 mkdir conf$$.dir 2>/dev/null
30447 if (echo >conf$$.file) 2>/dev/null; then
30448 if ln -s conf$$.file conf$$ 2>/dev/null; then
30449 as_ln_s='ln -s'
30450 # ... but there are two gotchas:
30451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30453 # In both cases, we have to default to `cp -pR'.
30454 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30455 as_ln_s='cp -pR'
30456 elif ln conf$$.file conf$$ 2>/dev/null; then
30457 as_ln_s=ln
30458 else
30459 as_ln_s='cp -pR'
30461 else
30462 as_ln_s='cp -pR'
30464 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30465 rmdir conf$$.dir 2>/dev/null
30468 # as_fn_mkdir_p
30469 # -------------
30470 # Create "$as_dir" as a directory, including parents if necessary.
30471 as_fn_mkdir_p ()
30474 case $as_dir in #(
30475 -*) as_dir=./$as_dir;;
30476 esac
30477 test -d "$as_dir" || eval $as_mkdir_p || {
30478 as_dirs=
30479 while :; do
30480 case $as_dir in #(
30481 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30482 *) as_qdir=$as_dir;;
30483 esac
30484 as_dirs="'$as_qdir' $as_dirs"
30485 as_dir=`$as_dirname -- "$as_dir" ||
30486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30487 X"$as_dir" : 'X\(//\)[^/]' \| \
30488 X"$as_dir" : 'X\(//\)$' \| \
30489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30490 $as_echo X"$as_dir" |
30491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30492 s//\1/
30495 /^X\(\/\/\)[^/].*/{
30496 s//\1/
30499 /^X\(\/\/\)$/{
30500 s//\1/
30503 /^X\(\/\).*/{
30504 s//\1/
30507 s/.*/./; q'`
30508 test -d "$as_dir" && break
30509 done
30510 test -z "$as_dirs" || eval "mkdir $as_dirs"
30511 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30514 } # as_fn_mkdir_p
30515 if mkdir -p . 2>/dev/null; then
30516 as_mkdir_p='mkdir -p "$as_dir"'
30517 else
30518 test -d ./-p && rmdir ./-p
30519 as_mkdir_p=false
30523 # as_fn_executable_p FILE
30524 # -----------------------
30525 # Test if FILE is an executable regular file.
30526 as_fn_executable_p ()
30528 test -f "$1" && test -x "$1"
30529 } # as_fn_executable_p
30530 as_test_x='test -x'
30531 as_executable_p=as_fn_executable_p
30533 # Sed expression to map a string onto a valid CPP name.
30534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30536 # Sed expression to map a string onto a valid variable name.
30537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30540 exec 6>&1
30541 ## ----------------------------------- ##
30542 ## Main body of $CONFIG_STATUS script. ##
30543 ## ----------------------------------- ##
30544 _ASEOF
30545 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30548 # Save the log message, to keep $0 and so on meaningful, and to
30549 # report actual input values of CONFIG_FILES etc. instead of their
30550 # values after options handling.
30551 ac_log="
30552 This file was extended by $as_me, which was
30553 generated by GNU Autoconf 2.69. Invocation command line was
30555 CONFIG_FILES = $CONFIG_FILES
30556 CONFIG_HEADERS = $CONFIG_HEADERS
30557 CONFIG_LINKS = $CONFIG_LINKS
30558 CONFIG_COMMANDS = $CONFIG_COMMANDS
30559 $ $0 $@
30561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30564 _ACEOF
30566 case $ac_config_files in *"
30567 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30568 esac
30570 case $ac_config_headers in *"
30571 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30572 esac
30575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30576 # Files that config.status was made for.
30577 config_files="$ac_config_files"
30578 config_headers="$ac_config_headers"
30579 config_links="$ac_config_links"
30580 config_commands="$ac_config_commands"
30582 _ACEOF
30584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30585 ac_cs_usage="\
30586 \`$as_me' instantiates files and other configuration actions
30587 from templates according to the current configuration. Unless the files
30588 and actions are specified as TAGs, all are instantiated by default.
30590 Usage: $0 [OPTION]... [TAG]...
30592 -h, --help print this help, then exit
30593 -V, --version print version number and configuration settings, then exit
30594 --config print configuration, then exit
30595 -q, --quiet, --silent
30596 do not print progress messages
30597 -d, --debug don't remove temporary files
30598 --recheck update $as_me by reconfiguring in the same conditions
30599 --file=FILE[:TEMPLATE]
30600 instantiate the configuration file FILE
30601 --header=FILE[:TEMPLATE]
30602 instantiate the configuration header FILE
30604 Configuration files:
30605 $config_files
30607 Configuration headers:
30608 $config_headers
30610 Configuration links:
30611 $config_links
30613 Configuration commands:
30614 $config_commands
30616 Report bugs to the package provider."
30618 _ACEOF
30619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30620 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30621 ac_cs_version="\\
30622 config.status
30623 configured by $0, generated by GNU Autoconf 2.69,
30624 with options \\"\$ac_cs_config\\"
30626 Copyright (C) 2012 Free Software Foundation, Inc.
30627 This config.status script is free software; the Free Software Foundation
30628 gives unlimited permission to copy, distribute and modify it."
30630 ac_pwd='$ac_pwd'
30631 srcdir='$srcdir'
30632 AWK='$AWK'
30633 test -n "\$AWK" || AWK=awk
30634 _ACEOF
30636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30637 # The default lists apply if the user does not specify any file.
30638 ac_need_defaults=:
30639 while test $# != 0
30641 case $1 in
30642 --*=?*)
30643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30644 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30645 ac_shift=:
30647 --*=)
30648 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30649 ac_optarg=
30650 ac_shift=:
30653 ac_option=$1
30654 ac_optarg=$2
30655 ac_shift=shift
30657 esac
30659 case $ac_option in
30660 # Handling of the options.
30661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30662 ac_cs_recheck=: ;;
30663 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30664 $as_echo "$ac_cs_version"; exit ;;
30665 --config | --confi | --conf | --con | --co | --c )
30666 $as_echo "$ac_cs_config"; exit ;;
30667 --debug | --debu | --deb | --de | --d | -d )
30668 debug=: ;;
30669 --file | --fil | --fi | --f )
30670 $ac_shift
30671 case $ac_optarg in
30672 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30673 '') as_fn_error $? "missing file argument" ;;
30674 esac
30675 as_fn_append CONFIG_FILES " '$ac_optarg'"
30676 ac_need_defaults=false;;
30677 --header | --heade | --head | --hea )
30678 $ac_shift
30679 case $ac_optarg in
30680 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30681 esac
30682 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30683 ac_need_defaults=false;;
30684 --he | --h)
30685 # Conflict between --help and --header
30686 as_fn_error $? "ambiguous option: \`$1'
30687 Try \`$0 --help' for more information.";;
30688 --help | --hel | -h )
30689 $as_echo "$ac_cs_usage"; exit ;;
30690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30691 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30692 ac_cs_silent=: ;;
30694 # This is an error.
30695 -*) as_fn_error $? "unrecognized option: \`$1'
30696 Try \`$0 --help' for more information." ;;
30698 *) as_fn_append ac_config_targets " $1"
30699 ac_need_defaults=false ;;
30701 esac
30702 shift
30703 done
30705 ac_configure_extra_args=
30707 if $ac_cs_silent; then
30708 exec 6>/dev/null
30709 ac_configure_extra_args="$ac_configure_extra_args --silent"
30712 _ACEOF
30713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30714 if \$ac_cs_recheck; then
30715 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30716 shift
30717 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30718 CONFIG_SHELL='$SHELL'
30719 export CONFIG_SHELL
30720 exec "\$@"
30723 _ACEOF
30724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30725 exec 5>>config.log
30727 echo
30728 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30729 ## Running $as_me. ##
30730 _ASBOX
30731 $as_echo "$ac_log"
30732 } >&5
30734 _ACEOF
30735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30737 # INIT-COMMANDS
30739 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30740 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30741 subdirs='$subdirs'
30743 _ACEOF
30745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30747 # Handling of arguments.
30748 for ac_config_target in $ac_config_targets
30750 case $ac_config_target in
30751 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30752 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30753 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30754 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30755 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30756 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30757 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30758 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30759 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30761 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30762 esac
30763 done
30766 # If the user did not use the arguments to specify the items to instantiate,
30767 # then the envvar interface is used. Set only those that are not.
30768 # We use the long form for the default assignment because of an extremely
30769 # bizarre bug on SunOS 4.1.3.
30770 if $ac_need_defaults; then
30771 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30772 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30773 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30777 # Have a temporary directory for convenience. Make it in the build tree
30778 # simply because there is no reason against having it here, and in addition,
30779 # creating and moving files from /tmp can sometimes cause problems.
30780 # Hook for its removal unless debugging.
30781 # Note that there is a small window in which the directory will not be cleaned:
30782 # after its creation but before its name has been assigned to `$tmp'.
30783 $debug ||
30785 tmp= ac_tmp=
30786 trap 'exit_status=$?
30787 : "${ac_tmp:=$tmp}"
30788 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30790 trap 'as_fn_exit 1' 1 2 13 15
30792 # Create a (secure) tmp directory for tmp files.
30795 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30796 test -d "$tmp"
30797 } ||
30799 tmp=./conf$$-$RANDOM
30800 (umask 077 && mkdir "$tmp")
30801 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30802 ac_tmp=$tmp
30804 # Set up the scripts for CONFIG_FILES section.
30805 # No need to generate them if there are no CONFIG_FILES.
30806 # This happens for instance with `./config.status config.h'.
30807 if test -n "$CONFIG_FILES"; then
30809 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30810 ac_cs_awk_getline=:
30811 ac_cs_awk_pipe_init=
30812 ac_cs_awk_read_file='
30813 while ((getline aline < (F[key])) > 0)
30814 print(aline)
30815 close(F[key])'
30816 ac_cs_awk_pipe_fini=
30817 else
30818 ac_cs_awk_getline=false
30819 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30820 ac_cs_awk_read_file='
30821 print "|#_!!_#|"
30822 print "cat " F[key] " &&"
30823 '$ac_cs_awk_pipe_init
30824 # The final `:' finishes the AND list.
30825 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30827 ac_cr=`echo X | tr X '\015'`
30828 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30829 # But we know of no other shell where ac_cr would be empty at this
30830 # point, so we can use a bashism as a fallback.
30831 if test "x$ac_cr" = x; then
30832 eval ac_cr=\$\'\\r\'
30834 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30835 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30836 ac_cs_awk_cr='\\r'
30837 else
30838 ac_cs_awk_cr=$ac_cr
30841 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30842 _ACEOF
30844 # Create commands to substitute file output variables.
30846 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30847 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
30848 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30849 echo "_ACAWK" &&
30850 echo "_ACEOF"
30851 } >conf$$files.sh &&
30852 . ./conf$$files.sh ||
30853 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30854 rm -f conf$$files.sh
30857 echo "cat >conf$$subs.awk <<_ACEOF" &&
30858 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30859 echo "_ACEOF"
30860 } >conf$$subs.sh ||
30861 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30862 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30863 ac_delim='%!_!# '
30864 for ac_last_try in false false false false false :; do
30865 . ./conf$$subs.sh ||
30866 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30868 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30869 if test $ac_delim_n = $ac_delim_num; then
30870 break
30871 elif $ac_last_try; then
30872 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30873 else
30874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30876 done
30877 rm -f conf$$subs.sh
30879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30880 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30881 _ACEOF
30882 sed -n '
30884 s/^/S["/; s/!.*/"]=/
30887 s/^[^!]*!//
30888 :repl
30889 t repl
30890 s/'"$ac_delim"'$//
30891 t delim
30894 s/\(.\{148\}\)..*/\1/
30895 t more1
30896 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30899 b repl
30900 :more1
30901 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30904 s/.\{148\}//
30905 t nl
30906 :delim
30908 s/\(.\{148\}\)..*/\1/
30909 t more2
30910 s/["\\]/\\&/g; s/^/"/; s/$/"/
30913 :more2
30914 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30917 s/.\{148\}//
30918 t delim
30919 ' <conf$$subs.awk | sed '
30920 /^[^""]/{
30922 s/\n//
30924 ' >>$CONFIG_STATUS || ac_write_fail=1
30925 rm -f conf$$subs.awk
30926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30927 _ACAWK
30928 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30929 for (key in S) S_is_set[key] = 1
30930 FS = "\a"
30931 \$ac_cs_awk_pipe_init
30934 line = $ 0
30935 nfields = split(line, field, "@")
30936 substed = 0
30937 len = length(field[1])
30938 for (i = 2; i < nfields; i++) {
30939 key = field[i]
30940 keylen = length(key)
30941 if (S_is_set[key]) {
30942 value = S[key]
30943 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30944 len += length(value) + length(field[++i])
30945 substed = 1
30946 } else
30947 len += 1 + keylen
30949 if (nfields == 3 && !substed) {
30950 key = field[2]
30951 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30952 \$ac_cs_awk_read_file
30953 next
30956 print line
30958 \$ac_cs_awk_pipe_fini
30959 _ACAWK
30960 _ACEOF
30961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30962 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30963 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30964 else
30966 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30967 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30968 _ACEOF
30970 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30971 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30972 # trailing colons and then remove the whole line if VPATH becomes empty
30973 # (actually we leave an empty line to preserve line numbers).
30974 if test "x$srcdir" = x.; then
30975 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30977 s///
30978 s/^/:/
30979 s/[ ]*$/:/
30980 s/:\$(srcdir):/:/g
30981 s/:\${srcdir}:/:/g
30982 s/:@srcdir@:/:/g
30983 s/^:*//
30984 s/:*$//
30986 s/\(=[ ]*\).*/\1/
30988 s/\n//
30989 s/^[^=]*=[ ]*$//
30993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30994 fi # test -n "$CONFIG_FILES"
30996 # Set up the scripts for CONFIG_HEADERS section.
30997 # No need to generate them if there are no CONFIG_HEADERS.
30998 # This happens for instance with `./config.status Makefile'.
30999 if test -n "$CONFIG_HEADERS"; then
31000 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31001 BEGIN {
31002 _ACEOF
31004 # Transform confdefs.h into an awk script `defines.awk', embedded as
31005 # here-document in config.status, that substitutes the proper values into
31006 # config.h.in to produce config.h.
31008 # Create a delimiter string that does not exist in confdefs.h, to ease
31009 # handling of long lines.
31010 ac_delim='%!_!# '
31011 for ac_last_try in false false :; do
31012 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31013 if test -z "$ac_tt"; then
31014 break
31015 elif $ac_last_try; then
31016 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31017 else
31018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31020 done
31022 # For the awk script, D is an array of macro values keyed by name,
31023 # likewise P contains macro parameters if any. Preserve backslash
31024 # newline sequences.
31026 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31027 sed -n '
31028 s/.\{148\}/&'"$ac_delim"'/g
31029 t rset
31030 :rset
31031 s/^[ ]*#[ ]*define[ ][ ]*/ /
31032 t def
31034 :def
31035 s/\\$//
31036 t bsnl
31037 s/["\\]/\\&/g
31038 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31039 D["\1"]=" \3"/p
31040 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31042 :bsnl
31043 s/["\\]/\\&/g
31044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31045 D["\1"]=" \3\\\\\\n"\\/p
31046 t cont
31047 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31048 t cont
31050 :cont
31052 s/.\{148\}/&'"$ac_delim"'/g
31053 t clear
31054 :clear
31055 s/\\$//
31056 t bsnlc
31057 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31059 :bsnlc
31060 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31061 b cont
31062 ' <confdefs.h | sed '
31063 s/'"$ac_delim"'/"\\\
31064 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31067 for (key in D) D_is_set[key] = 1
31068 FS = "\a"
31070 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31071 line = \$ 0
31072 split(line, arg, " ")
31073 if (arg[1] == "#") {
31074 defundef = arg[2]
31075 mac1 = arg[3]
31076 } else {
31077 defundef = substr(arg[1], 2)
31078 mac1 = arg[2]
31080 split(mac1, mac2, "(") #)
31081 macro = mac2[1]
31082 prefix = substr(line, 1, index(line, defundef) - 1)
31083 if (D_is_set[macro]) {
31084 # Preserve the white space surrounding the "#".
31085 print prefix "define", macro P[macro] D[macro]
31086 next
31087 } else {
31088 # Replace #undef with comments. This is necessary, for example,
31089 # in the case of _POSIX_SOURCE, which is predefined and required
31090 # on some systems where configure will not decide to define it.
31091 if (defundef == "undef") {
31092 print "/*", prefix defundef, macro, "*/"
31093 next
31097 { print }
31098 _ACAWK
31099 _ACEOF
31100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31101 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31102 fi # test -n "$CONFIG_HEADERS"
31105 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31106 shift
31107 for ac_tag
31109 case $ac_tag in
31110 :[FHLC]) ac_mode=$ac_tag; continue;;
31111 esac
31112 case $ac_mode$ac_tag in
31113 :[FHL]*:*);;
31114 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31115 :[FH]-) ac_tag=-:-;;
31116 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31117 esac
31118 ac_save_IFS=$IFS
31119 IFS=:
31120 set x $ac_tag
31121 IFS=$ac_save_IFS
31122 shift
31123 ac_file=$1
31124 shift
31126 case $ac_mode in
31127 :L) ac_source=$1;;
31128 :[FH])
31129 ac_file_inputs=
31130 for ac_f
31132 case $ac_f in
31133 -) ac_f="$ac_tmp/stdin";;
31134 *) # Look for the file first in the build tree, then in the source tree
31135 # (if the path is not absolute). The absolute path cannot be DOS-style,
31136 # because $ac_f cannot contain `:'.
31137 test -f "$ac_f" ||
31138 case $ac_f in
31139 [\\/$]*) false;;
31140 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31141 esac ||
31142 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31143 esac
31144 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31145 as_fn_append ac_file_inputs " '$ac_f'"
31146 done
31148 # Let's still pretend it is `configure' which instantiates (i.e., don't
31149 # use $as_me), people would be surprised to read:
31150 # /* config.h. Generated by config.status. */
31151 configure_input='Generated from '`
31152 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31153 `' by configure.'
31154 if test x"$ac_file" != x-; then
31155 configure_input="$ac_file. $configure_input"
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31157 $as_echo "$as_me: creating $ac_file" >&6;}
31159 # Neutralize special characters interpreted by sed in replacement strings.
31160 case $configure_input in #(
31161 *\&* | *\|* | *\\* )
31162 ac_sed_conf_input=`$as_echo "$configure_input" |
31163 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31164 *) ac_sed_conf_input=$configure_input;;
31165 esac
31167 case $ac_tag in
31168 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31170 esac
31172 esac
31174 ac_dir=`$as_dirname -- "$ac_file" ||
31175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31176 X"$ac_file" : 'X\(//\)[^/]' \| \
31177 X"$ac_file" : 'X\(//\)$' \| \
31178 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31179 $as_echo X"$ac_file" |
31180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31181 s//\1/
31184 /^X\(\/\/\)[^/].*/{
31185 s//\1/
31188 /^X\(\/\/\)$/{
31189 s//\1/
31192 /^X\(\/\).*/{
31193 s//\1/
31196 s/.*/./; q'`
31197 as_dir="$ac_dir"; as_fn_mkdir_p
31198 ac_builddir=.
31200 case "$ac_dir" in
31201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31203 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31204 # A ".." for each directory in $ac_dir_suffix.
31205 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31206 case $ac_top_builddir_sub in
31207 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31208 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31209 esac ;;
31210 esac
31211 ac_abs_top_builddir=$ac_pwd
31212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31213 # for backward compatibility:
31214 ac_top_builddir=$ac_top_build_prefix
31216 case $srcdir in
31217 .) # We are building in place.
31218 ac_srcdir=.
31219 ac_top_srcdir=$ac_top_builddir_sub
31220 ac_abs_top_srcdir=$ac_pwd ;;
31221 [\\/]* | ?:[\\/]* ) # Absolute name.
31222 ac_srcdir=$srcdir$ac_dir_suffix;
31223 ac_top_srcdir=$srcdir
31224 ac_abs_top_srcdir=$srcdir ;;
31225 *) # Relative name.
31226 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31227 ac_top_srcdir=$ac_top_build_prefix$srcdir
31228 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31229 esac
31230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31233 case $ac_mode in
31236 # CONFIG_FILE
31239 _ACEOF
31241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31242 # If the template does not know about datarootdir, expand it.
31243 # FIXME: This hack should be removed a few years after 2.60.
31244 ac_datarootdir_hack=; ac_datarootdir_seen=
31245 ac_sed_dataroot='
31246 /datarootdir/ {
31250 /@datadir@/p
31251 /@docdir@/p
31252 /@infodir@/p
31253 /@localedir@/p
31254 /@mandir@/p'
31255 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31256 *datarootdir*) ac_datarootdir_seen=yes;;
31257 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31259 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31260 _ACEOF
31261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31262 ac_datarootdir_hack='
31263 s&@datadir@&$datadir&g
31264 s&@docdir@&$docdir&g
31265 s&@infodir@&$infodir&g
31266 s&@localedir@&$localedir&g
31267 s&@mandir@&$mandir&g
31268 s&\\\${datarootdir}&$datarootdir&g' ;;
31269 esac
31270 _ACEOF
31272 # Neutralize VPATH when `$srcdir' = `.'.
31273 # Shell code in configure.ac might set extrasub.
31274 # FIXME: do we really want to maintain this feature?
31275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31276 ac_sed_extra="$ac_vpsub
31277 $extrasub
31278 _ACEOF
31279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31282 s|@configure_input@|$ac_sed_conf_input|;t t
31283 s&@top_builddir@&$ac_top_builddir_sub&;t t
31284 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31285 s&@srcdir@&$ac_srcdir&;t t
31286 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31287 s&@top_srcdir@&$ac_top_srcdir&;t t
31288 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31289 s&@builddir@&$ac_builddir&;t t
31290 s&@abs_builddir@&$ac_abs_builddir&;t t
31291 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31292 $ac_datarootdir_hack
31294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31295 if $ac_cs_awk_getline; then
31296 $AWK -f "$ac_tmp/subs.awk"
31297 else
31298 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31299 fi \
31300 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31302 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31303 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31304 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31305 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31307 which seems to be undefined. Please make sure it is defined" >&5
31308 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31309 which seems to be undefined. Please make sure it is defined" >&2;}
31311 rm -f "$ac_tmp/stdin"
31312 case $ac_file in
31313 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31314 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31315 esac \
31316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31320 # CONFIG_HEADER
31322 if test x"$ac_file" != x-; then
31324 $as_echo "/* $configure_input */" \
31325 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31326 } >"$ac_tmp/config.h" \
31327 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31328 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31329 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31330 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31331 else
31332 rm -f "$ac_file"
31333 mv "$ac_tmp/config.h" "$ac_file" \
31334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31336 else
31337 $as_echo "/* $configure_input */" \
31338 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31339 || as_fn_error $? "could not create -" "$LINENO" 5
31344 # CONFIG_LINK
31347 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31349 else
31350 # Prefer the file from the source tree if names are identical.
31351 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31352 ac_source=$srcdir/$ac_source
31355 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31356 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31358 if test ! -r "$ac_source"; then
31359 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31361 rm -f "$ac_file"
31363 # Try a relative symlink, then a hard link, then a copy.
31364 case $ac_source in
31365 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31366 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31367 esac
31368 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31369 ln "$ac_source" "$ac_file" 2>/dev/null ||
31370 cp -p "$ac_source" "$ac_file" ||
31371 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31374 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31375 $as_echo "$as_me: executing $ac_file commands" >&6;}
31377 esac
31380 case $ac_file$ac_mode in
31381 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31382 "gccdepdir":C)
31383 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31384 for lang in $subdirs c-family common
31386 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31387 done ;;
31388 "as":F) chmod +x as ;;
31389 "collect-ld":F) chmod +x collect-ld ;;
31390 "nm":F) chmod +x nm ;;
31391 "default":C)
31392 case ${CONFIG_HEADERS} in
31393 *auto-host.h:config.in*)
31394 echo > cstamp-h ;;
31395 esac
31396 # Make sure all the subdirs exist.
31397 for d in $subdirs doc build common c-family
31399 test -d $d || mkdir $d
31400 done
31403 esac
31404 done # for ac_tag
31407 as_fn_exit 0
31408 _ACEOF
31409 ac_clean_files=$ac_clean_files_save
31411 test $ac_write_fail = 0 ||
31412 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31415 # configure is writing to config.log, and then calls config.status.
31416 # config.status does its own redirection, appending to config.log.
31417 # Unfortunately, on DOS this fails, as config.log is still kept open
31418 # by configure, so config.status won't be able to write to it; its
31419 # output is simply discarded. So we exec the FD to /dev/null,
31420 # effectively closing config.log, so it can be properly (re)opened and
31421 # appended to by config.status. When coming back to configure, we
31422 # need to make the FD available again.
31423 if test "$no_create" != yes; then
31424 ac_cs_success=:
31425 ac_config_status_args=
31426 test "$silent" = yes &&
31427 ac_config_status_args="$ac_config_status_args --quiet"
31428 exec 5>/dev/null
31429 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31430 exec 5>>config.log
31431 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31432 # would make configure fail if this is the last instruction.
31433 $ac_cs_success || as_fn_exit 1
31435 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31437 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}