Daily bump.
[official-gcc.git] / gcc / configure
blob0a09777dd427af0cce2c6afd5376fe6bbda534f4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
595 ac_unique_file="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_include_dir_add_sysroot
679 gcc_gxx_include_dir
680 gcc_config_arguments
681 float_h_file
682 extra_programs
683 extra_objs
684 extra_headers_list
685 user_headers_inc_next_post
686 user_headers_inc_next_pre
687 extra_gcc_objs
688 TM_MULTILIB_EXCEPTIONS_CONFIG
689 TM_MULTILIB_CONFIG
690 TM_ENDIAN_CONFIG
691 tmake_file
692 xmake_file
693 cpp_install_dir
694 selftest_languages
695 check_languages
696 build_file_translate
697 build_xm_defines
698 build_xm_include_list
699 build_xm_file_list
700 build_install_headers_dir
701 build_exeext
702 all_selected_languages
703 all_languages
704 all_lang_makefrags
705 all_lang_configurefrags
706 all_gtfiles
707 all_compilers
708 srcdir
709 subdirs
710 dollar
711 gcc_tooldir
712 enable_lto
713 DO_LINK_MUTEX
714 MAINT
715 zlibinc
716 zlibdir
717 HOST_LIBS
718 enable_default_ssp
719 thin_archive_support
720 ld_soname_option
721 ld_version_script_option
722 libgcc_visibility
723 gcc_cv_otool
724 gcc_cv_readelf
725 gcc_cv_objdump
726 ORIGINAL_NM_FOR_TARGET
727 gcc_cv_nm
728 ORIGINAL_LD_GOLD_FOR_TARGET
729 ORIGINAL_LD_BFD_FOR_TARGET
730 ORIGINAL_LD_FOR_TARGET
731 ORIGINAL_PLUGIN_LD_FOR_TARGET
732 gcc_cv_ld
733 ORIGINAL_AS_FOR_TARGET
734 gcc_cv_as
735 enable_fast_install
736 objdir
737 OTOOL64
738 OTOOL
739 LIPO
740 NMEDIT
741 DSYMUTIL
742 STRIP
743 OBJDUMP
744 ac_ct_DUMPBIN
745 DUMPBIN
747 FGREP
749 LIBTOOL
750 collect2
751 NO_PIE_FLAG_FOR_BUILD
752 NO_PIE_CFLAGS_FOR_BUILD
753 BUILD_NO_PIE_FLAG
754 BUILD_NO_PIE_CFLAGS
755 STMP_FIXINC
756 BUILD_LDFLAGS
757 BUILD_CXXFLAGS
758 BUILD_CFLAGS
759 CXX_FOR_BUILD
760 CC_FOR_BUILD
761 inhibit_libc
762 BUILD_SYSTEM_HEADER_DIR
763 SYSTEM_HEADER_DIR
765 CROSS
766 CATOBJEXT
767 GENCAT
768 INSTOBJEXT
769 DATADIRNAME
770 CATALOGS
771 POSUB
772 GMSGFMT
773 XGETTEXT
774 INCINTL
775 LIBINTL_DEP
776 LIBINTL
777 USE_NLS
778 get_gcc_base_ver
779 HAVE_AUTO_BUILD
780 extra_opt_files
781 extra_modes_file
782 NATIVE_SYSTEM_HEADER_DIR
783 objext
784 manext
785 LIBICONV_DEP
786 LTLIBICONV
787 LIBICONV
788 ZSTD_LDFLAGS
789 ZSTD_CPPFLAGS
790 ZSTD_LIB
791 ZSTD_INCLUDE
792 DL_LIB
793 LDEXP_LIB
794 EXTRA_GCC_LIBS
795 GNAT_LIBEXC
796 COLLECT2_LIBS
797 CXXDEPMODE
798 DEPDIR
799 am__leading_dot
800 doc_build_sys
803 BISON
804 FLEX
805 GENERATED_MANPAGES
806 BUILD_INFO
807 MAKEINFO
808 have_mktemp_command
809 make_compare_target
810 INSTALL_DATA
811 INSTALL_PROGRAM
812 INSTALL
813 ranlib_flags
814 RANLIB
816 LN_S
818 SET_MAKE
819 omp_device_property_deps
820 omp_device_properties
821 accel_dir_suffix
822 real_target_noncanonical
823 enable_as_accelerator
824 gnat_install_lib
825 REPORT_BUGS_TEXI
826 REPORT_BUGS_TO
827 PKGVERSION
828 CONFIGURE_SPECS
829 enable_gcov
830 enable_shared
831 enable_fixed_point
832 enable_decimal_float
833 with_float
834 with_cpu
835 enable_multiarch
836 enable_multilib
837 coverage_flags
838 valgrind_command
839 valgrind_path_defines
840 valgrind_path
841 TREECHECKING
842 nocommon_flag
843 noexception_flags
844 warn_cxxflags
845 warn_cflags
846 c_strict_warn
847 strict_warn
848 c_loose_warn
849 loose_warn
850 aliasing_flags
852 EGREP
853 GREP
854 CXXCPP
855 PICFLAG_FOR_TARGET
856 GNATMAKE
857 GNATBIND
858 ac_ct_CXX
859 CXXFLAGS
861 OBJEXT
862 EXEEXT
863 ac_ct_CC
864 CPPFLAGS
865 LDFLAGS
866 CFLAGS
868 GENINSRC
869 CROSS_SYSTEM_HEADER_DIR
870 TARGET_SYSTEM_ROOT_DEFINE
871 TARGET_SYSTEM_ROOT
872 SYSROOT_CFLAGS_FOR_TARGET
873 target_subdir
874 host_subdir
875 build_subdir
876 build_libsubdir
877 target_noncanonical
878 host_noncanonical
879 target_os
880 target_vendor
881 target_cpu
882 target
883 host_os
884 host_vendor
885 host_cpu
886 host
887 build_os
888 build_vendor
889 build_cpu
890 build
891 target_alias
892 host_alias
893 build_alias
894 LIBS
895 ECHO_T
896 ECHO_N
897 ECHO_C
898 DEFS
899 mandir
900 localedir
901 libdir
902 psdir
903 pdfdir
904 dvidir
905 htmldir
906 infodir
907 docdir
908 oldincludedir
909 includedir
910 localstatedir
911 sharedstatedir
912 sysconfdir
913 datadir
914 datarootdir
915 libexecdir
916 sbindir
917 bindir
918 program_transform_name
919 prefix
920 exec_prefix
921 PACKAGE_URL
922 PACKAGE_BUGREPORT
923 PACKAGE_STRING
924 PACKAGE_VERSION
925 PACKAGE_TARNAME
926 PACKAGE_NAME
927 PATH_SEPARATOR
928 SHELL'
929 ac_subst_files='option_includes
930 language_hooks'
931 ac_user_opts='
932 enable_option_checking
933 with_build_libsubdir
934 with_local_prefix
935 with_native_system_header_dir
936 with_build_sysroot
937 with_sysroot
938 with_gxx_include_dir
939 with_cpp_install_dir
940 enable_generated_files_in_srcdir
941 with_gnu_ld
942 with_ld
943 with_demangler_in_ld
944 with_gnu_as
945 with_as
946 enable_largefile
947 enable_build_format_warnings
948 enable_werror_always
949 enable_checking
950 enable_coverage
951 enable_gather_detailed_mem_stats
952 enable_valgrind_annotations
953 with_stabs
954 enable_multilib
955 enable_multiarch
956 with_stack_clash_protection_guard_size
957 enable___cxa_atexit
958 enable_decimal_float
959 enable_fixed_point
960 enable_threads
961 enable_tls
962 enable_vtable_verify
963 enable_analyzer
964 enable_objc_gc
965 with_dwarf2
966 enable_shared
967 enable_gcov
968 with_specs
969 with_pkgversion
970 with_bugurl
971 with_documentation_root_url
972 with_changes_root_url
973 enable_languages
974 with_multilib_list
975 with_zstd
976 with_zstd_include
977 with_zstd_lib
978 enable_rpath
979 with_libiconv_prefix
980 with_libiconv_type
981 enable_sjlj_exceptions
982 with_gcc_major_version_only
983 enable_secureplt
984 enable_mingw_wildcard
985 enable_large_address_aware
986 enable_leading_mingw64_underscores
987 enable_cld
988 enable_frame_pointer
989 enable_win32_registry
990 enable_static
991 with_pic
992 enable_fast_install
993 enable_libtool_lock
994 enable_ld
995 enable_gold
996 with_plugin_ld
997 enable_gnu_indirect_function
998 enable_initfini_array
999 enable_comdat
1000 enable_newlib_nano_formatted_io
1001 enable_standard_branch_protection
1002 enable_fix_cortex_a53_835769
1003 enable_fix_cortex_a53_843419
1004 with_glibc_version
1005 enable_gnu_unique_object
1006 enable_linker_build_id
1007 enable_libssp
1008 enable_default_ssp
1009 with_long_double_128
1010 with_long_double_format
1011 with_gc
1012 with_system_zlib
1013 enable_maintainer_mode
1014 enable_link_mutex
1015 enable_version_specific_runtime_libs
1016 enable_plugin
1017 enable_host_shared
1018 enable_libquadmath_support
1019 with_linker_hash_style
1020 with_diagnostics_color
1021 with_diagnostics_urls
1022 enable_default_pie
1023 enable_cet
1025 ac_precious_vars='build_alias
1026 host_alias
1027 target_alias
1029 CFLAGS
1030 LDFLAGS
1031 LIBS
1032 CPPFLAGS
1034 CXXFLAGS
1036 CXXCPP
1038 GMPLIBS
1039 GMPINC
1040 ISLLIBS
1041 ISLINC'
1044 # Initialize some variables set by options.
1045 ac_init_help=
1046 ac_init_version=false
1047 ac_unrecognized_opts=
1048 ac_unrecognized_sep=
1049 # The variables have the same names as the options, with
1050 # dashes changed to underlines.
1051 cache_file=/dev/null
1052 exec_prefix=NONE
1053 no_create=
1054 no_recursion=
1055 prefix=NONE
1056 program_prefix=NONE
1057 program_suffix=NONE
1058 program_transform_name=s,x,x,
1059 silent=
1060 site=
1061 srcdir=
1062 verbose=
1063 x_includes=NONE
1064 x_libraries=NONE
1066 # Installation directory options.
1067 # These are left unexpanded so users can "make install exec_prefix=/foo"
1068 # and all the variables that are supposed to be based on exec_prefix
1069 # by default will actually change.
1070 # Use braces instead of parens because sh, perl, etc. also accept them.
1071 # (The list follows the same order as the GNU Coding Standards.)
1072 bindir='${exec_prefix}/bin'
1073 sbindir='${exec_prefix}/sbin'
1074 libexecdir='${exec_prefix}/libexec'
1075 datarootdir='${prefix}/share'
1076 datadir='${datarootdir}'
1077 sysconfdir='${prefix}/etc'
1078 sharedstatedir='${prefix}/com'
1079 localstatedir='${prefix}/var'
1080 includedir='${prefix}/include'
1081 oldincludedir='/usr/include'
1082 docdir='${datarootdir}/doc/${PACKAGE}'
1083 infodir='${datarootdir}/info'
1084 htmldir='${docdir}'
1085 dvidir='${docdir}'
1086 pdfdir='${docdir}'
1087 psdir='${docdir}'
1088 libdir='${exec_prefix}/lib'
1089 localedir='${datarootdir}/locale'
1090 mandir='${datarootdir}/man'
1092 ac_prev=
1093 ac_dashdash=
1094 for ac_option
1096 # If the previous option needs an argument, assign it.
1097 if test -n "$ac_prev"; then
1098 eval $ac_prev=\$ac_option
1099 ac_prev=
1100 continue
1103 case $ac_option in
1104 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1105 *=) ac_optarg= ;;
1106 *) ac_optarg=yes ;;
1107 esac
1109 # Accept the important Cygnus configure options, so we can diagnose typos.
1111 case $ac_dashdash$ac_option in
1113 ac_dashdash=yes ;;
1115 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1116 ac_prev=bindir ;;
1117 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1118 bindir=$ac_optarg ;;
1120 -build | --build | --buil | --bui | --bu)
1121 ac_prev=build_alias ;;
1122 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1123 build_alias=$ac_optarg ;;
1125 -cache-file | --cache-file | --cache-fil | --cache-fi \
1126 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1127 ac_prev=cache_file ;;
1128 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1129 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1130 cache_file=$ac_optarg ;;
1132 --config-cache | -C)
1133 cache_file=config.cache ;;
1135 -datadir | --datadir | --datadi | --datad)
1136 ac_prev=datadir ;;
1137 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1138 datadir=$ac_optarg ;;
1140 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1141 | --dataroo | --dataro | --datar)
1142 ac_prev=datarootdir ;;
1143 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1144 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1145 datarootdir=$ac_optarg ;;
1147 -disable-* | --disable-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid feature name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1156 "enable_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval enable_$ac_useropt=no ;;
1163 -docdir | --docdir | --docdi | --doc | --do)
1164 ac_prev=docdir ;;
1165 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1166 docdir=$ac_optarg ;;
1168 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1169 ac_prev=dvidir ;;
1170 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1171 dvidir=$ac_optarg ;;
1173 -enable-* | --enable-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid feature name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "enable_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval enable_$ac_useropt=\$ac_optarg ;;
1189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1191 | --exec | --exe | --ex)
1192 ac_prev=exec_prefix ;;
1193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1195 | --exec=* | --exe=* | --ex=*)
1196 exec_prefix=$ac_optarg ;;
1198 -gas | --gas | --ga | --g)
1199 # Obsolete; use --with-gas.
1200 with_gas=yes ;;
1202 -help | --help | --hel | --he | -h)
1203 ac_init_help=long ;;
1204 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1205 ac_init_help=recursive ;;
1206 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1207 ac_init_help=short ;;
1209 -host | --host | --hos | --ho)
1210 ac_prev=host_alias ;;
1211 -host=* | --host=* | --hos=* | --ho=*)
1212 host_alias=$ac_optarg ;;
1214 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1215 ac_prev=htmldir ;;
1216 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1217 | --ht=*)
1218 htmldir=$ac_optarg ;;
1220 -includedir | --includedir | --includedi | --included | --include \
1221 | --includ | --inclu | --incl | --inc)
1222 ac_prev=includedir ;;
1223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1224 | --includ=* | --inclu=* | --incl=* | --inc=*)
1225 includedir=$ac_optarg ;;
1227 -infodir | --infodir | --infodi | --infod | --info | --inf)
1228 ac_prev=infodir ;;
1229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1230 infodir=$ac_optarg ;;
1232 -libdir | --libdir | --libdi | --libd)
1233 ac_prev=libdir ;;
1234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1235 libdir=$ac_optarg ;;
1237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1238 | --libexe | --libex | --libe)
1239 ac_prev=libexecdir ;;
1240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1241 | --libexe=* | --libex=* | --libe=*)
1242 libexecdir=$ac_optarg ;;
1244 -localedir | --localedir | --localedi | --localed | --locale)
1245 ac_prev=localedir ;;
1246 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1247 localedir=$ac_optarg ;;
1249 -localstatedir | --localstatedir | --localstatedi | --localstated \
1250 | --localstate | --localstat | --localsta | --localst | --locals)
1251 ac_prev=localstatedir ;;
1252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1253 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1254 localstatedir=$ac_optarg ;;
1256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1257 ac_prev=mandir ;;
1258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1259 mandir=$ac_optarg ;;
1261 -nfp | --nfp | --nf)
1262 # Obsolete; use --without-fp.
1263 with_fp=no ;;
1265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1266 | --no-cr | --no-c | -n)
1267 no_create=yes ;;
1269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1271 no_recursion=yes ;;
1273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1275 | --oldin | --oldi | --old | --ol | --o)
1276 ac_prev=oldincludedir ;;
1277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1280 oldincludedir=$ac_optarg ;;
1282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1283 ac_prev=prefix ;;
1284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1285 prefix=$ac_optarg ;;
1287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1288 | --program-pre | --program-pr | --program-p)
1289 ac_prev=program_prefix ;;
1290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1292 program_prefix=$ac_optarg ;;
1294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1295 | --program-suf | --program-su | --program-s)
1296 ac_prev=program_suffix ;;
1297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1299 program_suffix=$ac_optarg ;;
1301 -program-transform-name | --program-transform-name \
1302 | --program-transform-nam | --program-transform-na \
1303 | --program-transform-n | --program-transform- \
1304 | --program-transform | --program-transfor \
1305 | --program-transfo | --program-transf \
1306 | --program-trans | --program-tran \
1307 | --progr-tra | --program-tr | --program-t)
1308 ac_prev=program_transform_name ;;
1309 -program-transform-name=* | --program-transform-name=* \
1310 | --program-transform-nam=* | --program-transform-na=* \
1311 | --program-transform-n=* | --program-transform-=* \
1312 | --program-transform=* | --program-transfor=* \
1313 | --program-transfo=* | --program-transf=* \
1314 | --program-trans=* | --program-tran=* \
1315 | --progr-tra=* | --program-tr=* | --program-t=*)
1316 program_transform_name=$ac_optarg ;;
1318 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1319 ac_prev=pdfdir ;;
1320 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1321 pdfdir=$ac_optarg ;;
1323 -psdir | --psdir | --psdi | --psd | --ps)
1324 ac_prev=psdir ;;
1325 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1326 psdir=$ac_optarg ;;
1328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1329 | -silent | --silent | --silen | --sile | --sil)
1330 silent=yes ;;
1332 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1333 ac_prev=sbindir ;;
1334 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1335 | --sbi=* | --sb=*)
1336 sbindir=$ac_optarg ;;
1338 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1339 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1340 | --sharedst | --shareds | --shared | --share | --shar \
1341 | --sha | --sh)
1342 ac_prev=sharedstatedir ;;
1343 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1344 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1345 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1346 | --sha=* | --sh=*)
1347 sharedstatedir=$ac_optarg ;;
1349 -site | --site | --sit)
1350 ac_prev=site ;;
1351 -site=* | --site=* | --sit=*)
1352 site=$ac_optarg ;;
1354 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1355 ac_prev=srcdir ;;
1356 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1357 srcdir=$ac_optarg ;;
1359 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1360 | --syscon | --sysco | --sysc | --sys | --sy)
1361 ac_prev=sysconfdir ;;
1362 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1363 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1364 sysconfdir=$ac_optarg ;;
1366 -target | --target | --targe | --targ | --tar | --ta | --t)
1367 ac_prev=target_alias ;;
1368 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1369 target_alias=$ac_optarg ;;
1371 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1372 verbose=yes ;;
1374 -version | --version | --versio | --versi | --vers | -V)
1375 ac_init_version=: ;;
1377 -with-* | --with-*)
1378 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1379 # Reject names that are not valid shell variable names.
1380 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1381 as_fn_error $? "invalid package name: $ac_useropt"
1382 ac_useropt_orig=$ac_useropt
1383 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384 case $ac_user_opts in
1386 "with_$ac_useropt"
1387 "*) ;;
1388 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1389 ac_unrecognized_sep=', ';;
1390 esac
1391 eval with_$ac_useropt=\$ac_optarg ;;
1393 -without-* | --without-*)
1394 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1397 as_fn_error $? "invalid package name: $ac_useropt"
1398 ac_useropt_orig=$ac_useropt
1399 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1400 case $ac_user_opts in
1402 "with_$ac_useropt"
1403 "*) ;;
1404 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1405 ac_unrecognized_sep=', ';;
1406 esac
1407 eval with_$ac_useropt=no ;;
1409 --x)
1410 # Obsolete; use --with-x.
1411 with_x=yes ;;
1413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1414 | --x-incl | --x-inc | --x-in | --x-i)
1415 ac_prev=x_includes ;;
1416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1418 x_includes=$ac_optarg ;;
1420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1422 ac_prev=x_libraries ;;
1423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1425 x_libraries=$ac_optarg ;;
1427 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1428 Try \`$0 --help' for more information"
1431 *=*)
1432 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1433 # Reject names that are not valid shell variable names.
1434 case $ac_envvar in #(
1435 '' | [0-9]* | *[!_$as_cr_alnum]* )
1436 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1437 esac
1438 eval $ac_envvar=\$ac_optarg
1439 export $ac_envvar ;;
1442 # FIXME: should be removed in autoconf 3.0.
1443 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1444 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1445 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1446 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1449 esac
1450 done
1452 if test -n "$ac_prev"; then
1453 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1454 as_fn_error $? "missing argument to $ac_option"
1457 if test -n "$ac_unrecognized_opts"; then
1458 case $enable_option_checking in
1459 no) ;;
1460 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1461 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1462 esac
1465 # Check all directory arguments for consistency.
1466 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1467 datadir sysconfdir sharedstatedir localstatedir includedir \
1468 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1469 libdir localedir mandir
1471 eval ac_val=\$$ac_var
1472 # Remove trailing slashes.
1473 case $ac_val in
1474 */ )
1475 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1476 eval $ac_var=\$ac_val;;
1477 esac
1478 # Be sure to have absolute directory names.
1479 case $ac_val in
1480 [\\/$]* | ?:[\\/]* ) continue;;
1481 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1482 esac
1483 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1484 done
1486 # There might be people who depend on the old broken behavior: `$host'
1487 # used to hold the argument of --host etc.
1488 # FIXME: To remove some day.
1489 build=$build_alias
1490 host=$host_alias
1491 target=$target_alias
1493 # FIXME: To remove some day.
1494 if test "x$host_alias" != x; then
1495 if test "x$build_alias" = x; then
1496 cross_compiling=maybe
1497 elif test "x$build_alias" != "x$host_alias"; then
1498 cross_compiling=yes
1502 ac_tool_prefix=
1503 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1505 test "$silent" = yes && exec 6>/dev/null
1508 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1509 ac_ls_di=`ls -di .` &&
1510 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1511 as_fn_error $? "working directory cannot be determined"
1512 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1513 as_fn_error $? "pwd does not report name of working directory"
1516 # Find the source files, if location was not specified.
1517 if test -z "$srcdir"; then
1518 ac_srcdir_defaulted=yes
1519 # Try the directory containing this script, then the parent directory.
1520 ac_confdir=`$as_dirname -- "$as_myself" ||
1521 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1522 X"$as_myself" : 'X\(//\)[^/]' \| \
1523 X"$as_myself" : 'X\(//\)$' \| \
1524 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1525 $as_echo X"$as_myself" |
1526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1527 s//\1/
1530 /^X\(\/\/\)[^/].*/{
1531 s//\1/
1534 /^X\(\/\/\)$/{
1535 s//\1/
1538 /^X\(\/\).*/{
1539 s//\1/
1542 s/.*/./; q'`
1543 srcdir=$ac_confdir
1544 if test ! -r "$srcdir/$ac_unique_file"; then
1545 srcdir=..
1547 else
1548 ac_srcdir_defaulted=no
1550 if test ! -r "$srcdir/$ac_unique_file"; then
1551 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1552 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1554 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1555 ac_abs_confdir=`(
1556 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1557 pwd)`
1558 # When building in place, set srcdir=.
1559 if test "$ac_abs_confdir" = "$ac_pwd"; then
1560 srcdir=.
1562 # Remove unnecessary trailing slashes from srcdir.
1563 # Double slashes in file names in object file debugging info
1564 # mess up M-x gdb in Emacs.
1565 case $srcdir in
1566 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1567 esac
1568 for ac_var in $ac_precious_vars; do
1569 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1570 eval ac_env_${ac_var}_value=\$${ac_var}
1571 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1572 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1573 done
1576 # Report the --help message.
1578 if test "$ac_init_help" = "long"; then
1579 # Omit some internal or obsolete options to make the list less imposing.
1580 # This message is too long to be a string in the A/UX 3.1 sh.
1581 cat <<_ACEOF
1582 \`configure' configures this package to adapt to many kinds of systems.
1584 Usage: $0 [OPTION]... [VAR=VALUE]...
1586 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587 VAR=VALUE. See below for descriptions of some of the useful variables.
1589 Defaults for the options are specified in brackets.
1591 Configuration:
1592 -h, --help display this help and exit
1593 --help=short display options specific to this package
1594 --help=recursive display the short help of all the included packages
1595 -V, --version display version information and exit
1596 -q, --quiet, --silent do not print \`checking ...' messages
1597 --cache-file=FILE cache test results in FILE [disabled]
1598 -C, --config-cache alias for \`--cache-file=config.cache'
1599 -n, --no-create do not create output files
1600 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1602 Installation directories:
1603 --prefix=PREFIX install architecture-independent files in PREFIX
1604 [$ac_default_prefix]
1605 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1606 [PREFIX]
1608 By default, \`make install' will install all the files in
1609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611 for instance \`--prefix=\$HOME'.
1613 For better control, use the options below.
1615 Fine tuning of the installation directories:
1616 --bindir=DIR user executables [EPREFIX/bin]
1617 --sbindir=DIR system admin executables [EPREFIX/sbin]
1618 --libexecdir=DIR program executables [EPREFIX/libexec]
1619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1622 --libdir=DIR object code libraries [EPREFIX/lib]
1623 --includedir=DIR C header files [PREFIX/include]
1624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1625 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1626 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1627 --infodir=DIR info documentation [DATAROOTDIR/info]
1628 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1629 --mandir=DIR man documentation [DATAROOTDIR/man]
1630 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1631 --htmldir=DIR html documentation [DOCDIR]
1632 --dvidir=DIR dvi documentation [DOCDIR]
1633 --pdfdir=DIR pdf documentation [DOCDIR]
1634 --psdir=DIR ps documentation [DOCDIR]
1635 _ACEOF
1637 cat <<\_ACEOF
1639 Program names:
1640 --program-prefix=PREFIX prepend PREFIX to installed program names
1641 --program-suffix=SUFFIX append SUFFIX to installed program names
1642 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1644 System types:
1645 --build=BUILD configure for building on BUILD [guessed]
1646 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1647 --target=TARGET configure for building compilers for TARGET [HOST]
1648 _ACEOF
1651 if test -n "$ac_init_help"; then
1653 cat <<\_ACEOF
1655 Optional Features:
1656 --disable-option-checking ignore unrecognized --enable/--with options
1657 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1658 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1659 --enable-generated-files-in-srcdir
1660 put copies of generated files in source dir intended
1661 for creating source tarballs for users without
1662 texinfo bison or flex
1663 --disable-largefile omit support for large files
1664 --disable-build-format-warnings
1665 don't use -Wformat while building GCC
1666 --enable-werror-always enable -Werror despite compiler version
1667 --enable-checking[=LIST]
1668 enable expensive run-time checks. With LIST, enable
1669 only specific categories of checks. Categories are:
1670 yes,no,all,none,release. Flags are:
1671 assert,df,extra,fold,gc,gcac,gimple,misc,
1672 rtlflag,rtl,runtime,tree,valgrind,types
1673 --enable-coverage[=LEVEL]
1674 enable compiler's code coverage collection. Use to
1675 measure compiler performance and locate unused parts
1676 of the compiler. With LEVEL, specify optimization.
1677 Values are opt, noopt, default is noopt
1678 --enable-gather-detailed-mem-stats
1679 enable detailed memory allocation stats gathering
1680 --enable-valgrind-annotations
1681 enable valgrind runtime interaction
1682 --enable-multilib enable library support for multiple ABIs
1683 --enable-multiarch enable support for multiarch paths
1684 --enable-__cxa_atexit enable __cxa_atexit for C++
1685 --enable-decimal-float={no,yes,bid,dpd}
1686 enable decimal float extension to C. Selecting 'bid'
1687 or 'dpd' choses which decimal floating point format
1688 to use
1689 --enable-fixed-point enable fixed-point arithmetic extension to C
1690 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1691 package
1692 --enable-tls enable or disable generation of tls code overriding
1693 the assembler check for tls support
1694 --enable-vtable-verify enable vtable verification feature
1695 --disable-analyzer disable -fanalyzer static analyzer
1696 --enable-objc-gc enable the use of Boehm's garbage collector with the
1697 GNU Objective-C runtime
1698 --disable-shared don't provide a shared libgcc
1699 --disable-gcov don't provide libgcov and related host tools
1700 --enable-languages=LIST specify which front-ends to build
1701 --disable-rpath do not hardcode runtime library paths
1702 --enable-sjlj-exceptions
1703 arrange to use setjmp/longjmp exception handling
1704 --enable-secureplt enable -msecure-plt by default for PowerPC
1705 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1706 Default to platform configuration
1707 --enable-large-address-aware
1708 Link mingw executables with --large-address-aware
1709 --enable-leading-mingw64-underscores
1710 enable leading underscores on 64 bit mingw targets
1711 --enable-cld enable -mcld by default for 32bit x86
1712 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1713 --disable-win32-registry
1714 disable lookup of installation paths in the Registry
1715 on Windows hosts
1716 --enable-win32-registry enable registry lookup (default)
1717 --enable-win32-registry=KEY
1718 use KEY instead of GCC version as the last portion
1719 of the registry key
1720 --enable-shared[=PKGS] build shared libraries [default=yes]
1721 --enable-static[=PKGS] build static libraries [default=yes]
1722 --enable-fast-install[=PKGS]
1723 optimize for fast installation [default=yes]
1724 --disable-libtool-lock avoid locking (might break parallel builds)
1725 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1726 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1727 --enable-gnu-indirect-function
1728 enable the use of the @gnu_indirect_function to
1729 glibc systems
1730 --enable-initfini-array use .init_array/.fini_array sections
1731 --enable-comdat enable COMDAT group support
1732 --enable-newlib-nano-formatted-io
1733 Use nano version formatted IO
1735 --enable-standard-branch-protection
1736 enable Branch Target Identification Mechanism and
1737 Return Address Signing by default for AArch64
1738 --disable-standard-branch-protection
1739 disable Branch Target Identification Mechanism and
1740 Return Address Signing by default for AArch64
1743 --enable-fix-cortex-a53-835769
1744 enable workaround for AArch64 Cortex-A53 erratum
1745 835769 by default
1746 --disable-fix-cortex-a53-835769
1747 disable workaround for AArch64 Cortex-A53 erratum
1748 835769 by default
1751 --enable-fix-cortex-a53-843419
1752 enable workaround for AArch64 Cortex-A53 erratum
1753 843419 by default
1754 --disable-fix-cortex-a53-843419
1755 disable workaround for AArch64 Cortex-A53 erratum
1756 843419 by default
1758 --enable-gnu-unique-object
1759 enable the use of the @gnu_unique_object ELF
1760 extension on glibc systems
1761 --enable-linker-build-id
1762 compiler will always pass --build-id to linker
1763 --enable-libssp enable linking against libssp
1764 --enable-default-ssp enable Stack Smashing Protection as default
1765 --enable-maintainer-mode
1766 enable make rules and dependencies not useful (and
1767 sometimes confusing) to the casual installer
1768 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1769 thrashing on the build machine
1770 --enable-version-specific-runtime-libs
1771 specify that runtime libraries should be installed
1772 in a compiler-specific directory
1773 --enable-plugin enable plugin support
1774 --enable-host-shared build host code as shared libraries
1775 --disable-libquadmath-support
1776 disable libquadmath support for Fortran
1777 --enable-default-pie enable Position Independent Executable as default
1778 --enable-cet enable Intel CET in host libraries [default=auto]
1780 Optional Packages:
1781 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1782 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1783 --with-build-libsubdir=DIR Directory where to find libraries for build system
1784 --with-local-prefix=DIR specifies directory to put local include
1785 --with-native-system-header-dir=dir
1786 use dir as the directory to look for standard
1787 system header files in. Defaults to /usr/include.
1788 --with-build-sysroot=sysroot
1789 use sysroot as the system root during the build
1790 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1791 --with-gxx-include-dir=DIR
1792 specifies directory to put g++ header files
1793 --with-cpp-install-dir=DIR
1794 install the user visible C preprocessor in DIR
1795 (relative to PREFIX) as well as PREFIX/bin
1796 --with-gnu-ld arrange to work with GNU ld
1797 --with-ld arrange to use the specified ld (full pathname)
1798 --with-demangler-in-ld try to use demangler in GNU ld
1799 --with-gnu-as arrange to work with GNU as
1800 --with-as arrange to use the specified as (full pathname)
1801 --with-stabs arrange to use stabs instead of host debug format
1802 --with-stack-clash-protection-guard-size=size
1803 Set the default stack clash protection guard size
1804 for specific targets as a power of two in bytes.
1805 --with-dwarf2 force the default debug format to be DWARF 2
1806 --with-specs=SPECS add SPECS to driver command-line processing
1807 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1808 --with-bugurl=URL Direct users to URL to report a bug
1809 --with-documentation-root-url=URL
1810 Root for documentation URLs
1811 --with-changes-root-url=URL
1812 Root for GCC changes URLs
1813 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1814 --with-zstd=PATH specify prefix directory for installed zstd library.
1815 Equivalent to --with-zstd-include=PATH/include plus
1816 --with-zstd-lib=PATH/lib
1817 --with-zstd-include=PATH
1818 specify directory for installed zstd include files
1819 --with-zstd-lib=PATH specify directory for the installed zstd library
1820 --with-gnu-ld assume the C compiler uses GNU ld default=no
1821 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1822 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1823 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1824 --with-gcc-major-version-only
1825 use only GCC major number in filesystem paths
1826 --with-pic try to use only PIC/non-PIC objects [default=use
1827 both]
1828 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1829 --with-plugin-ld=[ARG] specify the plugin linker
1830 --with-glibc-version=M.N
1831 assume GCC used with glibc version M.N or later
1832 --with-long-double-128 use 128-bit long double by default
1833 --with-long-double-format={ieee,ibm}
1834 Specify whether PowerPC long double uses IEEE or IBM format
1836 --with-gc={page,zone} this option is not supported anymore. It used to
1837 choose the garbage collection mechanism to use with
1838 the compiler
1839 --with-system-zlib use installed libz
1840 --with-linker-hash-style={sysv,gnu,both}
1841 specify the linker hash style
1842 --with-diagnostics-color={never,auto,auto-if-env,always}
1843 specify the default of -fdiagnostics-color option
1844 auto-if-env stands for -fdiagnostics-color=auto if
1845 GCC_COLOR environment variable is present and
1846 -fdiagnostics-color=never otherwise
1847 --with-diagnostics-urls={never,auto,auto-if-env,always}
1848 specify the default of -fdiagnostics-urls option
1849 auto-if-env stands for -fdiagnostics-urls=auto if
1850 GCC_URLS or TERM_URLS environment variable is
1851 present and -fdiagnostics-urls=never otherwise
1853 Some influential environment variables:
1854 CC C compiler command
1855 CFLAGS C compiler flags
1856 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1857 nonstandard directory <lib dir>
1858 LIBS libraries to pass to the linker, e.g. -l<library>
1859 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1860 you have headers in a nonstandard directory <include dir>
1861 CXX C++ compiler command
1862 CXXFLAGS C++ compiler flags
1863 CXXCPP C++ preprocessor
1864 CPP C preprocessor
1865 GMPLIBS How to link GMP
1866 GMPINC How to find GMP include files
1867 ISLLIBS How to link isl
1868 ISLINC How to find isl include files
1870 Use these variables to override the choices made by `configure' or to help
1871 it to find libraries and programs with nonstandard names/locations.
1873 Report bugs to the package provider.
1874 _ACEOF
1875 ac_status=$?
1878 if test "$ac_init_help" = "recursive"; then
1879 # If there are subdirs, report their specific --help.
1880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1881 test -d "$ac_dir" ||
1882 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1883 continue
1884 ac_builddir=.
1886 case "$ac_dir" in
1887 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1889 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1890 # A ".." for each directory in $ac_dir_suffix.
1891 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1892 case $ac_top_builddir_sub in
1893 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1894 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1895 esac ;;
1896 esac
1897 ac_abs_top_builddir=$ac_pwd
1898 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1899 # for backward compatibility:
1900 ac_top_builddir=$ac_top_build_prefix
1902 case $srcdir in
1903 .) # We are building in place.
1904 ac_srcdir=.
1905 ac_top_srcdir=$ac_top_builddir_sub
1906 ac_abs_top_srcdir=$ac_pwd ;;
1907 [\\/]* | ?:[\\/]* ) # Absolute name.
1908 ac_srcdir=$srcdir$ac_dir_suffix;
1909 ac_top_srcdir=$srcdir
1910 ac_abs_top_srcdir=$srcdir ;;
1911 *) # Relative name.
1912 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1913 ac_top_srcdir=$ac_top_build_prefix$srcdir
1914 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1915 esac
1916 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1918 cd "$ac_dir" || { ac_status=$?; continue; }
1919 # Check for guested configure.
1920 if test -f "$ac_srcdir/configure.gnu"; then
1921 echo &&
1922 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1923 elif test -f "$ac_srcdir/configure"; then
1924 echo &&
1925 $SHELL "$ac_srcdir/configure" --help=recursive
1926 else
1927 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1928 fi || ac_status=$?
1929 cd "$ac_pwd" || { ac_status=$?; break; }
1930 done
1933 test -n "$ac_init_help" && exit $ac_status
1934 if $ac_init_version; then
1935 cat <<\_ACEOF
1936 configure
1937 generated by GNU Autoconf 2.69
1939 Copyright (C) 2012 Free Software Foundation, Inc.
1940 This configure script is free software; the Free Software Foundation
1941 gives unlimited permission to copy, distribute and modify it.
1942 _ACEOF
1943 exit
1946 ## ------------------------ ##
1947 ## Autoconf initialization. ##
1948 ## ------------------------ ##
1950 # ac_fn_c_try_compile LINENO
1951 # --------------------------
1952 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_c_try_compile ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 rm -f conftest.$ac_objext
1957 if { { ac_try="$ac_compile"
1958 case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_compile") 2>conftest.err
1965 ac_status=$?
1966 if test -s conftest.err; then
1967 grep -v '^ *+' conftest.err >conftest.er1
1968 cat conftest.er1 >&5
1969 mv -f conftest.er1 conftest.err
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && {
1973 test -z "$ac_c_werror_flag" ||
1974 test ! -s conftest.err
1975 } && test -s conftest.$ac_objext; then :
1976 ac_retval=0
1977 else
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1981 ac_retval=1
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 as_fn_set_status $ac_retval
1986 } # ac_fn_c_try_compile
1988 # ac_fn_cxx_try_compile LINENO
1989 # ----------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_cxx_try_compile ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext
1995 if { { ac_try="$ac_compile"
1996 case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_compile") 2>conftest.err
2003 ac_status=$?
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_cxx_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest.$ac_objext; then :
2014 ac_retval=0
2015 else
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2019 ac_retval=1
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
2024 } # ac_fn_cxx_try_compile
2026 # ac_fn_cxx_try_cpp LINENO
2027 # ------------------------
2028 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_cxx_try_cpp ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 if { { ac_try="$ac_cpp conftest.$ac_ext"
2033 case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2040 ac_status=$?
2041 if test -s conftest.err; then
2042 grep -v '^ *+' conftest.err >conftest.er1
2043 cat conftest.er1 >&5
2044 mv -f conftest.er1 conftest.err
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } > conftest.i && {
2048 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2049 test ! -s conftest.err
2050 }; then :
2051 ac_retval=0
2052 else
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2056 ac_retval=1
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 as_fn_set_status $ac_retval
2061 } # ac_fn_cxx_try_cpp
2063 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2064 # ---------------------------------------------------------
2065 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2066 # the include files in INCLUDES and setting the cache variable VAR
2067 # accordingly.
2068 ac_fn_cxx_check_header_mongrel ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if eval \${$3+:} false; then :
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2077 eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 else
2081 # Is the header compilable?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2083 $as_echo_n "checking $2 usability... " >&6; }
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2087 #include <$2>
2088 _ACEOF
2089 if ac_fn_cxx_try_compile "$LINENO"; then :
2090 ac_header_compiler=yes
2091 else
2092 ac_header_compiler=no
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2096 $as_echo "$ac_header_compiler" >&6; }
2098 # Is the header present?
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2100 $as_echo_n "checking $2 presence... " >&6; }
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 #include <$2>
2104 _ACEOF
2105 if ac_fn_cxx_try_cpp "$LINENO"; then :
2106 ac_header_preproc=yes
2107 else
2108 ac_header_preproc=no
2110 rm -f conftest.err conftest.i conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2112 $as_echo "$ac_header_preproc" >&6; }
2114 # So? What about this header?
2115 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2116 yes:no: )
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2118 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2122 no:yes:* )
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2124 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2126 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2128 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2130 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2134 esac
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136 $as_echo_n "checking for $2... " >&6; }
2137 if eval \${$3+:} false; then :
2138 $as_echo_n "(cached) " >&6
2139 else
2140 eval "$3=\$ac_header_compiler"
2142 eval ac_res=\$$3
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 } # ac_fn_cxx_check_header_mongrel
2150 # ac_fn_cxx_try_run LINENO
2151 # ------------------------
2152 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2153 # that executables *can* be run.
2154 ac_fn_cxx_try_run ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if { { ac_try="$ac_link"
2158 case "(($ac_try" in
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2161 esac
2162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163 $as_echo "$ac_try_echo"; } >&5
2164 (eval "$ac_link") 2>&5
2165 ac_status=$?
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2168 { { case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2171 esac
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_try") 2>&5
2175 ac_status=$?
2176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2177 test $ac_status = 0; }; }; then :
2178 ac_retval=0
2179 else
2180 $as_echo "$as_me: program exited with status $ac_status" >&5
2181 $as_echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2184 ac_retval=$ac_status
2186 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 as_fn_set_status $ac_retval
2190 } # ac_fn_cxx_try_run
2192 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2193 # ---------------------------------------------------------
2194 # Tests whether HEADER exists and can be compiled using the include files in
2195 # INCLUDES, setting the cache variable VAR accordingly.
2196 ac_fn_cxx_check_header_compile ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2200 $as_echo_n "checking for $2... " >&6; }
2201 if eval \${$3+:} false; then :
2202 $as_echo_n "(cached) " >&6
2203 else
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2207 #include <$2>
2208 _ACEOF
2209 if ac_fn_cxx_try_compile "$LINENO"; then :
2210 eval "$3=yes"
2211 else
2212 eval "$3=no"
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 eval ac_res=\$$3
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218 $as_echo "$ac_res" >&6; }
2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 } # ac_fn_cxx_check_header_compile
2223 # ac_fn_c_try_cpp LINENO
2224 # ----------------------
2225 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2226 ac_fn_c_try_cpp ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 if { { ac_try="$ac_cpp conftest.$ac_ext"
2230 case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2233 esac
2234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2235 $as_echo "$ac_try_echo"; } >&5
2236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2237 ac_status=$?
2238 if test -s conftest.err; then
2239 grep -v '^ *+' conftest.err >conftest.er1
2240 cat conftest.er1 >&5
2241 mv -f conftest.er1 conftest.err
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } > conftest.i && {
2245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2246 test ! -s conftest.err
2247 }; then :
2248 ac_retval=0
2249 else
2250 $as_echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2253 ac_retval=1
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256 as_fn_set_status $ac_retval
2258 } # ac_fn_c_try_cpp
2260 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2261 # ----------------------------------------------
2262 # Tries to find the compile-time value of EXPR in a program that includes
2263 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2264 # computed
2265 ac_fn_cxx_compute_int ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 if test "$cross_compiling" = yes; then
2269 # Depending upon the size, compute the lo and hi bounds.
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2274 main ()
2276 static int test_array [1 - 2 * !(($2) >= 0)];
2277 test_array [0] = 0;
2278 return test_array [0];
2281 return 0;
2283 _ACEOF
2284 if ac_fn_cxx_try_compile "$LINENO"; then :
2285 ac_lo=0 ac_mid=0
2286 while :; do
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2291 main ()
2293 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2294 test_array [0] = 0;
2295 return test_array [0];
2298 return 0;
2300 _ACEOF
2301 if ac_fn_cxx_try_compile "$LINENO"; then :
2302 ac_hi=$ac_mid; break
2303 else
2304 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2305 if test $ac_lo -le $ac_mid; then
2306 ac_lo= ac_hi=
2307 break
2309 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 done
2313 else
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2318 main ()
2320 static int test_array [1 - 2 * !(($2) < 0)];
2321 test_array [0] = 0;
2322 return test_array [0];
2325 return 0;
2327 _ACEOF
2328 if ac_fn_cxx_try_compile "$LINENO"; then :
2329 ac_hi=-1 ac_mid=-1
2330 while :; do
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2335 main ()
2337 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2338 test_array [0] = 0;
2339 return test_array [0];
2342 return 0;
2344 _ACEOF
2345 if ac_fn_cxx_try_compile "$LINENO"; then :
2346 ac_lo=$ac_mid; break
2347 else
2348 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2349 if test $ac_mid -le $ac_hi; then
2350 ac_lo= ac_hi=
2351 break
2353 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 done
2357 else
2358 ac_lo= ac_hi=
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 # Binary search between lo and hi bounds.
2364 while test "x$ac_lo" != "x$ac_hi"; do
2365 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2370 main ()
2372 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2373 test_array [0] = 0;
2374 return test_array [0];
2377 return 0;
2379 _ACEOF
2380 if ac_fn_cxx_try_compile "$LINENO"; then :
2381 ac_hi=$ac_mid
2382 else
2383 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 done
2387 case $ac_lo in #((
2388 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2389 '') ac_retval=1 ;;
2390 esac
2391 else
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2395 static long int longval () { return $2; }
2396 static unsigned long int ulongval () { return $2; }
2397 #include <stdio.h>
2398 #include <stdlib.h>
2400 main ()
2403 FILE *f = fopen ("conftest.val", "w");
2404 if (! f)
2405 return 1;
2406 if (($2) < 0)
2408 long int i = longval ();
2409 if (i != ($2))
2410 return 1;
2411 fprintf (f, "%ld", i);
2413 else
2415 unsigned long int i = ulongval ();
2416 if (i != ($2))
2417 return 1;
2418 fprintf (f, "%lu", i);
2420 /* Do not output a trailing newline, as this causes \r\n confusion
2421 on some platforms. */
2422 return ferror (f) || fclose (f) != 0;
2425 return 0;
2427 _ACEOF
2428 if ac_fn_cxx_try_run "$LINENO"; then :
2429 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2430 else
2431 ac_retval=1
2433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2434 conftest.$ac_objext conftest.beam conftest.$ac_ext
2435 rm -f conftest.val
2438 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2439 as_fn_set_status $ac_retval
2441 } # ac_fn_cxx_compute_int
2443 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2444 # ---------------------------------------------
2445 # Tests whether TYPE exists after having included INCLUDES, setting cache
2446 # variable VAR accordingly.
2447 ac_fn_cxx_check_type ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451 $as_echo_n "checking for $2... " >&6; }
2452 if eval \${$3+:} false; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 eval "$3=no"
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2460 main ()
2462 if (sizeof ($2))
2463 return 0;
2465 return 0;
2467 _ACEOF
2468 if ac_fn_cxx_try_compile "$LINENO"; then :
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2473 main ()
2475 if (sizeof (($2)))
2476 return 0;
2478 return 0;
2480 _ACEOF
2481 if ac_fn_cxx_try_compile "$LINENO"; then :
2483 else
2484 eval "$3=yes"
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 eval ac_res=\$$3
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492 $as_echo "$ac_res" >&6; }
2493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2495 } # ac_fn_cxx_check_type
2497 # ac_fn_c_find_intX_t LINENO BITS VAR
2498 # -----------------------------------
2499 # Finds a signed integer type with width BITS, setting cache variable VAR
2500 # accordingly.
2501 ac_fn_c_find_intX_t ()
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2505 $as_echo_n "checking for int$2_t... " >&6; }
2506 if eval \${$3+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 eval "$3=no"
2510 # Order is important - never check a type that is potentially smaller
2511 # than half of the expected target width.
2512 for ac_type in int$2_t 'int' 'long int' \
2513 'long long int' 'short int' 'signed char'; do
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 $ac_includes_default
2517 enum { N = $2 / 2 - 1 };
2519 main ()
2521 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2522 test_array [0] = 0;
2523 return test_array [0];
2526 return 0;
2528 _ACEOF
2529 if ac_fn_cxx_try_compile "$LINENO"; then :
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2532 $ac_includes_default
2533 enum { N = $2 / 2 - 1 };
2535 main ()
2537 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2538 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2539 test_array [0] = 0;
2540 return test_array [0];
2543 return 0;
2545 _ACEOF
2546 if ac_fn_cxx_try_compile "$LINENO"; then :
2548 else
2549 case $ac_type in #(
2550 int$2_t) :
2551 eval "$3=yes" ;; #(
2552 *) :
2553 eval "$3=\$ac_type" ;;
2554 esac
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 if eval test \"x\$"$3"\" = x"no"; then :
2561 else
2562 break
2564 done
2566 eval ac_res=\$$3
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2568 $as_echo "$ac_res" >&6; }
2569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571 } # ac_fn_c_find_intX_t
2573 # ac_fn_cxx_try_link LINENO
2574 # -------------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_cxx_try_link ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { { ac_try="$ac_link"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link") 2>conftest.err
2588 ac_status=$?
2589 if test -s conftest.err; then
2590 grep -v '^ *+' conftest.err >conftest.er1
2591 cat conftest.er1 >&5
2592 mv -f conftest.er1 conftest.err
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; } && {
2596 test -z "$ac_cxx_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest$ac_exeext && {
2599 test "$cross_compiling" = yes ||
2600 test -x conftest$ac_exeext
2601 }; then :
2602 ac_retval=0
2603 else
2604 $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2607 ac_retval=1
2609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611 # interfere with the next link command; also delete a directory that is
2612 # left behind by Apple's compiler. We do this before executing the actions.
2613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2615 as_fn_set_status $ac_retval
2617 } # ac_fn_cxx_try_link
2619 # ac_fn_c_find_uintX_t LINENO BITS VAR
2620 # ------------------------------------
2621 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2622 # accordingly.
2623 ac_fn_c_find_uintX_t ()
2625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2627 $as_echo_n "checking for uint$2_t... " >&6; }
2628 if eval \${$3+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 eval "$3=no"
2632 # Order is important - never check a type that is potentially smaller
2633 # than half of the expected target width.
2634 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2635 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2638 $ac_includes_default
2640 main ()
2642 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2643 test_array [0] = 0;
2644 return test_array [0];
2647 return 0;
2649 _ACEOF
2650 if ac_fn_cxx_try_compile "$LINENO"; then :
2651 case $ac_type in #(
2652 uint$2_t) :
2653 eval "$3=yes" ;; #(
2654 *) :
2655 eval "$3=\$ac_type" ;;
2656 esac
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 if eval test \"x\$"$3"\" = x"no"; then :
2661 else
2662 break
2664 done
2666 eval ac_res=\$$3
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671 } # ac_fn_c_find_uintX_t
2673 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2674 # ------------------------------------------------
2675 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2676 ac_fn_cxx_check_header_preproc ()
2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2680 $as_echo_n "checking for $2... " >&6; }
2681 if eval \${$3+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h. */
2686 #include <$2>
2687 _ACEOF
2688 if ac_fn_cxx_try_cpp "$LINENO"; then :
2689 eval "$3=yes"
2690 else
2691 eval "$3=no"
2693 rm -f conftest.err conftest.i conftest.$ac_ext
2695 eval ac_res=\$$3
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 $as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2700 } # ac_fn_cxx_check_header_preproc
2702 # ac_fn_cxx_check_func LINENO FUNC VAR
2703 # ------------------------------------
2704 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2705 ac_fn_cxx_check_func ()
2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2709 $as_echo_n "checking for $2... " >&6; }
2710 if eval \${$3+:} false; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2715 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2717 #define $2 innocuous_$2
2719 /* System header to define __stub macros and hopefully few prototypes,
2720 which can conflict with char $2 (); below.
2721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2722 <limits.h> exists even on freestanding compilers. */
2724 #ifdef __STDC__
2725 # include <limits.h>
2726 #else
2727 # include <assert.h>
2728 #endif
2730 #undef $2
2732 /* Override any GCC internal prototype to avoid an error.
2733 Use char because int might match the return type of a GCC
2734 builtin and then its argument prototype would still apply. */
2735 #ifdef __cplusplus
2736 extern "C"
2737 #endif
2738 char $2 ();
2739 /* The GNU C library defines this for functions which it implements
2740 to always fail with ENOSYS. Some functions are actually named
2741 something starting with __ and the normal name is an alias. */
2742 #if defined __stub_$2 || defined __stub___$2
2743 choke me
2744 #endif
2747 main ()
2749 return $2 ();
2751 return 0;
2753 _ACEOF
2754 if ac_fn_cxx_try_link "$LINENO"; then :
2755 eval "$3=yes"
2756 else
2757 eval "$3=no"
2759 rm -f core conftest.err conftest.$ac_objext \
2760 conftest$ac_exeext conftest.$ac_ext
2762 eval ac_res=\$$3
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2764 $as_echo "$ac_res" >&6; }
2765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2767 } # ac_fn_cxx_check_func
2769 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2770 # -----------------------------------------------
2771 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2772 # accordingly.
2773 ac_fn_cxx_check_decl ()
2775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2776 as_decl_name=`echo $2|sed 's/ *(.*//'`
2777 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2779 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2780 if eval \${$3+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784 /* end confdefs.h. */
2787 main ()
2789 #ifndef $as_decl_name
2790 #ifdef __cplusplus
2791 (void) $as_decl_use;
2792 #else
2793 (void) $as_decl_name;
2794 #endif
2795 #endif
2798 return 0;
2800 _ACEOF
2801 if ac_fn_cxx_try_compile "$LINENO"; then :
2802 eval "$3=yes"
2803 else
2804 eval "$3=no"
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 eval ac_res=\$$3
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2810 $as_echo "$ac_res" >&6; }
2811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2813 } # ac_fn_cxx_check_decl
2815 # ac_fn_c_try_link LINENO
2816 # -----------------------
2817 # Try to link conftest.$ac_ext, and return whether this succeeded.
2818 ac_fn_c_try_link ()
2820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2821 rm -f conftest.$ac_objext conftest$ac_exeext
2822 if { { ac_try="$ac_link"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2828 $as_echo "$ac_try_echo"; } >&5
2829 (eval "$ac_link") 2>conftest.err
2830 ac_status=$?
2831 if test -s conftest.err; then
2832 grep -v '^ *+' conftest.err >conftest.er1
2833 cat conftest.er1 >&5
2834 mv -f conftest.er1 conftest.err
2836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2837 test $ac_status = 0; } && {
2838 test -z "$ac_c_werror_flag" ||
2839 test ! -s conftest.err
2840 } && test -s conftest$ac_exeext && {
2841 test "$cross_compiling" = yes ||
2842 test -x conftest$ac_exeext
2843 }; then :
2844 ac_retval=0
2845 else
2846 $as_echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2849 ac_retval=1
2851 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2852 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2853 # interfere with the next link command; also delete a directory that is
2854 # left behind by Apple's compiler. We do this before executing the actions.
2855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2857 as_fn_set_status $ac_retval
2859 } # ac_fn_c_try_link
2861 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2862 # ----------------------------------------------
2863 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2864 ac_fn_c_check_header_preproc ()
2866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2868 $as_echo_n "checking for $2... " >&6; }
2869 if eval \${$3+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h. */
2874 #include <$2>
2875 _ACEOF
2876 if ac_fn_c_try_cpp "$LINENO"; then :
2877 eval "$3=yes"
2878 else
2879 eval "$3=no"
2881 rm -f conftest.err conftest.i conftest.$ac_ext
2883 eval ac_res=\$$3
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2885 $as_echo "$ac_res" >&6; }
2886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2888 } # ac_fn_c_check_header_preproc
2890 # ac_fn_c_check_func LINENO FUNC VAR
2891 # ----------------------------------
2892 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2893 ac_fn_c_check_func ()
2895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2897 $as_echo_n "checking for $2... " >&6; }
2898 if eval \${$3+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h. */
2903 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2905 #define $2 innocuous_$2
2907 /* System header to define __stub macros and hopefully few prototypes,
2908 which can conflict with char $2 (); below.
2909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2910 <limits.h> exists even on freestanding compilers. */
2912 #ifdef __STDC__
2913 # include <limits.h>
2914 #else
2915 # include <assert.h>
2916 #endif
2918 #undef $2
2920 /* Override any GCC internal prototype to avoid an error.
2921 Use char because int might match the return type of a GCC
2922 builtin and then its argument prototype would still apply. */
2923 #ifdef __cplusplus
2924 extern "C"
2925 #endif
2926 char $2 ();
2927 /* The GNU C library defines this for functions which it implements
2928 to always fail with ENOSYS. Some functions are actually named
2929 something starting with __ and the normal name is an alias. */
2930 #if defined __stub_$2 || defined __stub___$2
2931 choke me
2932 #endif
2935 main ()
2937 return $2 ();
2939 return 0;
2941 _ACEOF
2942 if ac_fn_c_try_link "$LINENO"; then :
2943 eval "$3=yes"
2944 else
2945 eval "$3=no"
2947 rm -f core conftest.err conftest.$ac_objext \
2948 conftest$ac_exeext conftest.$ac_ext
2950 eval ac_res=\$$3
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2952 $as_echo "$ac_res" >&6; }
2953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2955 } # ac_fn_c_check_func
2956 cat >config.log <<_ACEOF
2957 This file contains any messages produced by compilers while
2958 running configure, to aid debugging if configure makes a mistake.
2960 It was created by $as_me, which was
2961 generated by GNU Autoconf 2.69. Invocation command line was
2963 $ $0 $@
2965 _ACEOF
2966 exec 5>>config.log
2968 cat <<_ASUNAME
2969 ## --------- ##
2970 ## Platform. ##
2971 ## --------- ##
2973 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2974 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2975 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2976 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2977 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2979 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2980 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2982 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2983 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2984 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2985 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2986 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2987 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2988 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2990 _ASUNAME
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 $as_echo "PATH: $as_dir"
2998 done
2999 IFS=$as_save_IFS
3001 } >&5
3003 cat >&5 <<_ACEOF
3006 ## ----------- ##
3007 ## Core tests. ##
3008 ## ----------- ##
3010 _ACEOF
3013 # Keep a trace of the command line.
3014 # Strip out --no-create and --no-recursion so they do not pile up.
3015 # Strip out --silent because we don't want to record it for future runs.
3016 # Also quote any args containing shell meta-characters.
3017 # Make two passes to allow for proper duplicate-argument suppression.
3018 ac_configure_args=
3019 ac_configure_args0=
3020 ac_configure_args1=
3021 ac_must_keep_next=false
3022 for ac_pass in 1 2
3024 for ac_arg
3026 case $ac_arg in
3027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3029 | -silent | --silent | --silen | --sile | --sil)
3030 continue ;;
3031 *\'*)
3032 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3033 esac
3034 case $ac_pass in
3035 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3037 as_fn_append ac_configure_args1 " '$ac_arg'"
3038 if test $ac_must_keep_next = true; then
3039 ac_must_keep_next=false # Got value, back to normal.
3040 else
3041 case $ac_arg in
3042 *=* | --config-cache | -C | -disable-* | --disable-* \
3043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3045 | -with-* | --with-* | -without-* | --without-* | --x)
3046 case "$ac_configure_args0 " in
3047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3048 esac
3050 -* ) ac_must_keep_next=true ;;
3051 esac
3053 as_fn_append ac_configure_args " '$ac_arg'"
3055 esac
3056 done
3057 done
3058 { ac_configure_args0=; unset ac_configure_args0;}
3059 { ac_configure_args1=; unset ac_configure_args1;}
3061 # When interrupted or exit'd, cleanup temporary files, and complete
3062 # config.log. We remove comments because anyway the quotes in there
3063 # would cause problems or look ugly.
3064 # WARNING: Use '\'' to represent an apostrophe within the trap.
3065 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3066 trap 'exit_status=$?
3067 # Save into config.log some information that might help in debugging.
3069 echo
3071 $as_echo "## ---------------- ##
3072 ## Cache variables. ##
3073 ## ---------------- ##"
3074 echo
3075 # The following way of writing the cache mishandles newlines in values,
3077 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3078 eval ac_val=\$$ac_var
3079 case $ac_val in #(
3080 *${as_nl}*)
3081 case $ac_var in #(
3082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3084 esac
3085 case $ac_var in #(
3086 _ | IFS | as_nl) ;; #(
3087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3088 *) { eval $ac_var=; unset $ac_var;} ;;
3089 esac ;;
3090 esac
3091 done
3092 (set) 2>&1 |
3093 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3094 *${as_nl}ac_space=\ *)
3095 sed -n \
3096 "s/'\''/'\''\\\\'\'''\''/g;
3097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3098 ;; #(
3100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3102 esac |
3103 sort
3105 echo
3107 $as_echo "## ----------------- ##
3108 ## Output variables. ##
3109 ## ----------------- ##"
3110 echo
3111 for ac_var in $ac_subst_vars
3113 eval ac_val=\$$ac_var
3114 case $ac_val in
3115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3116 esac
3117 $as_echo "$ac_var='\''$ac_val'\''"
3118 done | sort
3119 echo
3121 if test -n "$ac_subst_files"; then
3122 $as_echo "## ------------------- ##
3123 ## File substitutions. ##
3124 ## ------------------- ##"
3125 echo
3126 for ac_var in $ac_subst_files
3128 eval ac_val=\$$ac_var
3129 case $ac_val in
3130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3131 esac
3132 $as_echo "$ac_var='\''$ac_val'\''"
3133 done | sort
3134 echo
3137 if test -s confdefs.h; then
3138 $as_echo "## ----------- ##
3139 ## confdefs.h. ##
3140 ## ----------- ##"
3141 echo
3142 cat confdefs.h
3143 echo
3145 test "$ac_signal" != 0 &&
3146 $as_echo "$as_me: caught signal $ac_signal"
3147 $as_echo "$as_me: exit $exit_status"
3148 } >&5
3149 rm -f core *.core core.conftest.* &&
3150 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3151 exit $exit_status
3153 for ac_signal in 1 2 13 15; do
3154 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3155 done
3156 ac_signal=0
3158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3159 rm -f -r conftest* confdefs.h
3161 $as_echo "/* confdefs.h */" > confdefs.h
3163 # Predefined preprocessor variables.
3165 cat >>confdefs.h <<_ACEOF
3166 #define PACKAGE_NAME "$PACKAGE_NAME"
3167 _ACEOF
3169 cat >>confdefs.h <<_ACEOF
3170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3171 _ACEOF
3173 cat >>confdefs.h <<_ACEOF
3174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3175 _ACEOF
3177 cat >>confdefs.h <<_ACEOF
3178 #define PACKAGE_STRING "$PACKAGE_STRING"
3179 _ACEOF
3181 cat >>confdefs.h <<_ACEOF
3182 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3183 _ACEOF
3185 cat >>confdefs.h <<_ACEOF
3186 #define PACKAGE_URL "$PACKAGE_URL"
3187 _ACEOF
3190 # Let the site file select an alternate cache file if it wants to.
3191 # Prefer an explicitly selected file to automatically selected ones.
3192 ac_site_file1=NONE
3193 ac_site_file2=NONE
3194 if test -n "$CONFIG_SITE"; then
3195 # We do not want a PATH search for config.site.
3196 case $CONFIG_SITE in #((
3197 -*) ac_site_file1=./$CONFIG_SITE;;
3198 */*) ac_site_file1=$CONFIG_SITE;;
3199 *) ac_site_file1=./$CONFIG_SITE;;
3200 esac
3201 elif test "x$prefix" != xNONE; then
3202 ac_site_file1=$prefix/share/config.site
3203 ac_site_file2=$prefix/etc/config.site
3204 else
3205 ac_site_file1=$ac_default_prefix/share/config.site
3206 ac_site_file2=$ac_default_prefix/etc/config.site
3208 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3210 test "x$ac_site_file" = xNONE && continue
3211 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3213 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3214 sed 's/^/| /' "$ac_site_file" >&5
3215 . "$ac_site_file" \
3216 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error $? "failed to load site script $ac_site_file
3219 See \`config.log' for more details" "$LINENO" 5; }
3221 done
3223 if test -r "$cache_file"; then
3224 # Some versions of bash will fail to source /dev/null (special files
3225 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3226 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3228 $as_echo "$as_me: loading cache $cache_file" >&6;}
3229 case $cache_file in
3230 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3231 *) . "./$cache_file";;
3232 esac
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3236 $as_echo "$as_me: creating cache $cache_file" >&6;}
3237 >$cache_file
3240 # Check that the precious variables saved in the cache have kept the same
3241 # value.
3242 ac_cache_corrupted=false
3243 for ac_var in $ac_precious_vars; do
3244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3245 eval ac_new_set=\$ac_env_${ac_var}_set
3246 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3247 eval ac_new_val=\$ac_env_${ac_var}_value
3248 case $ac_old_set,$ac_new_set in
3249 set,)
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3251 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3252 ac_cache_corrupted=: ;;
3253 ,set)
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3255 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3256 ac_cache_corrupted=: ;;
3257 ,);;
3259 if test "x$ac_old_val" != "x$ac_new_val"; then
3260 # differences in whitespace do not lead to failure.
3261 ac_old_val_w=`echo x $ac_old_val`
3262 ac_new_val_w=`echo x $ac_new_val`
3263 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3265 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3266 ac_cache_corrupted=:
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3269 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3270 eval $ac_var=\$ac_old_val
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3273 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3275 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3276 fi;;
3277 esac
3278 # Pass precious variables to config.status.
3279 if test "$ac_new_set" = set; then
3280 case $ac_new_val in
3281 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3282 *) ac_arg=$ac_var=$ac_new_val ;;
3283 esac
3284 case " $ac_configure_args " in
3285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3286 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3287 esac
3289 done
3290 if $ac_cache_corrupted; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3294 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3295 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3297 ## -------------------- ##
3298 ## Main body of script. ##
3299 ## -------------------- ##
3301 ac_ext=c
3302 ac_cpp='$CPP $CPPFLAGS'
3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3315 gcc_version=`cat $srcdir/BASE-VER`
3317 # Determine the host, build, and target systems
3318 ac_aux_dir=
3319 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3320 if test -f "$ac_dir/install-sh"; then
3321 ac_aux_dir=$ac_dir
3322 ac_install_sh="$ac_aux_dir/install-sh -c"
3323 break
3324 elif test -f "$ac_dir/install.sh"; then
3325 ac_aux_dir=$ac_dir
3326 ac_install_sh="$ac_aux_dir/install.sh -c"
3327 break
3328 elif test -f "$ac_dir/shtool"; then
3329 ac_aux_dir=$ac_dir
3330 ac_install_sh="$ac_aux_dir/shtool install -c"
3331 break
3333 done
3334 if test -z "$ac_aux_dir"; then
3335 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3338 # These three variables are undocumented and unsupported,
3339 # and are intended to be withdrawn in a future Autoconf release.
3340 # They can cause serious problems if a builder's source tree is in a directory
3341 # whose full name contains unusual characters.
3342 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3343 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3344 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3347 # Make sure we can run config.sub.
3348 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3349 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3352 $as_echo_n "checking build system type... " >&6; }
3353 if ${ac_cv_build+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 ac_build_alias=$build_alias
3357 test "x$ac_build_alias" = x &&
3358 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3359 test "x$ac_build_alias" = x &&
3360 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3361 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3362 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3366 $as_echo "$ac_cv_build" >&6; }
3367 case $ac_cv_build in
3368 *-*-*) ;;
3369 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3370 esac
3371 build=$ac_cv_build
3372 ac_save_IFS=$IFS; IFS='-'
3373 set x $ac_cv_build
3374 shift
3375 build_cpu=$1
3376 build_vendor=$2
3377 shift; shift
3378 # Remember, the first character of IFS is used to create $*,
3379 # except with old shells:
3380 build_os=$*
3381 IFS=$ac_save_IFS
3382 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3386 $as_echo_n "checking host system type... " >&6; }
3387 if ${ac_cv_host+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test "x$host_alias" = x; then
3391 ac_cv_host=$ac_cv_build
3392 else
3393 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3394 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3399 $as_echo "$ac_cv_host" >&6; }
3400 case $ac_cv_host in
3401 *-*-*) ;;
3402 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3403 esac
3404 host=$ac_cv_host
3405 ac_save_IFS=$IFS; IFS='-'
3406 set x $ac_cv_host
3407 shift
3408 host_cpu=$1
3409 host_vendor=$2
3410 shift; shift
3411 # Remember, the first character of IFS is used to create $*,
3412 # except with old shells:
3413 host_os=$*
3414 IFS=$ac_save_IFS
3415 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3419 $as_echo_n "checking target system type... " >&6; }
3420 if ${ac_cv_target+:} false; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test "x$target_alias" = x; then
3424 ac_cv_target=$ac_cv_host
3425 else
3426 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3427 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3432 $as_echo "$ac_cv_target" >&6; }
3433 case $ac_cv_target in
3434 *-*-*) ;;
3435 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3436 esac
3437 target=$ac_cv_target
3438 ac_save_IFS=$IFS; IFS='-'
3439 set x $ac_cv_target
3440 shift
3441 target_cpu=$1
3442 target_vendor=$2
3443 shift; shift
3444 # Remember, the first character of IFS is used to create $*,
3445 # except with old shells:
3446 target_os=$*
3447 IFS=$ac_save_IFS
3448 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3451 # The aliases save the names the user supplied, while $host etc.
3452 # will get canonicalized.
3453 test -n "$target_alias" &&
3454 test "$program_prefix$program_suffix$program_transform_name" = \
3455 NONENONEs,x,x, &&
3456 program_prefix=${target_alias}-
3458 # Determine the noncanonical host name, for Ada.
3459 case ${build_alias} in
3460 "") build_noncanonical=${build} ;;
3461 *) build_noncanonical=${build_alias} ;;
3462 esac
3464 case ${host_alias} in
3465 "") host_noncanonical=${build_noncanonical} ;;
3466 *) host_noncanonical=${host_alias} ;;
3467 esac
3472 # Determine the noncanonical target name, for directory use.
3473 case ${target_alias} in
3474 "") target_noncanonical=${host_noncanonical} ;;
3475 *) target_noncanonical=${target_alias} ;;
3476 esac
3481 # Used for constructing correct paths for offload compilers.
3482 real_target_noncanonical=${target_noncanonical}
3483 accel_dir_suffix=
3485 # Determine the target- and build-specific subdirectories
3487 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3488 # have matching libraries, they should use host libraries: Makefile.tpl
3489 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3490 # However, they still use the build modules, because the corresponding
3491 # host modules (e.g. bison) are only built for the host when bootstrap
3492 # finishes. So:
3493 # - build_subdir is where we find build modules, and never changes.
3494 # - build_libsubdir is where we find build libraries, and can be overridden.
3496 # Prefix 'build-' so this never conflicts with target_subdir.
3497 build_subdir="build-${build_noncanonical}"
3499 # Check whether --with-build-libsubdir was given.
3500 if test "${with_build_libsubdir+set}" = set; then :
3501 withval=$with_build_libsubdir; build_libsubdir="$withval"
3502 else
3503 build_libsubdir="$build_subdir"
3506 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3507 if ( test $srcdir = . && test -d gcc ) \
3508 || test -d $srcdir/../host-${host_noncanonical}; then
3509 host_subdir="host-${host_noncanonical}"
3510 else
3511 host_subdir=.
3513 # No prefix.
3514 target_subdir=${target_noncanonical}
3517 # Set program_transform_name
3518 test "$program_prefix" != NONE &&
3519 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3520 # Use a double $ so make ignores it.
3521 test "$program_suffix" != NONE &&
3522 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3523 # Double any \ or $.
3524 # By default was `s,x,x', remove it if useless.
3525 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3526 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3529 # Check for bogus environment variables.
3530 # Test if LIBRARY_PATH contains the notation for the current directory
3531 # since this would lead to problems installing/building glibc.
3532 # LIBRARY_PATH contains the current directory if one of the following
3533 # is true:
3534 # - one of the terminals (":" and ";") is the first or last sign
3535 # - two terminals occur directly after each other
3536 # - the path contains an element with a dot in it
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3538 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3539 case ${LIBRARY_PATH} in
3540 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3541 library_path_setting="contains current directory"
3544 library_path_setting="ok"
3546 esac
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3548 $as_echo "$library_path_setting" >&6; }
3549 if test "$library_path_setting" != "ok"; then
3550 as_fn_error $? "
3551 *** LIBRARY_PATH shouldn't contain the current directory when
3552 *** building gcc. Please change the environment variable
3553 *** and run configure again." "$LINENO" 5
3556 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3557 # since this would lead to problems installing/building glibc.
3558 # GCC_EXEC_PREFIX contains the current directory if one of the following
3559 # is true:
3560 # - one of the terminals (":" and ";") is the first or last sign
3561 # - two terminals occur directly after each other
3562 # - the path contains an element with a dot in it
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3564 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3565 case ${GCC_EXEC_PREFIX} in
3566 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3567 gcc_exec_prefix_setting="contains current directory"
3570 gcc_exec_prefix_setting="ok"
3572 esac
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3574 $as_echo "$gcc_exec_prefix_setting" >&6; }
3575 if test "$gcc_exec_prefix_setting" != "ok"; then
3576 as_fn_error $? "
3577 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3578 *** building gcc. Please change the environment variable
3579 *** and run configure again." "$LINENO" 5
3582 # -----------
3583 # Directories
3584 # -----------
3586 # Specify the local prefix
3587 local_prefix=
3589 # Check whether --with-local-prefix was given.
3590 if test "${with_local_prefix+set}" = set; then :
3591 withval=$with_local_prefix; case "${withval}" in
3592 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3593 no) ;;
3594 *) local_prefix=$with_local_prefix ;;
3595 esac
3599 # Default local prefix if it is empty
3600 if test x$local_prefix = x; then
3601 local_prefix=/usr/local
3605 # Check whether --with-native-system-header-dir was given.
3606 if test "${with_native_system_header_dir+set}" = set; then :
3607 withval=$with_native_system_header_dir;
3608 case ${with_native_system_header_dir} in
3609 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3610 /* | [A-Za-z]:[\\/]*) ;;
3611 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3612 esac
3613 configured_native_system_header_dir="${withval}"
3615 else
3616 configured_native_system_header_dir=
3621 # Check whether --with-build-sysroot was given.
3622 if test "${with_build_sysroot+set}" = set; then :
3623 withval=$with_build_sysroot; if test x"$withval" != x ; then
3624 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3626 else
3627 SYSROOT_CFLAGS_FOR_TARGET=
3632 if test "x$prefix" = xNONE; then
3633 test_prefix=/usr/local
3634 else
3635 test_prefix=$prefix
3637 if test "x$exec_prefix" = xNONE; then
3638 test_exec_prefix=$test_prefix
3639 else
3640 test_exec_prefix=$exec_prefix
3644 # Check whether --with-sysroot was given.
3645 if test "${with_sysroot+set}" = set; then :
3646 withval=$with_sysroot;
3647 case ${with_sysroot} in
3648 /) ;;
3649 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3650 esac
3651 case ${with_sysroot} in
3652 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3653 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3654 esac
3656 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3657 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3659 case ${TARGET_SYSTEM_ROOT} in
3660 "${test_prefix}"|"${test_prefix}/"*|\
3661 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3662 '${prefix}'|'${prefix}/'*|\
3663 '${exec_prefix}'|'${exec_prefix}/'*)
3664 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3665 TARGET_SYSTEM_ROOT_DEFINE="$t"
3667 esac
3669 else
3671 TARGET_SYSTEM_ROOT=
3672 TARGET_SYSTEM_ROOT_DEFINE=
3673 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3681 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3682 # passed in by the toplevel make and thus we'd get different behavior
3683 # depending on where we built the sources.
3684 gcc_gxx_include_dir=
3685 # Specify the g++ header file directory
3687 # Check whether --with-gxx-include-dir was given.
3688 if test "${with_gxx_include_dir+set}" = set; then :
3689 withval=$with_gxx_include_dir; case "${withval}" in
3690 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3691 no) ;;
3692 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3693 esac
3697 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3698 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3699 # relative to the sysroot.
3700 gcc_gxx_include_dir_add_sysroot=0
3702 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3703 if test x${gcc_gxx_include_dir} = x; then
3704 if test x${enable_version_specific_runtime_libs} = xyes; then
3705 gcc_gxx_include_dir='${libsubdir}/include/c++'
3706 else
3707 libstdcxx_incdir='include/c++/$(version)'
3708 if test x$host != x$target; then
3709 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3711 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3713 elif test "${with_sysroot+set}" = set; then
3714 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3715 if test "${gcc_gxx_without_sysroot}"; then
3716 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3717 gcc_gxx_include_dir_add_sysroot=1
3722 # Check whether --with-cpp_install_dir was given.
3723 if test "${with_cpp_install_dir+set}" = set; then :
3724 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3725 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3726 elif test x$withval != xno; then
3727 cpp_install_dir=$withval
3732 # We would like to our source tree to be readonly. However when releases or
3733 # pre-releases are generated, the flex/bison generated files as well as the
3734 # various formats of manuals need to be included along with the rest of the
3735 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3736 # just that.
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3739 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3740 # Check whether --enable-generated-files-in-srcdir was given.
3741 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3742 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3743 else
3744 generated_files_in_srcdir=no
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3749 $as_echo "$generated_files_in_srcdir" >&6; }
3751 if test "$generated_files_in_srcdir" = "yes"; then
3752 GENINSRC=''
3753 else
3754 GENINSRC='#'
3758 # -------------------
3759 # Find default linker
3760 # -------------------
3762 # With GNU ld
3764 # Check whether --with-gnu-ld was given.
3765 if test "${with_gnu_ld+set}" = set; then :
3766 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3767 else
3768 gnu_ld_flag=no
3772 case $target in
3773 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3774 *) ld64_flag=no;;
3775 esac
3777 # With pre-defined ld
3779 # Check whether --with-ld was given.
3780 if test "${with_ld+set}" = set; then :
3781 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3784 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3785 if test ! -x "$DEFAULT_LINKER"; then
3786 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3787 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3788 gnu_ld_flag=yes
3789 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3790 ld64_flag=yes
3793 cat >>confdefs.h <<_ACEOF
3794 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3795 _ACEOF
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3800 $as_echo_n "checking whether a default linker was specified... " >&6; }
3801 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3802 if test x"$gnu_ld_flag" = x"no"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3804 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3805 else
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3807 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3809 else
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3814 # With demangler in GNU ld
3816 # Check whether --with-demangler-in-ld was given.
3817 if test "${with_demangler_in_ld+set}" = set; then :
3818 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3819 else
3820 demangler_in_ld=yes
3824 # ----------------------
3825 # Find default assembler
3826 # ----------------------
3828 # With GNU as
3830 # Check whether --with-gnu-as was given.
3831 if test "${with_gnu_as+set}" = set; then :
3832 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3833 else
3834 gas_flag=no
3839 # Check whether --with-as was given.
3840 if test "${with_as+set}" = set; then :
3841 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3844 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3845 if test ! -x "$DEFAULT_ASSEMBLER"; then
3846 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3847 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3848 gas_flag=yes
3851 cat >>confdefs.h <<_ACEOF
3852 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3853 _ACEOF
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3858 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3859 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3860 if test x"$gas_flag" = x"no"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3862 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3863 else
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3865 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3867 else
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3872 # ---------------
3873 # Find C compiler
3874 # ---------------
3876 # If a non-executable a.out is present (e.g. created by GNU as above even if
3877 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3878 # file, even when creating an executable, so an execution test fails.
3879 # Remove possible default executable files to avoid this.
3881 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3882 # Autoconf includes it.
3883 rm -f a.out a.exe b.out
3885 # Find the native compiler
3886 ac_ext=c
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 if test -n "$ac_tool_prefix"; then
3892 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC="$CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3919 CC=$ac_cv_prog_CC
3920 if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3930 if test -z "$ac_cv_prog_CC"; then
3931 ac_ct_CC=$CC
3932 # Extract the first word of "gcc", so it can be a program name with args.
3933 set dummy gcc; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -n "$ac_ct_CC"; then
3940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_ac_ct_CC="gcc"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3953 done
3954 done
3955 IFS=$as_save_IFS
3959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3960 if test -n "$ac_ct_CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3962 $as_echo "$ac_ct_CC" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3968 if test "x$ac_ct_CC" = x; then
3969 CC=""
3970 else
3971 case $cross_compiling:$ac_tool_warned in
3972 yes:)
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975 ac_tool_warned=yes ;;
3976 esac
3977 CC=$ac_ct_CC
3979 else
3980 CC="$ac_cv_prog_CC"
3983 if test -z "$CC"; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}cc; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC="$CC" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_CC="${ac_tool_prefix}cc"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4006 done
4007 done
4008 IFS=$as_save_IFS
4012 CC=$ac_cv_prog_CC
4013 if test -n "$CC"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4015 $as_echo "$CC" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4024 if test -z "$CC"; then
4025 # Extract the first word of "cc", so it can be a program name with args.
4026 set dummy cc; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_CC+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 if test -n "$CC"; then
4033 ac_cv_prog_CC="$CC" # Let the user override the test.
4034 else
4035 ac_prog_rejected=no
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4044 ac_prog_rejected=yes
4045 continue
4047 ac_cv_prog_CC="cc"
4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4051 done
4052 done
4053 IFS=$as_save_IFS
4055 if test $ac_prog_rejected = yes; then
4056 # We found a bogon in the path, so make sure we never use it.
4057 set dummy $ac_cv_prog_CC
4058 shift
4059 if test $# != 0; then
4060 # We chose a different compiler from the bogus one.
4061 # However, it has the same basename, so the bogon will be chosen
4062 # first if we set CC to just the basename; use the full file name.
4063 shift
4064 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4069 CC=$ac_cv_prog_CC
4070 if test -n "$CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072 $as_echo "$CC" >&6; }
4073 else
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4080 if test -z "$CC"; then
4081 if test -n "$ac_tool_prefix"; then
4082 for ac_prog in cl.exe
4084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_prog_CC+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC="$CC" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 break 2
4105 done
4106 done
4107 IFS=$as_save_IFS
4111 CC=$ac_cv_prog_CC
4112 if test -n "$CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4115 else
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4121 test -n "$CC" && break
4122 done
4124 if test -z "$CC"; then
4125 ac_ct_CC=$CC
4126 for ac_prog in cl.exe
4128 # Extract the first word of "$ac_prog", so it can be a program name with args.
4129 set dummy $ac_prog; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test -n "$ac_ct_CC"; then
4136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_ac_ct_CC="$ac_prog"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4149 done
4150 done
4151 IFS=$as_save_IFS
4155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4156 if test -n "$ac_ct_CC"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4158 $as_echo "$ac_ct_CC" >&6; }
4159 else
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4165 test -n "$ac_ct_CC" && break
4166 done
4168 if test "x$ac_ct_CC" = x; then
4169 CC=""
4170 else
4171 case $cross_compiling:$ac_tool_warned in
4172 yes:)
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4175 ac_tool_warned=yes ;;
4176 esac
4177 CC=$ac_ct_CC
4184 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error $? "no acceptable C compiler found in \$PATH
4187 See \`config.log' for more details" "$LINENO" 5; }
4189 # Provide some information about the compiler.
4190 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4191 set X $ac_compile
4192 ac_compiler=$2
4193 for ac_option in --version -v -V -qversion; do
4194 { { ac_try="$ac_compiler $ac_option >&5"
4195 case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198 esac
4199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4200 $as_echo "$ac_try_echo"; } >&5
4201 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4202 ac_status=$?
4203 if test -s conftest.err; then
4204 sed '10a\
4205 ... rest of stderr output deleted ...
4206 10q' conftest.err >conftest.er1
4207 cat conftest.er1 >&5
4209 rm -f conftest.er1 conftest.err
4210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4211 test $ac_status = 0; }
4212 done
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4218 main ()
4222 return 0;
4224 _ACEOF
4225 ac_clean_files_save=$ac_clean_files
4226 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4227 # Try to create an executable without -o first, disregard a.out.
4228 # It will help us diagnose broken compilers, and finding out an intuition
4229 # of exeext.
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4231 $as_echo_n "checking whether the C compiler works... " >&6; }
4232 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4234 # The possible output files:
4235 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4237 ac_rmfiles=
4238 for ac_file in $ac_files
4240 case $ac_file in
4241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4242 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4243 esac
4244 done
4245 rm -f $ac_rmfiles
4247 if { { ac_try="$ac_link_default"
4248 case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251 esac
4252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 $as_echo "$ac_try_echo"; } >&5
4254 (eval "$ac_link_default") 2>&5
4255 ac_status=$?
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }; then :
4258 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4259 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4260 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4261 # so that the user can short-circuit this test for compilers unknown to
4262 # Autoconf.
4263 for ac_file in $ac_files ''
4265 test -f "$ac_file" || continue
4266 case $ac_file in
4267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4269 [ab].out )
4270 # We found the default executable, but exeext='' is most
4271 # certainly right.
4272 break;;
4273 *.* )
4274 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4275 then :; else
4276 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4278 # We set ac_cv_exeext here because the later test for it is not
4279 # safe: cross compilers may not add the suffix if given an `-o'
4280 # argument, so we may need to know it at that point already.
4281 # Even if this section looks crufty: it has the advantage of
4282 # actually working.
4283 break;;
4285 break;;
4286 esac
4287 done
4288 test "$ac_cv_exeext" = no && ac_cv_exeext=
4290 else
4291 ac_file=''
4293 if test -z "$ac_file"; then :
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error 77 "C compiler cannot create executables
4302 See \`config.log' for more details" "$LINENO" 5; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4305 $as_echo "yes" >&6; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4308 $as_echo_n "checking for C compiler default output file name... " >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4310 $as_echo "$ac_file" >&6; }
4311 ac_exeext=$ac_cv_exeext
4313 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4314 ac_clean_files=$ac_clean_files_save
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4316 $as_echo_n "checking for suffix of executables... " >&6; }
4317 if { { ac_try="$ac_link"
4318 case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_link") 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; then :
4328 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4329 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4330 # work properly (i.e., refer to `conftest.exe'), while it won't with
4331 # `rm'.
4332 for ac_file in conftest.exe conftest conftest.*; do
4333 test -f "$ac_file" || continue
4334 case $ac_file in
4335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4336 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4337 break;;
4338 * ) break;;
4339 esac
4340 done
4341 else
4342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4344 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4345 See \`config.log' for more details" "$LINENO" 5; }
4347 rm -f conftest conftest$ac_cv_exeext
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4349 $as_echo "$ac_cv_exeext" >&6; }
4351 rm -f conftest.$ac_ext
4352 EXEEXT=$ac_cv_exeext
4353 ac_exeext=$EXEEXT
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 #include <stdio.h>
4358 main ()
4360 FILE *f = fopen ("conftest.out", "w");
4361 return ferror (f) || fclose (f) != 0;
4364 return 0;
4366 _ACEOF
4367 ac_clean_files="$ac_clean_files conftest.out"
4368 # Check that the compiler produces executables we can run. If not, either
4369 # the compiler is broken, or we cross compile.
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4371 $as_echo_n "checking whether we are cross compiling... " >&6; }
4372 if test "$cross_compiling" != yes; then
4373 { { ac_try="$ac_link"
4374 case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377 esac
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_link") 2>&5
4381 ac_status=$?
4382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383 test $ac_status = 0; }
4384 if { ac_try='./conftest$ac_cv_exeext'
4385 { { case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388 esac
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_try") 2>&5
4392 ac_status=$?
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; }; }; then
4395 cross_compiling=no
4396 else
4397 if test "$cross_compiling" = maybe; then
4398 cross_compiling=yes
4399 else
4400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4402 as_fn_error $? "cannot run C compiled programs.
4403 If you meant to cross compile, use \`--host'.
4404 See \`config.log' for more details" "$LINENO" 5; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4409 $as_echo "$cross_compiling" >&6; }
4411 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4412 ac_clean_files=$ac_clean_files_save
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4414 $as_echo_n "checking for suffix of object files... " >&6; }
4415 if ${ac_cv_objext+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4422 main ()
4426 return 0;
4428 _ACEOF
4429 rm -f conftest.o conftest.obj
4430 if { { ac_try="$ac_compile"
4431 case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434 esac
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 $as_echo "$ac_try_echo"; } >&5
4437 (eval "$ac_compile") 2>&5
4438 ac_status=$?
4439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440 test $ac_status = 0; }; then :
4441 for ac_file in conftest.o conftest.obj conftest.*; do
4442 test -f "$ac_file" || continue;
4443 case $ac_file in
4444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4445 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4446 break;;
4447 esac
4448 done
4449 else
4450 $as_echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error $? "cannot compute suffix of object files: cannot compile
4456 See \`config.log' for more details" "$LINENO" 5; }
4458 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4461 $as_echo "$ac_cv_objext" >&6; }
4462 OBJEXT=$ac_cv_objext
4463 ac_objext=$OBJEXT
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4465 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4466 if ${ac_cv_c_compiler_gnu+:} false; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4473 main ()
4475 #ifndef __GNUC__
4476 choke me
4477 #endif
4480 return 0;
4482 _ACEOF
4483 if ac_fn_c_try_compile "$LINENO"; then :
4484 ac_compiler_gnu=yes
4485 else
4486 ac_compiler_gnu=no
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4493 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4494 if test $ac_compiler_gnu = yes; then
4495 GCC=yes
4496 else
4497 GCC=
4499 ac_test_CFLAGS=${CFLAGS+set}
4500 ac_save_CFLAGS=$CFLAGS
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4502 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4503 if ${ac_cv_prog_cc_g+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 ac_save_c_werror_flag=$ac_c_werror_flag
4507 ac_c_werror_flag=yes
4508 ac_cv_prog_cc_g=no
4509 CFLAGS="-g"
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4514 main ()
4518 return 0;
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522 ac_cv_prog_cc_g=yes
4523 else
4524 CFLAGS=""
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4529 main ()
4533 return 0;
4535 _ACEOF
4536 if ac_fn_c_try_compile "$LINENO"; then :
4538 else
4539 ac_c_werror_flag=$ac_save_c_werror_flag
4540 CFLAGS="-g"
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4545 main ()
4549 return 0;
4551 _ACEOF
4552 if ac_fn_c_try_compile "$LINENO"; then :
4553 ac_cv_prog_cc_g=yes
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_c_werror_flag=$ac_save_c_werror_flag
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4563 $as_echo "$ac_cv_prog_cc_g" >&6; }
4564 if test "$ac_test_CFLAGS" = set; then
4565 CFLAGS=$ac_save_CFLAGS
4566 elif test $ac_cv_prog_cc_g = yes; then
4567 if test "$GCC" = yes; then
4568 CFLAGS="-g -O2"
4569 else
4570 CFLAGS="-g"
4572 else
4573 if test "$GCC" = yes; then
4574 CFLAGS="-O2"
4575 else
4576 CFLAGS=
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4580 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4581 if ${ac_cv_prog_cc_c89+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 ac_cv_prog_cc_c89=no
4585 ac_save_CC=$CC
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4588 #include <stdarg.h>
4589 #include <stdio.h>
4590 struct stat;
4591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4592 struct buf { int x; };
4593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4594 static char *e (p, i)
4595 char **p;
4596 int i;
4598 return p[i];
4600 static char *f (char * (*g) (char **, int), char **p, ...)
4602 char *s;
4603 va_list v;
4604 va_start (v,p);
4605 s = g (p, va_arg (v,int));
4606 va_end (v);
4607 return s;
4610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4611 function prototypes and stuff, but not '\xHH' hex character constants.
4612 These don't provoke an error unfortunately, instead are silently treated
4613 as 'x'. The following induces an error, until -std is added to get
4614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4615 array size at least. It's necessary to write '\x00'==0 to get something
4616 that's true only with -std. */
4617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4620 inside strings and character constants. */
4621 #define FOO(x) 'x'
4622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4624 int test (int i, double x);
4625 struct s1 {int (*f) (int a);};
4626 struct s2 {int (*f) (double a);};
4627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4628 int argc;
4629 char **argv;
4631 main ()
4633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4635 return 0;
4637 _ACEOF
4638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4641 CC="$ac_save_CC $ac_arg"
4642 if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_prog_cc_c89=$ac_arg
4645 rm -f core conftest.err conftest.$ac_objext
4646 test "x$ac_cv_prog_cc_c89" != "xno" && break
4647 done
4648 rm -f conftest.$ac_ext
4649 CC=$ac_save_CC
4652 # AC_CACHE_VAL
4653 case "x$ac_cv_prog_cc_c89" in
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4656 $as_echo "none needed" >&6; } ;;
4657 xno)
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4659 $as_echo "unsupported" >&6; } ;;
4661 CC="$CC $ac_cv_prog_cc_c89"
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4663 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4664 esac
4665 if test "x$ac_cv_prog_cc_c89" != xno; then :
4669 ac_ext=c
4670 ac_cpp='$CPP $CPPFLAGS'
4671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675 ac_ext=cpp
4676 ac_cpp='$CXXCPP $CPPFLAGS'
4677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4680 if test -z "$CXX"; then
4681 if test -n "$CCC"; then
4682 CXX=$CCC
4683 else
4684 if test -n "$ac_tool_prefix"; then
4685 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_CXX+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$CXX"; then
4695 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4708 done
4709 done
4710 IFS=$as_save_IFS
4714 CXX=$ac_cv_prog_CXX
4715 if test -n "$CXX"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4717 $as_echo "$CXX" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4724 test -n "$CXX" && break
4725 done
4727 if test -z "$CXX"; then
4728 ac_ct_CXX=$CXX
4729 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4731 # Extract the first word of "$ac_prog", so it can be a program name with args.
4732 set dummy $ac_prog; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$ac_ct_CXX"; then
4739 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_prog_ac_ct_CXX="$ac_prog"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4759 if test -n "$ac_ct_CXX"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4761 $as_echo "$ac_ct_CXX" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4768 test -n "$ac_ct_CXX" && break
4769 done
4771 if test "x$ac_ct_CXX" = x; then
4772 CXX="g++"
4773 else
4774 case $cross_compiling:$ac_tool_warned in
4775 yes:)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778 ac_tool_warned=yes ;;
4779 esac
4780 CXX=$ac_ct_CXX
4786 # Provide some information about the compiler.
4787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4788 set X $ac_compile
4789 ac_compiler=$2
4790 for ac_option in --version -v -V -qversion; do
4791 { { ac_try="$ac_compiler $ac_option >&5"
4792 case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795 esac
4796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4797 $as_echo "$ac_try_echo"; } >&5
4798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4799 ac_status=$?
4800 if test -s conftest.err; then
4801 sed '10a\
4802 ... rest of stderr output deleted ...
4803 10q' conftest.err >conftest.er1
4804 cat conftest.er1 >&5
4806 rm -f conftest.er1 conftest.err
4807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }
4809 done
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4812 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4813 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4820 main ()
4822 #ifndef __GNUC__
4823 choke me
4824 #endif
4827 return 0;
4829 _ACEOF
4830 if ac_fn_cxx_try_compile "$LINENO"; then :
4831 ac_compiler_gnu=yes
4832 else
4833 ac_compiler_gnu=no
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4840 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4841 if test $ac_compiler_gnu = yes; then
4842 GXX=yes
4843 else
4844 GXX=
4846 ac_test_CXXFLAGS=${CXXFLAGS+set}
4847 ac_save_CXXFLAGS=$CXXFLAGS
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4849 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4850 if ${ac_cv_prog_cxx_g+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4854 ac_cxx_werror_flag=yes
4855 ac_cv_prog_cxx_g=no
4856 CXXFLAGS="-g"
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4861 main ()
4865 return 0;
4867 _ACEOF
4868 if ac_fn_cxx_try_compile "$LINENO"; then :
4869 ac_cv_prog_cxx_g=yes
4870 else
4871 CXXFLAGS=""
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4876 main ()
4880 return 0;
4882 _ACEOF
4883 if ac_fn_cxx_try_compile "$LINENO"; then :
4885 else
4886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4887 CXXFLAGS="-g"
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4892 main ()
4896 return 0;
4898 _ACEOF
4899 if ac_fn_cxx_try_compile "$LINENO"; then :
4900 ac_cv_prog_cxx_g=yes
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4910 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4911 if test "$ac_test_CXXFLAGS" = set; then
4912 CXXFLAGS=$ac_save_CXXFLAGS
4913 elif test $ac_cv_prog_cxx_g = yes; then
4914 if test "$GXX" = yes; then
4915 CXXFLAGS="-g -O2"
4916 else
4917 CXXFLAGS="-g"
4919 else
4920 if test "$GXX" = yes; then
4921 CXXFLAGS="-O2"
4922 else
4923 CXXFLAGS=
4926 ac_ext=c
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4935 if test -n "$ac_tool_prefix"; then
4936 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4937 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_GNATBIND+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$GNATBIND"; then
4944 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4957 done
4958 done
4959 IFS=$as_save_IFS
4963 GNATBIND=$ac_cv_prog_GNATBIND
4964 if test -n "$GNATBIND"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4966 $as_echo "$GNATBIND" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4974 if test -z "$ac_cv_prog_GNATBIND"; then
4975 ac_ct_GNATBIND=$GNATBIND
4976 # Extract the first word of "gnatbind", so it can be a program name with args.
4977 set dummy gnatbind; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$ac_ct_GNATBIND"; then
4984 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4997 done
4998 done
4999 IFS=$as_save_IFS
5003 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5004 if test -n "$ac_ct_GNATBIND"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5006 $as_echo "$ac_ct_GNATBIND" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5012 if test "x$ac_ct_GNATBIND" = x; then
5013 GNATBIND="no"
5014 else
5015 case $cross_compiling:$ac_tool_warned in
5016 yes:)
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5019 ac_tool_warned=yes ;;
5020 esac
5021 GNATBIND=$ac_ct_GNATBIND
5023 else
5024 GNATBIND="$ac_cv_prog_GNATBIND"
5027 if test -n "$ac_tool_prefix"; then
5028 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5029 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if ${ac_cv_prog_GNATMAKE+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -n "$GNATMAKE"; then
5036 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5049 done
5050 done
5051 IFS=$as_save_IFS
5055 GNATMAKE=$ac_cv_prog_GNATMAKE
5056 if test -n "$GNATMAKE"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5058 $as_echo "$GNATMAKE" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5066 if test -z "$ac_cv_prog_GNATMAKE"; then
5067 ac_ct_GNATMAKE=$GNATMAKE
5068 # Extract the first word of "gnatmake", so it can be a program name with args.
5069 set dummy gnatmake; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 if test -n "$ac_ct_GNATMAKE"; then
5076 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5089 done
5090 done
5091 IFS=$as_save_IFS
5095 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5096 if test -n "$ac_ct_GNATMAKE"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5098 $as_echo "$ac_ct_GNATMAKE" >&6; }
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5104 if test "x$ac_ct_GNATMAKE" = x; then
5105 GNATMAKE="no"
5106 else
5107 case $cross_compiling:$ac_tool_warned in
5108 yes:)
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5111 ac_tool_warned=yes ;;
5112 esac
5113 GNATMAKE=$ac_ct_GNATMAKE
5115 else
5116 GNATMAKE="$ac_cv_prog_GNATMAKE"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5120 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5121 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 cat >conftest.adb <<EOF
5125 procedure conftest is begin null; end conftest;
5127 acx_cv_cc_gcc_supports_ada=no
5128 # There is a bug in old released versions of GCC which causes the
5129 # driver to exit successfully when the appropriate language module
5130 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5131 # Therefore we must check for the error message as well as an
5132 # unsuccessful exit.
5133 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5134 # given a .adb file, but produce no object file. So we must check
5135 # if an object file was really produced to guard against this.
5136 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5137 if test x"$errors" = x && test -f conftest.$ac_objext; then
5138 acx_cv_cc_gcc_supports_ada=yes
5140 rm -f conftest.*
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5143 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5145 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5146 have_gnat=yes
5147 else
5148 have_gnat=no
5152 # Do configure tests with the C++ compiler, since that's what we build with.
5153 ac_ext=cpp
5154 ac_cpp='$CXXCPP $CPPFLAGS'
5155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5160 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5161 # optimizations to be activated explicitly by the toplevel.
5162 case "$CC" in
5163 */prev-gcc/xgcc*) ;;
5164 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5165 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5166 esac
5170 # Determine PICFLAG for target gnatlib.
5175 case "${target}" in
5176 # PIC is the default on some targets or must not be used.
5177 *-*-darwin*)
5178 # For darwin, common symbols are not allowed in MH_DYLIB files
5179 case "${CFLAGS}" in
5180 # If we are using a compiler supporting mdynamic-no-pic
5181 # and the option has been tested as safe to add, then cancel
5182 # it here, since the code generated is incompatible with shared
5183 # libs.
5184 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5185 *) PICFLAG_FOR_TARGET=-fno-common ;;
5186 esac
5188 alpha*-dec-osf5*)
5189 # PIC is the default.
5191 hppa*64*-*-hpux*)
5192 # PIC is the default for 64-bit PA HP-UX.
5194 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5196 i[34567]86-*-mingw* | x86_64-*-mingw*)
5198 i[34567]86-*-interix[3-9]*)
5199 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5200 # Instead, we relocate shared libraries at runtime.
5202 i[34567]86-*-nto-qnx*)
5203 # QNX uses GNU C++, but need to define -shared option too, otherwise
5204 # it will coredump.
5205 PICFLAG_FOR_TARGET='-fPIC -shared'
5207 i[34567]86-pc-msdosdjgpp*)
5208 # DJGPP does not support shared libraries at all.
5210 ia64*-*-hpux*)
5211 # On IA64 HP-UX, PIC is the default but the pic flag
5212 # sets the default TLS model and affects inlining.
5213 PICFLAG_FOR_TARGET=-fPIC
5215 mips-sgi-irix6*)
5216 # PIC is the default.
5218 rs6000-ibm-aix* | powerpc-ibm-aix*)
5219 # All AIX code is PIC.
5222 # Some targets support both -fPIC and -fpic, but prefer the latter.
5223 # FIXME: Why?
5224 i[34567]86-*-* | x86_64-*-*)
5225 PICFLAG_FOR_TARGET=-fpic
5227 # FIXME: Override -fPIC default in libgcc only?
5228 sh-*-linux* | sh[2346lbe]*-*-linux*)
5229 PICFLAG_FOR_TARGET=-fpic
5231 # FIXME: Simplify to sh*-*-netbsd*?
5232 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5233 sh64-*-netbsd* | sh64l*-*-netbsd*)
5234 PICFLAG_FOR_TARGET=-fpic
5236 # Default to -fPIC unless specified otherwise.
5238 PICFLAG_FOR_TARGET=-fPIC
5240 esac
5242 # If the user explicitly uses -fpic/-fPIC, keep that.
5243 case "${CFLAGS_FOR_TARGET}" in
5244 *-fpic*)
5245 PICFLAG_FOR_TARGET=-fpic
5247 *-fPIC*)
5248 PICFLAG_FOR_TARGET=-fPIC
5250 esac
5254 # -------------------------
5255 # Check C compiler features
5256 # -------------------------
5259 ac_ext=cpp
5260 ac_cpp='$CXXCPP $CPPFLAGS'
5261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5265 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5266 if test -z "$CXXCPP"; then
5267 if ${ac_cv_prog_CXXCPP+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 # Double quotes because CXXCPP needs to be expanded
5271 for CXXCPP in "$CXX -E" "/lib/cpp"
5273 ac_preproc_ok=false
5274 for ac_cxx_preproc_warn_flag in '' yes
5276 # Use a header file that comes with gcc, so configuring glibc
5277 # with a fresh cross-compiler works.
5278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5279 # <limits.h> exists even on freestanding compilers.
5280 # On the NeXT, cc -E runs the code through the compiler's parser,
5281 # not just through cpp. "Syntax error" is here to catch this case.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #ifdef __STDC__
5285 # include <limits.h>
5286 #else
5287 # include <assert.h>
5288 #endif
5289 Syntax error
5290 _ACEOF
5291 if ac_fn_cxx_try_cpp "$LINENO"; then :
5293 else
5294 # Broken: fails on valid input.
5295 continue
5297 rm -f conftest.err conftest.i conftest.$ac_ext
5299 # OK, works on sane cases. Now check whether nonexistent headers
5300 # can be detected and how.
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303 #include <ac_nonexistent.h>
5304 _ACEOF
5305 if ac_fn_cxx_try_cpp "$LINENO"; then :
5306 # Broken: success on invalid input.
5307 continue
5308 else
5309 # Passes both tests.
5310 ac_preproc_ok=:
5311 break
5313 rm -f conftest.err conftest.i conftest.$ac_ext
5315 done
5316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317 rm -f conftest.i conftest.err conftest.$ac_ext
5318 if $ac_preproc_ok; then :
5319 break
5322 done
5323 ac_cv_prog_CXXCPP=$CXXCPP
5326 CXXCPP=$ac_cv_prog_CXXCPP
5327 else
5328 ac_cv_prog_CXXCPP=$CXXCPP
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5331 $as_echo "$CXXCPP" >&6; }
5332 ac_preproc_ok=false
5333 for ac_cxx_preproc_warn_flag in '' yes
5335 # Use a header file that comes with gcc, so configuring glibc
5336 # with a fresh cross-compiler works.
5337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5338 # <limits.h> exists even on freestanding compilers.
5339 # On the NeXT, cc -E runs the code through the compiler's parser,
5340 # not just through cpp. "Syntax error" is here to catch this case.
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 #ifdef __STDC__
5344 # include <limits.h>
5345 #else
5346 # include <assert.h>
5347 #endif
5348 Syntax error
5349 _ACEOF
5350 if ac_fn_cxx_try_cpp "$LINENO"; then :
5352 else
5353 # Broken: fails on valid input.
5354 continue
5356 rm -f conftest.err conftest.i conftest.$ac_ext
5358 # OK, works on sane cases. Now check whether nonexistent headers
5359 # can be detected and how.
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 #include <ac_nonexistent.h>
5363 _ACEOF
5364 if ac_fn_cxx_try_cpp "$LINENO"; then :
5365 # Broken: success on invalid input.
5366 continue
5367 else
5368 # Passes both tests.
5369 ac_preproc_ok=:
5370 break
5372 rm -f conftest.err conftest.i conftest.$ac_ext
5374 done
5375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5376 rm -f conftest.i conftest.err conftest.$ac_ext
5377 if $ac_preproc_ok; then :
5379 else
5380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5382 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5383 See \`config.log' for more details" "$LINENO" 5; }
5386 ac_ext=cpp
5387 ac_cpp='$CXXCPP $CPPFLAGS'
5388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5394 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5395 if ${ac_cv_path_GREP+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 if test -z "$GREP"; then
5399 ac_path_GREP_found=false
5400 # Loop through the user's path and test for each of PROGNAME-LIST
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_prog in grep ggrep; do
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5409 as_fn_executable_p "$ac_path_GREP" || continue
5410 # Check for GNU ac_path_GREP and select it if it is found.
5411 # Check for GNU $ac_path_GREP
5412 case `"$ac_path_GREP" --version 2>&1` in
5413 *GNU*)
5414 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5416 ac_count=0
5417 $as_echo_n 0123456789 >"conftest.in"
5418 while :
5420 cat "conftest.in" "conftest.in" >"conftest.tmp"
5421 mv "conftest.tmp" "conftest.in"
5422 cp "conftest.in" "conftest.nl"
5423 $as_echo 'GREP' >> "conftest.nl"
5424 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5426 as_fn_arith $ac_count + 1 && ac_count=$as_val
5427 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5428 # Best one so far, save it but keep looking for a better one
5429 ac_cv_path_GREP="$ac_path_GREP"
5430 ac_path_GREP_max=$ac_count
5432 # 10*(2^10) chars as input seems more than enough
5433 test $ac_count -gt 10 && break
5434 done
5435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5436 esac
5438 $ac_path_GREP_found && break 3
5439 done
5440 done
5441 done
5442 IFS=$as_save_IFS
5443 if test -z "$ac_cv_path_GREP"; then
5444 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5446 else
5447 ac_cv_path_GREP=$GREP
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5452 $as_echo "$ac_cv_path_GREP" >&6; }
5453 GREP="$ac_cv_path_GREP"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5457 $as_echo_n "checking for egrep... " >&6; }
5458 if ${ac_cv_path_EGREP+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5462 then ac_cv_path_EGREP="$GREP -E"
5463 else
5464 if test -z "$EGREP"; then
5465 ac_path_EGREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_prog in egrep; do
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5475 as_fn_executable_p "$ac_path_EGREP" || continue
5476 # Check for GNU ac_path_EGREP and select it if it is found.
5477 # Check for GNU $ac_path_EGREP
5478 case `"$ac_path_EGREP" --version 2>&1` in
5479 *GNU*)
5480 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5482 ac_count=0
5483 $as_echo_n 0123456789 >"conftest.in"
5484 while :
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 $as_echo 'EGREP' >> "conftest.nl"
5490 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 as_fn_arith $ac_count + 1 && ac_count=$as_val
5493 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_EGREP="$ac_path_EGREP"
5496 ac_path_EGREP_max=$ac_count
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5500 done
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502 esac
5504 $ac_path_EGREP_found && break 3
5505 done
5506 done
5507 done
5508 IFS=$as_save_IFS
5509 if test -z "$ac_cv_path_EGREP"; then
5510 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5512 else
5513 ac_cv_path_EGREP=$EGREP
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5519 $as_echo "$ac_cv_path_EGREP" >&6; }
5520 EGREP="$ac_cv_path_EGREP"
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5524 $as_echo_n "checking for ANSI C header files... " >&6; }
5525 if ${ac_cv_header_stdc+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <stdlib.h>
5531 #include <stdarg.h>
5532 #include <string.h>
5533 #include <float.h>
5536 main ()
5540 return 0;
5542 _ACEOF
5543 if ac_fn_cxx_try_compile "$LINENO"; then :
5544 ac_cv_header_stdc=yes
5545 else
5546 ac_cv_header_stdc=no
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 if test $ac_cv_header_stdc = yes; then
5551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 #include <string.h>
5556 _ACEOF
5557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5558 $EGREP "memchr" >/dev/null 2>&1; then :
5560 else
5561 ac_cv_header_stdc=no
5563 rm -f conftest*
5567 if test $ac_cv_header_stdc = yes; then
5568 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #include <stdlib.h>
5573 _ACEOF
5574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5575 $EGREP "free" >/dev/null 2>&1; then :
5577 else
5578 ac_cv_header_stdc=no
5580 rm -f conftest*
5584 if test $ac_cv_header_stdc = yes; then
5585 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5586 if test "$cross_compiling" = yes; then :
5588 else
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 #include <ctype.h>
5592 #include <stdlib.h>
5593 #if ((' ' & 0x0FF) == 0x020)
5594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5596 #else
5597 # define ISLOWER(c) \
5598 (('a' <= (c) && (c) <= 'i') \
5599 || ('j' <= (c) && (c) <= 'r') \
5600 || ('s' <= (c) && (c) <= 'z'))
5601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5602 #endif
5604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5606 main ()
5608 int i;
5609 for (i = 0; i < 256; i++)
5610 if (XOR (islower (i), ISLOWER (i))
5611 || toupper (i) != TOUPPER (i))
5612 return 2;
5613 return 0;
5615 _ACEOF
5616 if ac_fn_cxx_try_run "$LINENO"; then :
5618 else
5619 ac_cv_header_stdc=no
5621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5622 conftest.$ac_objext conftest.beam conftest.$ac_ext
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5628 $as_echo "$ac_cv_header_stdc" >&6; }
5629 if test $ac_cv_header_stdc = yes; then
5631 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5635 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5636 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5637 inttypes.h stdint.h unistd.h
5638 do :
5639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5640 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5643 cat >>confdefs.h <<_ACEOF
5644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5645 _ACEOF
5649 done
5653 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5654 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5655 MINIX=yes
5656 else
5657 MINIX=
5661 if test "$MINIX" = yes; then
5663 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5666 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5669 $as_echo "#define _MINIX 1" >>confdefs.h
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5675 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5676 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5682 # define __EXTENSIONS__ 1
5683 $ac_includes_default
5685 main ()
5689 return 0;
5691 _ACEOF
5692 if ac_fn_cxx_try_compile "$LINENO"; then :
5693 ac_cv_safe_to_define___extensions__=yes
5694 else
5695 ac_cv_safe_to_define___extensions__=no
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5700 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5701 test $ac_cv_safe_to_define___extensions__ = yes &&
5702 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5704 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5706 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5708 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5710 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5714 ac_ext=c
5715 ac_cpp='$CPP $CPPFLAGS'
5716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5720 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5721 # On Suns, sometimes $CPP names a directory.
5722 if test -n "$CPP" && test -d "$CPP"; then
5723 CPP=
5725 if test -z "$CPP"; then
5726 if ${ac_cv_prog_CPP+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 # Double quotes because CPP needs to be expanded
5730 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5732 ac_preproc_ok=false
5733 for ac_c_preproc_warn_flag in '' yes
5735 # Use a header file that comes with gcc, so configuring glibc
5736 # with a fresh cross-compiler works.
5737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5738 # <limits.h> exists even on freestanding compilers.
5739 # On the NeXT, cc -E runs the code through the compiler's parser,
5740 # not just through cpp. "Syntax error" is here to catch this case.
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #ifdef __STDC__
5744 # include <limits.h>
5745 #else
5746 # include <assert.h>
5747 #endif
5748 Syntax error
5749 _ACEOF
5750 if ac_fn_c_try_cpp "$LINENO"; then :
5752 else
5753 # Broken: fails on valid input.
5754 continue
5756 rm -f conftest.err conftest.i conftest.$ac_ext
5758 # OK, works on sane cases. Now check whether nonexistent headers
5759 # can be detected and how.
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 #include <ac_nonexistent.h>
5763 _ACEOF
5764 if ac_fn_c_try_cpp "$LINENO"; then :
5765 # Broken: success on invalid input.
5766 continue
5767 else
5768 # Passes both tests.
5769 ac_preproc_ok=:
5770 break
5772 rm -f conftest.err conftest.i conftest.$ac_ext
5774 done
5775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5776 rm -f conftest.i conftest.err conftest.$ac_ext
5777 if $ac_preproc_ok; then :
5778 break
5781 done
5782 ac_cv_prog_CPP=$CPP
5785 CPP=$ac_cv_prog_CPP
5786 else
5787 ac_cv_prog_CPP=$CPP
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5790 $as_echo "$CPP" >&6; }
5791 ac_preproc_ok=false
5792 for ac_c_preproc_warn_flag in '' yes
5794 # Use a header file that comes with gcc, so configuring glibc
5795 # with a fresh cross-compiler works.
5796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 # <limits.h> exists even on freestanding compilers.
5798 # On the NeXT, cc -E runs the code through the compiler's parser,
5799 # not just through cpp. "Syntax error" is here to catch this case.
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 #ifdef __STDC__
5803 # include <limits.h>
5804 #else
5805 # include <assert.h>
5806 #endif
5807 Syntax error
5808 _ACEOF
5809 if ac_fn_c_try_cpp "$LINENO"; then :
5811 else
5812 # Broken: fails on valid input.
5813 continue
5815 rm -f conftest.err conftest.i conftest.$ac_ext
5817 # OK, works on sane cases. Now check whether nonexistent headers
5818 # can be detected and how.
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #include <ac_nonexistent.h>
5822 _ACEOF
5823 if ac_fn_c_try_cpp "$LINENO"; then :
5824 # Broken: success on invalid input.
5825 continue
5826 else
5827 # Passes both tests.
5828 ac_preproc_ok=:
5829 break
5831 rm -f conftest.err conftest.i conftest.$ac_ext
5833 done
5834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835 rm -f conftest.i conftest.err conftest.$ac_ext
5836 if $ac_preproc_ok; then :
5838 else
5839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5841 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5842 See \`config.log' for more details" "$LINENO" 5; }
5845 ac_ext=cpp
5846 ac_cpp='$CXXCPP $CPPFLAGS'
5847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5852 $as_echo_n "checking for inline... " >&6; }
5853 if ${ac_cv_c_inline+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 ac_cv_c_inline=no
5857 for ac_kw in inline __inline__ __inline; do
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 #ifndef __cplusplus
5861 typedef int foo_t;
5862 static $ac_kw foo_t static_foo () {return 0; }
5863 $ac_kw foo_t foo () {return 0; }
5864 #endif
5866 _ACEOF
5867 if ac_fn_cxx_try_compile "$LINENO"; then :
5868 ac_cv_c_inline=$ac_kw
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 test "$ac_cv_c_inline" != no && break
5872 done
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5876 $as_echo "$ac_cv_c_inline" >&6; }
5878 case $ac_cv_c_inline in
5879 inline | yes) ;;
5881 case $ac_cv_c_inline in
5882 no) ac_val=;;
5883 *) ac_val=$ac_cv_c_inline;;
5884 esac
5885 cat >>confdefs.h <<_ACEOF
5886 #ifndef __cplusplus
5887 #define inline $ac_val
5888 #endif
5889 _ACEOF
5891 esac
5894 # Check whether --enable-largefile was given.
5895 if test "${enable_largefile+set}" = set; then :
5896 enableval=$enable_largefile;
5899 if test "$enable_largefile" != no; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5902 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5903 if ${ac_cv_sys_largefile_CC+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 ac_cv_sys_largefile_CC=no
5907 if test "$GCC" != yes; then
5908 ac_save_CC=$CC
5909 while :; do
5910 # IRIX 6.2 and later do not support large files by default,
5911 # so use the C compiler's -n32 option if that helps.
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <sys/types.h>
5915 /* Check that off_t can represent 2**63 - 1 correctly.
5916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5917 since some C++ compilers masquerading as C compilers
5918 incorrectly reject 9223372036854775807. */
5919 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5921 && LARGE_OFF_T % 2147483647 == 1)
5922 ? 1 : -1];
5924 main ()
5928 return 0;
5930 _ACEOF
5931 if ac_fn_cxx_try_compile "$LINENO"; then :
5932 break
5934 rm -f core conftest.err conftest.$ac_objext
5935 CC="$CC -n32"
5936 if ac_fn_cxx_try_compile "$LINENO"; then :
5937 ac_cv_sys_largefile_CC=' -n32'; break
5939 rm -f core conftest.err conftest.$ac_objext
5940 break
5941 done
5942 CC=$ac_save_CC
5943 rm -f conftest.$ac_ext
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5947 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5948 if test "$ac_cv_sys_largefile_CC" != no; then
5949 CC=$CC$ac_cv_sys_largefile_CC
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5953 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5954 if ${ac_cv_sys_file_offset_bits+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 while :; do
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #include <sys/types.h>
5961 /* Check that off_t can represent 2**63 - 1 correctly.
5962 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5963 since some C++ compilers masquerading as C compilers
5964 incorrectly reject 9223372036854775807. */
5965 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5967 && LARGE_OFF_T % 2147483647 == 1)
5968 ? 1 : -1];
5970 main ()
5974 return 0;
5976 _ACEOF
5977 if ac_fn_cxx_try_compile "$LINENO"; then :
5978 ac_cv_sys_file_offset_bits=no; break
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 #define _FILE_OFFSET_BITS 64
5984 #include <sys/types.h>
5985 /* Check that off_t can represent 2**63 - 1 correctly.
5986 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5987 since some C++ compilers masquerading as C compilers
5988 incorrectly reject 9223372036854775807. */
5989 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5990 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5991 && LARGE_OFF_T % 2147483647 == 1)
5992 ? 1 : -1];
5994 main ()
5998 return 0;
6000 _ACEOF
6001 if ac_fn_cxx_try_compile "$LINENO"; then :
6002 ac_cv_sys_file_offset_bits=64; break
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 ac_cv_sys_file_offset_bits=unknown
6006 break
6007 done
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6010 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6011 case $ac_cv_sys_file_offset_bits in #(
6012 no | unknown) ;;
6014 cat >>confdefs.h <<_ACEOF
6015 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6016 _ACEOF
6018 esac
6019 rm -rf conftest*
6020 if test $ac_cv_sys_file_offset_bits = unknown; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6022 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6023 if ${ac_cv_sys_large_files+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 while :; do
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #include <sys/types.h>
6030 /* Check that off_t can represent 2**63 - 1 correctly.
6031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6032 since some C++ compilers masquerading as C compilers
6033 incorrectly reject 9223372036854775807. */
6034 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6036 && LARGE_OFF_T % 2147483647 == 1)
6037 ? 1 : -1];
6039 main ()
6043 return 0;
6045 _ACEOF
6046 if ac_fn_cxx_try_compile "$LINENO"; then :
6047 ac_cv_sys_large_files=no; break
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 #define _LARGE_FILES 1
6053 #include <sys/types.h>
6054 /* Check that off_t can represent 2**63 - 1 correctly.
6055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6056 since some C++ compilers masquerading as C compilers
6057 incorrectly reject 9223372036854775807. */
6058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6060 && LARGE_OFF_T % 2147483647 == 1)
6061 ? 1 : -1];
6063 main ()
6067 return 0;
6069 _ACEOF
6070 if ac_fn_cxx_try_compile "$LINENO"; then :
6071 ac_cv_sys_large_files=1; break
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 ac_cv_sys_large_files=unknown
6075 break
6076 done
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6079 $as_echo "$ac_cv_sys_large_files" >&6; }
6080 case $ac_cv_sys_large_files in #(
6081 no | unknown) ;;
6083 cat >>confdefs.h <<_ACEOF
6084 #define _LARGE_FILES $ac_cv_sys_large_files
6085 _ACEOF
6087 esac
6088 rm -rf conftest*
6095 # sizeof(char) is 1 by definition.
6096 # The cast to long int works around a bug in the HP C Compiler
6097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6099 # This bug is HP SR number 8606223364.
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6101 $as_echo_n "checking size of void *... " >&6; }
6102 if ${ac_cv_sizeof_void_p+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6107 else
6108 if test "$ac_cv_type_void_p" = yes; then
6109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6111 as_fn_error 77 "cannot compute sizeof (void *)
6112 See \`config.log' for more details" "$LINENO" 5; }
6113 else
6114 ac_cv_sizeof_void_p=0
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6120 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6124 cat >>confdefs.h <<_ACEOF
6125 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6126 _ACEOF
6129 # The cast to long int works around a bug in the HP C Compiler
6130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6132 # This bug is HP SR number 8606223364.
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6134 $as_echo_n "checking size of short... " >&6; }
6135 if ${ac_cv_sizeof_short+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6140 else
6141 if test "$ac_cv_type_short" = yes; then
6142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6144 as_fn_error 77 "cannot compute sizeof (short)
6145 See \`config.log' for more details" "$LINENO" 5; }
6146 else
6147 ac_cv_sizeof_short=0
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6153 $as_echo "$ac_cv_sizeof_short" >&6; }
6157 cat >>confdefs.h <<_ACEOF
6158 #define SIZEOF_SHORT $ac_cv_sizeof_short
6159 _ACEOF
6162 # The cast to long int works around a bug in the HP C Compiler
6163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6165 # This bug is HP SR number 8606223364.
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6167 $as_echo_n "checking size of int... " >&6; }
6168 if ${ac_cv_sizeof_int+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6173 else
6174 if test "$ac_cv_type_int" = yes; then
6175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6177 as_fn_error 77 "cannot compute sizeof (int)
6178 See \`config.log' for more details" "$LINENO" 5; }
6179 else
6180 ac_cv_sizeof_int=0
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6186 $as_echo "$ac_cv_sizeof_int" >&6; }
6190 cat >>confdefs.h <<_ACEOF
6191 #define SIZEOF_INT $ac_cv_sizeof_int
6192 _ACEOF
6195 # The cast to long int works around a bug in the HP C Compiler
6196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6198 # This bug is HP SR number 8606223364.
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6200 $as_echo_n "checking size of long... " >&6; }
6201 if ${ac_cv_sizeof_long+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6206 else
6207 if test "$ac_cv_type_long" = yes; then
6208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6210 as_fn_error 77 "cannot compute sizeof (long)
6211 See \`config.log' for more details" "$LINENO" 5; }
6212 else
6213 ac_cv_sizeof_long=0
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6219 $as_echo "$ac_cv_sizeof_long" >&6; }
6223 cat >>confdefs.h <<_ACEOF
6224 #define SIZEOF_LONG $ac_cv_sizeof_long
6225 _ACEOF
6228 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6229 if test "x$ac_cv_type_long_long" = xyes; then :
6231 cat >>confdefs.h <<_ACEOF
6232 #define HAVE_LONG_LONG 1
6233 _ACEOF
6235 # The cast to long int works around a bug in the HP C Compiler
6236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6238 # This bug is HP SR number 8606223364.
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6240 $as_echo_n "checking size of long long... " >&6; }
6241 if ${ac_cv_sizeof_long_long+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6246 else
6247 if test "$ac_cv_type_long_long" = yes; then
6248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6250 as_fn_error 77 "cannot compute sizeof (long long)
6251 See \`config.log' for more details" "$LINENO" 5; }
6252 else
6253 ac_cv_sizeof_long_long=0
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6259 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6263 cat >>confdefs.h <<_ACEOF
6264 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6265 _ACEOF
6270 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6271 case $ac_cv_c_int8_t in #(
6272 no|yes) ;; #(
6275 cat >>confdefs.h <<_ACEOF
6276 #define int8_t $ac_cv_c_int8_t
6277 _ACEOF
6279 esac
6281 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6282 case $ac_cv_c_int16_t in #(
6283 no|yes) ;; #(
6286 cat >>confdefs.h <<_ACEOF
6287 #define int16_t $ac_cv_c_int16_t
6288 _ACEOF
6290 esac
6292 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6293 case $ac_cv_c_int32_t in #(
6294 no|yes) ;; #(
6297 cat >>confdefs.h <<_ACEOF
6298 #define int32_t $ac_cv_c_int32_t
6299 _ACEOF
6301 esac
6303 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6304 case $ac_cv_c_int64_t in #(
6305 no|yes) ;; #(
6308 cat >>confdefs.h <<_ACEOF
6309 #define int64_t $ac_cv_c_int64_t
6310 _ACEOF
6312 esac
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6316 $as_echo_n "checking for unsigned long long int... " >&6; }
6317 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 ac_cv_type_unsigned_long_long_int=yes
6321 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6325 /* For now, do not test the preprocessor; as of 2007 there are too many
6326 implementations with broken preprocessors. Perhaps this can
6327 be revisited in 2012. In the meantime, code should not expect
6328 #if to work with literals wider than 32 bits. */
6329 /* Test literals. */
6330 long long int ll = 9223372036854775807ll;
6331 long long int nll = -9223372036854775807LL;
6332 unsigned long long int ull = 18446744073709551615ULL;
6333 /* Test constant expressions. */
6334 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6335 ? 1 : -1)];
6336 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6337 ? 1 : -1)];
6338 int i = 63;
6340 main ()
6342 /* Test availability of runtime routines for shift and division. */
6343 long long int llmax = 9223372036854775807ll;
6344 unsigned long long int ullmax = 18446744073709551615ull;
6345 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6346 | (llmax / ll) | (llmax % ll)
6347 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6348 | (ullmax / ull) | (ullmax % ull));
6350 return 0;
6353 _ACEOF
6354 if ac_fn_cxx_try_link "$LINENO"; then :
6356 else
6357 ac_cv_type_unsigned_long_long_int=no
6359 rm -f core conftest.err conftest.$ac_objext \
6360 conftest$ac_exeext conftest.$ac_ext
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6364 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6365 if test $ac_cv_type_unsigned_long_long_int = yes; then
6367 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6374 $as_echo_n "checking for long long int... " >&6; }
6375 if ${ac_cv_type_long_long_int+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 ac_cv_type_long_long_int=yes
6379 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6380 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6381 if test $ac_cv_type_long_long_int = yes; then
6382 if test "$cross_compiling" = yes; then :
6384 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 #include <limits.h>
6388 #ifndef LLONG_MAX
6389 # define HALF \
6390 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6391 # define LLONG_MAX (HALF - 1 + HALF)
6392 #endif
6394 main ()
6396 long long int n = 1;
6397 int i;
6398 for (i = 0; ; i++)
6400 long long int m = n << i;
6401 if (m >> i != n)
6402 return 1;
6403 if (LLONG_MAX / 2 < m)
6404 break;
6406 return 0;
6408 return 0;
6410 _ACEOF
6411 if ac_fn_cxx_try_run "$LINENO"; then :
6413 else
6414 ac_cv_type_long_long_int=no
6416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6417 conftest.$ac_objext conftest.beam conftest.$ac_ext
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6424 $as_echo "$ac_cv_type_long_long_int" >&6; }
6425 if test $ac_cv_type_long_long_int = yes; then
6427 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6433 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6434 if test "x$ac_cv_type_intmax_t" = xyes; then :
6436 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6438 else
6439 test $ac_cv_type_long_long_int = yes \
6440 && ac_type='long long int' \
6441 || ac_type='long int'
6443 cat >>confdefs.h <<_ACEOF
6444 #define intmax_t $ac_type
6445 _ACEOF
6451 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6452 if test "x$ac_cv_type_intptr_t" = xyes; then :
6454 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6456 else
6457 for ac_type in 'int' 'long int' 'long long int'; do
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 $ac_includes_default
6462 main ()
6464 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6465 test_array [0] = 0;
6466 return test_array [0];
6469 return 0;
6471 _ACEOF
6472 if ac_fn_cxx_try_compile "$LINENO"; then :
6474 cat >>confdefs.h <<_ACEOF
6475 #define intptr_t $ac_type
6476 _ACEOF
6478 ac_type=
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 test -z "$ac_type" && break
6482 done
6486 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6487 case $ac_cv_c_uint8_t in #(
6488 no|yes) ;; #(
6491 $as_echo "#define _UINT8_T 1" >>confdefs.h
6494 cat >>confdefs.h <<_ACEOF
6495 #define uint8_t $ac_cv_c_uint8_t
6496 _ACEOF
6498 esac
6500 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6501 case $ac_cv_c_uint16_t in #(
6502 no|yes) ;; #(
6506 cat >>confdefs.h <<_ACEOF
6507 #define uint16_t $ac_cv_c_uint16_t
6508 _ACEOF
6510 esac
6512 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6513 case $ac_cv_c_uint32_t in #(
6514 no|yes) ;; #(
6517 $as_echo "#define _UINT32_T 1" >>confdefs.h
6520 cat >>confdefs.h <<_ACEOF
6521 #define uint32_t $ac_cv_c_uint32_t
6522 _ACEOF
6524 esac
6526 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6527 case $ac_cv_c_uint64_t in #(
6528 no|yes) ;; #(
6531 $as_echo "#define _UINT64_T 1" >>confdefs.h
6534 cat >>confdefs.h <<_ACEOF
6535 #define uint64_t $ac_cv_c_uint64_t
6536 _ACEOF
6538 esac
6542 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6543 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6545 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6547 else
6548 test $ac_cv_type_unsigned_long_long_int = yes \
6549 && ac_type='unsigned long long int' \
6550 || ac_type='unsigned long int'
6552 cat >>confdefs.h <<_ACEOF
6553 #define uintmax_t $ac_type
6554 _ACEOF
6560 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6561 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6563 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6565 else
6566 for ac_type in 'unsigned int' 'unsigned long int' \
6567 'unsigned long long int'; do
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570 $ac_includes_default
6572 main ()
6574 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6575 test_array [0] = 0;
6576 return test_array [0];
6579 return 0;
6581 _ACEOF
6582 if ac_fn_cxx_try_compile "$LINENO"; then :
6584 cat >>confdefs.h <<_ACEOF
6585 #define uintptr_t $ac_type
6586 _ACEOF
6588 ac_type=
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 test -z "$ac_type" && break
6592 done
6608 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6609 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6612 # check what underlying integer type int64_t uses
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6614 $as_echo_n "checking for int64_t underlying type... " >&6; }
6615 if ${ac_cv_int64_t_type+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6622 #ifdef HAVE_STDINT_H
6623 #include <stdint.h>
6624 #endif
6625 template <typename T> struct X { };
6626 template <>
6627 struct X<long> { typedef long t; };
6630 main ()
6632 X<int64_t>::t x;
6634 return 0;
6636 _ACEOF
6637 if ac_fn_cxx_try_compile "$LINENO"; then :
6638 ac_cv_int64_t_type=long
6639 else
6640 ac_cv_int64_t_type="long long"
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6645 $as_echo "$ac_cv_int64_t_type" >&6; }
6646 if test "$ac_cv_int64_t_type" = "long"; then
6648 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6650 else
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6654 #ifdef HAVE_STDINT_H
6655 #include <stdint.h>
6656 #endif
6657 template <typename T> struct X { };
6658 template <>
6659 struct X<long long> { typedef long long t; };
6662 main ()
6664 X<int64_t>::t x;
6666 return 0;
6668 _ACEOF
6669 if ac_fn_cxx_try_compile "$LINENO"; then :
6671 else
6672 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6678 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6679 if ${ac_cv_std_swap_in_utility+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6686 #include <utility>
6689 main ()
6691 int a, b; std::swap(a,b);
6693 return 0;
6695 _ACEOF
6696 if ac_fn_cxx_try_compile "$LINENO"; then :
6697 ac_cv_std_swap_in_utility=yes
6698 else
6699 ac_cv_std_swap_in_utility=no
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6704 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6705 if test $ac_cv_std_swap_in_utility = yes; then
6707 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6711 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6712 # If the host compiler is affected by the bug, and we build with optimization
6713 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6714 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6715 # Since there is no reliable feature check for the presence of this bug,
6716 # we simply use a GCC version number check. (This should never trigger for
6717 # stages 2 or 3 of a native bootstrap.)
6718 aliasing_flags=
6719 if test "$GCC" = yes; then
6720 saved_CXXFLAGS="$CXXFLAGS"
6722 # The following test compilation will succeed if and only if $CXX accepts
6723 # -fno-strict-aliasing *and* is older than GCC 4.3.
6724 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6726 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6730 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6731 #error compiler not affected by placement new aliasing bug
6732 #endif
6734 _ACEOF
6735 if ac_fn_cxx_try_compile "$LINENO"; then :
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6737 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6738 else
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 CXXFLAGS="$saved_CXXFLAGS"
6750 # ---------------------
6751 # Warnings and checking
6752 # ---------------------
6754 # Check $CC warning features (if it's GCC).
6755 # We want to use -pedantic, but we don't want warnings about
6756 # * 'long long'
6757 # * variadic macros
6758 # * overlong strings
6759 # * C++11 narrowing conversions in { }
6760 # So, we only use -pedantic if we can disable those warnings.
6762 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6763 # Check whether --enable-build-format-warnings was given.
6764 if test "${enable_build_format_warnings+set}" = set; then :
6765 enableval=$enable_build_format_warnings;
6766 else
6767 enable_build_format_warnings=yes
6770 if test $enable_build_format_warnings = no; then :
6771 wf_opt=-Wno-format
6772 else
6773 wf_opt=
6775 ac_ext=cpp
6776 ac_cpp='$CXXCPP $CPPFLAGS'
6777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6781 loose_warn=
6782 save_CXXFLAGS="$CXXFLAGS"
6783 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6784 # Do the check with the no- prefix removed since gcc silently
6785 # accepts any -Wno-* option on purpose
6786 case $real_option in
6787 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6788 *) option=$real_option ;;
6789 esac
6790 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6793 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6794 if eval \${$as_acx_Woption+:} false; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 CXXFLAGS="$option"
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6802 main ()
6806 return 0;
6808 _ACEOF
6809 if ac_fn_cxx_try_compile "$LINENO"; then :
6810 eval "$as_acx_Woption=yes"
6811 else
6812 eval "$as_acx_Woption=no"
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6817 eval ac_res=\$$as_acx_Woption
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6819 $as_echo "$ac_res" >&6; }
6820 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6821 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6823 done
6824 CXXFLAGS="$save_CXXFLAGS"
6825 ac_ext=cpp
6826 ac_cpp='$CXXCPP $CPPFLAGS'
6827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6833 ac_ext=c
6834 ac_cpp='$CPP $CPPFLAGS'
6835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6839 c_loose_warn=
6840 save_CFLAGS="$CFLAGS"
6841 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6842 # Do the check with the no- prefix removed since gcc silently
6843 # accepts any -Wno-* option on purpose
6844 case $real_option in
6845 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6846 *) option=$real_option ;;
6847 esac
6848 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6851 $as_echo_n "checking whether $CC supports $option... " >&6; }
6852 if eval \${$as_acx_Woption+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 CFLAGS="$option"
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6860 main ()
6864 return 0;
6866 _ACEOF
6867 if ac_fn_c_try_compile "$LINENO"; then :
6868 eval "$as_acx_Woption=yes"
6869 else
6870 eval "$as_acx_Woption=no"
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 eval ac_res=\$$as_acx_Woption
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6877 $as_echo "$ac_res" >&6; }
6878 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6879 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6881 done
6882 CFLAGS="$save_CFLAGS"
6883 ac_ext=cpp
6884 ac_cpp='$CXXCPP $CPPFLAGS'
6885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6890 ac_ext=cpp
6891 ac_cpp='$CXXCPP $CPPFLAGS'
6892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6896 strict_warn=
6897 save_CXXFLAGS="$CXXFLAGS"
6898 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6899 # Do the check with the no- prefix removed since gcc silently
6900 # accepts any -Wno-* option on purpose
6901 case $real_option in
6902 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6903 *) option=$real_option ;;
6904 esac
6905 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6908 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6909 if eval \${$as_acx_Woption+:} false; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 CXXFLAGS="$option"
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6917 main ()
6921 return 0;
6923 _ACEOF
6924 if ac_fn_cxx_try_compile "$LINENO"; then :
6925 eval "$as_acx_Woption=yes"
6926 else
6927 eval "$as_acx_Woption=no"
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932 eval ac_res=\$$as_acx_Woption
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6934 $as_echo "$ac_res" >&6; }
6935 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6936 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6938 done
6939 CXXFLAGS="$save_CXXFLAGS"
6940 ac_ext=cpp
6941 ac_cpp='$CXXCPP $CPPFLAGS'
6942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6947 ac_ext=c
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953 c_strict_warn=
6954 save_CFLAGS="$CFLAGS"
6955 for real_option in -Wold-style-definition -Wc++-compat; do
6956 # Do the check with the no- prefix removed since gcc silently
6957 # accepts any -Wno-* option on purpose
6958 case $real_option in
6959 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6960 *) option=$real_option ;;
6961 esac
6962 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6965 $as_echo_n "checking whether $CC supports $option... " >&6; }
6966 if eval \${$as_acx_Woption+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 CFLAGS="$option"
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6974 main ()
6978 return 0;
6980 _ACEOF
6981 if ac_fn_c_try_compile "$LINENO"; then :
6982 eval "$as_acx_Woption=yes"
6983 else
6984 eval "$as_acx_Woption=no"
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 eval ac_res=\$$as_acx_Woption
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6991 $as_echo "$ac_res" >&6; }
6992 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6993 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6995 done
6996 CFLAGS="$save_CFLAGS"
6997 ac_ext=cpp
6998 ac_cpp='$CXXCPP $CPPFLAGS'
6999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7004 ac_ext=cpp
7005 ac_cpp='$CXXCPP $CPPFLAGS'
7006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7010 # Do the check with the no- prefix removed from the warning options
7011 # since gcc silently accepts any -Wno-* option on purpose
7012 if test "$GXX" = yes; then :
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7014 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7015 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 save_CXXFLAGS="$CXXFLAGS"
7019 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7024 main ()
7028 return 0;
7030 _ACEOF
7031 if ac_fn_cxx_try_compile "$LINENO"; then :
7032 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7033 else
7034 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 CXXFLAGS="$save_CXXFLAGS"
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7040 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7041 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7042 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7046 ac_ext=cpp
7047 ac_cpp='$CXXCPP $CPPFLAGS'
7048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7053 ac_ext=cpp
7054 ac_cpp='$CXXCPP $CPPFLAGS'
7055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7059 # Check whether --enable-werror-always was given.
7060 if test "${enable_werror_always+set}" = set; then :
7061 enableval=$enable_werror_always;
7062 else
7063 enable_werror_always=no
7066 if test $enable_werror_always = yes; then :
7067 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7070 ac_ext=cpp
7071 ac_cpp='$CXXCPP $CPPFLAGS'
7072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7078 # The above macros do nothing if the compiler is not GCC. However, the
7079 # Makefile has more goo to add other flags, so these variables are used
7080 # to enable warnings only for GCC.
7081 warn_cflags=
7082 warn_cxxflags=
7083 if test "x$GCC" = "xyes"; then
7084 warn_cflags='$(GCC_WARN_CFLAGS)'
7085 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7090 # Disable exceptions and RTTI if building with g++
7091 ac_ext=c
7092 ac_cpp='$CPP $CPPFLAGS'
7093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7097 noexception_flags=
7098 save_CFLAGS="$CFLAGS"
7099 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7100 # Do the check with the no- prefix removed since gcc silently
7101 # accepts any -Wno-* option on purpose
7102 case $real_option in
7103 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7104 *) option=$real_option ;;
7105 esac
7106 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7109 $as_echo_n "checking whether $CC supports $option... " >&6; }
7110 if eval \${$as_acx_Woption+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 CFLAGS="$option"
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7118 main ()
7122 return 0;
7124 _ACEOF
7125 if ac_fn_c_try_compile "$LINENO"; then :
7126 eval "$as_acx_Woption=yes"
7127 else
7128 eval "$as_acx_Woption=no"
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 eval ac_res=\$$as_acx_Woption
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7135 $as_echo "$ac_res" >&6; }
7136 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7137 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7139 done
7140 CFLAGS="$save_CFLAGS"
7141 ac_ext=cpp
7142 ac_cpp='$CXXCPP $CPPFLAGS'
7143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7149 # Enable expensive internal checks
7150 is_release=
7151 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7152 is_release=yes
7155 # Check whether --enable-checking was given.
7156 if test "${enable_checking+set}" = set; then :
7157 enableval=$enable_checking; ac_checking_flags="${enableval}"
7158 else
7160 # Determine the default checks.
7161 if test x$is_release = x ; then
7162 ac_checking_flags=yes,extra
7163 else
7164 ac_checking_flags=release
7168 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7169 for check in release $ac_checking_flags
7171 case $check in
7172 # these set all the flags to specific states
7173 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7174 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7175 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7176 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7177 ac_tree_checking=1 ; ac_valgrind_checking= ;
7178 ac_types_checking=1 ;;
7179 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7180 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7181 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7182 ac_rtlflag_checking= ; ac_runtime_checking= ;
7183 ac_tree_checking= ; ac_valgrind_checking= ;
7184 ac_types_checking= ;;
7185 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7186 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7187 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7188 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7189 ac_tree_checking=1 ; ac_valgrind_checking= ;
7190 ac_types_checking=1 ;;
7191 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7192 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7193 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7194 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7195 ac_tree_checking= ; ac_valgrind_checking= ;
7196 ac_types_checking= ;;
7197 # these enable particular checks
7198 assert) ac_assert_checking=1 ;;
7199 df) ac_df_checking=1 ;;
7200 extra) ac_extra_checking=1 ;;
7201 fold) ac_fold_checking=1 ;;
7202 gc) ac_gc_checking=1 ;;
7203 gcac) ac_gc_always_collect=1 ;;
7204 gimple) ac_gimple_checking=1 ;;
7205 misc) ac_checking=1 ;;
7206 rtl) ac_rtl_checking=1 ;;
7207 rtlflag) ac_rtlflag_checking=1 ;;
7208 runtime) ac_runtime_checking=1 ;;
7209 tree) ac_tree_checking=1 ;;
7210 types) ac_types_checking=1 ;;
7211 valgrind) ac_valgrind_checking=1 ;;
7212 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7213 esac
7214 done
7215 IFS="$ac_save_IFS"
7217 nocommon_flag=""
7218 if test x$ac_checking != x ; then
7220 $as_echo "#define CHECKING_P 1" >>confdefs.h
7222 nocommon_flag=-fno-common
7223 else
7224 $as_echo "#define CHECKING_P 0" >>confdefs.h
7228 if test x$ac_extra_checking != x ; then
7230 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7232 else
7233 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7236 if test x$ac_df_checking != x ; then
7238 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7241 if test x$ac_assert_checking != x ; then
7243 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7246 if test x$ac_gimple_checking != x ; then
7248 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7252 if test x$ac_runtime_checking != x ; then
7254 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7257 if test x$ac_tree_checking != x ; then
7259 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7261 TREECHECKING=yes
7263 if test x$ac_types_checking != x ; then
7265 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7269 if test x$ac_rtl_checking != x ; then
7271 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7274 if test x$ac_rtlflag_checking != x ; then
7276 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7279 if test x$ac_gc_checking != x ; then
7281 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7284 if test x$ac_gc_always_collect != x ; then
7286 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7289 if test x$ac_fold_checking != x ; then
7291 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7294 valgrind_path_defines=
7295 valgrind_command=
7297 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7298 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7299 have_valgrind_h=yes
7300 else
7301 have_valgrind_h=no
7306 # It is certainly possible that there's valgrind but no valgrind.h.
7307 # GCC relies on making annotations so we must have both.
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7309 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312 #include <valgrind/memcheck.h>
7313 #ifndef VALGRIND_DISCARD
7314 #error VALGRIND_DISCARD not defined
7315 #endif
7316 _ACEOF
7317 if ac_fn_cxx_try_cpp "$LINENO"; then :
7318 gcc_cv_header_valgrind_memcheck_h=yes
7319 else
7320 gcc_cv_header_valgrind_memcheck_h=no
7322 rm -f conftest.err conftest.i conftest.$ac_ext
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7324 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7326 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 #include <memcheck.h>
7330 #ifndef VALGRIND_DISCARD
7331 #error VALGRIND_DISCARD not defined
7332 #endif
7333 _ACEOF
7334 if ac_fn_cxx_try_cpp "$LINENO"; then :
7335 gcc_cv_header_memcheck_h=yes
7336 else
7337 gcc_cv_header_memcheck_h=no
7339 rm -f conftest.err conftest.i conftest.$ac_ext
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7341 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7342 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7344 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7347 if test $gcc_cv_header_memcheck_h = yes; then
7349 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7353 if test x$ac_valgrind_checking != x ; then
7355 # Prepare PATH_SEPARATOR.
7356 # The user is always right.
7357 if test "${PATH_SEPARATOR+set}" != set; then
7358 echo "#! /bin/sh" >conf$$.sh
7359 echo "exit 0" >>conf$$.sh
7360 chmod +x conf$$.sh
7361 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7362 PATH_SEPARATOR=';'
7363 else
7364 PATH_SEPARATOR=:
7366 rm -f conf$$.sh
7369 # Find out how to test for executable files. Don't use a zero-byte file,
7370 # as systems may use methods other than mode bits to determine executability.
7371 cat >conf$$.file <<_ASEOF
7372 #! /bin/sh
7373 exit 0
7374 _ASEOF
7375 chmod +x conf$$.file
7376 if test -x conf$$.file >/dev/null 2>&1; then
7377 ac_executable_p="test -x"
7378 else
7379 ac_executable_p="test -f"
7381 rm -f conf$$.file
7383 # Extract the first word of "valgrind", so it can be a program name with args.
7384 set dummy valgrind; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_path_valgrind_path+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 case "$valgrind_path" in
7391 [\\/]* | ?:[\\/]*)
7392 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7395 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7396 for ac_dir in $PATH; do
7397 IFS="$ac_save_IFS"
7398 test -z "$ac_dir" && ac_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7401 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7402 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7403 break 2
7406 done
7407 done
7408 IFS="$ac_save_IFS"
7410 esac
7412 valgrind_path="$ac_cv_path_valgrind_path"
7413 if test -n "$valgrind_path"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7415 $as_echo "$valgrind_path" >&6; }
7416 else
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7421 if test "x$valgrind_path" = "x" \
7422 || (test $have_valgrind_h = no \
7423 && test $gcc_cv_header_memcheck_h = no \
7424 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7425 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7427 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7428 valgrind_command="$valgrind_path -q"
7430 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7436 # Enable code coverage collection
7437 # Check whether --enable-coverage was given.
7438 if test "${enable_coverage+set}" = set; then :
7439 enableval=$enable_coverage; case "${enableval}" in
7440 yes|noopt)
7441 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7443 opt)
7444 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7447 # a.k.a. --disable-coverage
7448 coverage_flags=""
7451 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7453 esac
7454 else
7455 coverage_flags=""
7460 # Check whether --enable-gather-detailed-mem-stats was given.
7461 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7462 enableval=$enable_gather_detailed_mem_stats;
7463 else
7464 enable_gather_detailed_mem_stats=no
7467 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7469 cat >>confdefs.h <<_ACEOF
7470 #define GATHER_STATISTICS $gather_stats
7471 _ACEOF
7474 # Check whether --enable-valgrind-annotations was given.
7475 if test "${enable_valgrind_annotations+set}" = set; then :
7476 enableval=$enable_valgrind_annotations;
7477 else
7478 enable_valgrind_annotations=no
7481 if test x$enable_valgrind_annotations != xno \
7482 || test x$ac_valgrind_checking != x; then
7483 if (test $have_valgrind_h = no \
7484 && test $gcc_cv_header_memcheck_h = no \
7485 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7486 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7489 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7493 # -------------------------------
7494 # Miscenalleous configure options
7495 # -------------------------------
7497 # With stabs
7499 # Check whether --with-stabs was given.
7500 if test "${with_stabs+set}" = set; then :
7501 withval=$with_stabs; stabs="$with_stabs"
7502 else
7503 stabs=no
7507 # Determine whether or not multilibs are enabled.
7508 # Check whether --enable-multilib was given.
7509 if test "${enable_multilib+set}" = set; then :
7510 enableval=$enable_multilib;
7511 else
7512 enable_multilib=yes
7517 # Determine whether or not multiarch is enabled.
7518 # Check whether --enable-multiarch was given.
7519 if test "${enable_multiarch+set}" = set; then :
7520 enableval=$enable_multiarch; case "${enableval}" in
7521 yes|no|auto) enable_multiarch=$enableval;;
7522 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7523 esac
7524 else
7525 enable_multiarch=auto
7528 if test x${enable_multiarch} = xauto; then
7529 if test x${with_native_system_header_dir} != x; then
7530 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7531 enable_multiarch=no
7533 if test x$host != x$target && test "x$with_sysroot" = x; then
7534 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7535 enable_multiarch=no
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7539 $as_echo_n "checking for multiarch configuration... " >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7542 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7544 # needed for setting the multiarch name for soft-float/hard-float ABIs
7548 # default stack clash protection guard size as power of twos in bytes.
7549 # Please keep these in sync with params.def.
7550 stk_clash_min=12
7551 stk_clash_max=30
7553 # Keep the default value when the option is not used to 0, this allows us to
7554 # distinguish between the cases where the user specifially set a value via
7555 # configure and when the normal default value is used.
7557 # Check whether --with-stack-clash-protection-guard-size was given.
7558 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7559 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7560 else
7561 DEFAULT_STK_CLASH_GUARD_SIZE=0
7564 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7565 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7566 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7567 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
7571 cat >>confdefs.h <<_ACEOF
7572 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7573 _ACEOF
7576 # Enable __cxa_atexit for C++.
7577 # Check whether --enable-__cxa_atexit was given.
7578 if test "${enable___cxa_atexit+set}" = set; then :
7579 enableval=$enable___cxa_atexit;
7583 # Enable C extension for decimal float if target supports it.
7585 # Check whether --enable-decimal-float was given.
7586 if test "${enable_decimal_float+set}" = set; then :
7587 enableval=$enable_decimal_float;
7588 case $enable_decimal_float in
7589 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7590 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7591 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7592 esac
7594 else
7596 case $target in
7597 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7598 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7599 i?86*-*-mingw* | x86_64*-*-mingw* | \
7600 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7601 enable_decimal_float=yes
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7605 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7606 enable_decimal_float=no
7608 esac
7613 # x86's use BID format instead of DPD
7614 case x$enable_decimal_float in
7615 xyes)
7616 case $target in
7617 i?86*-*-* | x86_64*-*-*)
7618 enable_decimal_float=bid
7621 enable_decimal_float=dpd
7623 esac
7624 default_decimal_float=$enable_decimal_float
7626 xno)
7627 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7628 # dependency on libdecnumber.
7629 default_decimal_float=dpd
7631 esac
7636 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7638 cat >>confdefs.h <<_ACEOF
7639 #define ENABLE_DECIMAL_FLOAT $dfp
7640 _ACEOF
7643 # Use default_decimal_float for dependency.
7644 enable_decimal_float=$default_decimal_float
7646 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7648 cat >>confdefs.h <<_ACEOF
7649 #define ENABLE_DECIMAL_BID_FORMAT $bid
7650 _ACEOF
7653 # Enable C extension for fixed-point arithmetic.
7654 # Check whether --enable-fixed-point was given.
7655 if test "${enable_fixed_point+set}" = set; then :
7656 enableval=$enable_fixed_point;
7657 else
7659 case $target in
7660 arm*)
7661 enable_fixed_point=yes
7664 mips*-*-*)
7665 enable_fixed_point=yes
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7669 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7670 enable_fixed_point=no
7672 esac
7678 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7680 cat >>confdefs.h <<_ACEOF
7681 #define ENABLE_FIXED_POINT $fixedpoint
7682 _ACEOF
7685 # Enable threads
7686 # Pass with no value to take the default
7687 # Pass with a value to specify a thread package
7688 # Check whether --enable-threads was given.
7689 if test "${enable_threads+set}" = set; then :
7690 enableval=$enable_threads;
7691 else
7692 enable_threads=''
7696 # Check whether --enable-tls was given.
7697 if test "${enable_tls+set}" = set; then :
7698 enableval=$enable_tls;
7699 case $enable_tls in
7700 yes | no) ;;
7701 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7702 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7703 esac
7705 else
7706 enable_tls=''
7710 # Check whether --enable-vtable-verify was given.
7711 if test "${enable_vtable_verify+set}" = set; then :
7712 enableval=$enable_vtable_verify;
7713 else
7714 enable_vtable_verify=no
7717 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7719 cat >>confdefs.h <<_ACEOF
7720 #define ENABLE_VTABLE_VERIFY $vtable_verify
7721 _ACEOF
7724 # Check whether --enable-analyzer was given.
7725 if test "${enable_analyzer+set}" = set; then :
7726 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7727 analyzer=0
7728 else
7729 analyzer=1
7731 else
7732 analyzer=1
7736 cat >>confdefs.h <<_ACEOF
7737 #define ENABLE_ANALYZER $analyzer
7738 _ACEOF
7741 # Check whether --enable-objc-gc was given.
7742 if test "${enable_objc_gc+set}" = set; then :
7743 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7744 objc_boehm_gc=''
7745 else
7746 objc_boehm_gc=1
7748 else
7749 objc_boehm_gc=''
7754 # Check whether --with-dwarf2 was given.
7755 if test "${with_dwarf2+set}" = set; then :
7756 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7757 else
7758 dwarf2=no
7762 # Check whether --enable-shared was given.
7763 if test "${enable_shared+set}" = set; then :
7764 enableval=$enable_shared;
7765 case $enable_shared in
7766 yes | no) ;;
7768 enable_shared=no
7769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7770 for pkg in $enableval; do
7771 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7772 enable_shared=yes
7774 done
7775 IFS="$ac_save_ifs"
7777 esac
7779 else
7780 enable_shared=yes
7785 # Check whether --enable-gcov was given.
7786 if test "${enable_gcov+set}" = set; then :
7787 enableval=$enable_gcov;
7788 else
7789 enable_gcov=yes
7795 # Check whether --with-specs was given.
7796 if test "${with_specs+set}" = set; then :
7797 withval=$with_specs; CONFIGURE_SPECS=$withval
7798 else
7799 CONFIGURE_SPECS=
7807 # Check whether --with-pkgversion was given.
7808 if test "${with_pkgversion+set}" = set; then :
7809 withval=$with_pkgversion; case "$withval" in
7810 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7811 no) PKGVERSION= ;;
7812 *) PKGVERSION="($withval) " ;;
7813 esac
7814 else
7815 PKGVERSION="(GCC) "
7823 # Check whether --with-bugurl was given.
7824 if test "${with_bugurl+set}" = set; then :
7825 withval=$with_bugurl; case "$withval" in
7826 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7827 no) BUGURL=
7829 *) BUGURL="$withval"
7831 esac
7832 else
7833 BUGURL="https://gcc.gnu.org/bugs/"
7837 case ${BUGURL} in
7839 REPORT_BUGS_TO=
7840 REPORT_BUGS_TEXI=
7843 REPORT_BUGS_TO="<$BUGURL>"
7844 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7846 esac;
7851 # Allow overriding the default URL for documentation
7853 # Check whether --with-documentation-root-url was given.
7854 if test "${with_documentation_root_url+set}" = set; then :
7855 withval=$with_documentation_root_url; case "$withval" in
7856 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7857 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7858 */) DOCUMENTATION_ROOT_URL="$withval" ;;
7859 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
7860 esac
7861 else
7862 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7867 cat >>confdefs.h <<_ACEOF
7868 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7869 _ACEOF
7872 # Allow overriding the default URL for GCC changes
7874 # Check whether --with-changes-root-url was given.
7875 if test "${with_changes_root_url+set}" = set; then :
7876 withval=$with_changes_root_url; case "$withval" in
7877 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7878 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7879 */) CHANGES_ROOT_URL="$withval" ;;
7880 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
7881 esac
7882 else
7883 CHANGES_ROOT_URL="https://gcc.gnu.org/"
7888 cat >>confdefs.h <<_ACEOF
7889 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7890 _ACEOF
7893 # Sanity check enable_languages in case someone does not run the toplevel
7894 # configure # script.
7895 # Check whether --enable-languages was given.
7896 if test "${enable_languages+set}" = set; then :
7897 enableval=$enable_languages; case ,${enable_languages}, in
7898 ,,|,yes,)
7899 # go safe -- we cannot be much sure without the toplevel
7900 # configure's
7901 # analysis of which target libs are present and usable
7902 enable_languages=c
7904 *,all,*)
7905 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7907 *,c,*)
7910 enable_languages=c,${enable_languages}
7912 esac
7913 else
7914 enable_languages=c
7918 # If top-level libada has been disabled, then wire in install-gnatlib
7919 # invocation with `make install', so that one can build and install
7920 # the library manually with `make -C gcc all gnatlib gnattools install'.
7921 if test x"$enable_libada" = xno; then
7922 gnat_install_lib=gnat-install-lib
7923 else
7924 gnat_install_lib=
7928 if test x"$enable_as_accelerator_for" != x; then
7930 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7932 enable_as_accelerator=yes
7933 case "${target}" in
7934 *-intelmicemul-*)
7935 # In this case we expect offload compiler to be built as native, so we
7936 # need to rename the driver to avoid clashes with host's drivers.
7937 program_transform_name="s&^&${target}-&" ;;
7938 esac
7939 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7940 program_transform_name=`echo $program_transform_name | sed $sedscript`
7941 accel_dir_suffix=/accel/${target_noncanonical}
7942 real_target_noncanonical=${enable_as_accelerator_for}
7948 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7949 tgt=`echo $tgt | sed 's/=.*//'`
7951 enable_offloading=1
7952 case "$tgt" in
7953 *-intelmic-* | *-intelmicemul-*)
7954 omp_device_property=omp-device-properties-i386
7955 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7957 amdgcn*)
7958 omp_device_property=omp-device-properties-gcn
7959 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7961 nvptx*)
7962 omp_device_property=omp-device-properties-nvptx
7963 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7966 as_fn_error $? "unknown offload target specified" "$LINENO" 5
7968 esac
7969 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7970 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7972 if test x"$offload_targets" = x; then
7973 offload_targets=$tgt
7974 else
7975 offload_targets="$offload_targets,$tgt"
7977 done
7982 cat >>confdefs.h <<_ACEOF
7983 #define OFFLOAD_TARGETS "$offload_targets"
7984 _ACEOF
7986 if test x"$enable_offloading" != x; then
7988 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7990 else
7992 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7997 # Check whether --with-multilib-list was given.
7998 if test "${with_multilib_list+set}" = set; then :
7999 withval=$with_multilib_list; :
8000 else
8001 with_multilib_list=default
8005 # -------------------------
8006 # Checks for other programs
8007 # -------------------------
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8010 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8011 set x ${MAKE-make}
8012 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8013 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 cat >conftest.make <<\_ACEOF
8017 SHELL = /bin/sh
8018 all:
8019 @echo '@@@%%%=$(MAKE)=@@@%%%'
8020 _ACEOF
8021 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8022 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8023 *@@@%%%=?*=@@@%%%*)
8024 eval ac_cv_prog_make_${ac_make}_set=yes;;
8026 eval ac_cv_prog_make_${ac_make}_set=no;;
8027 esac
8028 rm -f conftest.make
8030 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8032 $as_echo "yes" >&6; }
8033 SET_MAKE=
8034 else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 SET_MAKE="MAKE=${MAKE-make}"
8041 # Find some useful tools
8042 for ac_prog in gawk mawk nawk awk
8044 # Extract the first word of "$ac_prog", so it can be a program name with args.
8045 set dummy $ac_prog; ac_word=$2
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047 $as_echo_n "checking for $ac_word... " >&6; }
8048 if ${ac_cv_prog_AWK+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 if test -n "$AWK"; then
8052 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8053 else
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_AWK="$ac_prog"
8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8065 done
8066 done
8067 IFS=$as_save_IFS
8071 AWK=$ac_cv_prog_AWK
8072 if test -n "$AWK"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8074 $as_echo "$AWK" >&6; }
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8081 test -n "$AWK" && break
8082 done
8084 # We need awk to create options.c and options.h.
8085 # Bail out if it's missing.
8086 case ${AWK} in
8087 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8088 esac
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8091 $as_echo_n "checking whether ln -s works... " >&6; }
8092 if ${gcc_cv_prog_LN_S+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 rm -f conftestdata_t
8096 echo >conftestdata_f
8097 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8098 then
8099 gcc_cv_prog_LN_S="ln -s"
8100 else
8101 if ln conftestdata_f conftestdata_t 2>/dev/null
8102 then
8103 gcc_cv_prog_LN_S=ln
8104 else
8105 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8106 then
8107 gcc_cv_prog_LN_S="cp -p"
8108 else
8109 gcc_cv_prog_LN_S=cp
8113 rm -f conftestdata_f conftestdata_t
8116 LN_S="$gcc_cv_prog_LN_S"
8117 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8119 $as_echo "yes" >&6; }
8120 else
8121 if test "$gcc_cv_prog_LN_S" = "ln"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8123 $as_echo "no, using ln" >&6; }
8124 else
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8126 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8131 $as_echo_n "checking whether ln works... " >&6; }
8132 if ${acx_cv_prog_LN+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 rm -f conftestdata_t
8136 echo >conftestdata_f
8137 if ln conftestdata_f conftestdata_t 2>/dev/null
8138 then
8139 acx_cv_prog_LN=ln
8140 else
8141 acx_cv_prog_LN=no
8143 rm -f conftestdata_f conftestdata_t
8146 if test $acx_cv_prog_LN = no; then
8147 LN="$LN_S"
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8149 $as_echo "no, using $LN" >&6; }
8150 else
8151 LN="$acx_cv_prog_LN"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8153 $as_echo "yes" >&6; }
8156 if test -n "$ac_tool_prefix"; then
8157 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8158 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if ${ac_cv_prog_RANLIB+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 if test -n "$RANLIB"; then
8165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8178 done
8179 done
8180 IFS=$as_save_IFS
8184 RANLIB=$ac_cv_prog_RANLIB
8185 if test -n "$RANLIB"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8187 $as_echo "$RANLIB" >&6; }
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8195 if test -z "$ac_cv_prog_RANLIB"; then
8196 ac_ct_RANLIB=$RANLIB
8197 # Extract the first word of "ranlib", so it can be a program name with args.
8198 set dummy ranlib; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 if test -n "$ac_ct_RANLIB"; then
8205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8214 ac_cv_prog_ac_ct_RANLIB="ranlib"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8218 done
8219 done
8220 IFS=$as_save_IFS
8224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8225 if test -n "$ac_ct_RANLIB"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8227 $as_echo "$ac_ct_RANLIB" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8233 if test "x$ac_ct_RANLIB" = x; then
8234 RANLIB=":"
8235 else
8236 case $cross_compiling:$ac_tool_warned in
8237 yes:)
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8240 ac_tool_warned=yes ;;
8241 esac
8242 RANLIB=$ac_ct_RANLIB
8244 else
8245 RANLIB="$ac_cv_prog_RANLIB"
8248 ranlib_flags=""
8251 # Find a good install program. We prefer a C program (faster),
8252 # so one script is as good as another. But avoid the broken or
8253 # incompatible versions:
8254 # SysV /etc/install, /usr/sbin/install
8255 # SunOS /usr/etc/install
8256 # IRIX /sbin/install
8257 # AIX /bin/install
8258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8260 # ./install, which can be erroneously created by make from ./install.sh.
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8262 $as_echo_n "checking for a BSD compatible install... " >&6; }
8263 if test -z "$INSTALL"; then
8264 if ${ac_cv_path_install+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8268 for ac_dir in $PATH; do
8269 # Account for people who put trailing slashes in PATH elements.
8270 case "$ac_dir/" in
8271 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8273 # OSF1 and SCO ODT 3.0 have their own names for install.
8274 for ac_prog in ginstall scoinst install; do
8275 if test -f $ac_dir/$ac_prog; then
8276 if test $ac_prog = install &&
8277 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8278 # AIX install. It has an incompatible calling convention.
8279 # OSF/1 installbsd also uses dspmsg, but is usable.
8281 else
8282 ac_cv_path_install="$ac_dir/$ac_prog -c"
8283 break 2
8286 done
8288 esac
8289 done
8290 IFS="$ac_save_IFS"
8293 if test "${ac_cv_path_install+set}" = set; then
8294 INSTALL="$ac_cv_path_install"
8295 else
8296 # As a last resort, use the slow shell script. We don't cache a
8297 # path for INSTALL within a source directory, because that will
8298 # break other packages using the cache if that directory is
8299 # removed, or if the path is relative.
8300 INSTALL="$ac_install_sh"
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8304 $as_echo "$INSTALL" >&6; }
8306 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8307 # It thinks the first close brace ends the variable substitution.
8308 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8313 # See if cmp has --ignore-initial.
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8315 $as_echo_n "checking for cmp's capabilities... " >&6; }
8316 if ${gcc_cv_prog_cmp_skip+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 echo abfoo >t1
8320 echo cdfoo >t2
8321 gcc_cv_prog_cmp_skip=slowcompare
8322 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8323 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8325 else
8326 gcc_cv_prog_cmp_skip=gnucompare
8329 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8330 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8331 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8333 else
8334 gcc_cv_prog_cmp_skip=fastcompare
8338 rm t1 t2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8342 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8343 make_compare_target=$gcc_cv_prog_cmp_skip
8347 # See if we have the mktemp command.
8348 # Extract the first word of "mktemp", so it can be a program name with args.
8349 set dummy mktemp; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 if test -n "$have_mktemp_command"; then
8356 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8365 ac_cv_prog_have_mktemp_command="yes"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8369 done
8370 done
8371 IFS=$as_save_IFS
8373 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8376 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8377 if test -n "$have_mktemp_command"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8379 $as_echo "$have_mktemp_command" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8387 # See if makeinfo has been installed and is modern enough
8388 # that we can use it.
8390 # Extract the first word of "makeinfo", so it can be a program name with args.
8391 set dummy makeinfo; ac_word=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if ${ac_cv_prog_MAKEINFO+:} false; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 if test -n "$MAKEINFO"; then
8398 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8399 else
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 for as_dir in $PATH
8403 IFS=$as_save_IFS
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8407 ac_cv_prog_MAKEINFO="makeinfo"
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 break 2
8411 done
8412 done
8413 IFS=$as_save_IFS
8417 MAKEINFO=$ac_cv_prog_MAKEINFO
8418 if test -n "$MAKEINFO"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8420 $as_echo "$MAKEINFO" >&6; }
8421 else
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 $as_echo "no" >&6; }
8427 if test -n "$MAKEINFO"; then
8428 # Found it, now check the version.
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8430 $as_echo_n "checking for modern makeinfo... " >&6; }
8431 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8435 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8437 case $ac_prog_version in
8438 '') gcc_cv_prog_makeinfo_modern=no;;
8439 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8440 *) gcc_cv_prog_makeinfo_modern=no;;
8441 esac
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8445 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8446 else
8447 gcc_cv_prog_makeinfo_modern=no
8449 if test $gcc_cv_prog_makeinfo_modern = no; then
8450 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8453 if test $gcc_cv_prog_makeinfo_modern = no; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8455 *** Makeinfo is missing or too old.
8456 *** Info documentation will not be built." >&5
8457 $as_echo "$as_me: WARNING:
8458 *** Makeinfo is missing or too old.
8459 *** Info documentation will not be built." >&2;}
8460 BUILD_INFO=
8461 else
8462 BUILD_INFO=info
8466 # Is pod2man recent enough to regenerate manpages?
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8468 $as_echo_n "checking for recent Pod::Man... " >&6; }
8469 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8471 $as_echo "yes" >&6; }
8472 GENERATED_MANPAGES=generated-manpages
8473 else
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8476 GENERATED_MANPAGES=
8480 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8482 # How about lex?
8483 for ac_prog in flex
8485 # Extract the first word of "$ac_prog", so it can be a program name with args.
8486 set dummy $ac_prog; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_FLEX+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 if test -n "$FLEX"; then
8493 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8494 else
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8498 IFS=$as_save_IFS
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8502 ac_cv_prog_FLEX="$ac_prog"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504 break 2
8506 done
8507 done
8508 IFS=$as_save_IFS
8512 FLEX=$ac_cv_prog_FLEX
8513 if test -n "$FLEX"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8515 $as_echo "$FLEX" >&6; }
8516 else
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8522 test -n "$FLEX" && break
8523 done
8524 test -n "$FLEX" || FLEX="$MISSING flex"
8527 # Bison?
8528 for ac_prog in bison
8530 # Extract the first word of "$ac_prog", so it can be a program name with args.
8531 set dummy $ac_prog; ac_word=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_BISON+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 if test -n "$BISON"; then
8538 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_BISON="$ac_prog"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8551 done
8552 done
8553 IFS=$as_save_IFS
8557 BISON=$ac_cv_prog_BISON
8558 if test -n "$BISON"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8560 $as_echo "$BISON" >&6; }
8561 else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8567 test -n "$BISON" && break
8568 done
8569 test -n "$BISON" || BISON="$MISSING bison"
8572 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8573 # check for build == host before using them.
8575 # NM
8576 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8577 && test -d ../binutils ; then
8578 NM='${objdir}/../binutils/nm-new'
8579 else
8580 # Extract the first word of "nm", so it can be a program name with args.
8581 set dummy nm; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_prog_NM+:} false; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 if test -n "$NM"; then
8588 ac_cv_prog_NM="$NM" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597 ac_cv_prog_NM="nm"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8601 done
8602 done
8603 IFS=$as_save_IFS
8605 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8608 NM=$ac_cv_prog_NM
8609 if test -n "$NM"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8611 $as_echo "$NM" >&6; }
8612 else
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8620 # AR
8621 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8622 && test -d ../binutils ; then
8623 AR='${objdir}/../binutils/ar'
8624 else
8625 # Extract the first word of "ar", so it can be a program name with args.
8626 set dummy ar; ac_word=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if ${ac_cv_prog_AR+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 if test -n "$AR"; then
8633 ac_cv_prog_AR="$AR" # Let the user override the test.
8634 else
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636 for as_dir in $PATH
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642 ac_cv_prog_AR="ar"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8646 done
8647 done
8648 IFS=$as_save_IFS
8650 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8653 AR=$ac_cv_prog_AR
8654 if test -n "$AR"; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8656 $as_echo "$AR" >&6; }
8657 else
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659 $as_echo "no" >&6; }
8665 # The jit documentation looks better if built with sphinx, but can be
8666 # built with texinfo if sphinx is not available.
8667 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8668 # Extract the first word of "sphinx-build", so it can be a program name with args.
8669 set dummy sphinx-build; ac_word=$2
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8671 $as_echo_n "checking for $ac_word... " >&6; }
8672 if ${ac_cv_prog_doc_build_sys+:} false; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 if test -n "$doc_build_sys"; then
8676 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8677 else
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8681 IFS=$as_save_IFS
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685 ac_cv_prog_doc_build_sys="sphinx"
8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 break 2
8689 done
8690 done
8691 IFS=$as_save_IFS
8693 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8696 doc_build_sys=$ac_cv_prog_doc_build_sys
8697 if test -n "$doc_build_sys"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8699 $as_echo "$doc_build_sys" >&6; }
8700 else
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8707 # --------------------
8708 # Checks for C headers
8709 # --------------------
8711 # Need to reject headers which give warnings, so that the -Werror bootstrap
8712 # works later. *sigh* This needs to come before all header checks.
8714 ac_c_preproc_warn_flag=yes
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8717 $as_echo_n "checking for ANSI C header files... " >&6; }
8718 if ${ac_cv_header_stdc+:} false; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 #include <stdlib.h>
8724 #include <stdarg.h>
8725 #include <string.h>
8726 #include <float.h>
8729 main ()
8733 return 0;
8735 _ACEOF
8736 if ac_fn_cxx_try_compile "$LINENO"; then :
8737 ac_cv_header_stdc=yes
8738 else
8739 ac_cv_header_stdc=no
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 if test $ac_cv_header_stdc = yes; then
8744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747 #include <string.h>
8749 _ACEOF
8750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8751 $EGREP "memchr" >/dev/null 2>&1; then :
8753 else
8754 ac_cv_header_stdc=no
8756 rm -f conftest*
8760 if test $ac_cv_header_stdc = yes; then
8761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8764 #include <stdlib.h>
8766 _ACEOF
8767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8768 $EGREP "free" >/dev/null 2>&1; then :
8770 else
8771 ac_cv_header_stdc=no
8773 rm -f conftest*
8777 if test $ac_cv_header_stdc = yes; then
8778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8779 if test "$cross_compiling" = yes; then :
8781 else
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 #include <ctype.h>
8785 #include <stdlib.h>
8786 #if ((' ' & 0x0FF) == 0x020)
8787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8789 #else
8790 # define ISLOWER(c) \
8791 (('a' <= (c) && (c) <= 'i') \
8792 || ('j' <= (c) && (c) <= 'r') \
8793 || ('s' <= (c) && (c) <= 'z'))
8794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8795 #endif
8797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8799 main ()
8801 int i;
8802 for (i = 0; i < 256; i++)
8803 if (XOR (islower (i), ISLOWER (i))
8804 || toupper (i) != TOUPPER (i))
8805 return 2;
8806 return 0;
8808 _ACEOF
8809 if ac_fn_cxx_try_run "$LINENO"; then :
8811 else
8812 ac_cv_header_stdc=no
8814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8815 conftest.$ac_objext conftest.beam conftest.$ac_ext
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8821 $as_echo "$ac_cv_header_stdc" >&6; }
8822 if test $ac_cv_header_stdc = yes; then
8824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8829 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8830 if ${ac_cv_header_time+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8835 #include <sys/types.h>
8836 #include <sys/time.h>
8837 #include <time.h>
8840 main ()
8842 if ((struct tm *) 0)
8843 return 0;
8845 return 0;
8847 _ACEOF
8848 if ac_fn_cxx_try_compile "$LINENO"; then :
8849 ac_cv_header_time=yes
8850 else
8851 ac_cv_header_time=no
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8856 $as_echo "$ac_cv_header_time" >&6; }
8857 if test $ac_cv_header_time = yes; then
8859 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8864 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8865 if ${gcc_cv_header_string+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 #include <string.h>
8871 #include <strings.h>
8873 main ()
8877 return 0;
8879 _ACEOF
8880 if ac_fn_cxx_try_compile "$LINENO"; then :
8881 gcc_cv_header_string=yes
8882 else
8883 gcc_cv_header_string=no
8885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8888 $as_echo "$gcc_cv_header_string" >&6; }
8889 if test $gcc_cv_header_string = yes; then
8891 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8896 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8897 if ${ac_cv_header_sys_wait_h+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 #include <sys/types.h>
8903 #include <sys/wait.h>
8904 #ifndef WEXITSTATUS
8905 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8906 #endif
8907 #ifndef WIFEXITED
8908 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8909 #endif
8912 main ()
8914 int s;
8915 wait (&s);
8916 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8918 return 0;
8920 _ACEOF
8921 if ac_fn_cxx_try_compile "$LINENO"; then :
8922 ac_cv_header_sys_wait_h=yes
8923 else
8924 ac_cv_header_sys_wait_h=no
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8929 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8930 if test $ac_cv_header_sys_wait_h = yes; then
8932 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8937 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8938 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 #include <sys/types.h>
8944 #include <termios.h>
8945 #ifdef TIOCGWINSZ
8947 #endif
8949 _ACEOF
8950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8951 $EGREP "yes" >/dev/null 2>&1; then :
8952 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8953 else
8954 ac_cv_sys_tiocgwinsz_in_termios_h=no
8956 rm -f conftest*
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8960 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8962 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8964 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8965 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 #include <sys/types.h>
8971 #include <sys/ioctl.h>
8972 #ifdef TIOCGWINSZ
8974 #endif
8976 _ACEOF
8977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8978 $EGREP "yes" >/dev/null 2>&1; then :
8979 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8980 else
8981 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8983 rm -f conftest*
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8987 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8989 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8991 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8996 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8997 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8998 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8999 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9000 do :
9001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9002 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9003 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9004 cat >>confdefs.h <<_ACEOF
9005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9006 _ACEOF
9009 done
9012 # Check for thread headers.
9013 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9014 if test "x$ac_cv_header_thread_h" = xyes; then :
9015 have_thread_h=yes
9016 else
9017 have_thread_h=
9020 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9021 if test "x$ac_cv_header_pthread_h" = xyes; then :
9022 have_pthread_h=yes
9023 else
9024 have_pthread_h=
9028 # These tests can't be done till we know if we have limits.h.
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9030 $as_echo_n "checking for CHAR_BIT... " >&6; }
9031 if ${gcc_cv_decl_char_bit+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036 #ifdef HAVE_LIMITS_H
9037 #include <limits.h>
9038 #endif
9039 #ifdef CHAR_BIT
9040 found
9041 #endif
9042 _ACEOF
9043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9044 $EGREP "found" >/dev/null 2>&1; then :
9045 gcc_cv_decl_char_bit=yes
9046 else
9047 gcc_cv_decl_char_bit=no
9049 rm -f conftest*
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9054 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9055 if test $gcc_cv_decl_char_bit = no; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9057 $as_echo_n "checking number of bits in a byte... " >&6; }
9058 if ${gcc_cv_c_nbby+:} false; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9062 gcc_cv_c_nbby=
9063 while test $i -lt 65; do
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9068 main ()
9070 switch(0) {
9071 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9072 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9075 return 0;
9077 _ACEOF
9078 if ac_fn_cxx_try_compile "$LINENO"; then :
9079 gcc_cv_c_nbby=$i; break
9081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 i=`expr $i + 1`
9083 done
9084 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9088 $as_echo "$gcc_cv_c_nbby" >&6; }
9089 if test $gcc_cv_c_nbby = failed; then
9090 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9091 else
9093 cat >>confdefs.h <<_ACEOF
9094 #define CHAR_BIT $gcc_cv_c_nbby
9095 _ACEOF
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9100 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9101 if ${ac_cv_c_bigendian+:} false; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 ac_cv_c_bigendian=unknown
9105 # See if we're dealing with a universal compiler.
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9108 #ifndef __APPLE_CC__
9109 not a universal capable compiler
9110 #endif
9111 typedef int dummy;
9113 _ACEOF
9114 if ac_fn_cxx_try_compile "$LINENO"; then :
9116 # Check for potential -arch flags. It is not universal unless
9117 # there are at least two -arch flags with different values.
9118 ac_arch=
9119 ac_prev=
9120 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9121 if test -n "$ac_prev"; then
9122 case $ac_word in
9123 i?86 | x86_64 | ppc | ppc64)
9124 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9125 ac_arch=$ac_word
9126 else
9127 ac_cv_c_bigendian=universal
9128 break
9131 esac
9132 ac_prev=
9133 elif test "x$ac_word" = "x-arch"; then
9134 ac_prev=arch
9136 done
9138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9139 if test $ac_cv_c_bigendian = unknown; then
9140 # See if sys/param.h defines the BYTE_ORDER macro.
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9143 #include <sys/types.h>
9144 #include <sys/param.h>
9147 main ()
9149 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9150 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9151 && LITTLE_ENDIAN)
9152 bogus endian macros
9153 #endif
9156 return 0;
9158 _ACEOF
9159 if ac_fn_cxx_try_compile "$LINENO"; then :
9160 # It does; now see whether it defined to BIG_ENDIAN or not.
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 #include <sys/types.h>
9164 #include <sys/param.h>
9167 main ()
9169 #if BYTE_ORDER != BIG_ENDIAN
9170 not big endian
9171 #endif
9174 return 0;
9176 _ACEOF
9177 if ac_fn_cxx_try_compile "$LINENO"; then :
9178 ac_cv_c_bigendian=yes
9179 else
9180 ac_cv_c_bigendian=no
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186 if test $ac_cv_c_bigendian = unknown; then
9187 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190 #include <limits.h>
9193 main ()
9195 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9196 bogus endian macros
9197 #endif
9200 return 0;
9202 _ACEOF
9203 if ac_fn_cxx_try_compile "$LINENO"; then :
9204 # It does; now see whether it defined to _BIG_ENDIAN or not.
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 #include <limits.h>
9210 main ()
9212 #ifndef _BIG_ENDIAN
9213 not big endian
9214 #endif
9217 return 0;
9219 _ACEOF
9220 if ac_fn_cxx_try_compile "$LINENO"; then :
9221 ac_cv_c_bigendian=yes
9222 else
9223 ac_cv_c_bigendian=no
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 if test $ac_cv_c_bigendian = unknown; then
9230 # Compile a test program.
9231 if test "$cross_compiling" = yes; then :
9232 # Try to guess by grepping values from an object file.
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 short int ascii_mm[] =
9236 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9237 short int ascii_ii[] =
9238 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9239 int use_ascii (int i) {
9240 return ascii_mm[i] + ascii_ii[i];
9242 short int ebcdic_ii[] =
9243 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9244 short int ebcdic_mm[] =
9245 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9246 int use_ebcdic (int i) {
9247 return ebcdic_mm[i] + ebcdic_ii[i];
9249 extern int foo;
9252 main ()
9254 return use_ascii (foo) == use_ebcdic (foo);
9256 return 0;
9258 _ACEOF
9259 if ac_fn_cxx_try_compile "$LINENO"; then :
9260 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9261 ac_cv_c_bigendian=yes
9263 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9264 if test "$ac_cv_c_bigendian" = unknown; then
9265 ac_cv_c_bigendian=no
9266 else
9267 # finding both strings is unlikely to happen, but who knows?
9268 ac_cv_c_bigendian=unknown
9272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273 else
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 $ac_includes_default
9278 main ()
9281 /* Are we little or big endian? From Harbison&Steele. */
9282 union
9284 long int l;
9285 char c[sizeof (long int)];
9286 } u;
9287 u.l = 1;
9288 return u.c[sizeof (long int) - 1] == 1;
9291 return 0;
9293 _ACEOF
9294 if ac_fn_cxx_try_run "$LINENO"; then :
9295 ac_cv_c_bigendian=no
9296 else
9297 ac_cv_c_bigendian=yes
9299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9300 conftest.$ac_objext conftest.beam conftest.$ac_ext
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9306 $as_echo "$ac_cv_c_bigendian" >&6; }
9307 case $ac_cv_c_bigendian in #(
9308 yes)
9309 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9310 ;; #(
9312 ;; #(
9313 universal)
9315 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9317 ;; #(
9319 as_fn_error $? "unknown endianness
9320 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9321 esac
9324 # ----------------------
9325 # Checks for C++ headers
9326 # ----------------------
9328 ac_ext=cpp
9329 ac_cpp='$CXXCPP $CPPFLAGS'
9330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9334 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9335 if test -z "$CXXCPP"; then
9336 if ${ac_cv_prog_CXXCPP+:} false; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 # Double quotes because CXXCPP needs to be expanded
9340 for CXXCPP in "$CXX -E" "/lib/cpp"
9342 ac_preproc_ok=false
9343 for ac_cxx_preproc_warn_flag in '' yes
9345 # Use a header file that comes with gcc, so configuring glibc
9346 # with a fresh cross-compiler works.
9347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9348 # <limits.h> exists even on freestanding compilers.
9349 # On the NeXT, cc -E runs the code through the compiler's parser,
9350 # not just through cpp. "Syntax error" is here to catch this case.
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 #ifdef __STDC__
9354 # include <limits.h>
9355 #else
9356 # include <assert.h>
9357 #endif
9358 Syntax error
9359 _ACEOF
9360 if ac_fn_cxx_try_cpp "$LINENO"; then :
9362 else
9363 # Broken: fails on valid input.
9364 continue
9366 rm -f conftest.err conftest.i conftest.$ac_ext
9368 # OK, works on sane cases. Now check whether nonexistent headers
9369 # can be detected and how.
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9372 #include <ac_nonexistent.h>
9373 _ACEOF
9374 if ac_fn_cxx_try_cpp "$LINENO"; then :
9375 # Broken: success on invalid input.
9376 continue
9377 else
9378 # Passes both tests.
9379 ac_preproc_ok=:
9380 break
9382 rm -f conftest.err conftest.i conftest.$ac_ext
9384 done
9385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9386 rm -f conftest.i conftest.err conftest.$ac_ext
9387 if $ac_preproc_ok; then :
9388 break
9391 done
9392 ac_cv_prog_CXXCPP=$CXXCPP
9395 CXXCPP=$ac_cv_prog_CXXCPP
9396 else
9397 ac_cv_prog_CXXCPP=$CXXCPP
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9400 $as_echo "$CXXCPP" >&6; }
9401 ac_preproc_ok=false
9402 for ac_cxx_preproc_warn_flag in '' yes
9404 # Use a header file that comes with gcc, so configuring glibc
9405 # with a fresh cross-compiler works.
9406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 # <limits.h> exists even on freestanding compilers.
9408 # On the NeXT, cc -E runs the code through the compiler's parser,
9409 # not just through cpp. "Syntax error" is here to catch this case.
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 #ifdef __STDC__
9413 # include <limits.h>
9414 #else
9415 # include <assert.h>
9416 #endif
9417 Syntax error
9418 _ACEOF
9419 if ac_fn_cxx_try_cpp "$LINENO"; then :
9421 else
9422 # Broken: fails on valid input.
9423 continue
9425 rm -f conftest.err conftest.i conftest.$ac_ext
9427 # OK, works on sane cases. Now check whether nonexistent headers
9428 # can be detected and how.
9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9431 #include <ac_nonexistent.h>
9432 _ACEOF
9433 if ac_fn_cxx_try_cpp "$LINENO"; then :
9434 # Broken: success on invalid input.
9435 continue
9436 else
9437 # Passes both tests.
9438 ac_preproc_ok=:
9439 break
9441 rm -f conftest.err conftest.i conftest.$ac_ext
9443 done
9444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9445 rm -f conftest.i conftest.err conftest.$ac_ext
9446 if $ac_preproc_ok; then :
9448 else
9449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9452 See \`config.log' for more details" >&5
9453 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9454 See \`config.log' for more details" >&2;}; }
9457 ac_ext=cpp
9458 ac_cpp='$CXXCPP $CPPFLAGS'
9459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9464 for ac_header in unordered_map
9465 do :
9466 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9467 if test "x$ac_cv_header_unordered_map" = xyes; then :
9468 cat >>confdefs.h <<_ACEOF
9469 #define HAVE_UNORDERED_MAP 1
9470 _ACEOF
9473 done
9475 for ac_header in tr1/unordered_map
9476 do :
9477 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9478 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9479 cat >>confdefs.h <<_ACEOF
9480 #define HAVE_TR1_UNORDERED_MAP 1
9481 _ACEOF
9484 done
9486 for ac_header in ext/hash_map
9487 do :
9488 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9489 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9490 cat >>confdefs.h <<_ACEOF
9491 #define HAVE_EXT_HASH_MAP 1
9492 _ACEOF
9495 done
9498 # --------
9499 # Dependency checking.
9500 # --------
9502 rm -rf .tst 2>/dev/null
9503 mkdir .tst 2>/dev/null
9504 if test -d .tst; then
9505 am__leading_dot=.
9506 else
9507 am__leading_dot=_
9509 rmdir .tst 2>/dev/null
9511 DEPDIR="${am__leading_dot}deps"
9513 ac_config_commands="$ac_config_commands depdir"
9516 ac_config_commands="$ac_config_commands gccdepdir"
9519 depcc="$CXX" am_compiler_list=
9521 am_depcomp=$ac_aux_dir/depcomp
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9523 $as_echo_n "checking dependency style of $depcc... " >&6; }
9524 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 if test -f "$am_depcomp"; then
9528 # We make a subdir and do the tests there. Otherwise we can end up
9529 # making bogus files that we don't know about and never remove. For
9530 # instance it was reported that on HP-UX the gcc test will end up
9531 # making a dummy file named `D' -- because `-MD' means `put the output
9532 # in D'.
9533 mkdir conftest.dir
9534 # Copy depcomp to subdir because otherwise we won't find it if we're
9535 # using a relative directory.
9536 cp "$am_depcomp" conftest.dir
9537 cd conftest.dir
9538 # We will build objects and dependencies in a subdirectory because
9539 # it helps to detect inapplicable dependency modes. For instance
9540 # both Tru64's cc and ICC support -MD to output dependencies as a
9541 # side effect of compilation, but ICC will put the dependencies in
9542 # the current directory while Tru64 will put them in the object
9543 # directory.
9544 mkdir sub
9546 am_cv_CXX_dependencies_compiler_type=none
9547 if test "$am_compiler_list" = ""; then
9548 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9550 for depmode in $am_compiler_list; do
9551 if test $depmode = none; then break; fi
9553 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9554 # Setup a source with many dependencies, because some compilers
9555 # like to wrap large dependency lists on column 80 (with \), and
9556 # we should not choose a depcomp mode which is confused by this.
9558 # We need to recreate these files for each test, as the compiler may
9559 # overwrite some of them when testing with obscure command lines.
9560 # This happens at least with the AIX C compiler.
9561 : > sub/conftest.c
9562 for i in 1 2 3 4 5 6; do
9563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9565 # Solaris 8's {/usr,}/bin/sh.
9566 touch sub/conftst$i.h
9567 done
9568 echo "include sub/conftest.Po" > confmf
9570 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9571 # mode. It turns out that the SunPro C++ compiler does not properly
9572 # handle `-M -o', and we need to detect this.
9573 depcmd="depmode=$depmode \
9574 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9575 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9576 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9577 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9578 if env $depcmd > conftest.err 2>&1 &&
9579 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9580 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9581 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9582 # icc doesn't choke on unknown options, it will just issue warnings
9583 # or remarks (even with -Werror). So we grep stderr for any message
9584 # that says an option was ignored or not supported.
9585 # When given -MP, icc 7.0 and 7.1 complain thusly:
9586 # icc: Command line warning: ignoring option '-M'; no argument required
9587 # The diagnosis changed in icc 8.0:
9588 # icc: Command line remark: option '-MP' not supported
9589 if (grep 'ignoring option' conftest.err ||
9590 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9591 am_cv_CXX_dependencies_compiler_type=$depmode
9592 $as_echo "$as_me:$LINENO: success" >&5
9593 break
9596 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9597 sed -e 's/^/| /' < conftest.err >&5
9598 done
9600 cd ..
9601 rm -rf conftest.dir
9602 else
9603 am_cv_CXX_dependencies_compiler_type=none
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9608 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9609 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9610 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9611 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9616 # --------
9617 # UNSORTED
9618 # --------
9621 # These libraries may be used by collect2.
9622 # We may need a special search path to get them linked.
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9624 $as_echo_n "checking for collect2 libraries... " >&6; }
9625 if ${gcc_cv_collect2_libs+:} false; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 save_LIBS="$LIBS"
9629 for libs in '' -lld -lmld \
9630 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9631 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9633 LIBS="$libs"
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9637 /* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
9640 #ifdef __cplusplus
9641 extern "C"
9642 #endif
9643 char ldopen ();
9645 main ()
9647 return ldopen ();
9649 return 0;
9651 _ACEOF
9652 if ac_fn_cxx_try_link "$LINENO"; then :
9653 gcc_cv_collect2_libs="$libs"; break
9655 rm -f core conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9657 done
9658 LIBS="$save_LIBS"
9659 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9662 $as_echo "$gcc_cv_collect2_libs" >&6; }
9663 case $gcc_cv_collect2_libs in
9664 "none required") ;;
9665 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9666 esac
9669 # When building Ada code on Alpha, we need exc_resume which is usually in
9670 # -lexc. So test for it.
9671 save_LIBS="$LIBS"
9672 LIBS=
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9674 $as_echo_n "checking for library containing exc_resume... " >&6; }
9675 if ${ac_cv_search_exc_resume+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 ac_func_search_save_LIBS=$LIBS
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9682 /* Override any GCC internal prototype to avoid an error.
9683 Use char because int might match the return type of a GCC
9684 builtin and then its argument prototype would still apply. */
9685 #ifdef __cplusplus
9686 extern "C"
9687 #endif
9688 char exc_resume ();
9690 main ()
9692 return exc_resume ();
9694 return 0;
9696 _ACEOF
9697 for ac_lib in '' exc; do
9698 if test -z "$ac_lib"; then
9699 ac_res="none required"
9700 else
9701 ac_res=-l$ac_lib
9702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9704 if ac_fn_cxx_try_link "$LINENO"; then :
9705 ac_cv_search_exc_resume=$ac_res
9707 rm -f core conftest.err conftest.$ac_objext \
9708 conftest$ac_exeext
9709 if ${ac_cv_search_exc_resume+:} false; then :
9710 break
9712 done
9713 if ${ac_cv_search_exc_resume+:} false; then :
9715 else
9716 ac_cv_search_exc_resume=no
9718 rm conftest.$ac_ext
9719 LIBS=$ac_func_search_save_LIBS
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9722 $as_echo "$ac_cv_search_exc_resume" >&6; }
9723 ac_res=$ac_cv_search_exc_resume
9724 if test "$ac_res" != no; then :
9725 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9729 GNAT_LIBEXC="$LIBS"
9730 LIBS="$save_LIBS"
9733 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9734 save_LIBS="$LIBS"
9735 LIBS=
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9737 $as_echo_n "checking for library containing kstat_open... " >&6; }
9738 if ${ac_cv_search_kstat_open+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 ac_func_search_save_LIBS=$LIBS
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9745 /* Override any GCC internal prototype to avoid an error.
9746 Use char because int might match the return type of a GCC
9747 builtin and then its argument prototype would still apply. */
9748 #ifdef __cplusplus
9749 extern "C"
9750 #endif
9751 char kstat_open ();
9753 main ()
9755 return kstat_open ();
9757 return 0;
9759 _ACEOF
9760 for ac_lib in '' kstat; do
9761 if test -z "$ac_lib"; then
9762 ac_res="none required"
9763 else
9764 ac_res=-l$ac_lib
9765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9767 if ac_fn_cxx_try_link "$LINENO"; then :
9768 ac_cv_search_kstat_open=$ac_res
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext
9772 if ${ac_cv_search_kstat_open+:} false; then :
9773 break
9775 done
9776 if ${ac_cv_search_kstat_open+:} false; then :
9778 else
9779 ac_cv_search_kstat_open=no
9781 rm conftest.$ac_ext
9782 LIBS=$ac_func_search_save_LIBS
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9785 $as_echo "$ac_cv_search_kstat_open" >&6; }
9786 ac_res=$ac_cv_search_kstat_open
9787 if test "$ac_res" != no; then :
9788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9792 EXTRA_GCC_LIBS="$LIBS"
9793 LIBS="$save_LIBS"
9796 # Some systems put ldexp and frexp in libm instead of libc; assume
9797 # they're both in the same place. jcf-dump needs them.
9798 save_LIBS="$LIBS"
9799 LIBS=
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9801 $as_echo_n "checking for library containing ldexp... " >&6; }
9802 if ${ac_cv_search_ldexp+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 ac_func_search_save_LIBS=$LIBS
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9809 /* Override any GCC internal prototype to avoid an error.
9810 Use char because int might match the return type of a GCC
9811 builtin and then its argument prototype would still apply. */
9812 #ifdef __cplusplus
9813 extern "C"
9814 #endif
9815 char ldexp ();
9817 main ()
9819 return ldexp ();
9821 return 0;
9823 _ACEOF
9824 for ac_lib in '' m; do
9825 if test -z "$ac_lib"; then
9826 ac_res="none required"
9827 else
9828 ac_res=-l$ac_lib
9829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9831 if ac_fn_cxx_try_link "$LINENO"; then :
9832 ac_cv_search_ldexp=$ac_res
9834 rm -f core conftest.err conftest.$ac_objext \
9835 conftest$ac_exeext
9836 if ${ac_cv_search_ldexp+:} false; then :
9837 break
9839 done
9840 if ${ac_cv_search_ldexp+:} false; then :
9842 else
9843 ac_cv_search_ldexp=no
9845 rm conftest.$ac_ext
9846 LIBS=$ac_func_search_save_LIBS
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9849 $as_echo "$ac_cv_search_ldexp" >&6; }
9850 ac_res=$ac_cv_search_ldexp
9851 if test "$ac_res" != no; then :
9852 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9856 LDEXP_LIB="$LIBS"
9857 LIBS="$save_LIBS"
9860 # Some systems need dlopen
9861 save_LIBS="$LIBS"
9862 LIBS=
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9864 $as_echo_n "checking for library containing dlopen... " >&6; }
9865 if ${ac_cv_search_dlopen+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 ac_func_search_save_LIBS=$LIBS
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9872 /* Override any GCC internal prototype to avoid an error.
9873 Use char because int might match the return type of a GCC
9874 builtin and then its argument prototype would still apply. */
9875 #ifdef __cplusplus
9876 extern "C"
9877 #endif
9878 char dlopen ();
9880 main ()
9882 return dlopen ();
9884 return 0;
9886 _ACEOF
9887 for ac_lib in '' dl; do
9888 if test -z "$ac_lib"; then
9889 ac_res="none required"
9890 else
9891 ac_res=-l$ac_lib
9892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9894 if ac_fn_cxx_try_link "$LINENO"; then :
9895 ac_cv_search_dlopen=$ac_res
9897 rm -f core conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext
9899 if ${ac_cv_search_dlopen+:} false; then :
9900 break
9902 done
9903 if ${ac_cv_search_dlopen+:} false; then :
9905 else
9906 ac_cv_search_dlopen=no
9908 rm conftest.$ac_ext
9909 LIBS=$ac_func_search_save_LIBS
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9912 $as_echo "$ac_cv_search_dlopen" >&6; }
9913 ac_res=$ac_cv_search_dlopen
9914 if test "$ac_res" != no; then :
9915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9919 DL_LIB="$LIBS"
9920 LIBS="$save_LIBS"
9923 # Use <inttypes.h> only if it exists,
9924 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9925 # PRId64
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9927 $as_echo_n "checking for inttypes.h... " >&6; }
9928 if ${gcc_cv_header_inttypes_h+:} false; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9933 #define __STDC_FORMAT_MACROS
9934 #include <sys/types.h>
9935 #include <inttypes.h>
9937 main ()
9939 intmax_t i = -1;
9940 #ifndef PRId64
9941 choke me
9942 #endif
9944 return 0;
9946 _ACEOF
9947 if ac_fn_cxx_try_compile "$LINENO"; then :
9948 gcc_cv_header_inttypes_h=yes
9949 else
9950 gcc_cv_header_inttypes_h=no
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9956 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9957 if test $gcc_cv_header_inttypes_h = yes; then
9959 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9963 # Look for the ZSTD package.
9964 ZSTD_INCLUDE=
9965 ZSTD_LIB=
9968 ZSTD_CPPFLAGS=
9969 ZSTD_LDFLAGS=
9973 # Check whether --with-zstd was given.
9974 if test "${with_zstd+set}" = set; then :
9975 withval=$with_zstd;
9979 # Check whether --with-zstd-include was given.
9980 if test "${with_zstd_include+set}" = set; then :
9981 withval=$with_zstd_include;
9985 # Check whether --with-zstd-lib was given.
9986 if test "${with_zstd_lib+set}" = set; then :
9987 withval=$with_zstd_lib;
9990 case "x$with_zstd" in
9991 x) ;;
9992 xno)
9993 ZSTD_INCLUDE=
9994 ZSTD_LIB=
9996 *) ZSTD_INCLUDE=$with_zstd/include
9997 ZSTD_LIB=$with_zstd/lib
9999 esac
10001 if test "x$with_zstd" != xno; then
10002 if test "x$with_zstd_include" != x; then
10003 ZSTD_INCLUDE=$with_zstd_include
10005 if test "x$with_zstd_lib" != x; then
10006 ZSTD_LIB=$with_zstd_lib
10008 if test "x$ZSTD_INCLUDE" != x \
10009 && test "x$ZSTD_INCLUDE" != xno; then
10010 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10012 if test "x$ZSTD_LIB" != x \
10013 && test "x$ZSTD_LIB" != xno; then
10014 ZSTD_LDFLAGS=-L$ZSTD_LIB
10017 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10018 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10021 $as_echo_n "checking for zstd.h... " >&6; }
10022 if ${gcc_cv_header_zstd_h+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027 #include <zstd.h>
10029 main ()
10033 return 0;
10035 _ACEOF
10036 if ac_fn_cxx_try_compile "$LINENO"; then :
10037 gcc_cv_header_zstd_h=yes
10038 else
10039 gcc_cv_header_zstd_h=no
10041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10045 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10046 if test $gcc_cv_header_zstd_h = yes; then
10048 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10050 elif test "x$with_zstd" != x; then
10051 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10054 # LTO can use zstd compression algorithm
10055 save_LIBS="$LIBS"
10056 LIBS=
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10058 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10059 if ${ac_cv_search_ZSTD_compress+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 ac_func_search_save_LIBS=$LIBS
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10066 /* Override any GCC internal prototype to avoid an error.
10067 Use char because int might match the return type of a GCC
10068 builtin and then its argument prototype would still apply. */
10069 #ifdef __cplusplus
10070 extern "C"
10071 #endif
10072 char ZSTD_compress ();
10074 main ()
10076 return ZSTD_compress ();
10078 return 0;
10080 _ACEOF
10081 for ac_lib in '' zstd; do
10082 if test -z "$ac_lib"; then
10083 ac_res="none required"
10084 else
10085 ac_res=-l$ac_lib
10086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10088 if ac_fn_cxx_try_link "$LINENO"; then :
10089 ac_cv_search_ZSTD_compress=$ac_res
10091 rm -f core conftest.err conftest.$ac_objext \
10092 conftest$ac_exeext
10093 if ${ac_cv_search_ZSTD_compress+:} false; then :
10094 break
10096 done
10097 if ${ac_cv_search_ZSTD_compress+:} false; then :
10099 else
10100 ac_cv_search_ZSTD_compress=no
10102 rm conftest.$ac_ext
10103 LIBS=$ac_func_search_save_LIBS
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10106 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10107 ac_res=$ac_cv_search_ZSTD_compress
10108 if test "$ac_res" != no; then :
10109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10113 ZSTD_LIB="$LIBS"
10114 LIBS="$save_LIBS"
10120 for ac_func in times clock kill getrlimit setrlimit atoq \
10121 popen sysconf strsignal getrusage nl_langinfo \
10122 gettimeofday mbstowcs wcswidth mmap setlocale \
10123 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise mallinfo
10124 do :
10125 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10126 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10127 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10128 cat >>confdefs.h <<_ACEOF
10129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10130 _ACEOF
10133 done
10136 if test x$ac_cv_func_mbstowcs = xyes; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10138 $as_echo_n "checking whether mbstowcs works... " >&6; }
10139 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 if test "$cross_compiling" = yes; then :
10143 gcc_cv_func_mbstowcs_works=yes
10144 else
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10147 #include <stdlib.h>
10148 int main()
10150 mbstowcs(0, "", 0);
10151 return 0;
10153 _ACEOF
10154 if ac_fn_cxx_try_run "$LINENO"; then :
10155 gcc_cv_func_mbstowcs_works=yes
10156 else
10157 gcc_cv_func_mbstowcs_works=no
10159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10160 conftest.$ac_objext conftest.beam conftest.$ac_ext
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10165 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10166 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10168 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10173 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10174 if test "x$ac_cv_type_ssize_t" = xyes; then :
10176 else
10178 cat >>confdefs.h <<_ACEOF
10179 #define ssize_t int
10180 _ACEOF
10184 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10185 if test "x$ac_cv_type_caddr_t" = xyes; then :
10187 else
10189 cat >>confdefs.h <<_ACEOF
10190 #define caddr_t char *
10191 _ACEOF
10197 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10198 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10199 gcc_header_sys_mman_h=yes
10200 else
10201 gcc_header_sys_mman_h=no
10204 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10205 if test "x$ac_cv_func_mmap" = xyes; then :
10206 gcc_func_mmap=yes
10207 else
10208 gcc_func_mmap=no
10211 if test "$gcc_header_sys_mman_h" != yes \
10212 || test "$gcc_func_mmap" != yes; then
10213 gcc_cv_func_mmap_file=no
10214 gcc_cv_func_mmap_dev_zero=no
10215 gcc_cv_func_mmap_anon=no
10216 else
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10218 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10219 if ${gcc_cv_func_mmap_file+:} false; then :
10220 $as_echo_n "(cached) " >&6
10221 else
10222 # Add a system to this blacklist if
10223 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10224 # memory area containing the same data that you'd get if you applied
10225 # read() to the same fd. The only system known to have a problem here
10226 # is VMS, where text files have record structure.
10227 case "$host_os" in
10228 *vms* | ultrix*)
10229 gcc_cv_func_mmap_file=no ;;
10231 gcc_cv_func_mmap_file=yes;;
10232 esac
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10235 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10237 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10238 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 # Add a system to this blacklist if it has mmap() but /dev/zero
10242 # does not exist, or if mmapping /dev/zero does not give anonymous
10243 # zeroed pages with both the following properties:
10244 # 1. If you map N consecutive pages in with one call, and then
10245 # unmap any subset of those pages, the pages that were not
10246 # explicitly unmapped remain accessible.
10247 # 2. If you map two adjacent blocks of memory and then unmap them
10248 # both at once, they must both go away.
10249 # Systems known to be in this category are Windows (all variants),
10250 # VMS, and Darwin.
10251 case "$host_os" in
10252 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10253 gcc_cv_func_mmap_dev_zero=no ;;
10255 gcc_cv_func_mmap_dev_zero=yes;;
10256 esac
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10259 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10261 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10263 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10264 if ${gcc_cv_decl_map_anon+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10269 #include <sys/types.h>
10270 #include <sys/mman.h>
10271 #include <unistd.h>
10273 #ifndef MAP_ANONYMOUS
10274 #define MAP_ANONYMOUS MAP_ANON
10275 #endif
10278 main ()
10280 int n = MAP_ANONYMOUS;
10282 return 0;
10284 _ACEOF
10285 if ac_fn_cxx_try_compile "$LINENO"; then :
10286 gcc_cv_decl_map_anon=yes
10287 else
10288 gcc_cv_decl_map_anon=no
10290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10293 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10295 if test $gcc_cv_decl_map_anon = no; then
10296 gcc_cv_func_mmap_anon=no
10297 else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10299 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10300 if ${gcc_cv_func_mmap_anon+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10304 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10305 # doesn't give anonymous zeroed pages with the same properties listed
10306 # above for use of /dev/zero.
10307 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10308 case "$host_os" in
10309 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10310 gcc_cv_func_mmap_anon=no ;;
10312 gcc_cv_func_mmap_anon=yes;;
10313 esac
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10316 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10320 if test $gcc_cv_func_mmap_file = yes; then
10322 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10325 if test $gcc_cv_func_mmap_dev_zero = yes; then
10327 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10330 if test $gcc_cv_func_mmap_anon = yes; then
10332 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10337 case "${host}" in
10338 *-*-*vms*)
10339 # Under VMS, vfork works very differently than on Unix. The standard test
10340 # won't work, and it isn't easily adaptable. It makes more sense to
10341 # just force it.
10342 ac_cv_func_vfork_works=yes
10344 esac
10345 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10346 if test "x$ac_cv_type_pid_t" = xyes; then :
10348 else
10350 cat >>confdefs.h <<_ACEOF
10351 #define pid_t int
10352 _ACEOF
10356 for ac_header in vfork.h
10357 do :
10358 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10359 if test "x$ac_cv_header_vfork_h" = xyes; then :
10360 cat >>confdefs.h <<_ACEOF
10361 #define HAVE_VFORK_H 1
10362 _ACEOF
10365 done
10367 for ac_func in fork vfork
10368 do :
10369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10370 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10371 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10372 cat >>confdefs.h <<_ACEOF
10373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10374 _ACEOF
10377 done
10379 if test "x$ac_cv_func_fork" = xyes; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10381 $as_echo_n "checking for working fork... " >&6; }
10382 if ${ac_cv_func_fork_works+:} false; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 if test "$cross_compiling" = yes; then :
10386 ac_cv_func_fork_works=cross
10387 else
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390 $ac_includes_default
10392 main ()
10395 /* By Ruediger Kuhlmann. */
10396 return fork () < 0;
10399 return 0;
10401 _ACEOF
10402 if ac_fn_cxx_try_run "$LINENO"; then :
10403 ac_cv_func_fork_works=yes
10404 else
10405 ac_cv_func_fork_works=no
10407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10408 conftest.$ac_objext conftest.beam conftest.$ac_ext
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10413 $as_echo "$ac_cv_func_fork_works" >&6; }
10415 else
10416 ac_cv_func_fork_works=$ac_cv_func_fork
10418 if test "x$ac_cv_func_fork_works" = xcross; then
10419 case $host in
10420 *-*-amigaos* | *-*-msdosdjgpp*)
10421 # Override, as these systems have only a dummy fork() stub
10422 ac_cv_func_fork_works=no
10425 ac_cv_func_fork_works=yes
10427 esac
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10429 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10431 ac_cv_func_vfork_works=$ac_cv_func_vfork
10432 if test "x$ac_cv_func_vfork" = xyes; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10434 $as_echo_n "checking for working vfork... " >&6; }
10435 if ${ac_cv_func_vfork_works+:} false; then :
10436 $as_echo_n "(cached) " >&6
10437 else
10438 if test "$cross_compiling" = yes; then :
10439 ac_cv_func_vfork_works=cross
10440 else
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10443 /* Thanks to Paul Eggert for this test. */
10444 $ac_includes_default
10445 #include <sys/wait.h>
10446 #ifdef HAVE_VFORK_H
10447 # include <vfork.h>
10448 #endif
10449 /* On some sparc systems, changes by the child to local and incoming
10450 argument registers are propagated back to the parent. The compiler
10451 is told about this with #include <vfork.h>, but some compilers
10452 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10453 static variable whose address is put into a register that is
10454 clobbered by the vfork. */
10455 static void
10456 #ifdef __cplusplus
10457 sparc_address_test (int arg)
10458 # else
10459 sparc_address_test (arg) int arg;
10460 #endif
10462 static pid_t child;
10463 if (!child) {
10464 child = vfork ();
10465 if (child < 0) {
10466 perror ("vfork");
10467 _exit(2);
10469 if (!child) {
10470 arg = getpid();
10471 write(-1, "", 0);
10472 _exit (arg);
10478 main ()
10480 pid_t parent = getpid ();
10481 pid_t child;
10483 sparc_address_test (0);
10485 child = vfork ();
10487 if (child == 0) {
10488 /* Here is another test for sparc vfork register problems. This
10489 test uses lots of local variables, at least as many local
10490 variables as main has allocated so far including compiler
10491 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10492 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10493 reuse the register of parent for one of the local variables,
10494 since it will think that parent can't possibly be used any more
10495 in this routine. Assigning to the local variable will thus
10496 munge parent in the parent process. */
10497 pid_t
10498 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10499 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10500 /* Convince the compiler that p..p7 are live; otherwise, it might
10501 use the same hardware register for all 8 local variables. */
10502 if (p != p1 || p != p2 || p != p3 || p != p4
10503 || p != p5 || p != p6 || p != p7)
10504 _exit(1);
10506 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10507 from child file descriptors. If the child closes a descriptor
10508 before it execs or exits, this munges the parent's descriptor
10509 as well. Test for this by closing stdout in the child. */
10510 _exit(close(fileno(stdout)) != 0);
10511 } else {
10512 int status;
10513 struct stat st;
10515 while (wait(&status) != child)
10517 return (
10518 /* Was there some problem with vforking? */
10519 child < 0
10521 /* Did the child fail? (This shouldn't happen.) */
10522 || status
10524 /* Did the vfork/compiler bug occur? */
10525 || parent != getpid()
10527 /* Did the file descriptor bug occur? */
10528 || fstat(fileno(stdout), &st) != 0
10532 _ACEOF
10533 if ac_fn_cxx_try_run "$LINENO"; then :
10534 ac_cv_func_vfork_works=yes
10535 else
10536 ac_cv_func_vfork_works=no
10538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10539 conftest.$ac_objext conftest.beam conftest.$ac_ext
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10544 $as_echo "$ac_cv_func_vfork_works" >&6; }
10547 if test "x$ac_cv_func_fork_works" = xcross; then
10548 ac_cv_func_vfork_works=$ac_cv_func_vfork
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10550 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10553 if test "x$ac_cv_func_vfork_works" = xyes; then
10555 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10557 else
10559 $as_echo "#define vfork fork" >>confdefs.h
10562 if test "x$ac_cv_func_fork_works" = xyes; then
10564 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10570 if test "X$prefix" = "XNONE"; then
10571 acl_final_prefix="$ac_default_prefix"
10572 else
10573 acl_final_prefix="$prefix"
10575 if test "X$exec_prefix" = "XNONE"; then
10576 acl_final_exec_prefix='${prefix}'
10577 else
10578 acl_final_exec_prefix="$exec_prefix"
10580 acl_save_prefix="$prefix"
10581 prefix="$acl_final_prefix"
10582 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10583 prefix="$acl_save_prefix"
10586 # Check whether --with-gnu-ld was given.
10587 if test "${with_gnu_ld+set}" = set; then :
10588 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10589 else
10590 with_gnu_ld=no
10593 # Prepare PATH_SEPARATOR.
10594 # The user is always right.
10595 if test "${PATH_SEPARATOR+set}" != set; then
10596 echo "#! /bin/sh" >conf$$.sh
10597 echo "exit 0" >>conf$$.sh
10598 chmod +x conf$$.sh
10599 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10600 PATH_SEPARATOR=';'
10601 else
10602 PATH_SEPARATOR=:
10604 rm -f conf$$.sh
10606 ac_prog=ld
10607 if test "$GCC" = yes; then
10608 # Check if gcc -print-prog-name=ld gives a path.
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10610 $as_echo_n "checking for ld used by GCC... " >&6; }
10611 case $host in
10612 *-*-mingw*)
10613 # gcc leaves a trailing carriage return which upsets mingw
10614 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10616 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10617 esac
10618 case $ac_prog in
10619 # Accept absolute paths.
10620 [\\/]* | [A-Za-z]:[\\/]*)
10621 re_direlt='/[^/][^/]*/\.\./'
10622 # Canonicalize the path of ld
10623 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10624 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10625 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10626 done
10627 test -z "$LD" && LD="$ac_prog"
10630 # If it fails, then pretend we aren't using GCC.
10631 ac_prog=ld
10634 # If it is relative, then search for the first ld in PATH.
10635 with_gnu_ld=unknown
10637 esac
10638 elif test "$with_gnu_ld" = yes; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10640 $as_echo_n "checking for GNU ld... " >&6; }
10641 else
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10643 $as_echo_n "checking for non-GNU ld... " >&6; }
10645 if ${acl_cv_path_LD+:} false; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 if test -z "$LD"; then
10649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10650 for ac_dir in $PATH; do
10651 test -z "$ac_dir" && ac_dir=.
10652 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10653 acl_cv_path_LD="$ac_dir/$ac_prog"
10654 # Check to see if the program is GNU ld. I'd rather use --version,
10655 # but apparently some GNU ld's only accept -v.
10656 # Break only if it was the GNU/non-GNU ld that we prefer.
10657 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10658 test "$with_gnu_ld" != no && break
10659 else
10660 test "$with_gnu_ld" != yes && break
10663 done
10664 IFS="$ac_save_ifs"
10665 else
10666 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10670 LD="$acl_cv_path_LD"
10671 if test -n "$LD"; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10673 $as_echo "$LD" >&6; }
10674 else
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 $as_echo "no" >&6; }
10678 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10680 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10681 if ${acl_cv_prog_gnu_ld+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683 else
10684 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10685 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10686 acl_cv_prog_gnu_ld=yes
10687 else
10688 acl_cv_prog_gnu_ld=no
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10692 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10693 with_gnu_ld=$acl_cv_prog_gnu_ld
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10698 $as_echo_n "checking for shared library run path origin... " >&6; }
10699 if ${acl_cv_rpath+:} false; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10703 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10704 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10705 . ./conftest.sh
10706 rm -f ./conftest.sh
10707 acl_cv_rpath=done
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10711 $as_echo "$acl_cv_rpath" >&6; }
10712 wl="$acl_cv_wl"
10713 libext="$acl_cv_libext"
10714 shlibext="$acl_cv_shlibext"
10715 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10716 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10717 hardcode_direct="$acl_cv_hardcode_direct"
10718 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10719 # Check whether --enable-rpath was given.
10720 if test "${enable_rpath+set}" = set; then :
10721 enableval=$enable_rpath; :
10722 else
10723 enable_rpath=yes
10733 use_additional=yes
10735 acl_save_prefix="$prefix"
10736 prefix="$acl_final_prefix"
10737 acl_save_exec_prefix="$exec_prefix"
10738 exec_prefix="$acl_final_exec_prefix"
10740 eval additional_includedir=\"$includedir\"
10741 eval additional_libdir=\"$libdir\"
10743 exec_prefix="$acl_save_exec_prefix"
10744 prefix="$acl_save_prefix"
10747 # Check whether --with-libiconv-prefix was given.
10748 if test "${with_libiconv_prefix+set}" = set; then :
10749 withval=$with_libiconv_prefix;
10750 if test "X$withval" = "Xno"; then
10751 use_additional=no
10752 else
10753 if test "X$withval" = "X"; then
10755 acl_save_prefix="$prefix"
10756 prefix="$acl_final_prefix"
10757 acl_save_exec_prefix="$exec_prefix"
10758 exec_prefix="$acl_final_exec_prefix"
10760 eval additional_includedir=\"$includedir\"
10761 eval additional_libdir=\"$libdir\"
10763 exec_prefix="$acl_save_exec_prefix"
10764 prefix="$acl_save_prefix"
10766 else
10767 additional_includedir="$withval/include"
10768 additional_libdir="$withval/lib"
10775 # Check whether --with-libiconv-type was given.
10776 if test "${with_libiconv_type+set}" = set; then :
10777 withval=$with_libiconv_type; with_libiconv_type=$withval
10778 else
10779 with_libiconv_type=auto
10782 lib_type=`eval echo \$with_libiconv_type`
10784 LIBICONV=
10785 LTLIBICONV=
10786 INCICONV=
10787 rpathdirs=
10788 ltrpathdirs=
10789 names_already_handled=
10790 names_next_round='iconv '
10791 while test -n "$names_next_round"; do
10792 names_this_round="$names_next_round"
10793 names_next_round=
10794 for name in $names_this_round; do
10795 already_handled=
10796 for n in $names_already_handled; do
10797 if test "$n" = "$name"; then
10798 already_handled=yes
10799 break
10801 done
10802 if test -z "$already_handled"; then
10803 names_already_handled="$names_already_handled $name"
10804 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10805 eval value=\"\$HAVE_LIB$uppername\"
10806 if test -n "$value"; then
10807 if test "$value" = yes; then
10808 eval value=\"\$LIB$uppername\"
10809 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10810 eval value=\"\$LTLIB$uppername\"
10811 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10812 else
10815 else
10816 found_dir=
10817 found_la=
10818 found_so=
10819 found_a=
10820 if test $use_additional = yes; then
10821 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10822 found_dir="$additional_libdir"
10823 found_so="$additional_libdir/lib$name.$shlibext"
10824 if test -f "$additional_libdir/lib$name.la"; then
10825 found_la="$additional_libdir/lib$name.la"
10827 elif test x$lib_type != xshared; then
10828 if test -f "$additional_libdir/lib$name.$libext"; then
10829 found_dir="$additional_libdir"
10830 found_a="$additional_libdir/lib$name.$libext"
10831 if test -f "$additional_libdir/lib$name.la"; then
10832 found_la="$additional_libdir/lib$name.la"
10837 if test "X$found_dir" = "X"; then
10838 for x in $LDFLAGS $LTLIBICONV; do
10840 acl_save_prefix="$prefix"
10841 prefix="$acl_final_prefix"
10842 acl_save_exec_prefix="$exec_prefix"
10843 exec_prefix="$acl_final_exec_prefix"
10844 eval x=\"$x\"
10845 exec_prefix="$acl_save_exec_prefix"
10846 prefix="$acl_save_prefix"
10848 case "$x" in
10849 -L*)
10850 dir=`echo "X$x" | sed -e 's/^X-L//'`
10851 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10852 found_dir="$dir"
10853 found_so="$dir/lib$name.$shlibext"
10854 if test -f "$dir/lib$name.la"; then
10855 found_la="$dir/lib$name.la"
10857 elif test x$lib_type != xshared; then
10858 if test -f "$dir/lib$name.$libext"; then
10859 found_dir="$dir"
10860 found_a="$dir/lib$name.$libext"
10861 if test -f "$dir/lib$name.la"; then
10862 found_la="$dir/lib$name.la"
10867 esac
10868 if test "X$found_dir" != "X"; then
10869 break
10871 done
10873 if test "X$found_dir" != "X"; then
10874 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10875 if test "X$found_so" != "X"; then
10876 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10877 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10878 else
10879 haveit=
10880 for x in $ltrpathdirs; do
10881 if test "X$x" = "X$found_dir"; then
10882 haveit=yes
10883 break
10885 done
10886 if test -z "$haveit"; then
10887 ltrpathdirs="$ltrpathdirs $found_dir"
10889 if test "$hardcode_direct" = yes; then
10890 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10891 else
10892 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10893 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10894 haveit=
10895 for x in $rpathdirs; do
10896 if test "X$x" = "X$found_dir"; then
10897 haveit=yes
10898 break
10900 done
10901 if test -z "$haveit"; then
10902 rpathdirs="$rpathdirs $found_dir"
10904 else
10905 haveit=
10906 for x in $LDFLAGS $LIBICONV; do
10908 acl_save_prefix="$prefix"
10909 prefix="$acl_final_prefix"
10910 acl_save_exec_prefix="$exec_prefix"
10911 exec_prefix="$acl_final_exec_prefix"
10912 eval x=\"$x\"
10913 exec_prefix="$acl_save_exec_prefix"
10914 prefix="$acl_save_prefix"
10916 if test "X$x" = "X-L$found_dir"; then
10917 haveit=yes
10918 break
10920 done
10921 if test -z "$haveit"; then
10922 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10924 if test "$hardcode_minus_L" != no; then
10925 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10926 else
10927 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10932 else
10933 if test "X$found_a" != "X"; then
10934 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10935 else
10936 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10939 additional_includedir=
10940 case "$found_dir" in
10941 */lib | */lib/)
10942 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10943 additional_includedir="$basedir/include"
10945 esac
10946 if test "X$additional_includedir" != "X"; then
10947 if test "X$additional_includedir" != "X/usr/include"; then
10948 haveit=
10949 if test "X$additional_includedir" = "X/usr/local/include"; then
10950 if test -n "$GCC"; then
10951 case $host_os in
10952 linux*) haveit=yes;;
10953 esac
10956 if test -z "$haveit"; then
10957 for x in $CPPFLAGS $INCICONV; do
10959 acl_save_prefix="$prefix"
10960 prefix="$acl_final_prefix"
10961 acl_save_exec_prefix="$exec_prefix"
10962 exec_prefix="$acl_final_exec_prefix"
10963 eval x=\"$x\"
10964 exec_prefix="$acl_save_exec_prefix"
10965 prefix="$acl_save_prefix"
10967 if test "X$x" = "X-I$additional_includedir"; then
10968 haveit=yes
10969 break
10971 done
10972 if test -z "$haveit"; then
10973 if test -d "$additional_includedir"; then
10974 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10980 if test -n "$found_la"; then
10981 save_libdir="$libdir"
10982 case "$found_la" in
10983 */* | *\\*) . "$found_la" ;;
10984 *) . "./$found_la" ;;
10985 esac
10986 libdir="$save_libdir"
10987 for dep in $dependency_libs; do
10988 case "$dep" in
10989 -L*)
10990 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10991 if test "X$additional_libdir" != "X/usr/lib"; then
10992 haveit=
10993 if test "X$additional_libdir" = "X/usr/local/lib"; then
10994 if test -n "$GCC"; then
10995 case $host_os in
10996 linux*) haveit=yes;;
10997 esac
11000 if test -z "$haveit"; then
11001 haveit=
11002 for x in $LDFLAGS $LIBICONV; do
11004 acl_save_prefix="$prefix"
11005 prefix="$acl_final_prefix"
11006 acl_save_exec_prefix="$exec_prefix"
11007 exec_prefix="$acl_final_exec_prefix"
11008 eval x=\"$x\"
11009 exec_prefix="$acl_save_exec_prefix"
11010 prefix="$acl_save_prefix"
11012 if test "X$x" = "X-L$additional_libdir"; then
11013 haveit=yes
11014 break
11016 done
11017 if test -z "$haveit"; then
11018 if test -d "$additional_libdir"; then
11019 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11022 haveit=
11023 for x in $LDFLAGS $LTLIBICONV; do
11025 acl_save_prefix="$prefix"
11026 prefix="$acl_final_prefix"
11027 acl_save_exec_prefix="$exec_prefix"
11028 exec_prefix="$acl_final_exec_prefix"
11029 eval x=\"$x\"
11030 exec_prefix="$acl_save_exec_prefix"
11031 prefix="$acl_save_prefix"
11033 if test "X$x" = "X-L$additional_libdir"; then
11034 haveit=yes
11035 break
11037 done
11038 if test -z "$haveit"; then
11039 if test -d "$additional_libdir"; then
11040 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11046 -R*)
11047 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11048 if test "$enable_rpath" != no; then
11049 haveit=
11050 for x in $rpathdirs; do
11051 if test "X$x" = "X$dir"; then
11052 haveit=yes
11053 break
11055 done
11056 if test -z "$haveit"; then
11057 rpathdirs="$rpathdirs $dir"
11059 haveit=
11060 for x in $ltrpathdirs; do
11061 if test "X$x" = "X$dir"; then
11062 haveit=yes
11063 break
11065 done
11066 if test -z "$haveit"; then
11067 ltrpathdirs="$ltrpathdirs $dir"
11071 -l*)
11072 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11074 *.la)
11075 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11078 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11079 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11081 esac
11082 done
11084 else
11085 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11086 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11087 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11088 else
11089 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11095 done
11096 done
11097 if test "X$rpathdirs" != "X"; then
11098 if test -n "$hardcode_libdir_separator"; then
11099 alldirs=
11100 for found_dir in $rpathdirs; do
11101 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11102 done
11103 acl_save_libdir="$libdir"
11104 libdir="$alldirs"
11105 eval flag=\"$hardcode_libdir_flag_spec\"
11106 libdir="$acl_save_libdir"
11107 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11108 else
11109 for found_dir in $rpathdirs; do
11110 acl_save_libdir="$libdir"
11111 libdir="$found_dir"
11112 eval flag=\"$hardcode_libdir_flag_spec\"
11113 libdir="$acl_save_libdir"
11114 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11115 done
11118 if test "X$ltrpathdirs" != "X"; then
11119 for found_dir in $ltrpathdirs; do
11120 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11121 done
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11131 $as_echo_n "checking for iconv... " >&6; }
11132 if ${am_cv_func_iconv+:} false; then :
11133 $as_echo_n "(cached) " >&6
11134 else
11136 am_cv_func_iconv="no, consider installing GNU libiconv"
11137 am_cv_lib_iconv=no
11138 am_save_CPPFLAGS="$CPPFLAGS"
11139 CPPFLAGS="$CPPFLAGS $INCICONV"
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11142 #include <stdlib.h>
11143 #include <iconv.h>
11145 main ()
11147 iconv_t cd = iconv_open("","");
11148 iconv(cd,NULL,NULL,NULL,NULL);
11149 iconv_close(cd);
11151 return 0;
11153 _ACEOF
11154 if ac_fn_cxx_try_link "$LINENO"; then :
11155 am_cv_func_iconv=yes
11157 rm -f core conftest.err conftest.$ac_objext \
11158 conftest$ac_exeext conftest.$ac_ext
11159 CPPFLAGS="$am_save_CPPFLAGS"
11161 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11162 for _libs in .libs _libs; do
11163 am_save_CPPFLAGS="$CPPFLAGS"
11164 am_save_LIBS="$LIBS"
11165 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11166 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11169 #include <stdlib.h>
11170 #include <iconv.h>
11172 main ()
11174 iconv_t cd = iconv_open("","");
11175 iconv(cd,NULL,NULL,NULL,NULL);
11176 iconv_close(cd);
11178 return 0;
11180 _ACEOF
11181 if ac_fn_cxx_try_link "$LINENO"; then :
11182 INCICONV="-I../libiconv/include"
11183 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11184 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11185 am_cv_lib_iconv=yes
11186 am_cv_func_iconv=yes
11188 rm -f core conftest.err conftest.$ac_objext \
11189 conftest$ac_exeext conftest.$ac_ext
11190 CPPFLAGS="$am_save_CPPFLAGS"
11191 LIBS="$am_save_LIBS"
11192 if test "$am_cv_func_iconv" = "yes"; then
11193 break
11195 done
11198 if test "$am_cv_func_iconv" != yes; then
11199 am_save_CPPFLAGS="$CPPFLAGS"
11200 am_save_LIBS="$LIBS"
11201 CPPFLAGS="$CPPFLAGS $INCICONV"
11202 LIBS="$LIBS $LIBICONV"
11203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204 /* end confdefs.h. */
11205 #include <stdlib.h>
11206 #include <iconv.h>
11208 main ()
11210 iconv_t cd = iconv_open("","");
11211 iconv(cd,NULL,NULL,NULL,NULL);
11212 iconv_close(cd);
11214 return 0;
11216 _ACEOF
11217 if ac_fn_cxx_try_link "$LINENO"; then :
11218 am_cv_lib_iconv=yes
11219 am_cv_func_iconv=yes
11221 rm -f core conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
11223 CPPFLAGS="$am_save_CPPFLAGS"
11224 LIBS="$am_save_LIBS"
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11229 $as_echo "$am_cv_func_iconv" >&6; }
11230 if test "$am_cv_func_iconv" = yes; then
11232 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11235 if test "$am_cv_lib_iconv" = yes; then
11237 for element in $INCICONV; do
11238 haveit=
11239 for x in $CPPFLAGS; do
11241 acl_save_prefix="$prefix"
11242 prefix="$acl_final_prefix"
11243 acl_save_exec_prefix="$exec_prefix"
11244 exec_prefix="$acl_final_exec_prefix"
11245 eval x=\"$x\"
11246 exec_prefix="$acl_save_exec_prefix"
11247 prefix="$acl_save_prefix"
11249 if test "X$x" = "X$element"; then
11250 haveit=yes
11251 break
11253 done
11254 if test -z "$haveit"; then
11255 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11257 done
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11260 $as_echo_n "checking how to link with libiconv... " >&6; }
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11262 $as_echo "$LIBICONV" >&6; }
11263 else
11264 LIBICONV=
11265 LTLIBICONV=
11270 if test "$am_cv_func_iconv" = yes; then
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11272 $as_echo_n "checking for iconv declaration... " >&6; }
11273 if ${am_cv_proto_iconv+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 #include <stdlib.h>
11281 #include <iconv.h>
11282 extern
11283 #ifdef __cplusplus
11285 #endif
11286 #if defined(__STDC__) || defined(__cplusplus)
11287 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11288 #else
11289 size_t iconv();
11290 #endif
11293 main ()
11297 return 0;
11299 _ACEOF
11300 if ac_fn_cxx_try_compile "$LINENO"; then :
11301 am_cv_proto_iconv_arg1=""
11302 else
11303 am_cv_proto_iconv_arg1="const"
11305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11306 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);"
11309 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11311 }$am_cv_proto_iconv" >&5
11312 $as_echo "${ac_t:-
11313 }$am_cv_proto_iconv" >&6; }
11315 cat >>confdefs.h <<_ACEOF
11316 #define ICONV_CONST $am_cv_proto_iconv_arg1
11317 _ACEOF
11322 # Until we have in-tree GNU iconv:
11323 LIBICONV_DEP=
11324 if test -f "$LTLIBICONV"; then
11325 LIBICONV_DEP=$LTLIBICONV
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11331 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11332 if ${am_cv_val_LC_MESSAGES+:} false; then :
11333 $as_echo_n "(cached) " >&6
11334 else
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11337 #include <locale.h>
11339 main ()
11341 return LC_MESSAGES
11343 return 0;
11345 _ACEOF
11346 if ac_fn_cxx_try_link "$LINENO"; then :
11347 am_cv_val_LC_MESSAGES=yes
11348 else
11349 am_cv_val_LC_MESSAGES=no
11351 rm -f core conftest.err conftest.$ac_objext \
11352 conftest$ac_exeext conftest.$ac_ext
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11355 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11356 if test $am_cv_val_LC_MESSAGES = yes; then
11358 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11365 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11366 if ${am_cv_langinfo_codeset+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11371 #include <langinfo.h>
11373 main ()
11375 char* cs = nl_langinfo(CODESET);
11377 return 0;
11379 _ACEOF
11380 if ac_fn_cxx_try_link "$LINENO"; then :
11381 am_cv_langinfo_codeset=yes
11382 else
11383 am_cv_langinfo_codeset=no
11385 rm -f core conftest.err conftest.$ac_objext \
11386 conftest$ac_exeext conftest.$ac_ext
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11390 $as_echo "$am_cv_langinfo_codeset" >&6; }
11391 if test $am_cv_langinfo_codeset = yes; then
11393 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11398 # We will need to find libiberty.h and ansidecl.h
11399 saved_CFLAGS="$CFLAGS"
11400 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11401 saved_CXXFLAGS="$CXXFLAGS"
11402 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11404 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11405 # normal autoconf function for these. But force definition of
11406 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11407 # basename handling in libiberty.h.
11408 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11409 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11410 #undef HAVE_DECL_BASENAME
11411 #define HAVE_DECL_BASENAME 1
11412 #include \"ansidecl.h\"
11413 #include \"system.h\"
11415 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11416 ac_have_decl=1
11417 else
11418 ac_have_decl=0
11421 cat >>confdefs.h <<_ACEOF
11422 #define HAVE_DECL_BASENAME $ac_have_decl
11423 _ACEOF
11424 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11425 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11426 #undef HAVE_DECL_BASENAME
11427 #define HAVE_DECL_BASENAME 1
11428 #include \"ansidecl.h\"
11429 #include \"system.h\"
11431 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11432 ac_have_decl=1
11433 else
11434 ac_have_decl=0
11437 cat >>confdefs.h <<_ACEOF
11438 #define HAVE_DECL_STRSTR $ac_have_decl
11439 _ACEOF
11442 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11443 madvise stpcpy strnlen strsignal strverscmp \
11444 strtol strtoul strtoll strtoull setenv unsetenv \
11445 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11446 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
11448 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11450 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11451 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11456 #undef $ac_tr_decl
11457 #define $ac_tr_decl 1
11459 #include "ansidecl.h"
11460 #include "system.h"
11463 main ()
11465 #ifndef $ac_func
11466 char *(*pfn) = (char *(*)) $ac_func ;
11467 #endif
11469 return 0;
11471 _ACEOF
11472 if ac_fn_cxx_try_compile "$LINENO"; then :
11473 eval "gcc_cv_have_decl_$ac_func=yes"
11474 else
11475 eval "gcc_cv_have_decl_$ac_func=no"
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11482 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11483 #define $ac_tr_decl 1
11484 _ACEOF
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11489 #define $ac_tr_decl 0
11490 _ACEOF
11494 done
11497 for ac_func in getrlimit setrlimit getrusage
11499 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11501 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11502 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h. */
11507 #undef $ac_tr_decl
11508 #define $ac_tr_decl 1
11510 #include "ansidecl.h"
11511 #include "system.h"
11512 #ifdef HAVE_SYS_RESOURCE_H
11513 #include <sys/resource.h>
11514 #endif
11518 main ()
11520 #ifndef $ac_func
11521 char *(*pfn) = (char *(*)) $ac_func ;
11522 #endif
11524 return 0;
11526 _ACEOF
11527 if ac_fn_cxx_try_compile "$LINENO"; then :
11528 eval "gcc_cv_have_decl_$ac_func=yes"
11529 else
11530 eval "gcc_cv_have_decl_$ac_func=no"
11532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11537 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11538 #define $ac_tr_decl 1
11539 _ACEOF
11541 else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11544 #define $ac_tr_decl 0
11545 _ACEOF
11549 done
11552 for ac_func in mallinfo
11554 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11556 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11557 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11562 #undef $ac_tr_decl
11563 #define $ac_tr_decl 1
11565 #include "ansidecl.h"
11566 #include "system.h"
11567 #ifdef HAVE_MALLOC_H
11568 #include <malloc.h>
11569 #endif
11573 main ()
11575 #ifndef $ac_func
11576 char *(*pfn) = (char *(*)) $ac_func ;
11577 #endif
11579 return 0;
11581 _ACEOF
11582 if ac_fn_cxx_try_compile "$LINENO"; then :
11583 eval "gcc_cv_have_decl_$ac_func=yes"
11584 else
11585 eval "gcc_cv_have_decl_$ac_func=no"
11587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11592 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11593 #define $ac_tr_decl 1
11594 _ACEOF
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11599 #define $ac_tr_decl 0
11600 _ACEOF
11604 done
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11610 #include "ansidecl.h"
11611 #include "system.h"
11612 #ifdef HAVE_SYS_RESOURCE_H
11613 #include <sys/resource.h>
11614 #endif
11617 main ()
11619 rlim_t l = 0;
11621 return 0;
11623 _ACEOF
11624 if ac_fn_cxx_try_compile "$LINENO"; then :
11626 else
11628 $as_echo "#define rlim_t long" >>confdefs.h
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11634 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11635 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11636 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11637 for ac_func in ldgetname
11639 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11641 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11642 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647 #undef $ac_tr_decl
11648 #define $ac_tr_decl 1
11650 #include "ansidecl.h"
11651 #include "system.h"
11652 #ifdef HAVE_LDFCN_H
11653 #undef FREAD
11654 #undef FWRITE
11655 #include <ldfcn.h>
11656 #endif
11660 main ()
11662 #ifndef $ac_func
11663 char *(*pfn) = (char *(*)) $ac_func ;
11664 #endif
11666 return 0;
11668 _ACEOF
11669 if ac_fn_cxx_try_compile "$LINENO"; then :
11670 eval "gcc_cv_have_decl_$ac_func=yes"
11671 else
11672 eval "gcc_cv_have_decl_$ac_func=no"
11674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11677 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11679 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11680 #define $ac_tr_decl 1
11681 _ACEOF
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11686 #define $ac_tr_decl 0
11687 _ACEOF
11691 done
11694 for ac_func in times
11696 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11698 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11699 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11700 $as_echo_n "(cached) " >&6
11701 else
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11704 #undef $ac_tr_decl
11705 #define $ac_tr_decl 1
11707 #include "ansidecl.h"
11708 #include "system.h"
11709 #ifdef HAVE_SYS_TIMES_H
11710 #include <sys/times.h>
11711 #endif
11715 main ()
11717 #ifndef $ac_func
11718 char *(*pfn) = (char *(*)) $ac_func ;
11719 #endif
11721 return 0;
11723 _ACEOF
11724 if ac_fn_cxx_try_compile "$LINENO"; then :
11725 eval "gcc_cv_have_decl_$ac_func=yes"
11726 else
11727 eval "gcc_cv_have_decl_$ac_func=no"
11729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11732 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11735 #define $ac_tr_decl 1
11736 _ACEOF
11738 else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11741 #define $ac_tr_decl 0
11742 _ACEOF
11746 done
11749 for ac_func in sigaltstack
11751 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11753 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11754 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11755 $as_echo_n "(cached) " >&6
11756 else
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11759 #undef $ac_tr_decl
11760 #define $ac_tr_decl 1
11762 #include "ansidecl.h"
11763 #include "system.h"
11764 #include <signal.h>
11768 main ()
11770 #ifndef $ac_func
11771 char *(*pfn) = (char *(*)) $ac_func ;
11772 #endif
11774 return 0;
11776 _ACEOF
11777 if ac_fn_cxx_try_compile "$LINENO"; then :
11778 eval "gcc_cv_have_decl_$ac_func=yes"
11779 else
11780 eval "gcc_cv_have_decl_$ac_func=no"
11782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11787 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11788 #define $ac_tr_decl 1
11789 _ACEOF
11791 else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11794 #define $ac_tr_decl 0
11795 _ACEOF
11799 done
11802 # More time-related stuff.
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11804 $as_echo_n "checking for struct tms... " >&6; }
11805 if ${ac_cv_struct_tms+:} false; then :
11806 $as_echo_n "(cached) " >&6
11807 else
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11812 #include "ansidecl.h"
11813 #include "system.h"
11814 #ifdef HAVE_SYS_TIMES_H
11815 #include <sys/times.h>
11816 #endif
11819 main ()
11821 struct tms tms;
11823 return 0;
11825 _ACEOF
11826 if ac_fn_cxx_try_compile "$LINENO"; then :
11827 ac_cv_struct_tms=yes
11828 else
11829 ac_cv_struct_tms=no
11831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11834 $as_echo "$ac_cv_struct_tms" >&6; }
11835 if test $ac_cv_struct_tms = yes; then
11837 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11841 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11842 # revisit after autoconf 2.50.
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11844 $as_echo_n "checking for clock_t... " >&6; }
11845 if ${gcc_cv_type_clock_t+:} false; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850 /* end confdefs.h. */
11852 #include "ansidecl.h"
11853 #include "system.h"
11856 main ()
11858 clock_t x;
11860 return 0;
11862 _ACEOF
11863 if ac_fn_cxx_try_compile "$LINENO"; then :
11864 gcc_cv_type_clock_t=yes
11865 else
11866 gcc_cv_type_clock_t=no
11868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11871 $as_echo "$gcc_cv_type_clock_t" >&6; }
11872 if test $gcc_cv_type_clock_t = yes; then
11874 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11878 # Check if F_SETLKW is supported by fcntl.
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11880 $as_echo_n "checking for F_SETLKW... " >&6; }
11881 if ${ac_cv_f_setlkw+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11888 #include <fcntl.h>
11890 main ()
11893 struct flock fl;
11894 fl.l_whence = 0;
11895 fl.l_start = 0;
11896 fl.l_len = 0;
11897 fl.l_pid = 0;
11898 return fcntl (1, F_SETLKW, &fl);
11900 return 0;
11902 _ACEOF
11903 if ac_fn_cxx_try_compile "$LINENO"; then :
11904 ac_cv_f_setlkw=yes
11905 else
11906 ac_cv_f_setlkw=no
11908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11911 $as_echo "$ac_cv_f_setlkw" >&6; }
11912 if test $ac_cv_f_setlkw = yes; then
11914 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11918 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11919 CFLAGS="$saved_CFLAGS"
11920 CXXFLAGS="$saved_CXXFLAGS"
11922 # mkdir takes a single argument on some systems.
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11924 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11925 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11931 #include <sys/types.h>
11932 #ifdef HAVE_SYS_STAT_H
11933 # include <sys/stat.h>
11934 #endif
11935 #ifdef HAVE_UNISTD_H
11936 # include <unistd.h>
11937 #endif
11938 #ifdef HAVE_DIRECT_H
11939 # include <direct.h>
11940 #endif
11942 main ()
11944 mkdir ("foo", 0);
11946 return 0;
11948 _ACEOF
11949 if ac_fn_cxx_try_compile "$LINENO"; then :
11950 gcc_cv_mkdir_takes_one_arg=no
11951 else
11952 gcc_cv_mkdir_takes_one_arg=yes
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11957 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11958 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11960 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11965 # File extensions
11966 manext='.1'
11967 objext='.o'
11971 # With Setjmp/Longjmp based exception handling.
11972 # Check whether --enable-sjlj-exceptions was given.
11973 if test "${enable_sjlj_exceptions+set}" = set; then :
11974 enableval=$enable_sjlj_exceptions; case $target in
11975 *-*-hpux10*)
11976 if test $enableval != yes; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11978 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11979 enableval=yes
11982 esac
11983 force_sjlj_exceptions=yes
11984 else
11985 case $target in
11986 *-*-hpux10*)
11987 force_sjlj_exceptions=yes
11988 enableval=yes
11990 lm32*-*-*)
11991 force_sjlj_exceptions=yes
11992 enableval=yes
11995 force_sjlj_exceptions=no
11997 esac
12000 if test $force_sjlj_exceptions = yes; then
12001 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12003 cat >>confdefs.h <<_ACEOF
12004 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12005 _ACEOF
12009 # --------------------------------------------------------
12010 # Build, host, and target specific configuration fragments
12011 # --------------------------------------------------------
12013 # Collect build-machine-specific information.
12014 . ${srcdir}/config.build || exit 1
12016 # Collect host-machine-specific information.
12017 . ${srcdir}/config.host || exit 1
12019 target_gtfiles=
12021 # Collect target-machine-specific information.
12022 . ${srcdir}/config.gcc || exit 1
12024 extra_objs="${host_extra_objs} ${extra_objs}"
12025 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12027 # Default the target-machine variables that were not explicitly set.
12028 if test x"$tm_file" = x
12029 then tm_file=$cpu_type/$cpu_type.h; fi
12031 if test x"$extra_headers" = x
12032 then extra_headers=; fi
12034 if test x$md_file = x
12035 then md_file=$cpu_type/$cpu_type.md; fi
12037 if test x$out_file = x
12038 then out_file=$cpu_type/$cpu_type.c; fi
12040 if test x"$tmake_file" = x
12041 then tmake_file=$cpu_type/t-$cpu_type
12044 # Support --enable-initfini-array.
12045 if test x$enable_initfini_array != xno; then
12046 tm_file="${tm_file} initfini-array.h"
12049 if test x"$dwarf2" = xyes
12050 then tm_file="$tm_file tm-dwarf2.h"
12053 # Say what files are being used for the output code and MD file.
12054 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12055 echo "Using \`$srcdir/config/$md_file' as machine description file."
12057 # If any of the xm_file variables contain nonexistent files, warn
12058 # about them and drop them.
12061 for x in $build_xm_file; do
12062 if test -f $srcdir/config/$x
12063 then bx="$bx $x"
12064 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12065 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12067 done
12068 build_xm_file="$bx"
12071 for x in $host_xm_file; do
12072 if test -f $srcdir/config/$x
12073 then hx="$hx $x"
12074 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12075 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12077 done
12078 host_xm_file="$hx"
12081 for x in $xm_file; do
12082 if test -f $srcdir/config/$x
12083 then tx="$tx $x"
12084 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12085 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12087 done
12088 xm_file="$tx"
12090 count=a
12091 for f in $tm_file; do
12092 count=${count}x
12093 done
12094 if test $count = ax; then
12095 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12096 else
12097 echo "Using the following target machine macro files:"
12098 for f in $tm_file; do
12099 echo " $srcdir/config/$f"
12100 done
12103 if test x$use_long_long_for_widest_fast_int = xyes; then
12105 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12109 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12111 cat >>confdefs.h <<_ACEOF
12112 #define HAVE_GNU_LD $gnu_ld_bool
12113 _ACEOF
12116 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12118 cat >>confdefs.h <<_ACEOF
12119 #define HAVE_GNU_AS $gnu_as_bool
12120 _ACEOF
12123 count=a
12124 for f in $host_xm_file; do
12125 count=${count}x
12126 done
12127 if test $count = a; then
12129 elif test $count = ax; then
12130 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12131 else
12132 echo "Using the following host machine macro files:"
12133 for f in $host_xm_file; do
12134 echo " $srcdir/config/$f"
12135 done
12137 echo "Using ${out_host_hook_obj} for host machine hooks."
12139 if test "$host_xm_file" != "$build_xm_file"; then
12140 count=a
12141 for f in $build_xm_file; do
12142 count=${count}x
12143 done
12144 if test $count = a; then
12146 elif test $count = ax; then
12147 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12148 else
12149 echo "Using the following build machine macro files:"
12150 for f in $build_xm_file; do
12151 echo " $srcdir/config/$f"
12152 done
12156 if test -n "$configured_native_system_header_dir"; then
12157 native_system_header_dir=$configured_native_system_header_dir
12159 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12162 case ${host} in
12163 powerpc*-*-darwin*)
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12165 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12166 if ${gcc_cv_mcontext_underscores+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12172 #include <sys/cdefs.h>
12173 #include <sys/signal.h>
12174 #include <ucontext.h>
12175 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12177 _ACEOF
12178 if ac_fn_cxx_try_compile "$LINENO"; then :
12179 gcc_cv_mcontext_underscores=no
12180 else
12181 gcc_cv_mcontext_underscores=yes
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12186 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12187 if test $gcc_cv_mcontext_underscores = yes; then
12189 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12193 esac
12195 # ---------
12196 # Threading
12197 # ---------
12199 # Check if a valid thread package
12200 case ${enable_threads} in
12201 "" | no)
12202 # No threads
12203 target_thread_file='single'
12205 yes)
12206 # default
12207 target_thread_file='single'
12209 aix | dce | lynx | mipssde | posix | rtems | \
12210 single | tpf | vxworks | win32)
12211 target_thread_file=${enable_threads}
12214 echo "${enable_threads} is an unknown thread package" 1>&2
12215 exit 1
12217 esac
12219 if test x${thread_file} = x; then
12220 # No thread file set by target-specific clauses in config.gcc,
12221 # so use file chosen by default logic above
12222 thread_file=${target_thread_file}
12225 # --------
12226 # UNSORTED
12227 # --------
12229 use_cxa_atexit=no
12230 if test x$enable___cxa_atexit = xyes || \
12231 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12232 if test x$host = x$target; then
12233 case $host in
12234 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12235 # keyed to flag_use_cxa_atexit
12236 *-*-mingw32*)
12237 use_cxa_atexit=yes
12239 powerpc-ibm-aix*)
12240 use_cxa_atexit=yes
12243 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12244 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12245 use_cxa_atexit=yes
12246 else
12247 echo "__cxa_atexit can't be enabled on this target"
12251 esac
12252 else
12253 # We can't check for __cxa_atexit when building a cross, so assume
12254 # it is available
12255 use_cxa_atexit=yes
12257 if test x$use_cxa_atexit = xyes; then
12259 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12264 # Look for a file containing extra machine modes.
12265 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12266 extra_modes_file='$(srcdir)'/config/${extra_modes}
12269 cat >>confdefs.h <<_ACEOF
12270 #define EXTRA_MODES_FILE "config/$extra_modes"
12271 _ACEOF
12275 # Convert extra_options into a form suitable for Makefile use.
12276 extra_opt_files=
12277 all_opt_files=
12278 for f in $extra_options; do
12279 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12280 all_opt_files="$all_opt_files $srcdir/config/$f"
12281 done
12284 # auto-host.h is the file containing items generated by autoconf and is
12285 # the first file included by config.h.
12286 # If host=build, it is correct to have bconfig include auto-host.h
12287 # as well. If host!=build, we are in error and need to do more
12288 # work to find out the build config parameters.
12289 if test x$host = x$build
12290 then
12291 build_auto=auto-host.h
12292 HAVE_AUTO_BUILD='# '
12293 else
12294 # We create a subdir, then run autoconf in the subdir.
12295 # To prevent recursion we set host and build for the new
12296 # invocation of configure to the build for this invocation
12297 # of configure.
12298 tempdir=build.$$
12299 rm -rf $tempdir
12300 mkdir $tempdir
12301 cd $tempdir
12302 case ${srcdir} in
12303 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12304 *) realsrcdir=../${srcdir};;
12305 esac
12306 # Clearing GMPINC is necessary to prevent host headers being
12307 # used by the build compiler. Defining GENERATOR_FILE stops
12308 # system.h from including gmp.h.
12309 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12310 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12311 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12312 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12313 ${realsrcdir}/configure \
12314 --enable-languages=${enable_languages-all} \
12315 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12316 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12317 --target=$target_alias --host=$build_alias \
12318 --build=$build_alias || exit # retaining $tempdir
12320 # We just finished tests for the build machine, so rename
12321 # the file auto-build.h in the gcc directory.
12322 mv auto-host.h ../auto-build.h
12323 cd ..
12324 rm -rf $tempdir
12325 build_auto=auto-build.h
12326 HAVE_AUTO_BUILD=
12331 tm_file="${tm_file} defaults.h"
12332 tm_p_file="${tm_p_file} tm-preds.h"
12333 tm_d_file="${tm_d_file} defaults.h"
12334 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12335 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12336 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12337 # put this back in temporarily.
12338 xm_file="auto-host.h ansidecl.h ${xm_file}"
12340 # --------
12341 # UNSORTED
12342 # --------
12344 # Compile in configure arguments.
12345 if test -f configargs.h ; then
12346 # Being re-configured.
12347 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12348 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12349 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12350 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12352 else
12353 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12356 # Double all backslashes and backslash all quotes to turn
12357 # gcc_config_arguments into a C string.
12358 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12359 $gcc_config_arguments
12361 gcc_config_arguments_str=`cat conftest.out`
12362 rm -f conftest.out
12364 cat > configargs.h <<EOF
12365 /* Generated automatically. */
12366 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12367 static const char thread_model[] = "$thread_file";
12369 static const struct {
12370 const char *name, *value;
12371 } configure_default_options[] = $configure_default_options;
12374 gcc_BASEVER=`cat $srcdir/BASE-VER`
12375 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12376 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12377 if test -f $srcdir/REVISION ; then
12378 gcc_REVISION=`cat $srcdir/REVISION`
12379 else
12380 gcc_REVISION=""
12382 cat > plugin-version.h <<EOF
12383 #include "configargs.h"
12385 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12386 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12387 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12388 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12390 static char basever[] = "$gcc_BASEVER";
12391 static char datestamp[] = "$gcc_DATESTAMP";
12392 static char devphase[] = "$gcc_DEVPHASE";
12393 static char revision[] = "$gcc_REVISION";
12395 /* FIXME plugins: We should make the version information more precise.
12396 One way to do is to add a checksum. */
12398 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12399 devphase, revision,
12400 configuration_arguments};
12403 # Determine what GCC version number to use in filesystem paths.
12405 get_gcc_base_ver="cat"
12407 # Check whether --with-gcc-major-version-only was given.
12408 if test "${with_gcc_major_version_only+set}" = set; then :
12409 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12410 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12418 # Internationalization
12419 # If we haven't got the data from the intl directory,
12420 # assume NLS is disabled.
12421 USE_NLS=no
12422 LIBINTL=
12423 LIBINTL_DEP=
12424 INCINTL=
12425 XGETTEXT=
12426 GMSGFMT=
12427 POSUB=
12429 if test -f ../intl/config.intl; then
12430 . ../intl/config.intl
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12433 $as_echo_n "checking whether NLS is requested... " >&6; }
12434 if test x"$USE_NLS" != xyes; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439 $as_echo "yes" >&6; }
12441 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12445 $as_echo_n "checking for catalogs to be installed... " >&6; }
12446 # Look for .po and .gmo files in the source directory.
12447 CATALOGS=
12448 XLINGUAS=
12449 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12450 # If there aren't any .gmo files the shell will give us the
12451 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12452 # weeded out.
12453 case "$cat" in *\**)
12454 continue;;
12455 esac
12456 # The quadruple backslash is collapsed to a double backslash
12457 # by the backticks, then collapsed again by the double quotes,
12458 # leaving us with one backslash in the sed expression (right
12459 # before the dot that mustn't act as a wildcard).
12460 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12461 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12462 # The user is allowed to set LINGUAS to a list of languages to
12463 # install catalogs for. If it's empty that means "all of them."
12464 if test "x$LINGUAS" = x; then
12465 CATALOGS="$CATALOGS $cat"
12466 XLINGUAS="$XLINGUAS $lang"
12467 else
12468 case "$LINGUAS" in *$lang*)
12469 CATALOGS="$CATALOGS $cat"
12470 XLINGUAS="$XLINGUAS $lang"
12472 esac
12474 done
12475 LINGUAS="$XLINGUAS"
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12477 $as_echo "$LINGUAS" >&6; }
12480 DATADIRNAME=share
12482 INSTOBJEXT=.mo
12484 GENCAT=gencat
12486 CATOBJEXT=.gmo
12490 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12491 # -liconv on the link line twice.
12492 case "$LIBINTL" in *$LIBICONV*)
12493 LIBICONV= ;;
12494 esac
12496 # Check whether --enable-secureplt was given.
12497 if test "${enable_secureplt+set}" = set; then :
12498 enableval=$enable_secureplt;
12502 # Check whether --enable-mingw-wildcard was given.
12503 if test "${enable_mingw_wildcard+set}" = set; then :
12504 enableval=$enable_mingw_wildcard;
12505 else
12506 enable_mingw_wildcard=platform
12509 if test x"$enable_mingw_wildcard" != xplatform ; then :
12511 cat >>confdefs.h <<_ACEOF
12512 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12513 _ACEOF
12517 # Check whether --enable-large-address-aware was given.
12518 if test "${enable_large_address_aware+set}" = set; then :
12519 enableval=$enable_large_address_aware;
12522 if test x"$enable_large_address_aware" = xyes; then :
12524 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12528 # Check whether --enable-leading-mingw64-underscores was given.
12529 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12530 enableval=$enable_leading_mingw64_underscores;
12533 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12535 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12539 # Check whether --enable-cld was given.
12540 if test "${enable_cld+set}" = set; then :
12541 enableval=$enable_cld;
12542 else
12543 enable_cld=no
12547 # Check whether --enable-frame-pointer was given.
12548 if test "${enable_frame_pointer+set}" = set; then :
12549 enableval=$enable_frame_pointer;
12550 else
12552 case $target_os in
12553 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12554 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12555 enable_frame_pointer=no
12558 enable_frame_pointer=yes
12560 esac
12565 case $target in
12566 i[34567]86-*-* | x86_64-*-*)
12567 if test "x$enable_cld" = xyes; then
12568 tm_defines="${tm_defines} USE_IX86_CLD=1"
12570 if test "x$enable_frame_pointer" = xyes; then
12571 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12574 esac
12576 # Windows32 Registry support for specifying GCC installation paths.
12577 # Check whether --enable-win32-registry was given.
12578 if test "${enable_win32_registry+set}" = set; then :
12579 enableval=$enable_win32_registry;
12583 case $host_os in
12584 win32 | pe | cygwin* | mingw32*)
12585 if test "x$enable_win32_registry" != xno; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12587 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12588 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 ac_func_search_save_LIBS=$LIBS
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12595 /* Override any GCC internal prototype to avoid an error.
12596 Use char because int might match the return type of a GCC
12597 builtin and then its argument prototype would still apply. */
12598 #ifdef __cplusplus
12599 extern "C"
12600 #endif
12601 char RegOpenKeyExA ();
12603 main ()
12605 return RegOpenKeyExA ();
12607 return 0;
12609 _ACEOF
12610 for ac_lib in '' advapi32; do
12611 if test -z "$ac_lib"; then
12612 ac_res="none required"
12613 else
12614 ac_res=-l$ac_lib
12615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12617 if ac_fn_cxx_try_link "$LINENO"; then :
12618 ac_cv_search_RegOpenKeyExA=$ac_res
12620 rm -f core conftest.err conftest.$ac_objext \
12621 conftest$ac_exeext
12622 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12623 break
12625 done
12626 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12628 else
12629 ac_cv_search_RegOpenKeyExA=no
12631 rm conftest.$ac_ext
12632 LIBS=$ac_func_search_save_LIBS
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12635 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12636 ac_res=$ac_cv_search_RegOpenKeyExA
12637 if test "$ac_res" != no; then :
12638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12640 else
12641 enable_win32_registry=no
12646 if test "x$enable_win32_registry" != xno; then
12648 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12651 if test "x$enable_win32_registry" != xyes \
12652 && test "x$enable_win32_registry" != x; then
12654 cat >>confdefs.h <<_ACEOF
12655 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12656 _ACEOF
12661 esac
12663 # Get an absolute path to the GCC top-level source directory
12664 holddir=`${PWDCMD-pwd}`
12665 cd $srcdir
12666 topdir=`${PWDCMD-pwd}`
12667 cd $holddir
12669 # Conditionalize the makefile for this host machine.
12670 xmake_file=
12671 for f in ${host_xmake_file}
12673 if test -f ${srcdir}/config/$f
12674 then
12675 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12677 done
12679 # Conditionalize the makefile for this target machine.
12680 tmake_file_=
12681 for f in ${tmake_file}
12683 if test -f ${srcdir}/config/$f
12684 then
12685 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12687 done
12688 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12690 out_object_file=`basename $out_file .c`.o
12691 common_out_object_file=`basename $common_out_file .c`.o
12693 tm_file_list="options.h"
12694 tm_include_list="options.h insn-constants.h"
12695 for f in $tm_file; do
12696 case $f in
12697 ./* )
12698 f=`echo $f | sed 's/^..//'`
12699 tm_file_list="${tm_file_list} $f"
12700 tm_include_list="${tm_include_list} $f"
12702 defaults.h )
12703 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12704 tm_include_list="${tm_include_list} $f"
12707 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12708 tm_include_list="${tm_include_list} config/$f"
12710 esac
12711 done
12713 tm_p_file_list=
12714 tm_p_include_list=
12715 for f in $tm_p_file; do
12716 case $f in
12717 tm-preds.h )
12718 tm_p_file_list="${tm_p_file_list} $f"
12719 tm_p_include_list="${tm_p_include_list} $f"
12722 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12723 tm_p_include_list="${tm_p_include_list} config/$f"
12724 esac
12725 done
12727 tm_d_file_list=
12728 tm_d_include_list="options.h insn-constants.h"
12729 for f in $tm_d_file; do
12730 case $f in
12731 defaults.h )
12732 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12733 tm_d_include_list="${tm_d_include_list} $f"
12736 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12737 tm_d_include_list="${tm_d_include_list} config/$f"
12739 esac
12740 done
12742 xm_file_list=
12743 xm_include_list=
12744 for f in $xm_file; do
12745 case $f in
12746 ansidecl.h )
12747 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12748 xm_include_list="${xm_include_list} $f"
12750 auto-host.h )
12751 xm_file_list="${xm_file_list} $f"
12752 xm_include_list="${xm_include_list} $f"
12755 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12756 xm_include_list="${xm_include_list} config/$f"
12758 esac
12759 done
12761 host_xm_file_list=
12762 host_xm_include_list=
12763 for f in $host_xm_file; do
12764 case $f in
12765 ansidecl.h )
12766 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12767 host_xm_include_list="${host_xm_include_list} $f"
12769 auto-host.h )
12770 host_xm_file_list="${host_xm_file_list} $f"
12771 host_xm_include_list="${host_xm_include_list} $f"
12774 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12775 host_xm_include_list="${host_xm_include_list} config/$f"
12777 esac
12778 done
12780 build_xm_file_list=
12781 for f in $build_xm_file; do
12782 case $f in
12783 ansidecl.h )
12784 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12785 build_xm_include_list="${build_xm_include_list} $f"
12787 auto-build.h | auto-host.h )
12788 build_xm_file_list="${build_xm_file_list} $f"
12789 build_xm_include_list="${build_xm_include_list} $f"
12792 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12793 build_xm_include_list="${build_xm_include_list} config/$f"
12795 esac
12796 done
12798 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12799 # cross-compiler which does not use the native headers and libraries.
12800 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12801 CROSS=
12802 ALL=all.internal
12803 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12804 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12806 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12807 test x$build != x$host || test "x$with_build_sysroot" != x; then
12808 if test "x$with_build_sysroot" != x; then
12809 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12810 else
12811 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12814 if test x$host != x$target
12815 then
12816 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12817 ALL=all.cross
12818 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12819 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12820 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12823 if test "x$with_build_sysroot" != "x"; then
12824 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12825 elif test "x$with_sysroot" = x; then
12826 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12827 elif test "x$with_sysroot" = xyes; then
12828 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12829 else
12830 target_header_dir="${with_sysroot}${native_system_header_dir}"
12832 else
12833 target_header_dir=${native_system_header_dir}
12836 # If this is a cross-compiler that does not
12837 # have its own set of headers then define
12838 # inhibit_libc
12840 # If this is using newlib, without having the headers available now,
12841 # then define inhibit_libc in LIBGCC2_CFLAGS.
12842 # This prevents libgcc2 from containing any code which requires libc
12843 # support.
12844 : ${inhibit_libc=false}
12845 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12846 test x$with_newlib = xyes ; } &&
12847 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12848 inhibit_libc=true
12852 # When building gcc with a cross-compiler, we need to adjust things so
12853 # that the generator programs are still built with the native compiler.
12854 # Also, we cannot run fixincludes.
12856 # These are the normal (build=host) settings:
12857 CC_FOR_BUILD='$(CC)'
12858 CXX_FOR_BUILD='$(CXX)'
12859 BUILD_CFLAGS='$(ALL_CFLAGS)'
12860 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12861 BUILD_LDFLAGS='$(LDFLAGS)'
12862 STMP_FIXINC=stmp-fixinc
12864 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12865 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12867 # And these apply if build != host, or we are generating coverage data
12868 if test x$build != x$host || test "x$coverage_flags" != x
12869 then
12870 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12871 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12872 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12874 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12875 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12876 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12877 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12882 # Expand extra_headers to include complete path.
12883 # This substitutes for lots of t-* files.
12884 extra_headers_list=
12885 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12886 for file in ${extra_headers} ; do
12887 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12888 done
12890 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12891 if test x"$use_gcc_tgmath" = xyes
12892 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12895 # Define collect2 in Makefile.
12896 case $host_can_use_collect2 in
12897 no) collect2= ;;
12898 *) collect2='collect2$(exeext)' ;;
12899 esac
12902 # Add a definition of USE_COLLECT2 if system wants one.
12903 case $use_collect2 in
12904 no) use_collect2= ;;
12905 "") ;;
12907 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12908 xm_defines="${xm_defines} USE_COLLECT2"
12909 case $host_can_use_collect2 in
12911 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12913 esac
12915 esac
12918 cat >>confdefs.h <<_ACEOF
12919 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12920 _ACEOF
12923 # ---------------------------
12924 # Assembler & linker features
12925 # ---------------------------
12927 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12928 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12929 # However when ld-new is first executed from the build tree, libtool will
12930 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12931 # to the build tree. While doing this we need to use the previous-stage
12932 # linker, or we have an infinite loop. The presence of a shell script as
12933 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12934 # the gcc/collect-ld script. So we need to know how libtool works, or
12935 # exec-tool will fail.
12938 case `pwd` in
12939 *\ * | *\ *)
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12941 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12942 esac
12946 macro_version='2.2.7a'
12947 macro_revision='1.3134'
12961 ltmain="$ac_aux_dir/ltmain.sh"
12963 # Backslashify metacharacters that are still active within
12964 # double-quoted strings.
12965 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12967 # Same as above, but do not quote variable references.
12968 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12970 # Sed substitution to delay expansion of an escaped shell variable in a
12971 # double_quote_subst'ed string.
12972 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12974 # Sed substitution to delay expansion of an escaped single quote.
12975 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12977 # Sed substitution to avoid accidental globbing in evaled expressions
12978 no_glob_subst='s/\*/\\\*/g'
12980 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12981 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12982 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12985 $as_echo_n "checking how to print strings... " >&6; }
12986 # Test print first, because it will be a builtin if present.
12987 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12988 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12989 ECHO='print -r --'
12990 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12991 ECHO='printf %s\n'
12992 else
12993 # Use this function as a fallback that always works.
12994 func_fallback_echo ()
12996 eval 'cat <<_LTECHO_EOF
12998 _LTECHO_EOF'
13000 ECHO='func_fallback_echo'
13003 # func_echo_all arg...
13004 # Invoke $ECHO with all args, space-separated.
13005 func_echo_all ()
13007 $ECHO ""
13010 case "$ECHO" in
13011 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13012 $as_echo "printf" >&6; } ;;
13013 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13014 $as_echo "print -r" >&6; } ;;
13015 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13016 $as_echo "cat" >&6; } ;;
13017 esac
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13033 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13034 if ${ac_cv_path_SED+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13038 for ac_i in 1 2 3 4 5 6 7; do
13039 ac_script="$ac_script$as_nl$ac_script"
13040 done
13041 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13042 { ac_script=; unset ac_script;}
13043 if test -z "$SED"; then
13044 ac_path_SED_found=false
13045 # Loop through the user's path and test for each of PROGNAME-LIST
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_prog in sed gsed; do
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13054 as_fn_executable_p "$ac_path_SED" || continue
13055 # Check for GNU ac_path_SED and select it if it is found.
13056 # Check for GNU $ac_path_SED
13057 case `"$ac_path_SED" --version 2>&1` in
13058 *GNU*)
13059 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13061 ac_count=0
13062 $as_echo_n 0123456789 >"conftest.in"
13063 while :
13065 cat "conftest.in" "conftest.in" >"conftest.tmp"
13066 mv "conftest.tmp" "conftest.in"
13067 cp "conftest.in" "conftest.nl"
13068 $as_echo '' >> "conftest.nl"
13069 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13071 as_fn_arith $ac_count + 1 && ac_count=$as_val
13072 if test $ac_count -gt ${ac_path_SED_max-0}; then
13073 # Best one so far, save it but keep looking for a better one
13074 ac_cv_path_SED="$ac_path_SED"
13075 ac_path_SED_max=$ac_count
13077 # 10*(2^10) chars as input seems more than enough
13078 test $ac_count -gt 10 && break
13079 done
13080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13081 esac
13083 $ac_path_SED_found && break 3
13084 done
13085 done
13086 done
13087 IFS=$as_save_IFS
13088 if test -z "$ac_cv_path_SED"; then
13089 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13091 else
13092 ac_cv_path_SED=$SED
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13097 $as_echo "$ac_cv_path_SED" >&6; }
13098 SED="$ac_cv_path_SED"
13099 rm -f conftest.sed
13101 test -z "$SED" && SED=sed
13102 Xsed="$SED -e 1s/^X//"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13115 $as_echo_n "checking for fgrep... " >&6; }
13116 if ${ac_cv_path_FGREP+:} false; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13120 then ac_cv_path_FGREP="$GREP -F"
13121 else
13122 if test -z "$FGREP"; then
13123 ac_path_FGREP_found=false
13124 # Loop through the user's path and test for each of PROGNAME-LIST
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
13130 for ac_prog in fgrep; do
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13133 as_fn_executable_p "$ac_path_FGREP" || continue
13134 # Check for GNU ac_path_FGREP and select it if it is found.
13135 # Check for GNU $ac_path_FGREP
13136 case `"$ac_path_FGREP" --version 2>&1` in
13137 *GNU*)
13138 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13140 ac_count=0
13141 $as_echo_n 0123456789 >"conftest.in"
13142 while :
13144 cat "conftest.in" "conftest.in" >"conftest.tmp"
13145 mv "conftest.tmp" "conftest.in"
13146 cp "conftest.in" "conftest.nl"
13147 $as_echo 'FGREP' >> "conftest.nl"
13148 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13149 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13150 as_fn_arith $ac_count + 1 && ac_count=$as_val
13151 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13152 # Best one so far, save it but keep looking for a better one
13153 ac_cv_path_FGREP="$ac_path_FGREP"
13154 ac_path_FGREP_max=$ac_count
13156 # 10*(2^10) chars as input seems more than enough
13157 test $ac_count -gt 10 && break
13158 done
13159 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13160 esac
13162 $ac_path_FGREP_found && break 3
13163 done
13164 done
13165 done
13166 IFS=$as_save_IFS
13167 if test -z "$ac_cv_path_FGREP"; then
13168 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13170 else
13171 ac_cv_path_FGREP=$FGREP
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13177 $as_echo "$ac_cv_path_FGREP" >&6; }
13178 FGREP="$ac_cv_path_FGREP"
13181 test -z "$GREP" && GREP=grep
13201 # Check whether --with-gnu-ld was given.
13202 if test "${with_gnu_ld+set}" = set; then :
13203 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13204 else
13205 with_gnu_ld=no
13208 ac_prog=ld
13209 if test "$GCC" = yes; then
13210 # Check if gcc -print-prog-name=ld gives a path.
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13212 $as_echo_n "checking for ld used by $CC... " >&6; }
13213 case $host in
13214 *-*-mingw*)
13215 # gcc leaves a trailing carriage return which upsets mingw
13216 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13218 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13219 esac
13220 case $ac_prog in
13221 # Accept absolute paths.
13222 [\\/]* | ?:[\\/]*)
13223 re_direlt='/[^/][^/]*/\.\./'
13224 # Canonicalize the pathname of ld
13225 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13226 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13227 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13228 done
13229 test -z "$LD" && LD="$ac_prog"
13232 # If it fails, then pretend we aren't using GCC.
13233 ac_prog=ld
13236 # If it is relative, then search for the first ld in PATH.
13237 with_gnu_ld=unknown
13239 esac
13240 elif test "$with_gnu_ld" = yes; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13242 $as_echo_n "checking for GNU ld... " >&6; }
13243 else
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13245 $as_echo_n "checking for non-GNU ld... " >&6; }
13247 if ${lt_cv_path_LD+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 if test -z "$LD"; then
13251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13252 for ac_dir in $PATH; do
13253 IFS="$lt_save_ifs"
13254 test -z "$ac_dir" && ac_dir=.
13255 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13256 lt_cv_path_LD="$ac_dir/$ac_prog"
13257 # Check to see if the program is GNU ld. I'd rather use --version,
13258 # but apparently some variants of GNU ld only accept -v.
13259 # Break only if it was the GNU/non-GNU ld that we prefer.
13260 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13261 *GNU* | *'with BFD'*)
13262 test "$with_gnu_ld" != no && break
13265 test "$with_gnu_ld" != yes && break
13267 esac
13269 done
13270 IFS="$lt_save_ifs"
13271 else
13272 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13276 LD="$lt_cv_path_LD"
13277 if test -n "$LD"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13279 $as_echo "$LD" >&6; }
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13284 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13286 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13287 if ${lt_cv_prog_gnu_ld+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13291 case `$LD -v 2>&1 </dev/null` in
13292 *GNU* | *'with BFD'*)
13293 lt_cv_prog_gnu_ld=yes
13296 lt_cv_prog_gnu_ld=no
13298 esac
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13301 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13302 with_gnu_ld=$lt_cv_prog_gnu_ld
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13313 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13314 if ${lt_cv_path_NM+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 if test -n "$NM"; then
13318 # Let the user override the test.
13319 lt_cv_path_NM="$NM"
13320 else
13321 lt_nm_to_check="${ac_tool_prefix}nm"
13322 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13323 lt_nm_to_check="$lt_nm_to_check nm"
13325 for lt_tmp_nm in $lt_nm_to_check; do
13326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13327 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13328 IFS="$lt_save_ifs"
13329 test -z "$ac_dir" && ac_dir=.
13330 tmp_nm="$ac_dir/$lt_tmp_nm"
13331 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13332 # Check to see if the nm accepts a BSD-compat flag.
13333 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13334 # nm: unknown option "B" ignored
13335 # Tru64's nm complains that /dev/null is an invalid object file
13336 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13337 */dev/null* | *'Invalid file or object type'*)
13338 lt_cv_path_NM="$tmp_nm -B"
13339 break
13342 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13343 */dev/null*)
13344 lt_cv_path_NM="$tmp_nm -p"
13345 break
13348 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13349 continue # so that we can try to find one that supports BSD flags
13351 esac
13353 esac
13355 done
13356 IFS="$lt_save_ifs"
13357 done
13358 : ${lt_cv_path_NM=no}
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13362 $as_echo "$lt_cv_path_NM" >&6; }
13363 if test "$lt_cv_path_NM" != "no"; then
13364 NM="$lt_cv_path_NM"
13365 else
13366 # Didn't find any BSD compatible name lister, look for dumpbin.
13367 if test -n "$DUMPBIN"; then :
13368 # Let the user override the test.
13369 else
13370 if test -n "$ac_tool_prefix"; then
13371 for ac_prog in dumpbin "link -dump"
13373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if ${ac_cv_prog_DUMPBIN+:} false; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 if test -n "$DUMPBIN"; then
13381 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13382 else
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13390 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 break 2
13394 done
13395 done
13396 IFS=$as_save_IFS
13400 DUMPBIN=$ac_cv_prog_DUMPBIN
13401 if test -n "$DUMPBIN"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13403 $as_echo "$DUMPBIN" >&6; }
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13410 test -n "$DUMPBIN" && break
13411 done
13413 if test -z "$DUMPBIN"; then
13414 ac_ct_DUMPBIN=$DUMPBIN
13415 for ac_prog in dumpbin "link -dump"
13417 # Extract the first word of "$ac_prog", so it can be a program name with args.
13418 set dummy $ac_prog; ac_word=$2
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13420 $as_echo_n "checking for $ac_word... " >&6; }
13421 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 if test -n "$ac_ct_DUMPBIN"; then
13425 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13426 else
13427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13428 for as_dir in $PATH
13430 IFS=$as_save_IFS
13431 test -z "$as_dir" && as_dir=.
13432 for ac_exec_ext in '' $ac_executable_extensions; do
13433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13434 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13436 break 2
13438 done
13439 done
13440 IFS=$as_save_IFS
13444 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13445 if test -n "$ac_ct_DUMPBIN"; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13447 $as_echo "$ac_ct_DUMPBIN" >&6; }
13448 else
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13450 $as_echo "no" >&6; }
13454 test -n "$ac_ct_DUMPBIN" && break
13455 done
13457 if test "x$ac_ct_DUMPBIN" = x; then
13458 DUMPBIN=":"
13459 else
13460 case $cross_compiling:$ac_tool_warned in
13461 yes:)
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13464 ac_tool_warned=yes ;;
13465 esac
13466 DUMPBIN=$ac_ct_DUMPBIN
13470 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13471 *COFF*)
13472 DUMPBIN="$DUMPBIN -symbols"
13475 DUMPBIN=:
13477 esac
13480 if test "$DUMPBIN" != ":"; then
13481 NM="$DUMPBIN"
13484 test -z "$NM" && NM=nm
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13492 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13493 if ${lt_cv_nm_interface+:} false; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 lt_cv_nm_interface="BSD nm"
13497 echo "int some_variable = 0;" > conftest.$ac_ext
13498 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13499 (eval "$ac_compile" 2>conftest.err)
13500 cat conftest.err >&5
13501 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13502 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13503 cat conftest.err >&5
13504 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13505 cat conftest.out >&5
13506 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13507 lt_cv_nm_interface="MS dumpbin"
13509 rm -f conftest*
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13512 $as_echo "$lt_cv_nm_interface" >&6; }
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13515 $as_echo_n "checking whether ln -s works... " >&6; }
13516 LN_S=$as_ln_s
13517 if test "$LN_S" = "ln -s"; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13519 $as_echo "yes" >&6; }
13520 else
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13522 $as_echo "no, using $LN_S" >&6; }
13525 # find the maximum length of command line arguments
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13527 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13528 if ${lt_cv_sys_max_cmd_len+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13532 teststring="ABCD"
13534 case $build_os in
13535 msdosdjgpp*)
13536 # On DJGPP, this test can blow up pretty badly due to problems in libc
13537 # (any single argument exceeding 2000 bytes causes a buffer overrun
13538 # during glob expansion). Even if it were fixed, the result of this
13539 # check would be larger than it should be.
13540 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13543 gnu*)
13544 # Under GNU Hurd, this test is not required because there is
13545 # no limit to the length of command line arguments.
13546 # Libtool will interpret -1 as no limit whatsoever
13547 lt_cv_sys_max_cmd_len=-1;
13550 cygwin* | mingw* | cegcc*)
13551 # On Win9x/ME, this test blows up -- it succeeds, but takes
13552 # about 5 minutes as the teststring grows exponentially.
13553 # Worse, since 9x/ME are not pre-emptively multitasking,
13554 # you end up with a "frozen" computer, even though with patience
13555 # the test eventually succeeds (with a max line length of 256k).
13556 # Instead, let's just punt: use the minimum linelength reported by
13557 # all of the supported platforms: 8192 (on NT/2K/XP).
13558 lt_cv_sys_max_cmd_len=8192;
13561 mint*)
13562 # On MiNT this can take a long time and run out of memory.
13563 lt_cv_sys_max_cmd_len=8192;
13566 amigaos*)
13567 # On AmigaOS with pdksh, this test takes hours, literally.
13568 # So we just punt and use a minimum line length of 8192.
13569 lt_cv_sys_max_cmd_len=8192;
13572 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13573 # This has been around since 386BSD, at least. Likely further.
13574 if test -x /sbin/sysctl; then
13575 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13576 elif test -x /usr/sbin/sysctl; then
13577 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13578 else
13579 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13581 # And add a safety zone
13582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13586 interix*)
13587 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13588 lt_cv_sys_max_cmd_len=196608
13591 osf*)
13592 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13593 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13594 # nice to cause kernel panics so lets avoid the loop below.
13595 # First set a reasonable default.
13596 lt_cv_sys_max_cmd_len=16384
13598 if test -x /sbin/sysconfig; then
13599 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13600 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13601 esac
13604 sco3.2v5*)
13605 lt_cv_sys_max_cmd_len=102400
13607 sysv5* | sco5v6* | sysv4.2uw2*)
13608 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13609 if test -n "$kargmax"; then
13610 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13611 else
13612 lt_cv_sys_max_cmd_len=32768
13616 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13617 if test -n "$lt_cv_sys_max_cmd_len"; then
13618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13620 else
13621 # Make teststring a little bigger before we do anything with it.
13622 # a 1K string should be a reasonable start.
13623 for i in 1 2 3 4 5 6 7 8 ; do
13624 teststring=$teststring$teststring
13625 done
13626 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13627 # If test is not a shell built-in, we'll probably end up computing a
13628 # maximum length that is only half of the actual maximum length, but
13629 # we can't tell.
13630 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13631 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13632 test $i != 17 # 1/2 MB should be enough
13634 i=`expr $i + 1`
13635 teststring=$teststring$teststring
13636 done
13637 # Only check the string length outside the loop.
13638 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13639 teststring=
13640 # Add a significant safety factor because C++ compilers can tack on
13641 # massive amounts of additional arguments before passing them to the
13642 # linker. It appears as though 1/2 is a usable value.
13643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13646 esac
13650 if test -n $lt_cv_sys_max_cmd_len ; then
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13652 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13653 else
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13655 $as_echo "none" >&6; }
13657 max_cmd_len=$lt_cv_sys_max_cmd_len
13664 : ${CP="cp -f"}
13665 : ${MV="mv -f"}
13666 : ${RM="rm -f"}
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13669 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13670 # Try some XSI features
13671 xsi_shell=no
13672 ( _lt_dummy="a/b/c"
13673 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13674 = c,a/b,, \
13675 && eval 'test $(( 1 + 1 )) -eq 2 \
13676 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13677 && xsi_shell=yes
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13679 $as_echo "$xsi_shell" >&6; }
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13683 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13684 lt_shell_append=no
13685 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13686 >/dev/null 2>&1 \
13687 && lt_shell_append=yes
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13689 $as_echo "$lt_shell_append" >&6; }
13692 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13693 lt_unset=unset
13694 else
13695 lt_unset=false
13702 # test EBCDIC or ASCII
13703 case `echo X|tr X '\101'` in
13704 A) # ASCII based system
13705 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13706 lt_SP2NL='tr \040 \012'
13707 lt_NL2SP='tr \015\012 \040\040'
13709 *) # EBCDIC based system
13710 lt_SP2NL='tr \100 \n'
13711 lt_NL2SP='tr \r\n \100\100'
13713 esac
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13724 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13725 if ${lt_cv_ld_reload_flag+:} false; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 lt_cv_ld_reload_flag='-r'
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13731 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13732 reload_flag=$lt_cv_ld_reload_flag
13733 case $reload_flag in
13734 "" | " "*) ;;
13735 *) reload_flag=" $reload_flag" ;;
13736 esac
13737 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13738 case $host_os in
13739 darwin*)
13740 if test "$GCC" = yes; then
13741 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13742 else
13743 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13746 esac
13756 if test -n "$ac_tool_prefix"; then
13757 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13758 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13760 $as_echo_n "checking for $ac_word... " >&6; }
13761 if ${ac_cv_prog_OBJDUMP+:} false; then :
13762 $as_echo_n "(cached) " >&6
13763 else
13764 if test -n "$OBJDUMP"; then
13765 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13766 else
13767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13768 for as_dir in $PATH
13770 IFS=$as_save_IFS
13771 test -z "$as_dir" && as_dir=.
13772 for ac_exec_ext in '' $ac_executable_extensions; do
13773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13774 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13776 break 2
13778 done
13779 done
13780 IFS=$as_save_IFS
13784 OBJDUMP=$ac_cv_prog_OBJDUMP
13785 if test -n "$OBJDUMP"; then
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13787 $as_echo "$OBJDUMP" >&6; }
13788 else
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13790 $as_echo "no" >&6; }
13795 if test -z "$ac_cv_prog_OBJDUMP"; then
13796 ac_ct_OBJDUMP=$OBJDUMP
13797 # Extract the first word of "objdump", so it can be a program name with args.
13798 set dummy objdump; ac_word=$2
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13800 $as_echo_n "checking for $ac_word... " >&6; }
13801 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13802 $as_echo_n "(cached) " >&6
13803 else
13804 if test -n "$ac_ct_OBJDUMP"; then
13805 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13806 else
13807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13810 IFS=$as_save_IFS
13811 test -z "$as_dir" && as_dir=.
13812 for ac_exec_ext in '' $ac_executable_extensions; do
13813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13814 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13816 break 2
13818 done
13819 done
13820 IFS=$as_save_IFS
13824 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13825 if test -n "$ac_ct_OBJDUMP"; then
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13827 $as_echo "$ac_ct_OBJDUMP" >&6; }
13828 else
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830 $as_echo "no" >&6; }
13833 if test "x$ac_ct_OBJDUMP" = x; then
13834 OBJDUMP="false"
13835 else
13836 case $cross_compiling:$ac_tool_warned in
13837 yes:)
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13840 ac_tool_warned=yes ;;
13841 esac
13842 OBJDUMP=$ac_ct_OBJDUMP
13844 else
13845 OBJDUMP="$ac_cv_prog_OBJDUMP"
13848 test -z "$OBJDUMP" && OBJDUMP=objdump
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13859 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13860 if ${lt_cv_deplibs_check_method+:} false; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863 lt_cv_file_magic_cmd='$MAGIC_CMD'
13864 lt_cv_file_magic_test_file=
13865 lt_cv_deplibs_check_method='unknown'
13866 # Need to set the preceding variable on all platforms that support
13867 # interlibrary dependencies.
13868 # 'none' -- dependencies not supported.
13869 # `unknown' -- same as none, but documents that we really don't know.
13870 # 'pass_all' -- all dependencies passed with no checks.
13871 # 'test_compile' -- check by making test program.
13872 # 'file_magic [[regex]]' -- check by looking for files in library path
13873 # which responds to the $file_magic_cmd with a given extended regex.
13874 # If you have `file' or equivalent on your system and you're not sure
13875 # whether `pass_all' will *always* work, you probably want this one.
13877 case $host_os in
13878 aix[4-9]*)
13879 lt_cv_deplibs_check_method=pass_all
13882 beos*)
13883 lt_cv_deplibs_check_method=pass_all
13886 bsdi[45]*)
13887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13888 lt_cv_file_magic_cmd='/usr/bin/file -L'
13889 lt_cv_file_magic_test_file=/shlib/libc.so
13892 cygwin*)
13893 # func_win32_libid is a shell function defined in ltmain.sh
13894 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13895 lt_cv_file_magic_cmd='func_win32_libid'
13898 mingw* | pw32*)
13899 # Base MSYS/MinGW do not provide the 'file' command needed by
13900 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13901 # unless we find 'file', for example because we are cross-compiling.
13902 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13903 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13904 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13905 lt_cv_file_magic_cmd='func_win32_libid'
13906 else
13907 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13908 lt_cv_file_magic_cmd='$OBJDUMP -f'
13912 cegcc*)
13913 # use the weaker test based on 'objdump'. See mingw*.
13914 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13915 lt_cv_file_magic_cmd='$OBJDUMP -f'
13918 darwin* | rhapsody*)
13919 lt_cv_deplibs_check_method=pass_all
13922 freebsd* | dragonfly*)
13923 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13924 case $host_cpu in
13925 i*86 )
13926 # Not sure whether the presence of OpenBSD here was a mistake.
13927 # Let's accept both of them until this is cleared up.
13928 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13929 lt_cv_file_magic_cmd=/usr/bin/file
13930 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13932 esac
13933 else
13934 lt_cv_deplibs_check_method=pass_all
13938 gnu*)
13939 lt_cv_deplibs_check_method=pass_all
13942 haiku*)
13943 lt_cv_deplibs_check_method=pass_all
13946 hpux10.20* | hpux11*)
13947 lt_cv_file_magic_cmd=/usr/bin/file
13948 case $host_cpu in
13949 ia64*)
13950 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13951 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13953 hppa*64*)
13954 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]'
13955 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13958 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13959 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13961 esac
13964 interix[3-9]*)
13965 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13969 irix5* | irix6* | nonstopux*)
13970 case $LD in
13971 *-32|*"-32 ") libmagic=32-bit;;
13972 *-n32|*"-n32 ") libmagic=N32;;
13973 *-64|*"-64 ") libmagic=64-bit;;
13974 *) libmagic=never-match;;
13975 esac
13976 lt_cv_deplibs_check_method=pass_all
13979 # This must be Linux ELF.
13980 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13981 lt_cv_deplibs_check_method=pass_all
13984 netbsd*)
13985 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13987 else
13988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13992 newos6*)
13993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13994 lt_cv_file_magic_cmd=/usr/bin/file
13995 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13998 *nto* | *qnx*)
13999 lt_cv_deplibs_check_method=pass_all
14002 openbsd*)
14003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14005 else
14006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14010 osf3* | osf4* | osf5*)
14011 lt_cv_deplibs_check_method=pass_all
14014 rdos*)
14015 lt_cv_deplibs_check_method=pass_all
14018 solaris*)
14019 lt_cv_deplibs_check_method=pass_all
14022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14023 lt_cv_deplibs_check_method=pass_all
14026 sysv4 | sysv4.3*)
14027 case $host_vendor in
14028 motorola)
14029 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]'
14030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14032 ncr)
14033 lt_cv_deplibs_check_method=pass_all
14035 sequent)
14036 lt_cv_file_magic_cmd='/bin/file'
14037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14039 sni)
14040 lt_cv_file_magic_cmd='/bin/file'
14041 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14042 lt_cv_file_magic_test_file=/lib/libc.so
14044 siemens)
14045 lt_cv_deplibs_check_method=pass_all
14048 lt_cv_deplibs_check_method=pass_all
14050 esac
14053 tpf*)
14054 lt_cv_deplibs_check_method=pass_all
14056 esac
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14060 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14061 file_magic_cmd=$lt_cv_file_magic_cmd
14062 deplibs_check_method=$lt_cv_deplibs_check_method
14063 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14076 if test -n "$ac_tool_prefix"; then
14077 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14078 set dummy ${ac_tool_prefix}ar; ac_word=$2
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14080 $as_echo_n "checking for $ac_word... " >&6; }
14081 if ${ac_cv_prog_AR+:} false; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 if test -n "$AR"; then
14085 ac_cv_prog_AR="$AR" # Let the user override the test.
14086 else
14087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14090 IFS=$as_save_IFS
14091 test -z "$as_dir" && as_dir=.
14092 for ac_exec_ext in '' $ac_executable_extensions; do
14093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14094 ac_cv_prog_AR="${ac_tool_prefix}ar"
14095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14096 break 2
14098 done
14099 done
14100 IFS=$as_save_IFS
14104 AR=$ac_cv_prog_AR
14105 if test -n "$AR"; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14107 $as_echo "$AR" >&6; }
14108 else
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110 $as_echo "no" >&6; }
14115 if test -z "$ac_cv_prog_AR"; then
14116 ac_ct_AR=$AR
14117 # Extract the first word of "ar", so it can be a program name with args.
14118 set dummy ar; ac_word=$2
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14120 $as_echo_n "checking for $ac_word... " >&6; }
14121 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124 if test -n "$ac_ct_AR"; then
14125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14126 else
14127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128 for as_dir in $PATH
14130 IFS=$as_save_IFS
14131 test -z "$as_dir" && as_dir=.
14132 for ac_exec_ext in '' $ac_executable_extensions; do
14133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14134 ac_cv_prog_ac_ct_AR="ar"
14135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14136 break 2
14138 done
14139 done
14140 IFS=$as_save_IFS
14144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14145 if test -n "$ac_ct_AR"; then
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14147 $as_echo "$ac_ct_AR" >&6; }
14148 else
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150 $as_echo "no" >&6; }
14153 if test "x$ac_ct_AR" = x; then
14154 AR="false"
14155 else
14156 case $cross_compiling:$ac_tool_warned in
14157 yes:)
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14160 ac_tool_warned=yes ;;
14161 esac
14162 AR=$ac_ct_AR
14164 else
14165 AR="$ac_cv_prog_AR"
14168 test -z "$AR" && AR=ar
14169 test -z "$AR_FLAGS" && AR_FLAGS=cru
14181 if test -n "$ac_tool_prefix"; then
14182 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14183 set dummy ${ac_tool_prefix}strip; ac_word=$2
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14185 $as_echo_n "checking for $ac_word... " >&6; }
14186 if ${ac_cv_prog_STRIP+:} false; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 if test -n "$STRIP"; then
14190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14191 else
14192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193 for as_dir in $PATH
14195 IFS=$as_save_IFS
14196 test -z "$as_dir" && as_dir=.
14197 for ac_exec_ext in '' $ac_executable_extensions; do
14198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14201 break 2
14203 done
14204 done
14205 IFS=$as_save_IFS
14209 STRIP=$ac_cv_prog_STRIP
14210 if test -n "$STRIP"; then
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14212 $as_echo "$STRIP" >&6; }
14213 else
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14215 $as_echo "no" >&6; }
14220 if test -z "$ac_cv_prog_STRIP"; then
14221 ac_ct_STRIP=$STRIP
14222 # Extract the first word of "strip", so it can be a program name with args.
14223 set dummy strip; ac_word=$2
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14225 $as_echo_n "checking for $ac_word... " >&6; }
14226 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14227 $as_echo_n "(cached) " >&6
14228 else
14229 if test -n "$ac_ct_STRIP"; then
14230 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14231 else
14232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14233 for as_dir in $PATH
14235 IFS=$as_save_IFS
14236 test -z "$as_dir" && as_dir=.
14237 for ac_exec_ext in '' $ac_executable_extensions; do
14238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14239 ac_cv_prog_ac_ct_STRIP="strip"
14240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14241 break 2
14243 done
14244 done
14245 IFS=$as_save_IFS
14249 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14250 if test -n "$ac_ct_STRIP"; then
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14252 $as_echo "$ac_ct_STRIP" >&6; }
14253 else
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14255 $as_echo "no" >&6; }
14258 if test "x$ac_ct_STRIP" = x; then
14259 STRIP=":"
14260 else
14261 case $cross_compiling:$ac_tool_warned in
14262 yes:)
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14265 ac_tool_warned=yes ;;
14266 esac
14267 STRIP=$ac_ct_STRIP
14269 else
14270 STRIP="$ac_cv_prog_STRIP"
14273 test -z "$STRIP" && STRIP=:
14280 if test -n "$ac_tool_prefix"; then
14281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14282 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14284 $as_echo_n "checking for $ac_word... " >&6; }
14285 if ${ac_cv_prog_RANLIB+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 if test -n "$RANLIB"; then
14289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14290 else
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14294 IFS=$as_save_IFS
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 break 2
14302 done
14303 done
14304 IFS=$as_save_IFS
14308 RANLIB=$ac_cv_prog_RANLIB
14309 if test -n "$RANLIB"; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14311 $as_echo "$RANLIB" >&6; }
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14319 if test -z "$ac_cv_prog_RANLIB"; then
14320 ac_ct_RANLIB=$RANLIB
14321 # Extract the first word of "ranlib", so it can be a program name with args.
14322 set dummy ranlib; ac_word=$2
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14324 $as_echo_n "checking for $ac_word... " >&6; }
14325 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14326 $as_echo_n "(cached) " >&6
14327 else
14328 if test -n "$ac_ct_RANLIB"; then
14329 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14330 else
14331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14332 for as_dir in $PATH
14334 IFS=$as_save_IFS
14335 test -z "$as_dir" && as_dir=.
14336 for ac_exec_ext in '' $ac_executable_extensions; do
14337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14338 ac_cv_prog_ac_ct_RANLIB="ranlib"
14339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14340 break 2
14342 done
14343 done
14344 IFS=$as_save_IFS
14348 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14349 if test -n "$ac_ct_RANLIB"; then
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14351 $as_echo "$ac_ct_RANLIB" >&6; }
14352 else
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14354 $as_echo "no" >&6; }
14357 if test "x$ac_ct_RANLIB" = x; then
14358 RANLIB=":"
14359 else
14360 case $cross_compiling:$ac_tool_warned in
14361 yes:)
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14364 ac_tool_warned=yes ;;
14365 esac
14366 RANLIB=$ac_ct_RANLIB
14368 else
14369 RANLIB="$ac_cv_prog_RANLIB"
14372 test -z "$RANLIB" && RANLIB=:
14379 # Determine commands to create old-style static archives.
14380 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14381 old_postinstall_cmds='chmod 644 $oldlib'
14382 old_postuninstall_cmds=
14384 if test -n "$RANLIB"; then
14385 case $host_os in
14386 openbsd*)
14387 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14390 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14392 esac
14393 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14396 case $host_os in
14397 darwin*)
14398 lock_old_archive_extraction=yes ;;
14400 lock_old_archive_extraction=no ;;
14401 esac
14441 # If no C compiler was specified, use CC.
14442 LTCC=${LTCC-"$CC"}
14444 # If no C compiler flags were specified, use CFLAGS.
14445 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14447 # Allow CC to be a program name with arguments.
14448 compiler=$CC
14451 # Check for command to grab the raw symbol name followed by C symbol from nm.
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14453 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14454 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14455 $as_echo_n "(cached) " >&6
14456 else
14458 # These are sane defaults that work on at least a few old systems.
14459 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14461 # Character class describing NM global symbol codes.
14462 symcode='[BCDEGRST]'
14464 # Regexp to match symbols that can be accessed directly from C.
14465 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14467 # Define system-specific variables.
14468 case $host_os in
14469 aix*)
14470 symcode='[BCDT]'
14472 cygwin* | mingw* | pw32* | cegcc*)
14473 symcode='[ABCDGISTW]'
14475 hpux*)
14476 if test "$host_cpu" = ia64; then
14477 symcode='[ABCDEGRST]'
14480 irix* | nonstopux*)
14481 symcode='[BCDEGRST]'
14483 osf*)
14484 symcode='[BCDEGQRST]'
14486 solaris*)
14487 symcode='[BDRT]'
14489 sco3.2v5*)
14490 symcode='[DT]'
14492 sysv4.2uw2*)
14493 symcode='[DT]'
14495 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14496 symcode='[ABDT]'
14498 sysv4)
14499 symcode='[DFNSTU]'
14501 esac
14503 # If we're using GNU nm, then use its standard symbol codes.
14504 case `$NM -V 2>&1` in
14505 *GNU* | *'with BFD'*)
14506 symcode='[ABCDGIRSTW]' ;;
14507 esac
14509 # Transform an extracted symbol line into a proper C declaration.
14510 # Some systems (esp. on ia64) link data and code symbols differently,
14511 # so use this general approach.
14512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14514 # Transform an extracted symbol line into symbol name and symbol address
14515 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14516 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'"
14518 # Handle CRLF in mingw tool chain
14519 opt_cr=
14520 case $build_os in
14521 mingw*)
14522 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14524 esac
14526 # Try without a prefix underscore, then with it.
14527 for ac_symprfx in "" "_"; do
14529 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14530 symxfrm="\\1 $ac_symprfx\\2 \\2"
14532 # Write the raw and C identifiers.
14533 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14534 # Fake it for dumpbin and say T for any non-static function
14535 # and D for any global variable.
14536 # Also find C++ and __fastcall symbols from MSVC++,
14537 # which start with @ or ?.
14538 lt_cv_sys_global_symbol_pipe="$AWK '"\
14539 " {last_section=section; section=\$ 3};"\
14540 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14541 " \$ 0!~/External *\|/{next};"\
14542 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14543 " {if(hide[section]) next};"\
14544 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14545 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14546 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14547 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14548 " ' prfx=^$ac_symprfx"
14549 else
14550 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14553 # Check to see that the pipe works correctly.
14554 pipe_works=no
14556 rm -f conftest*
14557 cat > conftest.$ac_ext <<_LT_EOF
14558 #ifdef __cplusplus
14559 extern "C" {
14560 #endif
14561 char nm_test_var;
14562 void nm_test_func(void);
14563 void nm_test_func(void){}
14564 #ifdef __cplusplus
14566 #endif
14567 int main(){nm_test_var='a';nm_test_func();return(0);}
14568 _LT_EOF
14570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14571 (eval $ac_compile) 2>&5
14572 ac_status=$?
14573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14574 test $ac_status = 0; }; then
14575 # Now try to grab the symbols.
14576 nlist=conftest.nm
14577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14578 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14579 ac_status=$?
14580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14581 test $ac_status = 0; } && test -s "$nlist"; then
14582 # Try sorting and uniquifying the output.
14583 if sort "$nlist" | uniq > "$nlist"T; then
14584 mv -f "$nlist"T "$nlist"
14585 else
14586 rm -f "$nlist"T
14589 # Make sure that we snagged all the symbols we need.
14590 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14591 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14592 cat <<_LT_EOF > conftest.$ac_ext
14593 #ifdef __cplusplus
14594 extern "C" {
14595 #endif
14597 _LT_EOF
14598 # Now generate the symbol file.
14599 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14601 cat <<_LT_EOF >> conftest.$ac_ext
14603 /* The mapping between symbol names and symbols. */
14604 const struct {
14605 const char *name;
14606 void *address;
14608 lt__PROGRAM__LTX_preloaded_symbols[] =
14610 { "@PROGRAM@", (void *) 0 },
14611 _LT_EOF
14612 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14613 cat <<\_LT_EOF >> conftest.$ac_ext
14614 {0, (void *) 0}
14617 /* This works around a problem in FreeBSD linker */
14618 #ifdef FREEBSD_WORKAROUND
14619 static const void *lt_preloaded_setup() {
14620 return lt__PROGRAM__LTX_preloaded_symbols;
14622 #endif
14624 #ifdef __cplusplus
14626 #endif
14627 _LT_EOF
14628 # Now try linking the two files.
14629 mv conftest.$ac_objext conftstm.$ac_objext
14630 lt_save_LIBS="$LIBS"
14631 lt_save_CFLAGS="$CFLAGS"
14632 LIBS="conftstm.$ac_objext"
14633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14635 (eval $ac_link) 2>&5
14636 ac_status=$?
14637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14638 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14639 pipe_works=yes
14641 LIBS="$lt_save_LIBS"
14642 CFLAGS="$lt_save_CFLAGS"
14643 else
14644 echo "cannot find nm_test_func in $nlist" >&5
14646 else
14647 echo "cannot find nm_test_var in $nlist" >&5
14649 else
14650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14652 else
14653 echo "$progname: failed program was:" >&5
14654 cat conftest.$ac_ext >&5
14656 rm -rf conftest* conftst*
14658 # Do not use the global_symbol_pipe unless it works.
14659 if test "$pipe_works" = yes; then
14660 break
14661 else
14662 lt_cv_sys_global_symbol_pipe=
14664 done
14668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14669 lt_cv_sys_global_symbol_to_cdecl=
14671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14673 $as_echo "failed" >&6; }
14674 else
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14676 $as_echo "ok" >&6; }
14700 # Check whether --enable-libtool-lock was given.
14701 if test "${enable_libtool_lock+set}" = set; then :
14702 enableval=$enable_libtool_lock;
14705 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14707 # Some flags need to be propagated to the compiler or linker for good
14708 # libtool support.
14709 case $host in
14710 ia64-*-hpux*)
14711 # Find out which ABI we are using.
14712 echo 'int i;' > conftest.$ac_ext
14713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14714 (eval $ac_compile) 2>&5
14715 ac_status=$?
14716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14717 test $ac_status = 0; }; then
14718 case `/usr/bin/file conftest.$ac_objext` in
14719 *ELF-32*)
14720 HPUX_IA64_MODE="32"
14722 *ELF-64*)
14723 HPUX_IA64_MODE="64"
14725 esac
14727 rm -rf conftest*
14729 *-*-irix6*)
14730 # Find out which ABI we are using.
14731 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14733 (eval $ac_compile) 2>&5
14734 ac_status=$?
14735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14736 test $ac_status = 0; }; then
14737 if test "$lt_cv_prog_gnu_ld" = yes; then
14738 case `/usr/bin/file conftest.$ac_objext` in
14739 *32-bit*)
14740 LD="${LD-ld} -melf32bsmip"
14742 *N32*)
14743 LD="${LD-ld} -melf32bmipn32"
14745 *64-bit*)
14746 LD="${LD-ld} -melf64bmip"
14748 esac
14749 else
14750 case `/usr/bin/file conftest.$ac_objext` in
14751 *32-bit*)
14752 LD="${LD-ld} -32"
14754 *N32*)
14755 LD="${LD-ld} -n32"
14757 *64-bit*)
14758 LD="${LD-ld} -64"
14760 esac
14763 rm -rf conftest*
14766 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14767 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14768 # Find out which ABI we are using.
14769 echo 'int i;' > conftest.$ac_ext
14770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14771 (eval $ac_compile) 2>&5
14772 ac_status=$?
14773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14774 test $ac_status = 0; }; then
14775 case `/usr/bin/file conftest.o` in
14776 *32-bit*)
14777 case $host in
14778 x86_64-*kfreebsd*-gnu)
14779 LD="${LD-ld} -m elf_i386_fbsd"
14781 x86_64-*linux*)
14782 case `/usr/bin/file conftest.o` in
14783 *x86-64*)
14784 LD="${LD-ld} -m elf32_x86_64"
14787 LD="${LD-ld} -m elf_i386"
14789 esac
14791 powerpc64le-*linux*)
14792 LD="${LD-ld} -m elf32lppclinux"
14794 powerpc64-*linux*)
14795 LD="${LD-ld} -m elf32ppclinux"
14797 s390x-*linux*)
14798 LD="${LD-ld} -m elf_s390"
14800 sparc64-*linux*)
14801 LD="${LD-ld} -m elf32_sparc"
14803 esac
14805 *64-bit*)
14806 case $host in
14807 x86_64-*kfreebsd*-gnu)
14808 LD="${LD-ld} -m elf_x86_64_fbsd"
14810 x86_64-*linux*)
14811 LD="${LD-ld} -m elf_x86_64"
14813 powerpcle-*linux*)
14814 LD="${LD-ld} -m elf64lppc"
14816 powerpc-*linux*)
14817 LD="${LD-ld} -m elf64ppc"
14819 s390*-*linux*|s390*-*tpf*)
14820 LD="${LD-ld} -m elf64_s390"
14822 sparc*-*linux*)
14823 LD="${LD-ld} -m elf64_sparc"
14825 esac
14827 esac
14829 rm -rf conftest*
14832 *-*-sco3.2v5*)
14833 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14834 SAVE_CFLAGS="$CFLAGS"
14835 CFLAGS="$CFLAGS -belf"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14837 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14838 if ${lt_cv_cc_needs_belf+:} false; then :
14839 $as_echo_n "(cached) " >&6
14840 else
14841 ac_ext=c
14842 ac_cpp='$CPP $CPPFLAGS'
14843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14851 main ()
14855 return 0;
14857 _ACEOF
14858 if ac_fn_c_try_link "$LINENO"; then :
14859 lt_cv_cc_needs_belf=yes
14860 else
14861 lt_cv_cc_needs_belf=no
14863 rm -f core conftest.err conftest.$ac_objext \
14864 conftest$ac_exeext conftest.$ac_ext
14865 ac_ext=c
14866 ac_cpp='$CPP $CPPFLAGS'
14867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14873 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14874 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14875 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14876 CFLAGS="$SAVE_CFLAGS"
14879 sparc*-*solaris*)
14880 # Find out which ABI we are using.
14881 echo 'int i;' > conftest.$ac_ext
14882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14883 (eval $ac_compile) 2>&5
14884 ac_status=$?
14885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14886 test $ac_status = 0; }; then
14887 case `/usr/bin/file conftest.o` in
14888 *64-bit*)
14889 case $lt_cv_prog_gnu_ld in
14890 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14892 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14893 LD="${LD-ld} -64"
14896 esac
14898 esac
14900 rm -rf conftest*
14902 esac
14904 need_locks="$enable_libtool_lock"
14907 case $host_os in
14908 rhapsody* | darwin*)
14909 if test -n "$ac_tool_prefix"; then
14910 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14911 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14913 $as_echo_n "checking for $ac_word... " >&6; }
14914 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14915 $as_echo_n "(cached) " >&6
14916 else
14917 if test -n "$DSYMUTIL"; then
14918 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14919 else
14920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14921 for as_dir in $PATH
14923 IFS=$as_save_IFS
14924 test -z "$as_dir" && as_dir=.
14925 for ac_exec_ext in '' $ac_executable_extensions; do
14926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14927 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14929 break 2
14931 done
14932 done
14933 IFS=$as_save_IFS
14937 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14938 if test -n "$DSYMUTIL"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14940 $as_echo "$DSYMUTIL" >&6; }
14941 else
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943 $as_echo "no" >&6; }
14948 if test -z "$ac_cv_prog_DSYMUTIL"; then
14949 ac_ct_DSYMUTIL=$DSYMUTIL
14950 # Extract the first word of "dsymutil", so it can be a program name with args.
14951 set dummy dsymutil; ac_word=$2
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14953 $as_echo_n "checking for $ac_word... " >&6; }
14954 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 if test -n "$ac_ct_DSYMUTIL"; then
14958 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14959 else
14960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14961 for as_dir in $PATH
14963 IFS=$as_save_IFS
14964 test -z "$as_dir" && as_dir=.
14965 for ac_exec_ext in '' $ac_executable_extensions; do
14966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14967 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14969 break 2
14971 done
14972 done
14973 IFS=$as_save_IFS
14977 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14978 if test -n "$ac_ct_DSYMUTIL"; then
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14980 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14981 else
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14983 $as_echo "no" >&6; }
14986 if test "x$ac_ct_DSYMUTIL" = x; then
14987 DSYMUTIL=":"
14988 else
14989 case $cross_compiling:$ac_tool_warned in
14990 yes:)
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14993 ac_tool_warned=yes ;;
14994 esac
14995 DSYMUTIL=$ac_ct_DSYMUTIL
14997 else
14998 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15001 if test -n "$ac_tool_prefix"; then
15002 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15003 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15005 $as_echo_n "checking for $ac_word... " >&6; }
15006 if ${ac_cv_prog_NMEDIT+:} false; then :
15007 $as_echo_n "(cached) " >&6
15008 else
15009 if test -n "$NMEDIT"; then
15010 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15011 else
15012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15013 for as_dir in $PATH
15015 IFS=$as_save_IFS
15016 test -z "$as_dir" && as_dir=.
15017 for ac_exec_ext in '' $ac_executable_extensions; do
15018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15019 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15021 break 2
15023 done
15024 done
15025 IFS=$as_save_IFS
15029 NMEDIT=$ac_cv_prog_NMEDIT
15030 if test -n "$NMEDIT"; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15032 $as_echo "$NMEDIT" >&6; }
15033 else
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15035 $as_echo "no" >&6; }
15040 if test -z "$ac_cv_prog_NMEDIT"; then
15041 ac_ct_NMEDIT=$NMEDIT
15042 # Extract the first word of "nmedit", so it can be a program name with args.
15043 set dummy nmedit; ac_word=$2
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15045 $as_echo_n "checking for $ac_word... " >&6; }
15046 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15047 $as_echo_n "(cached) " >&6
15048 else
15049 if test -n "$ac_ct_NMEDIT"; then
15050 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15051 else
15052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15053 for as_dir in $PATH
15055 IFS=$as_save_IFS
15056 test -z "$as_dir" && as_dir=.
15057 for ac_exec_ext in '' $ac_executable_extensions; do
15058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15059 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15061 break 2
15063 done
15064 done
15065 IFS=$as_save_IFS
15069 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15070 if test -n "$ac_ct_NMEDIT"; then
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15072 $as_echo "$ac_ct_NMEDIT" >&6; }
15073 else
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15075 $as_echo "no" >&6; }
15078 if test "x$ac_ct_NMEDIT" = x; then
15079 NMEDIT=":"
15080 else
15081 case $cross_compiling:$ac_tool_warned in
15082 yes:)
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15085 ac_tool_warned=yes ;;
15086 esac
15087 NMEDIT=$ac_ct_NMEDIT
15089 else
15090 NMEDIT="$ac_cv_prog_NMEDIT"
15093 if test -n "$ac_tool_prefix"; then
15094 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15095 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15097 $as_echo_n "checking for $ac_word... " >&6; }
15098 if ${ac_cv_prog_LIPO+:} false; then :
15099 $as_echo_n "(cached) " >&6
15100 else
15101 if test -n "$LIPO"; then
15102 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15103 else
15104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15105 for as_dir in $PATH
15107 IFS=$as_save_IFS
15108 test -z "$as_dir" && as_dir=.
15109 for ac_exec_ext in '' $ac_executable_extensions; do
15110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15111 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15113 break 2
15115 done
15116 done
15117 IFS=$as_save_IFS
15121 LIPO=$ac_cv_prog_LIPO
15122 if test -n "$LIPO"; then
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15124 $as_echo "$LIPO" >&6; }
15125 else
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15127 $as_echo "no" >&6; }
15132 if test -z "$ac_cv_prog_LIPO"; then
15133 ac_ct_LIPO=$LIPO
15134 # Extract the first word of "lipo", so it can be a program name with args.
15135 set dummy lipo; ac_word=$2
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15137 $as_echo_n "checking for $ac_word... " >&6; }
15138 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15139 $as_echo_n "(cached) " >&6
15140 else
15141 if test -n "$ac_ct_LIPO"; then
15142 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15143 else
15144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15145 for as_dir in $PATH
15147 IFS=$as_save_IFS
15148 test -z "$as_dir" && as_dir=.
15149 for ac_exec_ext in '' $ac_executable_extensions; do
15150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15151 ac_cv_prog_ac_ct_LIPO="lipo"
15152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15153 break 2
15155 done
15156 done
15157 IFS=$as_save_IFS
15161 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15162 if test -n "$ac_ct_LIPO"; then
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15164 $as_echo "$ac_ct_LIPO" >&6; }
15165 else
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15167 $as_echo "no" >&6; }
15170 if test "x$ac_ct_LIPO" = x; then
15171 LIPO=":"
15172 else
15173 case $cross_compiling:$ac_tool_warned in
15174 yes:)
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15177 ac_tool_warned=yes ;;
15178 esac
15179 LIPO=$ac_ct_LIPO
15181 else
15182 LIPO="$ac_cv_prog_LIPO"
15185 if test -n "$ac_tool_prefix"; then
15186 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15187 set dummy ${ac_tool_prefix}otool; ac_word=$2
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15189 $as_echo_n "checking for $ac_word... " >&6; }
15190 if ${ac_cv_prog_OTOOL+:} false; then :
15191 $as_echo_n "(cached) " >&6
15192 else
15193 if test -n "$OTOOL"; then
15194 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15195 else
15196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15197 for as_dir in $PATH
15199 IFS=$as_save_IFS
15200 test -z "$as_dir" && as_dir=.
15201 for ac_exec_ext in '' $ac_executable_extensions; do
15202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15203 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15205 break 2
15207 done
15208 done
15209 IFS=$as_save_IFS
15213 OTOOL=$ac_cv_prog_OTOOL
15214 if test -n "$OTOOL"; then
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15216 $as_echo "$OTOOL" >&6; }
15217 else
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15219 $as_echo "no" >&6; }
15224 if test -z "$ac_cv_prog_OTOOL"; then
15225 ac_ct_OTOOL=$OTOOL
15226 # Extract the first word of "otool", so it can be a program name with args.
15227 set dummy otool; ac_word=$2
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15229 $as_echo_n "checking for $ac_word... " >&6; }
15230 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15231 $as_echo_n "(cached) " >&6
15232 else
15233 if test -n "$ac_ct_OTOOL"; then
15234 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15235 else
15236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15237 for as_dir in $PATH
15239 IFS=$as_save_IFS
15240 test -z "$as_dir" && as_dir=.
15241 for ac_exec_ext in '' $ac_executable_extensions; do
15242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15243 ac_cv_prog_ac_ct_OTOOL="otool"
15244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15245 break 2
15247 done
15248 done
15249 IFS=$as_save_IFS
15253 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15254 if test -n "$ac_ct_OTOOL"; then
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15256 $as_echo "$ac_ct_OTOOL" >&6; }
15257 else
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15259 $as_echo "no" >&6; }
15262 if test "x$ac_ct_OTOOL" = x; then
15263 OTOOL=":"
15264 else
15265 case $cross_compiling:$ac_tool_warned in
15266 yes:)
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15269 ac_tool_warned=yes ;;
15270 esac
15271 OTOOL=$ac_ct_OTOOL
15273 else
15274 OTOOL="$ac_cv_prog_OTOOL"
15277 if test -n "$ac_tool_prefix"; then
15278 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15279 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15281 $as_echo_n "checking for $ac_word... " >&6; }
15282 if ${ac_cv_prog_OTOOL64+:} false; then :
15283 $as_echo_n "(cached) " >&6
15284 else
15285 if test -n "$OTOOL64"; then
15286 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15287 else
15288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15289 for as_dir in $PATH
15291 IFS=$as_save_IFS
15292 test -z "$as_dir" && as_dir=.
15293 for ac_exec_ext in '' $ac_executable_extensions; do
15294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15295 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15297 break 2
15299 done
15300 done
15301 IFS=$as_save_IFS
15305 OTOOL64=$ac_cv_prog_OTOOL64
15306 if test -n "$OTOOL64"; then
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15308 $as_echo "$OTOOL64" >&6; }
15309 else
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15311 $as_echo "no" >&6; }
15316 if test -z "$ac_cv_prog_OTOOL64"; then
15317 ac_ct_OTOOL64=$OTOOL64
15318 # Extract the first word of "otool64", so it can be a program name with args.
15319 set dummy otool64; ac_word=$2
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15321 $as_echo_n "checking for $ac_word... " >&6; }
15322 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15323 $as_echo_n "(cached) " >&6
15324 else
15325 if test -n "$ac_ct_OTOOL64"; then
15326 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15327 else
15328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15329 for as_dir in $PATH
15331 IFS=$as_save_IFS
15332 test -z "$as_dir" && as_dir=.
15333 for ac_exec_ext in '' $ac_executable_extensions; do
15334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15335 ac_cv_prog_ac_ct_OTOOL64="otool64"
15336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15337 break 2
15339 done
15340 done
15341 IFS=$as_save_IFS
15345 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15346 if test -n "$ac_ct_OTOOL64"; then
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15348 $as_echo "$ac_ct_OTOOL64" >&6; }
15349 else
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15351 $as_echo "no" >&6; }
15354 if test "x$ac_ct_OTOOL64" = x; then
15355 OTOOL64=":"
15356 else
15357 case $cross_compiling:$ac_tool_warned in
15358 yes:)
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15361 ac_tool_warned=yes ;;
15362 esac
15363 OTOOL64=$ac_ct_OTOOL64
15365 else
15366 OTOOL64="$ac_cv_prog_OTOOL64"
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15396 $as_echo_n "checking for -single_module linker flag... " >&6; }
15397 if ${lt_cv_apple_cc_single_mod+:} false; then :
15398 $as_echo_n "(cached) " >&6
15399 else
15400 lt_cv_apple_cc_single_mod=no
15401 if test -z "${LT_MULTI_MODULE}"; then
15402 # By default we will add the -single_module flag. You can override
15403 # by either setting the environment variable LT_MULTI_MODULE
15404 # non-empty at configure time, or by adding -multi_module to the
15405 # link flags.
15406 rm -rf libconftest.dylib*
15407 echo "int foo(void){return 1;}" > conftest.c
15408 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15409 -dynamiclib -Wl,-single_module conftest.c" >&5
15410 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15411 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15412 _lt_result=$?
15413 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15414 lt_cv_apple_cc_single_mod=yes
15415 else
15416 cat conftest.err >&5
15418 rm -rf libconftest.dylib*
15419 rm -f conftest.*
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15423 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15425 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15426 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15427 $as_echo_n "(cached) " >&6
15428 else
15429 lt_cv_ld_exported_symbols_list=no
15430 save_LDFLAGS=$LDFLAGS
15431 echo "_main" > conftest.sym
15432 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15437 main ()
15441 return 0;
15443 _ACEOF
15444 if ac_fn_c_try_link "$LINENO"; then :
15445 lt_cv_ld_exported_symbols_list=yes
15446 else
15447 lt_cv_ld_exported_symbols_list=no
15449 rm -f core conftest.err conftest.$ac_objext \
15450 conftest$ac_exeext conftest.$ac_ext
15451 LDFLAGS="$save_LDFLAGS"
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15455 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15457 $as_echo_n "checking for -force_load linker flag... " >&6; }
15458 if ${lt_cv_ld_force_load+:} false; then :
15459 $as_echo_n "(cached) " >&6
15460 else
15461 lt_cv_ld_force_load=no
15462 cat > conftest.c << _LT_EOF
15463 int forced_loaded() { return 2;}
15464 _LT_EOF
15465 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15466 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15467 echo "$AR cru libconftest.a conftest.o" >&5
15468 $AR cru libconftest.a conftest.o 2>&5
15469 cat > conftest.c << _LT_EOF
15470 int main() { return 0;}
15471 _LT_EOF
15472 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15473 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15474 _lt_result=$?
15475 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15476 lt_cv_ld_force_load=yes
15477 else
15478 cat conftest.err >&5
15480 rm -f conftest.err libconftest.a conftest conftest.c
15481 rm -rf conftest.dSYM
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15485 $as_echo "$lt_cv_ld_force_load" >&6; }
15486 case $host_os in
15487 rhapsody* | darwin1.[012])
15488 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15489 darwin1.*)
15490 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15491 darwin*) # darwin 5.x on
15492 # if running on 10.5 or later, the deployment target defaults
15493 # to the OS version, if on x86, and 10.4, the deployment
15494 # target defaults to 10.4. Don't you love it?
15495 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15496 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15497 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15498 10.[012][,.]*)
15499 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15500 10.*)
15501 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15502 esac
15504 esac
15505 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15506 _lt_dar_single_mod='$single_module'
15508 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15509 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15510 else
15511 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15513 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15514 _lt_dsymutil='~$DSYMUTIL $lib || :'
15515 else
15516 _lt_dsymutil=
15519 esac
15522 for ac_header in dlfcn.h
15523 do :
15524 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15525 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15526 cat >>confdefs.h <<_ACEOF
15527 #define HAVE_DLFCN_H 1
15528 _ACEOF
15531 done
15537 # Set options
15541 enable_dlopen=no
15544 enable_win32_dll=no
15547 # Check whether --enable-shared was given.
15548 if test "${enable_shared+set}" = set; then :
15549 enableval=$enable_shared; p=${PACKAGE-default}
15550 case $enableval in
15551 yes) enable_shared=yes ;;
15552 no) enable_shared=no ;;
15554 enable_shared=no
15555 # Look at the argument we got. We use all the common list separators.
15556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15557 for pkg in $enableval; do
15558 IFS="$lt_save_ifs"
15559 if test "X$pkg" = "X$p"; then
15560 enable_shared=yes
15562 done
15563 IFS="$lt_save_ifs"
15565 esac
15566 else
15567 enable_shared=yes
15578 # Check whether --enable-static was given.
15579 if test "${enable_static+set}" = set; then :
15580 enableval=$enable_static; p=${PACKAGE-default}
15581 case $enableval in
15582 yes) enable_static=yes ;;
15583 no) enable_static=no ;;
15585 enable_static=no
15586 # Look at the argument we got. We use all the common list separators.
15587 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15588 for pkg in $enableval; do
15589 IFS="$lt_save_ifs"
15590 if test "X$pkg" = "X$p"; then
15591 enable_static=yes
15593 done
15594 IFS="$lt_save_ifs"
15596 esac
15597 else
15598 enable_static=yes
15610 # Check whether --with-pic was given.
15611 if test "${with_pic+set}" = set; then :
15612 withval=$with_pic; pic_mode="$withval"
15613 else
15614 pic_mode=default
15618 test -z "$pic_mode" && pic_mode=default
15626 # Check whether --enable-fast-install was given.
15627 if test "${enable_fast_install+set}" = set; then :
15628 enableval=$enable_fast_install; p=${PACKAGE-default}
15629 case $enableval in
15630 yes) enable_fast_install=yes ;;
15631 no) enable_fast_install=no ;;
15633 enable_fast_install=no
15634 # Look at the argument we got. We use all the common list separators.
15635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15636 for pkg in $enableval; do
15637 IFS="$lt_save_ifs"
15638 if test "X$pkg" = "X$p"; then
15639 enable_fast_install=yes
15641 done
15642 IFS="$lt_save_ifs"
15644 esac
15645 else
15646 enable_fast_install=yes
15659 # This can be used to rebuild libtool when needed
15660 LIBTOOL_DEPS="$ltmain"
15662 # Always use our own libtool.
15663 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15690 test -z "$LN_S" && LN_S="ln -s"
15705 if test -n "${ZSH_VERSION+set}" ; then
15706 setopt NO_GLOB_SUBST
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15710 $as_echo_n "checking for objdir... " >&6; }
15711 if ${lt_cv_objdir+:} false; then :
15712 $as_echo_n "(cached) " >&6
15713 else
15714 rm -f .libs 2>/dev/null
15715 mkdir .libs 2>/dev/null
15716 if test -d .libs; then
15717 lt_cv_objdir=.libs
15718 else
15719 # MS-DOS does not allow filenames that begin with a dot.
15720 lt_cv_objdir=_libs
15722 rmdir .libs 2>/dev/null
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15725 $as_echo "$lt_cv_objdir" >&6; }
15726 objdir=$lt_cv_objdir
15732 cat >>confdefs.h <<_ACEOF
15733 #define LT_OBJDIR "$lt_cv_objdir/"
15734 _ACEOF
15739 case $host_os in
15740 aix3*)
15741 # AIX sometimes has problems with the GCC collect2 program. For some
15742 # reason, if we set the COLLECT_NAMES environment variable, the problems
15743 # vanish in a puff of smoke.
15744 if test "X${COLLECT_NAMES+set}" != Xset; then
15745 COLLECT_NAMES=
15746 export COLLECT_NAMES
15749 esac
15751 # Global variables:
15752 ofile=libtool
15753 can_build_shared=yes
15755 # All known linkers require a `.a' archive for static linking (except MSVC,
15756 # which needs '.lib').
15757 libext=a
15759 with_gnu_ld="$lt_cv_prog_gnu_ld"
15761 old_CC="$CC"
15762 old_CFLAGS="$CFLAGS"
15764 # Set sane defaults for various variables
15765 test -z "$CC" && CC=cc
15766 test -z "$LTCC" && LTCC=$CC
15767 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15768 test -z "$LD" && LD=ld
15769 test -z "$ac_objext" && ac_objext=o
15771 for cc_temp in $compiler""; do
15772 case $cc_temp in
15773 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15774 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15775 \-*) ;;
15776 *) break;;
15777 esac
15778 done
15779 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15782 # Only perform the check for file, if the check method requires it
15783 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15784 case $deplibs_check_method in
15785 file_magic*)
15786 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15788 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15789 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15790 $as_echo_n "(cached) " >&6
15791 else
15792 case $MAGIC_CMD in
15793 [\\/*] | ?:[\\/]*)
15794 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15797 lt_save_MAGIC_CMD="$MAGIC_CMD"
15798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15800 for ac_dir in $ac_dummy; do
15801 IFS="$lt_save_ifs"
15802 test -z "$ac_dir" && ac_dir=.
15803 if test -f $ac_dir/${ac_tool_prefix}file; then
15804 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15805 if test -n "$file_magic_test_file"; then
15806 case $deplibs_check_method in
15807 "file_magic "*)
15808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15811 $EGREP "$file_magic_regex" > /dev/null; then
15813 else
15814 cat <<_LT_EOF 1>&2
15816 *** Warning: the command libtool uses to detect shared libraries,
15817 *** $file_magic_cmd, produces output that libtool cannot recognize.
15818 *** The result is that libtool may fail to recognize shared libraries
15819 *** as such. This will affect the creation of libtool libraries that
15820 *** depend on shared libraries, but programs linked with such libtool
15821 *** libraries will work regardless of this problem. Nevertheless, you
15822 *** may want to report the problem to your system manager and/or to
15823 *** bug-libtool@gnu.org
15825 _LT_EOF
15826 fi ;;
15827 esac
15829 break
15831 done
15832 IFS="$lt_save_ifs"
15833 MAGIC_CMD="$lt_save_MAGIC_CMD"
15835 esac
15838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15839 if test -n "$MAGIC_CMD"; then
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15841 $as_echo "$MAGIC_CMD" >&6; }
15842 else
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15844 $as_echo "no" >&6; }
15851 if test -z "$lt_cv_path_MAGIC_CMD"; then
15852 if test -n "$ac_tool_prefix"; then
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15854 $as_echo_n "checking for file... " >&6; }
15855 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15856 $as_echo_n "(cached) " >&6
15857 else
15858 case $MAGIC_CMD in
15859 [\\/*] | ?:[\\/]*)
15860 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15863 lt_save_MAGIC_CMD="$MAGIC_CMD"
15864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15865 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15866 for ac_dir in $ac_dummy; do
15867 IFS="$lt_save_ifs"
15868 test -z "$ac_dir" && ac_dir=.
15869 if test -f $ac_dir/file; then
15870 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15871 if test -n "$file_magic_test_file"; then
15872 case $deplibs_check_method in
15873 "file_magic "*)
15874 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15876 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15877 $EGREP "$file_magic_regex" > /dev/null; then
15879 else
15880 cat <<_LT_EOF 1>&2
15882 *** Warning: the command libtool uses to detect shared libraries,
15883 *** $file_magic_cmd, produces output that libtool cannot recognize.
15884 *** The result is that libtool may fail to recognize shared libraries
15885 *** as such. This will affect the creation of libtool libraries that
15886 *** depend on shared libraries, but programs linked with such libtool
15887 *** libraries will work regardless of this problem. Nevertheless, you
15888 *** may want to report the problem to your system manager and/or to
15889 *** bug-libtool@gnu.org
15891 _LT_EOF
15892 fi ;;
15893 esac
15895 break
15897 done
15898 IFS="$lt_save_ifs"
15899 MAGIC_CMD="$lt_save_MAGIC_CMD"
15901 esac
15904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15905 if test -n "$MAGIC_CMD"; then
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15907 $as_echo "$MAGIC_CMD" >&6; }
15908 else
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15910 $as_echo "no" >&6; }
15914 else
15915 MAGIC_CMD=:
15921 esac
15923 # Use C for the default configuration in the libtool script
15925 lt_save_CC="$CC"
15926 ac_ext=c
15927 ac_cpp='$CPP $CPPFLAGS'
15928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15933 # Source file extension for C test sources.
15934 ac_ext=c
15936 # Object file extension for compiled C test sources.
15937 objext=o
15938 objext=$objext
15940 # Code to be used in simple compile tests
15941 lt_simple_compile_test_code="int some_variable = 0;"
15943 # Code to be used in simple link tests
15944 lt_simple_link_test_code='int main(){return(0);}'
15952 # If no C compiler was specified, use CC.
15953 LTCC=${LTCC-"$CC"}
15955 # If no C compiler flags were specified, use CFLAGS.
15956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15958 # Allow CC to be a program name with arguments.
15959 compiler=$CC
15961 # Save the default compiler, since it gets overwritten when the other
15962 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15963 compiler_DEFAULT=$CC
15965 # save warnings/boilerplate of simple test code
15966 ac_outfile=conftest.$ac_objext
15967 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15968 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15969 _lt_compiler_boilerplate=`cat conftest.err`
15970 $RM conftest*
15972 ac_outfile=conftest.$ac_objext
15973 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15974 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15975 _lt_linker_boilerplate=`cat conftest.err`
15976 $RM -r conftest*
15979 ## CAVEAT EMPTOR:
15980 ## There is no encapsulation within the following macros, do not change
15981 ## the running order or otherwise move them around unless you know exactly
15982 ## what you are doing...
15983 if test -n "$compiler"; then
15985 lt_prog_compiler_no_builtin_flag=
15987 if test "$GCC" = yes; then
15988 case $cc_basename in
15989 nvcc*)
15990 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15992 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15993 esac
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15996 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15997 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15998 $as_echo_n "(cached) " >&6
15999 else
16000 lt_cv_prog_compiler_rtti_exceptions=no
16001 ac_outfile=conftest.$ac_objext
16002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16003 lt_compiler_flag="-fno-rtti -fno-exceptions"
16004 # Insert the option either (1) after the last *FLAGS variable, or
16005 # (2) before a word containing "conftest.", or (3) at the end.
16006 # Note that $ac_compile itself does not contain backslashes and begins
16007 # with a dollar sign (not a hyphen), so the echo should work correctly.
16008 # The option is referenced via a variable to avoid confusing sed.
16009 lt_compile=`echo "$ac_compile" | $SED \
16010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16012 -e 's:$: $lt_compiler_flag:'`
16013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16014 (eval "$lt_compile" 2>conftest.err)
16015 ac_status=$?
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 if (exit $ac_status) && test -s "$ac_outfile"; then
16019 # The compiler can only warn and ignore the option if not recognized
16020 # So say no if there are warnings other than the usual output.
16021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16024 lt_cv_prog_compiler_rtti_exceptions=yes
16027 $RM conftest*
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16031 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16033 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16034 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16035 else
16046 lt_prog_compiler_wl=
16047 lt_prog_compiler_pic=
16048 lt_prog_compiler_static=
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16051 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16053 if test "$GCC" = yes; then
16054 lt_prog_compiler_wl='-Wl,'
16055 lt_prog_compiler_static='-static'
16057 case $host_os in
16058 aix*)
16059 # All AIX code is PIC.
16060 if test "$host_cpu" = ia64; then
16061 # AIX 5 now supports IA64 processor
16062 lt_prog_compiler_static='-Bstatic'
16064 lt_prog_compiler_pic='-fPIC'
16067 amigaos*)
16068 case $host_cpu in
16069 powerpc)
16070 # see comment about AmigaOS4 .so support
16071 lt_prog_compiler_pic='-fPIC'
16073 m68k)
16074 # FIXME: we need at least 68020 code to build shared libraries, but
16075 # adding the `-m68020' flag to GCC prevents building anything better,
16076 # like `-m68040'.
16077 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16079 esac
16082 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16083 # PIC is the default for these OSes.
16086 mingw* | cygwin* | pw32* | os2* | cegcc*)
16087 # This hack is so that the source file can tell whether it is being
16088 # built for inclusion in a dll (and should export symbols for example).
16089 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16090 # (--disable-auto-import) libraries
16091 lt_prog_compiler_pic='-DDLL_EXPORT'
16094 darwin* | rhapsody*)
16095 # PIC is the default on this platform
16096 # Common symbols not allowed in MH_DYLIB files
16097 lt_prog_compiler_pic='-fno-common'
16100 haiku*)
16101 # PIC is the default for Haiku.
16102 # The "-static" flag exists, but is broken.
16103 lt_prog_compiler_static=
16106 hpux*)
16107 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16108 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16109 # sets the default TLS model and affects inlining.
16110 case $host_cpu in
16111 hppa*64*)
16112 # +Z the default
16115 lt_prog_compiler_pic='-fPIC'
16117 esac
16120 interix[3-9]*)
16121 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16122 # Instead, we relocate shared libraries at runtime.
16125 msdosdjgpp*)
16126 # Just because we use GCC doesn't mean we suddenly get shared libraries
16127 # on systems that don't support them.
16128 lt_prog_compiler_can_build_shared=no
16129 enable_shared=no
16132 *nto* | *qnx*)
16133 # QNX uses GNU C++, but need to define -shared option too, otherwise
16134 # it will coredump.
16135 lt_prog_compiler_pic='-fPIC -shared'
16138 sysv4*MP*)
16139 if test -d /usr/nec; then
16140 lt_prog_compiler_pic=-Kconform_pic
16145 lt_prog_compiler_pic='-fPIC'
16147 esac
16149 case $cc_basename in
16150 nvcc*) # Cuda Compiler Driver 2.2
16151 lt_prog_compiler_wl='-Xlinker '
16152 lt_prog_compiler_pic='-Xcompiler -fPIC'
16154 esac
16155 else
16156 # PORTME Check for flag to pass linker flags through the system compiler.
16157 case $host_os in
16158 aix*)
16159 lt_prog_compiler_wl='-Wl,'
16160 if test "$host_cpu" = ia64; then
16161 # AIX 5 now supports IA64 processor
16162 lt_prog_compiler_static='-Bstatic'
16163 else
16164 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16168 mingw* | cygwin* | pw32* | os2* | cegcc*)
16169 # This hack is so that the source file can tell whether it is being
16170 # built for inclusion in a dll (and should export symbols for example).
16171 lt_prog_compiler_pic='-DDLL_EXPORT'
16174 hpux9* | hpux10* | hpux11*)
16175 lt_prog_compiler_wl='-Wl,'
16176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16177 # not for PA HP-UX.
16178 case $host_cpu in
16179 hppa*64*|ia64*)
16180 # +Z the default
16183 lt_prog_compiler_pic='+Z'
16185 esac
16186 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16187 lt_prog_compiler_static='${wl}-a ${wl}archive'
16190 irix5* | irix6* | nonstopux*)
16191 lt_prog_compiler_wl='-Wl,'
16192 # PIC (with -KPIC) is the default.
16193 lt_prog_compiler_static='-non_shared'
16196 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16197 case $cc_basename in
16198 # old Intel for x86_64 which still supported -KPIC.
16199 ecc*)
16200 lt_prog_compiler_wl='-Wl,'
16201 lt_prog_compiler_pic='-KPIC'
16202 lt_prog_compiler_static='-static'
16204 # icc used to be incompatible with GCC.
16205 # ICC 10 doesn't accept -KPIC any more.
16206 icc* | ifort*)
16207 lt_prog_compiler_wl='-Wl,'
16208 lt_prog_compiler_pic='-fPIC'
16209 lt_prog_compiler_static='-static'
16211 # Lahey Fortran 8.1.
16212 lf95*)
16213 lt_prog_compiler_wl='-Wl,'
16214 lt_prog_compiler_pic='--shared'
16215 lt_prog_compiler_static='--static'
16217 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16218 # Portland Group compilers (*not* the Pentium gcc compiler,
16219 # which looks to be a dead project)
16220 lt_prog_compiler_wl='-Wl,'
16221 lt_prog_compiler_pic='-fpic'
16222 lt_prog_compiler_static='-Bstatic'
16224 ccc*)
16225 lt_prog_compiler_wl='-Wl,'
16226 # All Alpha code is PIC.
16227 lt_prog_compiler_static='-non_shared'
16229 xl* | bgxl* | bgf* | mpixl*)
16230 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16231 lt_prog_compiler_wl='-Wl,'
16232 lt_prog_compiler_pic='-qpic'
16233 lt_prog_compiler_static='-qstaticlink'
16236 case `$CC -V 2>&1 | sed 5q` in
16237 *Sun\ F* | *Sun*Fortran*)
16238 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16239 lt_prog_compiler_pic='-KPIC'
16240 lt_prog_compiler_static='-Bstatic'
16241 lt_prog_compiler_wl=''
16243 *Sun\ C*)
16244 # Sun C 5.9
16245 lt_prog_compiler_pic='-KPIC'
16246 lt_prog_compiler_static='-Bstatic'
16247 lt_prog_compiler_wl='-Wl,'
16249 esac
16251 esac
16254 newsos6)
16255 lt_prog_compiler_pic='-KPIC'
16256 lt_prog_compiler_static='-Bstatic'
16259 *nto* | *qnx*)
16260 # QNX uses GNU C++, but need to define -shared option too, otherwise
16261 # it will coredump.
16262 lt_prog_compiler_pic='-fPIC -shared'
16265 osf3* | osf4* | osf5*)
16266 lt_prog_compiler_wl='-Wl,'
16267 # All OSF/1 code is PIC.
16268 lt_prog_compiler_static='-non_shared'
16271 rdos*)
16272 lt_prog_compiler_static='-non_shared'
16275 solaris*)
16276 lt_prog_compiler_pic='-KPIC'
16277 lt_prog_compiler_static='-Bstatic'
16278 case $cc_basename in
16279 f77* | f90* | f95*)
16280 lt_prog_compiler_wl='-Qoption ld ';;
16282 lt_prog_compiler_wl='-Wl,';;
16283 esac
16286 sunos4*)
16287 lt_prog_compiler_wl='-Qoption ld '
16288 lt_prog_compiler_pic='-PIC'
16289 lt_prog_compiler_static='-Bstatic'
16292 sysv4 | sysv4.2uw2* | sysv4.3*)
16293 lt_prog_compiler_wl='-Wl,'
16294 lt_prog_compiler_pic='-KPIC'
16295 lt_prog_compiler_static='-Bstatic'
16298 sysv4*MP*)
16299 if test -d /usr/nec ;then
16300 lt_prog_compiler_pic='-Kconform_pic'
16301 lt_prog_compiler_static='-Bstatic'
16305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16306 lt_prog_compiler_wl='-Wl,'
16307 lt_prog_compiler_pic='-KPIC'
16308 lt_prog_compiler_static='-Bstatic'
16311 unicos*)
16312 lt_prog_compiler_wl='-Wl,'
16313 lt_prog_compiler_can_build_shared=no
16316 uts4*)
16317 lt_prog_compiler_pic='-pic'
16318 lt_prog_compiler_static='-Bstatic'
16322 lt_prog_compiler_can_build_shared=no
16324 esac
16327 case $host_os in
16328 # For platforms which do not support PIC, -DPIC is meaningless:
16329 *djgpp*)
16330 lt_prog_compiler_pic=
16333 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16335 esac
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16337 $as_echo "$lt_prog_compiler_pic" >&6; }
16345 # Check to make sure the PIC flag actually works.
16347 if test -n "$lt_prog_compiler_pic"; then
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16349 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16350 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16351 $as_echo_n "(cached) " >&6
16352 else
16353 lt_cv_prog_compiler_pic_works=no
16354 ac_outfile=conftest.$ac_objext
16355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16356 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16357 # Insert the option either (1) after the last *FLAGS variable, or
16358 # (2) before a word containing "conftest.", or (3) at the end.
16359 # Note that $ac_compile itself does not contain backslashes and begins
16360 # with a dollar sign (not a hyphen), so the echo should work correctly.
16361 # The option is referenced via a variable to avoid confusing sed.
16362 lt_compile=`echo "$ac_compile" | $SED \
16363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16365 -e 's:$: $lt_compiler_flag:'`
16366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16367 (eval "$lt_compile" 2>conftest.err)
16368 ac_status=$?
16369 cat conftest.err >&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 if (exit $ac_status) && test -s "$ac_outfile"; then
16372 # The compiler can only warn and ignore the option if not recognized
16373 # So say no if there are warnings other than the usual output.
16374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16376 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16377 lt_cv_prog_compiler_pic_works=yes
16380 $RM conftest*
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16384 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16386 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16387 case $lt_prog_compiler_pic in
16388 "" | " "*) ;;
16389 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16390 esac
16391 else
16392 lt_prog_compiler_pic=
16393 lt_prog_compiler_can_build_shared=no
16404 # Check to make sure the static flag actually works.
16406 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16408 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16409 if ${lt_cv_prog_compiler_static_works+:} false; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412 lt_cv_prog_compiler_static_works=no
16413 save_LDFLAGS="$LDFLAGS"
16414 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16415 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16416 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16417 # The linker can only warn and ignore the option if not recognized
16418 # So say no if there are warnings
16419 if test -s conftest.err; then
16420 # Append any errors to the config.log.
16421 cat conftest.err 1>&5
16422 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16424 if diff conftest.exp conftest.er2 >/dev/null; then
16425 lt_cv_prog_compiler_static_works=yes
16427 else
16428 lt_cv_prog_compiler_static_works=yes
16431 $RM -r conftest*
16432 LDFLAGS="$save_LDFLAGS"
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16436 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16438 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16440 else
16441 lt_prog_compiler_static=
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16451 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16452 if ${lt_cv_prog_compiler_c_o+:} false; then :
16453 $as_echo_n "(cached) " >&6
16454 else
16455 lt_cv_prog_compiler_c_o=no
16456 $RM -r conftest 2>/dev/null
16457 mkdir conftest
16458 cd conftest
16459 mkdir out
16460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16462 lt_compiler_flag="-o out/conftest2.$ac_objext"
16463 # Insert the option either (1) after the last *FLAGS variable, or
16464 # (2) before a word containing "conftest.", or (3) at the end.
16465 # Note that $ac_compile itself does not contain backslashes and begins
16466 # with a dollar sign (not a hyphen), so the echo should work correctly.
16467 lt_compile=`echo "$ac_compile" | $SED \
16468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16470 -e 's:$: $lt_compiler_flag:'`
16471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16472 (eval "$lt_compile" 2>out/conftest.err)
16473 ac_status=$?
16474 cat out/conftest.err >&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16477 then
16478 # The compiler can only warn and ignore the option if not recognized
16479 # So say no if there are warnings
16480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16483 lt_cv_prog_compiler_c_o=yes
16486 chmod u+w . 2>&5
16487 $RM conftest*
16488 # SGI C++ compiler will create directory out/ii_files/ for
16489 # template instantiation
16490 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16491 $RM out/* && rmdir out
16492 cd ..
16493 $RM -r conftest
16494 $RM conftest*
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16498 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16506 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16507 if ${lt_cv_prog_compiler_c_o+:} false; then :
16508 $as_echo_n "(cached) " >&6
16509 else
16510 lt_cv_prog_compiler_c_o=no
16511 $RM -r conftest 2>/dev/null
16512 mkdir conftest
16513 cd conftest
16514 mkdir out
16515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16517 lt_compiler_flag="-o out/conftest2.$ac_objext"
16518 # Insert the option either (1) after the last *FLAGS variable, or
16519 # (2) before a word containing "conftest.", or (3) at the end.
16520 # Note that $ac_compile itself does not contain backslashes and begins
16521 # with a dollar sign (not a hyphen), so the echo should work correctly.
16522 lt_compile=`echo "$ac_compile" | $SED \
16523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16525 -e 's:$: $lt_compiler_flag:'`
16526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16527 (eval "$lt_compile" 2>out/conftest.err)
16528 ac_status=$?
16529 cat out/conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16532 then
16533 # The compiler can only warn and ignore the option if not recognized
16534 # So say no if there are warnings
16535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16538 lt_cv_prog_compiler_c_o=yes
16541 chmod u+w . 2>&5
16542 $RM conftest*
16543 # SGI C++ compiler will create directory out/ii_files/ for
16544 # template instantiation
16545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16546 $RM out/* && rmdir out
16547 cd ..
16548 $RM -r conftest
16549 $RM conftest*
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16553 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16558 hard_links="nottested"
16559 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16560 # do not overwrite the value of need_locks provided by the user
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16562 $as_echo_n "checking if we can lock with hard links... " >&6; }
16563 hard_links=yes
16564 $RM conftest*
16565 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16566 touch conftest.a
16567 ln conftest.a conftest.b 2>&5 || hard_links=no
16568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16570 $as_echo "$hard_links" >&6; }
16571 if test "$hard_links" = no; then
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16573 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16574 need_locks=warn
16576 else
16577 need_locks=no
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16586 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16588 runpath_var=
16589 allow_undefined_flag=
16590 always_export_symbols=no
16591 archive_cmds=
16592 archive_expsym_cmds=
16593 compiler_needs_object=no
16594 enable_shared_with_static_runtimes=no
16595 export_dynamic_flag_spec=
16596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16597 hardcode_automatic=no
16598 hardcode_direct=no
16599 hardcode_direct_absolute=no
16600 hardcode_libdir_flag_spec=
16601 hardcode_libdir_flag_spec_ld=
16602 hardcode_libdir_separator=
16603 hardcode_minus_L=no
16604 hardcode_shlibpath_var=unsupported
16605 inherit_rpath=no
16606 link_all_deplibs=unknown
16607 module_cmds=
16608 module_expsym_cmds=
16609 old_archive_from_new_cmds=
16610 old_archive_from_expsyms_cmds=
16611 thread_safe_flag_spec=
16612 whole_archive_flag_spec=
16613 # include_expsyms should be a list of space-separated symbols to be *always*
16614 # included in the symbol list
16615 include_expsyms=
16616 # exclude_expsyms can be an extended regexp of symbols to exclude
16617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16619 # as well as any symbol that contains `d'.
16620 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16622 # platforms (ab)use it in PIC code, but their linkers get confused if
16623 # the symbol is explicitly referenced. Since portable code cannot
16624 # rely on this symbol name, it's probably fine to never include it in
16625 # preloaded symbol tables.
16626 # Exclude shared library initialization/finalization symbols.
16627 extract_expsyms_cmds=
16629 case $host_os in
16630 cygwin* | mingw* | pw32* | cegcc*)
16631 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16632 # When not using gcc, we currently assume that we are using
16633 # Microsoft Visual C++.
16634 if test "$GCC" != yes; then
16635 with_gnu_ld=no
16638 interix*)
16639 # we just hope/assume this is gcc and not c89 (= MSVC++)
16640 with_gnu_ld=yes
16642 openbsd*)
16643 with_gnu_ld=no
16645 esac
16647 ld_shlibs=yes
16649 # On some targets, GNU ld is compatible enough with the native linker
16650 # that we're better off using the native interface for both.
16651 lt_use_gnu_ld_interface=no
16652 if test "$with_gnu_ld" = yes; then
16653 case $host_os in
16654 aix*)
16655 # The AIX port of GNU ld has always aspired to compatibility
16656 # with the native linker. However, as the warning in the GNU ld
16657 # block says, versions before 2.19.5* couldn't really create working
16658 # shared libraries, regardless of the interface used.
16659 case `$LD -v 2>&1` in
16660 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16661 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16662 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16664 lt_use_gnu_ld_interface=yes
16666 esac
16669 lt_use_gnu_ld_interface=yes
16671 esac
16674 if test "$lt_use_gnu_ld_interface" = yes; then
16675 # If archive_cmds runs LD, not CC, wlarc should be empty
16676 wlarc='${wl}'
16678 # Set some defaults for GNU ld with shared library support. These
16679 # are reset later if shared libraries are not supported. Putting them
16680 # here allows them to be overridden if necessary.
16681 runpath_var=LD_RUN_PATH
16682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16683 export_dynamic_flag_spec='${wl}--export-dynamic'
16684 # ancient GNU ld didn't support --whole-archive et. al.
16685 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16686 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16687 else
16688 whole_archive_flag_spec=
16690 supports_anon_versioning=no
16691 case `$LD -v 2>&1` in
16692 *GNU\ gold*) supports_anon_versioning=yes ;;
16693 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16694 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16695 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16696 *\ 2.11.*) ;; # other 2.11 versions
16697 *) supports_anon_versioning=yes ;;
16698 esac
16700 # See if GNU ld supports shared libraries.
16701 case $host_os in
16702 aix[3-9]*)
16703 # On AIX/PPC, the GNU linker is very broken
16704 if test "$host_cpu" != ia64; then
16705 ld_shlibs=no
16706 cat <<_LT_EOF 1>&2
16708 *** Warning: the GNU linker, at least up to release 2.19, is reported
16709 *** to be unable to reliably create shared libraries on AIX.
16710 *** Therefore, libtool is disabling shared libraries support. If you
16711 *** really care for shared libraries, you may want to install binutils
16712 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16713 *** You will then need to restart the configuration process.
16715 _LT_EOF
16719 amigaos*)
16720 case $host_cpu in
16721 powerpc)
16722 # see comment about AmigaOS4 .so support
16723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16724 archive_expsym_cmds=''
16726 m68k)
16727 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)'
16728 hardcode_libdir_flag_spec='-L$libdir'
16729 hardcode_minus_L=yes
16731 esac
16734 beos*)
16735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16736 allow_undefined_flag=unsupported
16737 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16738 # support --undefined. This deserves some investigation. FIXME
16739 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16740 else
16741 ld_shlibs=no
16745 cygwin* | mingw* | pw32* | cegcc*)
16746 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16747 # as there is no search path for DLLs.
16748 hardcode_libdir_flag_spec='-L$libdir'
16749 export_dynamic_flag_spec='${wl}--export-all-symbols'
16750 allow_undefined_flag=unsupported
16751 always_export_symbols=no
16752 enable_shared_with_static_runtimes=yes
16753 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16755 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16757 # If the export-symbols file already is a .def file (1st line
16758 # is EXPORTS), use it as is; otherwise, prepend...
16759 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16760 cp $export_symbols $output_objdir/$soname.def;
16761 else
16762 echo EXPORTS > $output_objdir/$soname.def;
16763 cat $export_symbols >> $output_objdir/$soname.def;
16765 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16766 else
16767 ld_shlibs=no
16771 haiku*)
16772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16773 link_all_deplibs=yes
16776 interix[3-9]*)
16777 hardcode_direct=no
16778 hardcode_shlibpath_var=no
16779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16780 export_dynamic_flag_spec='${wl}-E'
16781 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16782 # Instead, shared libraries are loaded at an image base (0x10000000 by
16783 # default) and relocated if they conflict, which is a slow very memory
16784 # consuming and fragmenting process. To avoid this, we pick a random,
16785 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16786 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16787 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16788 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'
16791 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16792 tmp_diet=no
16793 if test "$host_os" = linux-dietlibc; then
16794 case $cc_basename in
16795 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16796 esac
16798 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16799 && test "$tmp_diet" = no
16800 then
16801 tmp_addflag=' $pic_flag'
16802 tmp_sharedflag='-shared'
16803 case $cc_basename,$host_cpu in
16804 pgcc*) # Portland Group C compiler
16805 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'
16806 tmp_addflag=' $pic_flag'
16808 pgf77* | pgf90* | pgf95* | pgfortran*)
16809 # Portland Group f77 and f90 compilers
16810 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'
16811 tmp_addflag=' $pic_flag -Mnomain' ;;
16812 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16813 tmp_addflag=' -i_dynamic' ;;
16814 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16815 tmp_addflag=' -i_dynamic -nofor_main' ;;
16816 ifc* | ifort*) # Intel Fortran compiler
16817 tmp_addflag=' -nofor_main' ;;
16818 lf95*) # Lahey Fortran 8.1
16819 whole_archive_flag_spec=
16820 tmp_sharedflag='--shared' ;;
16821 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16822 tmp_sharedflag='-qmkshrobj'
16823 tmp_addflag= ;;
16824 nvcc*) # Cuda Compiler Driver 2.2
16825 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'
16826 compiler_needs_object=yes
16828 esac
16829 case `$CC -V 2>&1 | sed 5q` in
16830 *Sun\ C*) # Sun C 5.9
16831 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'
16832 compiler_needs_object=yes
16833 tmp_sharedflag='-G' ;;
16834 *Sun\ F*) # Sun Fortran 8.3
16835 tmp_sharedflag='-G' ;;
16836 esac
16837 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16839 if test "x$supports_anon_versioning" = xyes; then
16840 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16842 echo "local: *; };" >> $output_objdir/$libname.ver~
16843 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16846 case $cc_basename in
16847 xlf* | bgf* | bgxlf* | mpixlf*)
16848 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16849 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16850 hardcode_libdir_flag_spec=
16851 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16852 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16853 if test "x$supports_anon_versioning" = xyes; then
16854 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16856 echo "local: *; };" >> $output_objdir/$libname.ver~
16857 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16860 esac
16861 else
16862 ld_shlibs=no
16866 netbsd*)
16867 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16868 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16869 wlarc=
16870 else
16871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16872 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16876 solaris*)
16877 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16878 ld_shlibs=no
16879 cat <<_LT_EOF 1>&2
16881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16882 *** create shared libraries on Solaris systems. Therefore, libtool
16883 *** is disabling shared libraries support. We urge you to upgrade GNU
16884 *** binutils to release 2.9.1 or newer. Another option is to modify
16885 *** your PATH or compiler configuration so that the native linker is
16886 *** used, and then restart.
16888 _LT_EOF
16889 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16891 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16892 else
16893 ld_shlibs=no
16897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16898 case `$LD -v 2>&1` in
16899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16900 ld_shlibs=no
16901 cat <<_LT_EOF 1>&2
16903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16904 *** reliably create shared libraries on SCO systems. Therefore, libtool
16905 *** is disabling shared libraries support. We urge you to upgrade GNU
16906 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16907 *** your PATH or compiler configuration so that the native linker is
16908 *** used, and then restart.
16910 _LT_EOF
16913 # For security reasons, it is highly recommended that you always
16914 # use absolute paths for naming shared libraries, and exclude the
16915 # DT_RUNPATH tag from executables and libraries. But doing so
16916 # requires that you compile everything twice, which is a pain.
16917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16921 else
16922 ld_shlibs=no
16925 esac
16928 sunos4*)
16929 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16930 wlarc=
16931 hardcode_direct=yes
16932 hardcode_shlibpath_var=no
16936 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16938 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16939 else
16940 ld_shlibs=no
16943 esac
16945 if test "$ld_shlibs" = no; then
16946 runpath_var=
16947 hardcode_libdir_flag_spec=
16948 export_dynamic_flag_spec=
16949 whole_archive_flag_spec=
16951 else
16952 # PORTME fill in a description of your system's linker (not GNU ld)
16953 case $host_os in
16954 aix3*)
16955 allow_undefined_flag=unsupported
16956 always_export_symbols=yes
16957 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'
16958 # Note: this linker hardcodes the directories in LIBPATH if there
16959 # are no directories specified by -L.
16960 hardcode_minus_L=yes
16961 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16962 # Neither direct hardcoding nor static linking is supported with a
16963 # broken collect2.
16964 hardcode_direct=unsupported
16968 aix[4-9]*)
16969 if test "$host_cpu" = ia64; then
16970 # On IA64, the linker does run time linking by default, so we don't
16971 # have to do anything special.
16972 aix_use_runtimelinking=no
16973 exp_sym_flag='-Bexport'
16974 no_entry_flag=""
16975 else
16976 # If we're using GNU nm, then we don't want the "-C" option.
16977 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16978 # Also, AIX nm treats weak defined symbols like other global
16979 # defined symbols, whereas GNU nm marks them as "W".
16980 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16981 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'
16982 else
16983 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'
16985 aix_use_runtimelinking=no
16987 # Test if we are trying to use run time linking or normal
16988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16989 # need to do runtime linking.
16990 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16991 for ld_flag in $LDFLAGS; do
16992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16993 aix_use_runtimelinking=yes
16994 break
16996 done
16998 esac
17000 exp_sym_flag='-bexport'
17001 no_entry_flag='-bnoentry'
17004 # When large executables or shared objects are built, AIX ld can
17005 # have problems creating the table of contents. If linking a library
17006 # or program results in "error TOC overflow" add -mminimal-toc to
17007 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17008 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17010 archive_cmds=''
17011 hardcode_direct=yes
17012 hardcode_direct_absolute=yes
17013 hardcode_libdir_separator=':'
17014 link_all_deplibs=yes
17015 file_list_spec='${wl}-f,'
17017 if test "$GCC" = yes; then
17018 case $host_os in aix4.[012]|aix4.[012].*)
17019 # We only want to do this on AIX 4.2 and lower, the check
17020 # below for broken collect2 doesn't work under 4.3+
17021 collect2name=`${CC} -print-prog-name=collect2`
17022 if test -f "$collect2name" &&
17023 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17024 then
17025 # We have reworked collect2
17027 else
17028 # We have old collect2
17029 hardcode_direct=unsupported
17030 # It fails to find uninstalled libraries when the uninstalled
17031 # path is not listed in the libpath. Setting hardcode_minus_L
17032 # to unsupported forces relinking
17033 hardcode_minus_L=yes
17034 hardcode_libdir_flag_spec='-L$libdir'
17035 hardcode_libdir_separator=
17038 esac
17039 shared_flag='-shared'
17040 if test "$aix_use_runtimelinking" = yes; then
17041 shared_flag="$shared_flag "'${wl}-G'
17043 else
17044 # not using gcc
17045 if test "$host_cpu" = ia64; then
17046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17047 # chokes on -Wl,-G. The following line is correct:
17048 shared_flag='-G'
17049 else
17050 if test "$aix_use_runtimelinking" = yes; then
17051 shared_flag='${wl}-G'
17052 else
17053 shared_flag='${wl}-bM:SRE'
17058 export_dynamic_flag_spec='${wl}-bexpall'
17059 # It seems that -bexpall does not export symbols beginning with
17060 # underscore (_), so it is better to generate a list of symbols to export.
17061 always_export_symbols=yes
17062 if test "$aix_use_runtimelinking" = yes; then
17063 # Warning - without using the other runtime loading flags (-brtl),
17064 # -berok will link without error, but may produce a broken library.
17065 allow_undefined_flag='-berok'
17066 # Determine the default libpath from the value encoded in an
17067 # empty executable.
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17072 main ()
17076 return 0;
17078 _ACEOF
17079 if ac_fn_c_try_link "$LINENO"; then :
17081 lt_aix_libpath_sed='
17082 /Import File Strings/,/^$/ {
17083 /^0/ {
17084 s/^0 *\(.*\)$/\1/
17088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17089 # Check for a 64-bit object if we didn't find anything.
17090 if test -z "$aix_libpath"; then
17091 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17094 rm -f core conftest.err conftest.$ac_objext \
17095 conftest$ac_exeext conftest.$ac_ext
17096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17098 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17099 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"
17100 else
17101 if test "$host_cpu" = ia64; then
17102 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17103 allow_undefined_flag="-z nodefs"
17104 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"
17105 else
17106 # Determine the default libpath from the value encoded in an
17107 # empty executable.
17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109 /* end confdefs.h. */
17112 main ()
17116 return 0;
17118 _ACEOF
17119 if ac_fn_c_try_link "$LINENO"; then :
17121 lt_aix_libpath_sed='
17122 /Import File Strings/,/^$/ {
17123 /^0/ {
17124 s/^0 *\(.*\)$/\1/
17128 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17129 # Check for a 64-bit object if we didn't find anything.
17130 if test -z "$aix_libpath"; then
17131 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17134 rm -f core conftest.err conftest.$ac_objext \
17135 conftest$ac_exeext conftest.$ac_ext
17136 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17138 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17139 # Warning - without using the other run time loading flags,
17140 # -berok will link without error, but may produce a broken library.
17141 no_undefined_flag=' ${wl}-bernotok'
17142 allow_undefined_flag=' ${wl}-berok'
17143 if test "$with_gnu_ld" = yes; then
17144 # We only use this code for GNU lds that support --whole-archive.
17145 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17146 else
17147 # Exported symbols can be pulled into shared objects from archives
17148 whole_archive_flag_spec='$convenience'
17150 archive_cmds_need_lc=yes
17151 # This is similar to how AIX traditionally builds its shared libraries.
17152 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'
17157 amigaos*)
17158 case $host_cpu in
17159 powerpc)
17160 # see comment about AmigaOS4 .so support
17161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17162 archive_expsym_cmds=''
17164 m68k)
17165 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)'
17166 hardcode_libdir_flag_spec='-L$libdir'
17167 hardcode_minus_L=yes
17169 esac
17172 bsdi[45]*)
17173 export_dynamic_flag_spec=-rdynamic
17176 cygwin* | mingw* | pw32* | cegcc*)
17177 # When not using gcc, we currently assume that we are using
17178 # Microsoft Visual C++.
17179 # hardcode_libdir_flag_spec is actually meaningless, as there is
17180 # no search path for DLLs.
17181 hardcode_libdir_flag_spec=' '
17182 allow_undefined_flag=unsupported
17183 # Tell ltmain to make .lib files, not .a files.
17184 libext=lib
17185 # Tell ltmain to make .dll files, not .so files.
17186 shrext_cmds=".dll"
17187 # FIXME: Setting linknames here is a bad hack.
17188 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17189 # The linker will automatically build a .lib file if we build a DLL.
17190 old_archive_from_new_cmds='true'
17191 # FIXME: Should let the user specify the lib program.
17192 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17193 fix_srcfile_path='`cygpath -w "$srcfile"`'
17194 enable_shared_with_static_runtimes=yes
17197 darwin* | rhapsody*)
17200 archive_cmds_need_lc=no
17201 hardcode_direct=no
17202 hardcode_automatic=yes
17203 hardcode_shlibpath_var=unsupported
17204 if test "$lt_cv_ld_force_load" = "yes"; then
17205 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\"`'
17206 else
17207 whole_archive_flag_spec=''
17209 link_all_deplibs=yes
17210 allow_undefined_flag="$_lt_dar_allow_undefined"
17211 case $cc_basename in
17212 ifort*) _lt_dar_can_shared=yes ;;
17213 *) _lt_dar_can_shared=$GCC ;;
17214 esac
17215 if test "$_lt_dar_can_shared" = "yes"; then
17216 output_verbose_link_cmd=func_echo_all
17217 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17218 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17219 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}"
17220 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}"
17222 else
17223 ld_shlibs=no
17228 dgux*)
17229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17230 hardcode_libdir_flag_spec='-L$libdir'
17231 hardcode_shlibpath_var=no
17234 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17235 # support. Future versions do this automatically, but an explicit c++rt0.o
17236 # does not break anything, and helps significantly (at the cost of a little
17237 # extra space).
17238 freebsd2.2*)
17239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17240 hardcode_libdir_flag_spec='-R$libdir'
17241 hardcode_direct=yes
17242 hardcode_shlibpath_var=no
17245 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17246 freebsd2.*)
17247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17248 hardcode_direct=yes
17249 hardcode_minus_L=yes
17250 hardcode_shlibpath_var=no
17253 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17254 freebsd* | dragonfly*)
17255 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17256 hardcode_libdir_flag_spec='-R$libdir'
17257 hardcode_direct=yes
17258 hardcode_shlibpath_var=no
17261 hpux9*)
17262 if test "$GCC" = yes; then
17263 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'
17264 else
17265 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'
17267 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17268 hardcode_libdir_separator=:
17269 hardcode_direct=yes
17271 # hardcode_minus_L: Not really in the search PATH,
17272 # but as the default location of the library.
17273 hardcode_minus_L=yes
17274 export_dynamic_flag_spec='${wl}-E'
17277 hpux10*)
17278 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17279 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17280 else
17281 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17283 if test "$with_gnu_ld" = no; then
17284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17285 hardcode_libdir_flag_spec_ld='+b $libdir'
17286 hardcode_libdir_separator=:
17287 hardcode_direct=yes
17288 hardcode_direct_absolute=yes
17289 export_dynamic_flag_spec='${wl}-E'
17290 # hardcode_minus_L: Not really in the search PATH,
17291 # but as the default location of the library.
17292 hardcode_minus_L=yes
17296 hpux11*)
17297 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17298 case $host_cpu in
17299 hppa*64*)
17300 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17302 ia64*)
17303 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17306 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17308 esac
17309 else
17310 case $host_cpu in
17311 hppa*64*)
17312 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17314 ia64*)
17315 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17319 # Older versions of the 11.00 compiler do not understand -b yet
17320 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17322 $as_echo_n "checking if $CC understands -b... " >&6; }
17323 if ${lt_cv_prog_compiler__b+:} false; then :
17324 $as_echo_n "(cached) " >&6
17325 else
17326 lt_cv_prog_compiler__b=no
17327 save_LDFLAGS="$LDFLAGS"
17328 LDFLAGS="$LDFLAGS -b"
17329 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17330 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17331 # The linker can only warn and ignore the option if not recognized
17332 # So say no if there are warnings
17333 if test -s conftest.err; then
17334 # Append any errors to the config.log.
17335 cat conftest.err 1>&5
17336 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17338 if diff conftest.exp conftest.er2 >/dev/null; then
17339 lt_cv_prog_compiler__b=yes
17341 else
17342 lt_cv_prog_compiler__b=yes
17345 $RM -r conftest*
17346 LDFLAGS="$save_LDFLAGS"
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17350 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17352 if test x"$lt_cv_prog_compiler__b" = xyes; then
17353 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17354 else
17355 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17359 esac
17361 if test "$with_gnu_ld" = no; then
17362 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17363 hardcode_libdir_separator=:
17365 case $host_cpu in
17366 hppa*64*|ia64*)
17367 hardcode_direct=no
17368 hardcode_shlibpath_var=no
17371 hardcode_direct=yes
17372 hardcode_direct_absolute=yes
17373 export_dynamic_flag_spec='${wl}-E'
17375 # hardcode_minus_L: Not really in the search PATH,
17376 # but as the default location of the library.
17377 hardcode_minus_L=yes
17379 esac
17383 irix5* | irix6* | nonstopux*)
17384 if test "$GCC" = yes; then
17385 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'
17386 # Try to use the -exported_symbol ld option, if it does not
17387 # work, assume that -exports_file does not work either and
17388 # implicitly export all symbols.
17389 save_LDFLAGS="$LDFLAGS"
17390 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17393 int foo(void) {}
17394 _ACEOF
17395 if ac_fn_c_try_link "$LINENO"; then :
17396 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'
17399 rm -f core conftest.err conftest.$ac_objext \
17400 conftest$ac_exeext conftest.$ac_ext
17401 LDFLAGS="$save_LDFLAGS"
17402 else
17403 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'
17404 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'
17406 archive_cmds_need_lc='no'
17407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17408 hardcode_libdir_separator=:
17409 inherit_rpath=yes
17410 link_all_deplibs=yes
17413 netbsd*)
17414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17416 else
17417 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17419 hardcode_libdir_flag_spec='-R$libdir'
17420 hardcode_direct=yes
17421 hardcode_shlibpath_var=no
17424 newsos6)
17425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17426 hardcode_direct=yes
17427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17428 hardcode_libdir_separator=:
17429 hardcode_shlibpath_var=no
17432 *nto* | *qnx*)
17435 openbsd*)
17436 if test -f /usr/libexec/ld.so; then
17437 hardcode_direct=yes
17438 hardcode_shlibpath_var=no
17439 hardcode_direct_absolute=yes
17440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17441 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17442 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17443 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17444 export_dynamic_flag_spec='${wl}-E'
17445 else
17446 case $host_os in
17447 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17449 hardcode_libdir_flag_spec='-R$libdir'
17452 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17453 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17455 esac
17457 else
17458 ld_shlibs=no
17462 os2*)
17463 hardcode_libdir_flag_spec='-L$libdir'
17464 hardcode_minus_L=yes
17465 allow_undefined_flag=unsupported
17466 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'
17467 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17470 osf3*)
17471 if test "$GCC" = yes; then
17472 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17473 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'
17474 else
17475 allow_undefined_flag=' -expect_unresolved \*'
17476 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'
17478 archive_cmds_need_lc='no'
17479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17480 hardcode_libdir_separator=:
17483 osf4* | osf5*) # as osf3* with the addition of -msym flag
17484 if test "$GCC" = yes; then
17485 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17486 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'
17487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17488 else
17489 allow_undefined_flag=' -expect_unresolved \*'
17490 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'
17491 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~
17492 $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'
17494 # Both c and cxx compiler support -rpath directly
17495 hardcode_libdir_flag_spec='-rpath $libdir'
17497 archive_cmds_need_lc='no'
17498 hardcode_libdir_separator=:
17501 solaris*)
17502 no_undefined_flag=' -z defs'
17503 if test "$GCC" = yes; then
17504 wlarc='${wl}'
17505 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17506 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17507 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17508 else
17509 case `$CC -V 2>&1` in
17510 *"Compilers 5.0"*)
17511 wlarc=''
17512 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17513 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17514 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17517 wlarc='${wl}'
17518 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17519 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17520 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17522 esac
17524 hardcode_libdir_flag_spec='-R$libdir'
17525 hardcode_shlibpath_var=no
17526 case $host_os in
17527 solaris2.[0-5] | solaris2.[0-5].*) ;;
17529 # The compiler driver will combine and reorder linker options,
17530 # but understands `-z linker_flag'. GCC discards it without `$wl',
17531 # but is careful enough not to reorder.
17532 # Supported since Solaris 2.6 (maybe 2.5.1?)
17533 if test "$GCC" = yes; then
17534 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17535 else
17536 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17539 esac
17540 link_all_deplibs=yes
17543 sunos4*)
17544 if test "x$host_vendor" = xsequent; then
17545 # Use $CC to link under sequent, because it throws in some extra .o
17546 # files that make .init and .fini sections work.
17547 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17548 else
17549 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17551 hardcode_libdir_flag_spec='-L$libdir'
17552 hardcode_direct=yes
17553 hardcode_minus_L=yes
17554 hardcode_shlibpath_var=no
17557 sysv4)
17558 case $host_vendor in
17559 sni)
17560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17561 hardcode_direct=yes # is this really true???
17563 siemens)
17564 ## LD is ld it makes a PLAMLIB
17565 ## CC just makes a GrossModule.
17566 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17567 reload_cmds='$CC -r -o $output$reload_objs'
17568 hardcode_direct=no
17570 motorola)
17571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17572 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17574 esac
17575 runpath_var='LD_RUN_PATH'
17576 hardcode_shlibpath_var=no
17579 sysv4.3*)
17580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17581 hardcode_shlibpath_var=no
17582 export_dynamic_flag_spec='-Bexport'
17585 sysv4*MP*)
17586 if test -d /usr/nec; then
17587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17588 hardcode_shlibpath_var=no
17589 runpath_var=LD_RUN_PATH
17590 hardcode_runpath_var=yes
17591 ld_shlibs=yes
17595 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17596 no_undefined_flag='${wl}-z,text'
17597 archive_cmds_need_lc=no
17598 hardcode_shlibpath_var=no
17599 runpath_var='LD_RUN_PATH'
17601 if test "$GCC" = yes; then
17602 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17603 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17604 else
17605 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17606 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17610 sysv5* | sco3.2v5* | sco5v6*)
17611 # Note: We can NOT use -z defs as we might desire, because we do not
17612 # link with -lc, and that would cause any symbols used from libc to
17613 # always be unresolved, which means just about no library would
17614 # ever link correctly. If we're not using GNU ld we use -z text
17615 # though, which does catch some bad symbols but isn't as heavy-handed
17616 # as -z defs.
17617 no_undefined_flag='${wl}-z,text'
17618 allow_undefined_flag='${wl}-z,nodefs'
17619 archive_cmds_need_lc=no
17620 hardcode_shlibpath_var=no
17621 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17622 hardcode_libdir_separator=':'
17623 link_all_deplibs=yes
17624 export_dynamic_flag_spec='${wl}-Bexport'
17625 runpath_var='LD_RUN_PATH'
17627 if test "$GCC" = yes; then
17628 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17629 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17630 else
17631 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17632 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17636 uts4*)
17637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17638 hardcode_libdir_flag_spec='-L$libdir'
17639 hardcode_shlibpath_var=no
17643 ld_shlibs=no
17645 esac
17647 if test x$host_vendor = xsni; then
17648 case $host in
17649 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17650 export_dynamic_flag_spec='${wl}-Blargedynsym'
17652 esac
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17657 $as_echo "$ld_shlibs" >&6; }
17658 test "$ld_shlibs" = no && can_build_shared=no
17660 with_gnu_ld=$with_gnu_ld
17677 # Do we need to explicitly link libc?
17679 case "x$archive_cmds_need_lc" in
17680 x|xyes)
17681 # Assume -lc should be added
17682 archive_cmds_need_lc=yes
17684 if test "$enable_shared" = yes && test "$GCC" = yes; then
17685 case $archive_cmds in
17686 *'~'*)
17687 # FIXME: we may have to deal with multi-command sequences.
17689 '$CC '*)
17690 # Test whether the compiler implicitly links with -lc since on some
17691 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17692 # to ld, don't add -lc before -lgcc.
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17694 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17695 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17696 $as_echo_n "(cached) " >&6
17697 else
17698 $RM conftest*
17699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17702 (eval $ac_compile) 2>&5
17703 ac_status=$?
17704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17705 test $ac_status = 0; } 2>conftest.err; then
17706 soname=conftest
17707 lib=conftest
17708 libobjs=conftest.$ac_objext
17709 deplibs=
17710 wl=$lt_prog_compiler_wl
17711 pic_flag=$lt_prog_compiler_pic
17712 compiler_flags=-v
17713 linker_flags=-v
17714 verstring=
17715 output_objdir=.
17716 libname=conftest
17717 lt_save_allow_undefined_flag=$allow_undefined_flag
17718 allow_undefined_flag=
17719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17720 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17721 ac_status=$?
17722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17723 test $ac_status = 0; }
17724 then
17725 lt_cv_archive_cmds_need_lc=no
17726 else
17727 lt_cv_archive_cmds_need_lc=yes
17729 allow_undefined_flag=$lt_save_allow_undefined_flag
17730 else
17731 cat conftest.err 1>&5
17733 $RM conftest*
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17737 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17738 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17740 esac
17743 esac
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17902 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17904 if test "$GCC" = yes; then
17905 case $host_os in
17906 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17907 *) lt_awk_arg="/^libraries:/" ;;
17908 esac
17909 case $host_os in
17910 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17911 *) lt_sed_strip_eq="s,=/,/,g" ;;
17912 esac
17913 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17914 case $lt_search_path_spec in
17915 *\;*)
17916 # if the path contains ";" then we assume it to be the separator
17917 # otherwise default to the standard path separator (i.e. ":") - it is
17918 # assumed that no part of a normal pathname contains ";" but that should
17919 # okay in the real world where ";" in dirpaths is itself problematic.
17920 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17923 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17925 esac
17926 # Ok, now we have the path, separated by spaces, we can step through it
17927 # and add multilib dir if necessary.
17928 lt_tmp_lt_search_path_spec=
17929 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17930 for lt_sys_path in $lt_search_path_spec; do
17931 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17932 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17933 else
17934 test -d "$lt_sys_path" && \
17935 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17937 done
17938 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17939 BEGIN {RS=" "; FS="/|\n";} {
17940 lt_foo="";
17941 lt_count=0;
17942 for (lt_i = NF; lt_i > 0; lt_i--) {
17943 if ($lt_i != "" && $lt_i != ".") {
17944 if ($lt_i == "..") {
17945 lt_count++;
17946 } else {
17947 if (lt_count == 0) {
17948 lt_foo="/" $lt_i lt_foo;
17949 } else {
17950 lt_count--;
17955 if (lt_foo != "") { lt_freq[lt_foo]++; }
17956 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17958 # AWK program above erroneously prepends '/' to C:/dos/paths
17959 # for these hosts.
17960 case $host_os in
17961 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17962 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17963 esac
17964 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17965 else
17966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17968 library_names_spec=
17969 libname_spec='lib$name'
17970 soname_spec=
17971 shrext_cmds=".so"
17972 postinstall_cmds=
17973 postuninstall_cmds=
17974 finish_cmds=
17975 finish_eval=
17976 shlibpath_var=
17977 shlibpath_overrides_runpath=unknown
17978 version_type=none
17979 dynamic_linker="$host_os ld.so"
17980 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17981 need_lib_prefix=unknown
17982 hardcode_into_libs=no
17984 # when you set need_version to no, make sure it does not cause -set_version
17985 # flags to be left without arguments
17986 need_version=unknown
17988 case $host_os in
17989 aix3*)
17990 version_type=linux
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17992 shlibpath_var=LIBPATH
17994 # AIX 3 has no versioning support, so we append a major version to the name.
17995 soname_spec='${libname}${release}${shared_ext}$major'
17998 aix[4-9]*)
17999 version_type=linux
18000 need_lib_prefix=no
18001 need_version=no
18002 hardcode_into_libs=yes
18003 if test "$host_cpu" = ia64; then
18004 # AIX 5 supports IA64
18005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18006 shlibpath_var=LD_LIBRARY_PATH
18007 else
18008 # With GCC up to 2.95.x, collect2 would create an import file
18009 # for dependence libraries. The import file would start with
18010 # the line `#! .'. This would cause the generated library to
18011 # depend on `.', always an invalid library. This was fixed in
18012 # development snapshots of GCC prior to 3.0.
18013 case $host_os in
18014 aix4 | aix4.[01] | aix4.[01].*)
18015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18016 echo ' yes '
18017 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18019 else
18020 can_build_shared=no
18023 esac
18024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18025 # soname into executable. Probably we can add versioning support to
18026 # collect2, so additional links can be useful in future.
18027 if test "$aix_use_runtimelinking" = yes; then
18028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18029 # instead of lib<name>.a to let people know that these are not
18030 # typical AIX shared libraries.
18031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18032 else
18033 # We preserve .a as extension for shared libraries through AIX4.2
18034 # and later when we are not doing run time linking.
18035 library_names_spec='${libname}${release}.a $libname.a'
18036 soname_spec='${libname}${release}${shared_ext}$major'
18038 shlibpath_var=LIBPATH
18042 amigaos*)
18043 case $host_cpu in
18044 powerpc)
18045 # Since July 2007 AmigaOS4 officially supports .so libraries.
18046 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18049 m68k)
18050 library_names_spec='$libname.ixlibrary $libname.a'
18051 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18052 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'
18054 esac
18057 beos*)
18058 library_names_spec='${libname}${shared_ext}'
18059 dynamic_linker="$host_os ld.so"
18060 shlibpath_var=LIBRARY_PATH
18063 bsdi[45]*)
18064 version_type=linux
18065 need_version=no
18066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18067 soname_spec='${libname}${release}${shared_ext}$major'
18068 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18069 shlibpath_var=LD_LIBRARY_PATH
18070 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18071 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18072 # the default ld.so.conf also contains /usr/contrib/lib and
18073 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18074 # libtool to hard-code these into programs
18077 cygwin* | mingw* | pw32* | cegcc*)
18078 version_type=windows
18079 shrext_cmds=".dll"
18080 need_version=no
18081 need_lib_prefix=no
18083 case $GCC,$host_os in
18084 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18085 library_names_spec='$libname.dll.a'
18086 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18087 postinstall_cmds='base_file=`basename \${file}`~
18088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18089 dldir=$destdir/`dirname \$dlpath`~
18090 test -d \$dldir || mkdir -p \$dldir~
18091 $install_prog $dir/$dlname \$dldir/$dlname~
18092 chmod a+x \$dldir/$dlname~
18093 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18094 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18097 dlpath=$dir/\$dldll~
18098 $RM \$dlpath'
18099 shlibpath_overrides_runpath=yes
18101 case $host_os in
18102 cygwin*)
18103 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18104 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18106 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18108 mingw* | cegcc*)
18109 # MinGW DLLs use traditional 'lib' prefix
18110 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18112 pw32*)
18113 # pw32 DLLs use 'pw' prefix rather than 'lib'
18114 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18116 esac
18120 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18122 esac
18123 dynamic_linker='Win32 ld.exe'
18124 # FIXME: first we should search . and the directory the executable is in
18125 shlibpath_var=PATH
18128 darwin* | rhapsody*)
18129 dynamic_linker="$host_os dyld"
18130 version_type=darwin
18131 need_lib_prefix=no
18132 need_version=no
18133 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18134 soname_spec='${libname}${release}${major}$shared_ext'
18135 shlibpath_overrides_runpath=yes
18136 shlibpath_var=DYLD_LIBRARY_PATH
18137 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18139 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18140 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18143 dgux*)
18144 version_type=linux
18145 need_lib_prefix=no
18146 need_version=no
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18148 soname_spec='${libname}${release}${shared_ext}$major'
18149 shlibpath_var=LD_LIBRARY_PATH
18152 freebsd* | dragonfly*)
18153 # DragonFly does not have aout. When/if they implement a new
18154 # versioning mechanism, adjust this.
18155 if test -x /usr/bin/objformat; then
18156 objformat=`/usr/bin/objformat`
18157 else
18158 case $host_os in
18159 freebsd[23].*) objformat=aout ;;
18160 *) objformat=elf ;;
18161 esac
18163 version_type=freebsd-$objformat
18164 case $version_type in
18165 freebsd-elf*)
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18167 need_version=no
18168 need_lib_prefix=no
18170 freebsd-*)
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18172 need_version=yes
18174 esac
18175 shlibpath_var=LD_LIBRARY_PATH
18176 case $host_os in
18177 freebsd2.*)
18178 shlibpath_overrides_runpath=yes
18180 freebsd3.[01]* | freebsdelf3.[01]*)
18181 shlibpath_overrides_runpath=yes
18182 hardcode_into_libs=yes
18184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18186 shlibpath_overrides_runpath=no
18187 hardcode_into_libs=yes
18189 *) # from 4.6 on, and DragonFly
18190 shlibpath_overrides_runpath=yes
18191 hardcode_into_libs=yes
18193 esac
18196 gnu*)
18197 version_type=linux
18198 need_lib_prefix=no
18199 need_version=no
18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18201 soname_spec='${libname}${release}${shared_ext}$major'
18202 shlibpath_var=LD_LIBRARY_PATH
18203 hardcode_into_libs=yes
18206 haiku*)
18207 version_type=linux
18208 need_lib_prefix=no
18209 need_version=no
18210 dynamic_linker="$host_os runtime_loader"
18211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18212 soname_spec='${libname}${release}${shared_ext}$major'
18213 shlibpath_var=LIBRARY_PATH
18214 shlibpath_overrides_runpath=yes
18215 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18216 hardcode_into_libs=yes
18219 hpux9* | hpux10* | hpux11*)
18220 # Give a soname corresponding to the major version so that dld.sl refuses to
18221 # link against other versions.
18222 version_type=sunos
18223 need_lib_prefix=no
18224 need_version=no
18225 case $host_cpu in
18226 ia64*)
18227 shrext_cmds='.so'
18228 hardcode_into_libs=yes
18229 dynamic_linker="$host_os dld.so"
18230 shlibpath_var=LD_LIBRARY_PATH
18231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 if test "X$HPUX_IA64_MODE" = X32; then
18235 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18236 else
18237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18241 hppa*64*)
18242 shrext_cmds='.sl'
18243 hardcode_into_libs=yes
18244 dynamic_linker="$host_os dld.sl"
18245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248 soname_spec='${libname}${release}${shared_ext}$major'
18249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18253 shrext_cmds='.sl'
18254 dynamic_linker="$host_os dld.sl"
18255 shlibpath_var=SHLIB_PATH
18256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18258 soname_spec='${libname}${release}${shared_ext}$major'
18260 esac
18261 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18262 postinstall_cmds='chmod 555 $lib'
18263 # or fails outright, so override atomically:
18264 install_override_mode=555
18267 interix[3-9]*)
18268 version_type=linux
18269 need_lib_prefix=no
18270 need_version=no
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18272 soname_spec='${libname}${release}${shared_ext}$major'
18273 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18274 shlibpath_var=LD_LIBRARY_PATH
18275 shlibpath_overrides_runpath=no
18276 hardcode_into_libs=yes
18279 irix5* | irix6* | nonstopux*)
18280 case $host_os in
18281 nonstopux*) version_type=nonstopux ;;
18283 if test "$lt_cv_prog_gnu_ld" = yes; then
18284 version_type=linux
18285 else
18286 version_type=irix
18287 fi ;;
18288 esac
18289 need_lib_prefix=no
18290 need_version=no
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18293 case $host_os in
18294 irix5* | nonstopux*)
18295 libsuff= shlibsuff=
18298 case $LD in # libtool.m4 will add one of these switches to LD
18299 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18300 libsuff= shlibsuff= libmagic=32-bit;;
18301 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18302 libsuff=32 shlibsuff=N32 libmagic=N32;;
18303 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18304 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18305 *) libsuff= shlibsuff= libmagic=never-match;;
18306 esac
18308 esac
18309 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18310 shlibpath_overrides_runpath=no
18311 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18312 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18313 hardcode_into_libs=yes
18316 # No shared lib support for Linux oldld, aout, or coff.
18317 linux*oldld* | linux*aout* | linux*coff*)
18318 dynamic_linker=no
18321 # This must be Linux ELF.
18323 # uclinux* changes (here and below) have been submitted to the libtool
18324 # project, but have not yet been accepted: they are GCC-local changes
18325 # for the time being. (See
18326 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18327 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18328 version_type=linux
18329 need_lib_prefix=no
18330 need_version=no
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18334 shlibpath_var=LD_LIBRARY_PATH
18335 shlibpath_overrides_runpath=no
18337 # Some binutils ld are patched to set DT_RUNPATH
18338 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18339 $as_echo_n "(cached) " >&6
18340 else
18341 lt_cv_shlibpath_overrides_runpath=no
18342 save_LDFLAGS=$LDFLAGS
18343 save_libdir=$libdir
18344 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18345 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18350 main ()
18354 return 0;
18356 _ACEOF
18357 if ac_fn_c_try_link "$LINENO"; then :
18358 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18359 lt_cv_shlibpath_overrides_runpath=yes
18362 rm -f core conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
18364 LDFLAGS=$save_LDFLAGS
18365 libdir=$save_libdir
18369 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18371 # This implies no fast_install, which is unacceptable.
18372 # Some rework will be needed to allow for fast_install
18373 # before this can be enabled.
18374 hardcode_into_libs=yes
18376 # Append ld.so.conf contents to the search path
18377 if test -f /etc/ld.so.conf; then
18378 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' ' '`
18379 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18382 # We used to test for /lib/ld.so.1 and disable shared libraries on
18383 # powerpc, because MkLinux only supported shared libraries with the
18384 # GNU dynamic linker. Since this was broken with cross compilers,
18385 # most powerpc-linux boxes support dynamic linking these days and
18386 # people can always --disable-shared, the test was removed, and we
18387 # assume the GNU/Linux dynamic linker is in use.
18388 dynamic_linker='GNU/Linux ld.so'
18391 netbsd*)
18392 version_type=sunos
18393 need_lib_prefix=no
18394 need_version=no
18395 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18398 dynamic_linker='NetBSD (a.out) ld.so'
18399 else
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 dynamic_linker='NetBSD ld.elf_so'
18404 shlibpath_var=LD_LIBRARY_PATH
18405 shlibpath_overrides_runpath=yes
18406 hardcode_into_libs=yes
18409 newsos6)
18410 version_type=linux
18411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18412 shlibpath_var=LD_LIBRARY_PATH
18413 shlibpath_overrides_runpath=yes
18416 *nto* | *qnx*)
18417 version_type=qnx
18418 need_lib_prefix=no
18419 need_version=no
18420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18421 soname_spec='${libname}${release}${shared_ext}$major'
18422 shlibpath_var=LD_LIBRARY_PATH
18423 shlibpath_overrides_runpath=no
18424 hardcode_into_libs=yes
18425 dynamic_linker='ldqnx.so'
18428 openbsd*)
18429 version_type=sunos
18430 sys_lib_dlsearch_path_spec="/usr/lib"
18431 need_lib_prefix=no
18432 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18433 case $host_os in
18434 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18435 *) need_version=no ;;
18436 esac
18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18439 shlibpath_var=LD_LIBRARY_PATH
18440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18441 case $host_os in
18442 openbsd2.[89] | openbsd2.[89].*)
18443 shlibpath_overrides_runpath=no
18446 shlibpath_overrides_runpath=yes
18448 esac
18449 else
18450 shlibpath_overrides_runpath=yes
18454 os2*)
18455 libname_spec='$name'
18456 shrext_cmds=".dll"
18457 need_lib_prefix=no
18458 library_names_spec='$libname${shared_ext} $libname.a'
18459 dynamic_linker='OS/2 ld.exe'
18460 shlibpath_var=LIBPATH
18463 osf3* | osf4* | osf5*)
18464 version_type=osf
18465 need_lib_prefix=no
18466 need_version=no
18467 soname_spec='${libname}${release}${shared_ext}$major'
18468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18469 shlibpath_var=LD_LIBRARY_PATH
18470 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18471 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18474 rdos*)
18475 dynamic_linker=no
18478 solaris*)
18479 version_type=linux
18480 need_lib_prefix=no
18481 need_version=no
18482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18483 soname_spec='${libname}${release}${shared_ext}$major'
18484 shlibpath_var=LD_LIBRARY_PATH
18485 shlibpath_overrides_runpath=yes
18486 hardcode_into_libs=yes
18487 # ldd complains unless libraries are executable
18488 postinstall_cmds='chmod +x $lib'
18491 sunos4*)
18492 version_type=sunos
18493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18494 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18495 shlibpath_var=LD_LIBRARY_PATH
18496 shlibpath_overrides_runpath=yes
18497 if test "$with_gnu_ld" = yes; then
18498 need_lib_prefix=no
18500 need_version=yes
18503 sysv4 | sysv4.3*)
18504 version_type=linux
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506 soname_spec='${libname}${release}${shared_ext}$major'
18507 shlibpath_var=LD_LIBRARY_PATH
18508 case $host_vendor in
18509 sni)
18510 shlibpath_overrides_runpath=no
18511 need_lib_prefix=no
18512 runpath_var=LD_RUN_PATH
18514 siemens)
18515 need_lib_prefix=no
18517 motorola)
18518 need_lib_prefix=no
18519 need_version=no
18520 shlibpath_overrides_runpath=no
18521 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18523 esac
18526 sysv4*MP*)
18527 if test -d /usr/nec ;then
18528 version_type=linux
18529 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18530 soname_spec='$libname${shared_ext}.$major'
18531 shlibpath_var=LD_LIBRARY_PATH
18535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18536 version_type=freebsd-elf
18537 need_lib_prefix=no
18538 need_version=no
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18540 soname_spec='${libname}${release}${shared_ext}$major'
18541 shlibpath_var=LD_LIBRARY_PATH
18542 shlibpath_overrides_runpath=yes
18543 hardcode_into_libs=yes
18544 if test "$with_gnu_ld" = yes; then
18545 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18546 else
18547 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18548 case $host_os in
18549 sco3.2v5*)
18550 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18552 esac
18554 sys_lib_dlsearch_path_spec='/usr/lib'
18557 tpf*)
18558 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18559 version_type=linux
18560 need_lib_prefix=no
18561 need_version=no
18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18563 shlibpath_var=LD_LIBRARY_PATH
18564 shlibpath_overrides_runpath=no
18565 hardcode_into_libs=yes
18568 uts4*)
18569 version_type=linux
18570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18571 soname_spec='${libname}${release}${shared_ext}$major'
18572 shlibpath_var=LD_LIBRARY_PATH
18576 dynamic_linker=no
18578 esac
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18580 $as_echo "$dynamic_linker" >&6; }
18581 test "$dynamic_linker" = no && can_build_shared=no
18583 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18584 if test "$GCC" = yes; then
18585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18588 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18589 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18591 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18592 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18687 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18688 hardcode_action=
18689 if test -n "$hardcode_libdir_flag_spec" ||
18690 test -n "$runpath_var" ||
18691 test "X$hardcode_automatic" = "Xyes" ; then
18693 # We can hardcode non-existent directories.
18694 if test "$hardcode_direct" != no &&
18695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18696 # have to relink, otherwise we might link with an installed library
18697 # when we should be linking with a yet-to-be-installed one
18698 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18699 test "$hardcode_minus_L" != no; then
18700 # Linking always hardcodes the temporary library directory.
18701 hardcode_action=relink
18702 else
18703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18704 hardcode_action=immediate
18706 else
18707 # We cannot hardcode anything, or else we can only hardcode existing
18708 # directories.
18709 hardcode_action=unsupported
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18712 $as_echo "$hardcode_action" >&6; }
18714 if test "$hardcode_action" = relink ||
18715 test "$inherit_rpath" = yes; then
18716 # Fast installation is not supported
18717 enable_fast_install=no
18718 elif test "$shlibpath_overrides_runpath" = yes ||
18719 test "$enable_shared" = no; then
18720 # Fast installation is not necessary
18721 enable_fast_install=needless
18729 if test "x$enable_dlopen" != xyes; then
18730 enable_dlopen=unknown
18731 enable_dlopen_self=unknown
18732 enable_dlopen_self_static=unknown
18733 else
18734 lt_cv_dlopen=no
18735 lt_cv_dlopen_libs=
18737 case $host_os in
18738 beos*)
18739 lt_cv_dlopen="load_add_on"
18740 lt_cv_dlopen_libs=
18741 lt_cv_dlopen_self=yes
18744 mingw* | pw32* | cegcc*)
18745 lt_cv_dlopen="LoadLibrary"
18746 lt_cv_dlopen_libs=
18749 cygwin*)
18750 lt_cv_dlopen="dlopen"
18751 lt_cv_dlopen_libs=
18754 darwin*)
18755 # if libdl is installed we need to link against it
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18757 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18758 if ${ac_cv_lib_dl_dlopen+:} false; then :
18759 $as_echo_n "(cached) " >&6
18760 else
18761 ac_check_lib_save_LIBS=$LIBS
18762 LIBS="-ldl $LIBS"
18763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18764 /* end confdefs.h. */
18766 /* Override any GCC internal prototype to avoid an error.
18767 Use char because int might match the return type of a GCC
18768 builtin and then its argument prototype would still apply. */
18769 #ifdef __cplusplus
18770 extern "C"
18771 #endif
18772 char dlopen ();
18774 main ()
18776 return dlopen ();
18778 return 0;
18780 _ACEOF
18781 if ac_fn_c_try_link "$LINENO"; then :
18782 ac_cv_lib_dl_dlopen=yes
18783 else
18784 ac_cv_lib_dl_dlopen=no
18786 rm -f core conftest.err conftest.$ac_objext \
18787 conftest$ac_exeext conftest.$ac_ext
18788 LIBS=$ac_check_lib_save_LIBS
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18791 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18792 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18793 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18794 else
18796 lt_cv_dlopen="dyld"
18797 lt_cv_dlopen_libs=
18798 lt_cv_dlopen_self=yes
18805 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18806 if test "x$ac_cv_func_shl_load" = xyes; then :
18807 lt_cv_dlopen="shl_load"
18808 else
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18810 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18811 if ${ac_cv_lib_dld_shl_load+:} false; then :
18812 $as_echo_n "(cached) " >&6
18813 else
18814 ac_check_lib_save_LIBS=$LIBS
18815 LIBS="-ldld $LIBS"
18816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18817 /* end confdefs.h. */
18819 /* Override any GCC internal prototype to avoid an error.
18820 Use char because int might match the return type of a GCC
18821 builtin and then its argument prototype would still apply. */
18822 #ifdef __cplusplus
18823 extern "C"
18824 #endif
18825 char shl_load ();
18827 main ()
18829 return shl_load ();
18831 return 0;
18833 _ACEOF
18834 if ac_fn_c_try_link "$LINENO"; then :
18835 ac_cv_lib_dld_shl_load=yes
18836 else
18837 ac_cv_lib_dld_shl_load=no
18839 rm -f core conftest.err conftest.$ac_objext \
18840 conftest$ac_exeext conftest.$ac_ext
18841 LIBS=$ac_check_lib_save_LIBS
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18844 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18845 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18846 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18847 else
18848 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18849 if test "x$ac_cv_func_dlopen" = xyes; then :
18850 lt_cv_dlopen="dlopen"
18851 else
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18853 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18854 if ${ac_cv_lib_dl_dlopen+:} false; then :
18855 $as_echo_n "(cached) " >&6
18856 else
18857 ac_check_lib_save_LIBS=$LIBS
18858 LIBS="-ldl $LIBS"
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18862 /* Override any GCC internal prototype to avoid an error.
18863 Use char because int might match the return type of a GCC
18864 builtin and then its argument prototype would still apply. */
18865 #ifdef __cplusplus
18866 extern "C"
18867 #endif
18868 char dlopen ();
18870 main ()
18872 return dlopen ();
18874 return 0;
18876 _ACEOF
18877 if ac_fn_c_try_link "$LINENO"; then :
18878 ac_cv_lib_dl_dlopen=yes
18879 else
18880 ac_cv_lib_dl_dlopen=no
18882 rm -f core conftest.err conftest.$ac_objext \
18883 conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18887 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18888 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18890 else
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18892 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18893 if ${ac_cv_lib_svld_dlopen+:} false; then :
18894 $as_echo_n "(cached) " >&6
18895 else
18896 ac_check_lib_save_LIBS=$LIBS
18897 LIBS="-lsvld $LIBS"
18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899 /* end confdefs.h. */
18901 /* Override any GCC internal prototype to avoid an error.
18902 Use char because int might match the return type of a GCC
18903 builtin and then its argument prototype would still apply. */
18904 #ifdef __cplusplus
18905 extern "C"
18906 #endif
18907 char dlopen ();
18909 main ()
18911 return dlopen ();
18913 return 0;
18915 _ACEOF
18916 if ac_fn_c_try_link "$LINENO"; then :
18917 ac_cv_lib_svld_dlopen=yes
18918 else
18919 ac_cv_lib_svld_dlopen=no
18921 rm -f core conftest.err conftest.$ac_objext \
18922 conftest$ac_exeext conftest.$ac_ext
18923 LIBS=$ac_check_lib_save_LIBS
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18926 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18927 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18928 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18929 else
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18931 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18932 if ${ac_cv_lib_dld_dld_link+:} false; then :
18933 $as_echo_n "(cached) " >&6
18934 else
18935 ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-ldld $LIBS"
18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18940 /* Override any GCC internal prototype to avoid an error.
18941 Use char because int might match the return type of a GCC
18942 builtin and then its argument prototype would still apply. */
18943 #ifdef __cplusplus
18944 extern "C"
18945 #endif
18946 char dld_link ();
18948 main ()
18950 return dld_link ();
18952 return 0;
18954 _ACEOF
18955 if ac_fn_c_try_link "$LINENO"; then :
18956 ac_cv_lib_dld_dld_link=yes
18957 else
18958 ac_cv_lib_dld_dld_link=no
18960 rm -f core conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18962 LIBS=$ac_check_lib_save_LIBS
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18965 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18966 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18967 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18986 esac
18988 if test "x$lt_cv_dlopen" != xno; then
18989 enable_dlopen=yes
18990 else
18991 enable_dlopen=no
18994 case $lt_cv_dlopen in
18995 dlopen)
18996 save_CPPFLAGS="$CPPFLAGS"
18997 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18999 save_LDFLAGS="$LDFLAGS"
19000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19002 save_LIBS="$LIBS"
19003 LIBS="$lt_cv_dlopen_libs $LIBS"
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19006 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19007 if ${lt_cv_dlopen_self+:} false; then :
19008 $as_echo_n "(cached) " >&6
19009 else
19010 if test "$cross_compiling" = yes; then :
19011 lt_cv_dlopen_self=cross
19012 else
19013 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19014 lt_status=$lt_dlunknown
19015 cat > conftest.$ac_ext <<_LT_EOF
19016 #line 19016 "configure"
19017 #include "confdefs.h"
19019 #if HAVE_DLFCN_H
19020 #include <dlfcn.h>
19021 #endif
19023 #include <stdio.h>
19025 #ifdef RTLD_GLOBAL
19026 # define LT_DLGLOBAL RTLD_GLOBAL
19027 #else
19028 # ifdef DL_GLOBAL
19029 # define LT_DLGLOBAL DL_GLOBAL
19030 # else
19031 # define LT_DLGLOBAL 0
19032 # endif
19033 #endif
19035 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19036 find out it does not work in some platform. */
19037 #ifndef LT_DLLAZY_OR_NOW
19038 # ifdef RTLD_LAZY
19039 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19040 # else
19041 # ifdef DL_LAZY
19042 # define LT_DLLAZY_OR_NOW DL_LAZY
19043 # else
19044 # ifdef RTLD_NOW
19045 # define LT_DLLAZY_OR_NOW RTLD_NOW
19046 # else
19047 # ifdef DL_NOW
19048 # define LT_DLLAZY_OR_NOW DL_NOW
19049 # else
19050 # define LT_DLLAZY_OR_NOW 0
19051 # endif
19052 # endif
19053 # endif
19054 # endif
19055 #endif
19057 /* When -fvisbility=hidden is used, assume the code has been annotated
19058 correspondingly for the symbols needed. */
19059 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19060 void fnord () __attribute__((visibility("default")));
19061 #endif
19063 void fnord () { int i=42; }
19064 int main ()
19066 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19067 int status = $lt_dlunknown;
19069 if (self)
19071 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19072 else
19074 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19075 else puts (dlerror ());
19077 /* dlclose (self); */
19079 else
19080 puts (dlerror ());
19082 return status;
19084 _LT_EOF
19085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19086 (eval $ac_link) 2>&5
19087 ac_status=$?
19088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19089 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19090 (./conftest; exit; ) >&5 2>/dev/null
19091 lt_status=$?
19092 case x$lt_status in
19093 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19094 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19095 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19096 esac
19097 else :
19098 # compilation failed
19099 lt_cv_dlopen_self=no
19102 rm -fr conftest*
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19107 $as_echo "$lt_cv_dlopen_self" >&6; }
19109 if test "x$lt_cv_dlopen_self" = xyes; then
19110 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19112 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19113 if ${lt_cv_dlopen_self_static+:} false; then :
19114 $as_echo_n "(cached) " >&6
19115 else
19116 if test "$cross_compiling" = yes; then :
19117 lt_cv_dlopen_self_static=cross
19118 else
19119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19120 lt_status=$lt_dlunknown
19121 cat > conftest.$ac_ext <<_LT_EOF
19122 #line 19122 "configure"
19123 #include "confdefs.h"
19125 #if HAVE_DLFCN_H
19126 #include <dlfcn.h>
19127 #endif
19129 #include <stdio.h>
19131 #ifdef RTLD_GLOBAL
19132 # define LT_DLGLOBAL RTLD_GLOBAL
19133 #else
19134 # ifdef DL_GLOBAL
19135 # define LT_DLGLOBAL DL_GLOBAL
19136 # else
19137 # define LT_DLGLOBAL 0
19138 # endif
19139 #endif
19141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19142 find out it does not work in some platform. */
19143 #ifndef LT_DLLAZY_OR_NOW
19144 # ifdef RTLD_LAZY
19145 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19146 # else
19147 # ifdef DL_LAZY
19148 # define LT_DLLAZY_OR_NOW DL_LAZY
19149 # else
19150 # ifdef RTLD_NOW
19151 # define LT_DLLAZY_OR_NOW RTLD_NOW
19152 # else
19153 # ifdef DL_NOW
19154 # define LT_DLLAZY_OR_NOW DL_NOW
19155 # else
19156 # define LT_DLLAZY_OR_NOW 0
19157 # endif
19158 # endif
19159 # endif
19160 # endif
19161 #endif
19163 /* When -fvisbility=hidden is used, assume the code has been annotated
19164 correspondingly for the symbols needed. */
19165 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19166 void fnord () __attribute__((visibility("default")));
19167 #endif
19169 void fnord () { int i=42; }
19170 int main ()
19172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19173 int status = $lt_dlunknown;
19175 if (self)
19177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19178 else
19180 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19181 else puts (dlerror ());
19183 /* dlclose (self); */
19185 else
19186 puts (dlerror ());
19188 return status;
19190 _LT_EOF
19191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19192 (eval $ac_link) 2>&5
19193 ac_status=$?
19194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19195 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19196 (./conftest; exit; ) >&5 2>/dev/null
19197 lt_status=$?
19198 case x$lt_status in
19199 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19200 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19201 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19202 esac
19203 else :
19204 # compilation failed
19205 lt_cv_dlopen_self_static=no
19208 rm -fr conftest*
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19213 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19216 CPPFLAGS="$save_CPPFLAGS"
19217 LDFLAGS="$save_LDFLAGS"
19218 LIBS="$save_LIBS"
19220 esac
19222 case $lt_cv_dlopen_self in
19223 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19224 *) enable_dlopen_self=unknown ;;
19225 esac
19227 case $lt_cv_dlopen_self_static in
19228 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19229 *) enable_dlopen_self_static=unknown ;;
19230 esac
19249 striplib=
19250 old_striplib=
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19252 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19253 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19254 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19255 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19257 $as_echo "yes" >&6; }
19258 else
19259 # FIXME - insert some real tests, host_os isn't really good enough
19260 case $host_os in
19261 darwin*)
19262 if test -n "$STRIP" ; then
19263 striplib="$STRIP -x"
19264 old_striplib="$STRIP -S"
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19266 $as_echo "yes" >&6; }
19267 else
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19269 $as_echo "no" >&6; }
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19274 $as_echo "no" >&6; }
19276 esac
19290 # Report which library types will actually be built
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19292 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19294 $as_echo "$can_build_shared" >&6; }
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19297 $as_echo_n "checking whether to build shared libraries... " >&6; }
19298 test "$can_build_shared" = "no" && enable_shared=no
19300 # On AIX, shared libraries and static libraries use the same namespace, and
19301 # are all built from PIC.
19302 case $host_os in
19303 aix3*)
19304 test "$enable_shared" = yes && enable_static=no
19305 if test -n "$RANLIB"; then
19306 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19307 postinstall_cmds='$RANLIB $lib'
19311 aix[4-9]*)
19312 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19313 test "$enable_shared" = yes && enable_static=no
19316 esac
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19318 $as_echo "$enable_shared" >&6; }
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19321 $as_echo_n "checking whether to build static libraries... " >&6; }
19322 # Make sure either enable_shared or enable_static is yes.
19323 test "$enable_shared" = yes || enable_static=yes
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19325 $as_echo "$enable_static" >&6; }
19331 ac_ext=cpp
19332 ac_cpp='$CXXCPP $CPPFLAGS'
19333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19337 CC="$lt_save_CC"
19339 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19340 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19341 (test "X$CXX" != "Xg++"))) ; then
19342 ac_ext=cpp
19343 ac_cpp='$CXXCPP $CPPFLAGS'
19344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19348 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19349 if test -z "$CXXCPP"; then
19350 if ${ac_cv_prog_CXXCPP+:} false; then :
19351 $as_echo_n "(cached) " >&6
19352 else
19353 # Double quotes because CXXCPP needs to be expanded
19354 for CXXCPP in "$CXX -E" "/lib/cpp"
19356 ac_preproc_ok=false
19357 for ac_cxx_preproc_warn_flag in '' yes
19359 # Use a header file that comes with gcc, so configuring glibc
19360 # with a fresh cross-compiler works.
19361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19362 # <limits.h> exists even on freestanding compilers.
19363 # On the NeXT, cc -E runs the code through the compiler's parser,
19364 # not just through cpp. "Syntax error" is here to catch this case.
19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19367 #ifdef __STDC__
19368 # include <limits.h>
19369 #else
19370 # include <assert.h>
19371 #endif
19372 Syntax error
19373 _ACEOF
19374 if ac_fn_cxx_try_cpp "$LINENO"; then :
19376 else
19377 # Broken: fails on valid input.
19378 continue
19380 rm -f conftest.err conftest.i conftest.$ac_ext
19382 # OK, works on sane cases. Now check whether nonexistent headers
19383 # can be detected and how.
19384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19385 /* end confdefs.h. */
19386 #include <ac_nonexistent.h>
19387 _ACEOF
19388 if ac_fn_cxx_try_cpp "$LINENO"; then :
19389 # Broken: success on invalid input.
19390 continue
19391 else
19392 # Passes both tests.
19393 ac_preproc_ok=:
19394 break
19396 rm -f conftest.err conftest.i conftest.$ac_ext
19398 done
19399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19400 rm -f conftest.i conftest.err conftest.$ac_ext
19401 if $ac_preproc_ok; then :
19402 break
19405 done
19406 ac_cv_prog_CXXCPP=$CXXCPP
19409 CXXCPP=$ac_cv_prog_CXXCPP
19410 else
19411 ac_cv_prog_CXXCPP=$CXXCPP
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19414 $as_echo "$CXXCPP" >&6; }
19415 ac_preproc_ok=false
19416 for ac_cxx_preproc_warn_flag in '' yes
19418 # Use a header file that comes with gcc, so configuring glibc
19419 # with a fresh cross-compiler works.
19420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19421 # <limits.h> exists even on freestanding compilers.
19422 # On the NeXT, cc -E runs the code through the compiler's parser,
19423 # not just through cpp. "Syntax error" is here to catch this case.
19424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19425 /* end confdefs.h. */
19426 #ifdef __STDC__
19427 # include <limits.h>
19428 #else
19429 # include <assert.h>
19430 #endif
19431 Syntax error
19432 _ACEOF
19433 if ac_fn_cxx_try_cpp "$LINENO"; then :
19435 else
19436 # Broken: fails on valid input.
19437 continue
19439 rm -f conftest.err conftest.i conftest.$ac_ext
19441 # OK, works on sane cases. Now check whether nonexistent headers
19442 # can be detected and how.
19443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19444 /* end confdefs.h. */
19445 #include <ac_nonexistent.h>
19446 _ACEOF
19447 if ac_fn_cxx_try_cpp "$LINENO"; then :
19448 # Broken: success on invalid input.
19449 continue
19450 else
19451 # Passes both tests.
19452 ac_preproc_ok=:
19453 break
19455 rm -f conftest.err conftest.i conftest.$ac_ext
19457 done
19458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19459 rm -f conftest.i conftest.err conftest.$ac_ext
19460 if $ac_preproc_ok; then :
19462 else
19463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19465 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19466 See \`config.log' for more details" "$LINENO" 5; }
19469 ac_ext=cpp
19470 ac_cpp='$CXXCPP $CPPFLAGS'
19471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19475 else
19476 _lt_caught_CXX_error=yes
19479 ac_ext=cpp
19480 ac_cpp='$CXXCPP $CPPFLAGS'
19481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19485 archive_cmds_need_lc_CXX=no
19486 allow_undefined_flag_CXX=
19487 always_export_symbols_CXX=no
19488 archive_expsym_cmds_CXX=
19489 compiler_needs_object_CXX=no
19490 export_dynamic_flag_spec_CXX=
19491 hardcode_direct_CXX=no
19492 hardcode_direct_absolute_CXX=no
19493 hardcode_libdir_flag_spec_CXX=
19494 hardcode_libdir_flag_spec_ld_CXX=
19495 hardcode_libdir_separator_CXX=
19496 hardcode_minus_L_CXX=no
19497 hardcode_shlibpath_var_CXX=unsupported
19498 hardcode_automatic_CXX=no
19499 inherit_rpath_CXX=no
19500 module_cmds_CXX=
19501 module_expsym_cmds_CXX=
19502 link_all_deplibs_CXX=unknown
19503 old_archive_cmds_CXX=$old_archive_cmds
19504 reload_flag_CXX=$reload_flag
19505 reload_cmds_CXX=$reload_cmds
19506 no_undefined_flag_CXX=
19507 whole_archive_flag_spec_CXX=
19508 enable_shared_with_static_runtimes_CXX=no
19510 # Source file extension for C++ test sources.
19511 ac_ext=cpp
19513 # Object file extension for compiled C++ test sources.
19514 objext=o
19515 objext_CXX=$objext
19517 # No sense in running all these tests if we already determined that
19518 # the CXX compiler isn't working. Some variables (like enable_shared)
19519 # are currently assumed to apply to all compilers on this platform,
19520 # and will be corrupted by setting them based on a non-working compiler.
19521 if test "$_lt_caught_CXX_error" != yes; then
19522 # Code to be used in simple compile tests
19523 lt_simple_compile_test_code="int some_variable = 0;"
19525 # Code to be used in simple link tests
19526 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19528 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19535 # If no C compiler was specified, use CC.
19536 LTCC=${LTCC-"$CC"}
19538 # If no C compiler flags were specified, use CFLAGS.
19539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19541 # Allow CC to be a program name with arguments.
19542 compiler=$CC
19545 # save warnings/boilerplate of simple test code
19546 ac_outfile=conftest.$ac_objext
19547 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19548 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19549 _lt_compiler_boilerplate=`cat conftest.err`
19550 $RM conftest*
19552 ac_outfile=conftest.$ac_objext
19553 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19554 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19555 _lt_linker_boilerplate=`cat conftest.err`
19556 $RM -r conftest*
19559 # Allow CC to be a program name with arguments.
19560 lt_save_CC=$CC
19561 lt_save_LD=$LD
19562 lt_save_GCC=$GCC
19563 GCC=$GXX
19564 lt_save_with_gnu_ld=$with_gnu_ld
19565 lt_save_path_LD=$lt_cv_path_LD
19566 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19567 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19568 else
19569 $as_unset lt_cv_prog_gnu_ld
19571 if test -n "${lt_cv_path_LDCXX+set}"; then
19572 lt_cv_path_LD=$lt_cv_path_LDCXX
19573 else
19574 $as_unset lt_cv_path_LD
19576 test -z "${LDCXX+set}" || LD=$LDCXX
19577 CC=${CXX-"c++"}
19578 compiler=$CC
19579 compiler_CXX=$CC
19580 for cc_temp in $compiler""; do
19581 case $cc_temp in
19582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19584 \-*) ;;
19585 *) break;;
19586 esac
19587 done
19588 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19591 if test -n "$compiler"; then
19592 # We don't want -fno-exception when compiling C++ code, so set the
19593 # no_builtin_flag separately
19594 if test "$GXX" = yes; then
19595 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19596 else
19597 lt_prog_compiler_no_builtin_flag_CXX=
19600 if test "$GXX" = yes; then
19601 # Set up default GNU C++ configuration
19605 # Check whether --with-gnu-ld was given.
19606 if test "${with_gnu_ld+set}" = set; then :
19607 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19608 else
19609 with_gnu_ld=no
19612 ac_prog=ld
19613 if test "$GCC" = yes; then
19614 # Check if gcc -print-prog-name=ld gives a path.
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19616 $as_echo_n "checking for ld used by $CC... " >&6; }
19617 case $host in
19618 *-*-mingw*)
19619 # gcc leaves a trailing carriage return which upsets mingw
19620 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19622 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19623 esac
19624 case $ac_prog in
19625 # Accept absolute paths.
19626 [\\/]* | ?:[\\/]*)
19627 re_direlt='/[^/][^/]*/\.\./'
19628 # Canonicalize the pathname of ld
19629 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19630 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19631 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19632 done
19633 test -z "$LD" && LD="$ac_prog"
19636 # If it fails, then pretend we aren't using GCC.
19637 ac_prog=ld
19640 # If it is relative, then search for the first ld in PATH.
19641 with_gnu_ld=unknown
19643 esac
19644 elif test "$with_gnu_ld" = yes; then
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19646 $as_echo_n "checking for GNU ld... " >&6; }
19647 else
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19649 $as_echo_n "checking for non-GNU ld... " >&6; }
19651 if ${lt_cv_path_LD+:} false; then :
19652 $as_echo_n "(cached) " >&6
19653 else
19654 if test -z "$LD"; then
19655 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19656 for ac_dir in $PATH; do
19657 IFS="$lt_save_ifs"
19658 test -z "$ac_dir" && ac_dir=.
19659 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19660 lt_cv_path_LD="$ac_dir/$ac_prog"
19661 # Check to see if the program is GNU ld. I'd rather use --version,
19662 # but apparently some variants of GNU ld only accept -v.
19663 # Break only if it was the GNU/non-GNU ld that we prefer.
19664 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19665 *GNU* | *'with BFD'*)
19666 test "$with_gnu_ld" != no && break
19669 test "$with_gnu_ld" != yes && break
19671 esac
19673 done
19674 IFS="$lt_save_ifs"
19675 else
19676 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19680 LD="$lt_cv_path_LD"
19681 if test -n "$LD"; then
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19683 $as_echo "$LD" >&6; }
19684 else
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19686 $as_echo "no" >&6; }
19688 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19690 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19691 if ${lt_cv_prog_gnu_ld+:} false; then :
19692 $as_echo_n "(cached) " >&6
19693 else
19694 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19695 case `$LD -v 2>&1 </dev/null` in
19696 *GNU* | *'with BFD'*)
19697 lt_cv_prog_gnu_ld=yes
19700 lt_cv_prog_gnu_ld=no
19702 esac
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19705 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19706 with_gnu_ld=$lt_cv_prog_gnu_ld
19714 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19715 # archiving commands below assume that GNU ld is being used.
19716 if test "$with_gnu_ld" = yes; then
19717 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19718 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'
19720 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19723 # If archive_cmds runs LD, not CC, wlarc should be empty
19724 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19725 # investigate it a little bit more. (MM)
19726 wlarc='${wl}'
19728 # ancient GNU ld didn't support --whole-archive et. al.
19729 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19730 $GREP 'no-whole-archive' > /dev/null; then
19731 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19732 else
19733 whole_archive_flag_spec_CXX=
19735 else
19736 with_gnu_ld=no
19737 wlarc=
19739 # A generic and very simple default shared library creation
19740 # command for GNU C++ for the case where it uses the native
19741 # linker, instead of GNU ld. If possible, this setting should
19742 # overridden to take advantage of the native linker features on
19743 # the platform it is being used on.
19744 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19747 # Commands to make compiler produce verbose output that lists
19748 # what "hidden" libraries, object files and flags are used when
19749 # linking a shared library.
19750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19752 else
19753 GXX=no
19754 with_gnu_ld=no
19755 wlarc=
19758 # PORTME: fill in a description of your system's C++ link characteristics
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19760 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19761 ld_shlibs_CXX=yes
19762 case $host_os in
19763 aix3*)
19764 # FIXME: insert proper C++ library support
19765 ld_shlibs_CXX=no
19767 aix[4-9]*)
19768 if test "$host_cpu" = ia64; then
19769 # On IA64, the linker does run time linking by default, so we don't
19770 # have to do anything special.
19771 aix_use_runtimelinking=no
19772 exp_sym_flag='-Bexport'
19773 no_entry_flag=""
19774 else
19775 aix_use_runtimelinking=no
19777 # Test if we are trying to use run time linking or normal
19778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19779 # need to do runtime linking.
19780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19781 for ld_flag in $LDFLAGS; do
19782 case $ld_flag in
19783 *-brtl*)
19784 aix_use_runtimelinking=yes
19785 break
19787 esac
19788 done
19790 esac
19792 exp_sym_flag='-bexport'
19793 no_entry_flag='-bnoentry'
19796 # When large executables or shared objects are built, AIX ld can
19797 # have problems creating the table of contents. If linking a library
19798 # or program results in "error TOC overflow" add -mminimal-toc to
19799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19802 archive_cmds_CXX=''
19803 hardcode_direct_CXX=yes
19804 hardcode_direct_absolute_CXX=yes
19805 hardcode_libdir_separator_CXX=':'
19806 link_all_deplibs_CXX=yes
19807 file_list_spec_CXX='${wl}-f,'
19809 if test "$GXX" = yes; then
19810 case $host_os in aix4.[012]|aix4.[012].*)
19811 # We only want to do this on AIX 4.2 and lower, the check
19812 # below for broken collect2 doesn't work under 4.3+
19813 collect2name=`${CC} -print-prog-name=collect2`
19814 if test -f "$collect2name" &&
19815 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19816 then
19817 # We have reworked collect2
19819 else
19820 # We have old collect2
19821 hardcode_direct_CXX=unsupported
19822 # It fails to find uninstalled libraries when the uninstalled
19823 # path is not listed in the libpath. Setting hardcode_minus_L
19824 # to unsupported forces relinking
19825 hardcode_minus_L_CXX=yes
19826 hardcode_libdir_flag_spec_CXX='-L$libdir'
19827 hardcode_libdir_separator_CXX=
19829 esac
19830 shared_flag='-shared'
19831 if test "$aix_use_runtimelinking" = yes; then
19832 shared_flag="$shared_flag "'${wl}-G'
19834 else
19835 # not using gcc
19836 if test "$host_cpu" = ia64; then
19837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19838 # chokes on -Wl,-G. The following line is correct:
19839 shared_flag='-G'
19840 else
19841 if test "$aix_use_runtimelinking" = yes; then
19842 shared_flag='${wl}-G'
19843 else
19844 shared_flag='${wl}-bM:SRE'
19849 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19850 # It seems that -bexpall does not export symbols beginning with
19851 # underscore (_), so it is better to generate a list of symbols to
19852 # export.
19853 always_export_symbols_CXX=yes
19854 if test "$aix_use_runtimelinking" = yes; then
19855 # Warning - without using the other runtime loading flags (-brtl),
19856 # -berok will link without error, but may produce a broken library.
19857 allow_undefined_flag_CXX='-berok'
19858 # Determine the default libpath from the value encoded in an empty
19859 # executable.
19860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19861 /* end confdefs.h. */
19864 main ()
19868 return 0;
19870 _ACEOF
19871 if ac_fn_cxx_try_link "$LINENO"; then :
19873 lt_aix_libpath_sed='
19874 /Import File Strings/,/^$/ {
19875 /^0/ {
19876 s/^0 *\(.*\)$/\1/
19880 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19881 # Check for a 64-bit object if we didn't find anything.
19882 if test -z "$aix_libpath"; then
19883 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19886 rm -f core conftest.err conftest.$ac_objext \
19887 conftest$ac_exeext conftest.$ac_ext
19888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19890 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19892 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"
19893 else
19894 if test "$host_cpu" = ia64; then
19895 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19896 allow_undefined_flag_CXX="-z nodefs"
19897 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"
19898 else
19899 # Determine the default libpath from the value encoded in an
19900 # empty executable.
19901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19902 /* end confdefs.h. */
19905 main ()
19909 return 0;
19911 _ACEOF
19912 if ac_fn_cxx_try_link "$LINENO"; then :
19914 lt_aix_libpath_sed='
19915 /Import File Strings/,/^$/ {
19916 /^0/ {
19917 s/^0 *\(.*\)$/\1/
19921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19922 # Check for a 64-bit object if we didn't find anything.
19923 if test -z "$aix_libpath"; then
19924 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19927 rm -f core conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19931 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19932 # Warning - without using the other run time loading flags,
19933 # -berok will link without error, but may produce a broken library.
19934 no_undefined_flag_CXX=' ${wl}-bernotok'
19935 allow_undefined_flag_CXX=' ${wl}-berok'
19936 if test "$with_gnu_ld" = yes; then
19937 # We only use this code for GNU lds that support --whole-archive.
19938 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19939 else
19940 # Exported symbols can be pulled into shared objects from archives
19941 whole_archive_flag_spec_CXX='$convenience'
19943 archive_cmds_need_lc_CXX=yes
19944 # This is similar to how AIX traditionally builds its shared
19945 # libraries.
19946 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'
19951 beos*)
19952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19953 allow_undefined_flag_CXX=unsupported
19954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19955 # support --undefined. This deserves some investigation. FIXME
19956 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19957 else
19958 ld_shlibs_CXX=no
19962 chorus*)
19963 case $cc_basename in
19965 # FIXME: insert proper C++ library support
19966 ld_shlibs_CXX=no
19968 esac
19971 cygwin* | mingw* | pw32* | cegcc*)
19972 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19973 # as there is no search path for DLLs.
19974 hardcode_libdir_flag_spec_CXX='-L$libdir'
19975 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19976 allow_undefined_flag_CXX=unsupported
19977 always_export_symbols_CXX=no
19978 enable_shared_with_static_runtimes_CXX=yes
19980 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19981 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'
19982 # If the export-symbols file already is a .def file (1st line
19983 # is EXPORTS), use it as is; otherwise, prepend...
19984 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19985 cp $export_symbols $output_objdir/$soname.def;
19986 else
19987 echo EXPORTS > $output_objdir/$soname.def;
19988 cat $export_symbols >> $output_objdir/$soname.def;
19990 $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'
19991 else
19992 ld_shlibs_CXX=no
19995 darwin* | rhapsody*)
19998 archive_cmds_need_lc_CXX=no
19999 hardcode_direct_CXX=no
20000 hardcode_automatic_CXX=yes
20001 hardcode_shlibpath_var_CXX=unsupported
20002 if test "$lt_cv_ld_force_load" = "yes"; then
20003 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\"`'
20004 else
20005 whole_archive_flag_spec_CXX=''
20007 link_all_deplibs_CXX=yes
20008 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20009 case $cc_basename in
20010 ifort*) _lt_dar_can_shared=yes ;;
20011 *) _lt_dar_can_shared=$GCC ;;
20012 esac
20013 if test "$_lt_dar_can_shared" = "yes"; then
20014 output_verbose_link_cmd=func_echo_all
20015 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}"
20016 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20017 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}"
20018 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}"
20019 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20020 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}"
20021 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}"
20024 else
20025 ld_shlibs_CXX=no
20030 dgux*)
20031 case $cc_basename in
20032 ec++*)
20033 # FIXME: insert proper C++ library support
20034 ld_shlibs_CXX=no
20036 ghcx*)
20037 # Green Hills C++ Compiler
20038 # FIXME: insert proper C++ library support
20039 ld_shlibs_CXX=no
20042 # FIXME: insert proper C++ library support
20043 ld_shlibs_CXX=no
20045 esac
20048 freebsd2.*)
20049 # C++ shared libraries reported to be fairly broken before
20050 # switch to ELF
20051 ld_shlibs_CXX=no
20054 freebsd-elf*)
20055 archive_cmds_need_lc_CXX=no
20058 freebsd* | dragonfly*)
20059 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20060 # conventions
20061 ld_shlibs_CXX=yes
20064 gnu*)
20067 haiku*)
20068 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20069 link_all_deplibs_CXX=yes
20072 hpux9*)
20073 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20074 hardcode_libdir_separator_CXX=:
20075 export_dynamic_flag_spec_CXX='${wl}-E'
20076 hardcode_direct_CXX=yes
20077 hardcode_minus_L_CXX=yes # Not in the search PATH,
20078 # but as the default
20079 # location of the library.
20081 case $cc_basename in
20082 CC*)
20083 # FIXME: insert proper C++ library support
20084 ld_shlibs_CXX=no
20086 aCC*)
20087 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'
20088 # Commands to make compiler produce verbose output that lists
20089 # what "hidden" libraries, object files and flags are used when
20090 # linking a shared library.
20092 # There doesn't appear to be a way to prevent this compiler from
20093 # explicitly linking system object files so we need to strip them
20094 # from the output so that they don't get included in the library
20095 # dependencies.
20096 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"'
20099 if test "$GXX" = yes; then
20100 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'
20101 else
20102 # FIXME: insert proper C++ library support
20103 ld_shlibs_CXX=no
20106 esac
20109 hpux10*|hpux11*)
20110 if test $with_gnu_ld = no; then
20111 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20112 hardcode_libdir_separator_CXX=:
20114 case $host_cpu in
20115 hppa*64*|ia64*)
20118 export_dynamic_flag_spec_CXX='${wl}-E'
20120 esac
20122 case $host_cpu in
20123 hppa*64*|ia64*)
20124 hardcode_direct_CXX=no
20125 hardcode_shlibpath_var_CXX=no
20128 hardcode_direct_CXX=yes
20129 hardcode_direct_absolute_CXX=yes
20130 hardcode_minus_L_CXX=yes # Not in the search PATH,
20131 # but as the default
20132 # location of the library.
20134 esac
20136 case $cc_basename in
20137 CC*)
20138 # FIXME: insert proper C++ library support
20139 ld_shlibs_CXX=no
20141 aCC*)
20142 case $host_cpu in
20143 hppa*64*)
20144 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20146 ia64*)
20147 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20150 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20152 esac
20153 # Commands to make compiler produce verbose output that lists
20154 # what "hidden" libraries, object files and flags are used when
20155 # linking a shared library.
20157 # There doesn't appear to be a way to prevent this compiler from
20158 # explicitly linking system object files so we need to strip them
20159 # from the output so that they don't get included in the library
20160 # dependencies.
20161 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"'
20164 if test "$GXX" = yes; then
20165 if test $with_gnu_ld = no; then
20166 case $host_cpu in
20167 hppa*64*)
20168 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20170 ia64*)
20171 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20174 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'
20176 esac
20178 else
20179 # FIXME: insert proper C++ library support
20180 ld_shlibs_CXX=no
20183 esac
20186 interix[3-9]*)
20187 hardcode_direct_CXX=no
20188 hardcode_shlibpath_var_CXX=no
20189 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20190 export_dynamic_flag_spec_CXX='${wl}-E'
20191 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20192 # Instead, shared libraries are loaded at an image base (0x10000000 by
20193 # default) and relocated if they conflict, which is a slow very memory
20194 # consuming and fragmenting process. To avoid this, we pick a random,
20195 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20196 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20197 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'
20198 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'
20200 irix5* | irix6*)
20201 case $cc_basename in
20202 CC*)
20203 # SGI C++
20204 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'
20206 # Archives containing C++ object files must be created using
20207 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20208 # necessary to make sure instantiated templates are included
20209 # in the archive.
20210 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20213 if test "$GXX" = yes; then
20214 if test "$with_gnu_ld" = no; then
20215 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'
20216 else
20217 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'
20220 link_all_deplibs_CXX=yes
20222 esac
20223 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20224 hardcode_libdir_separator_CXX=:
20225 inherit_rpath_CXX=yes
20228 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20229 case $cc_basename in
20230 KCC*)
20231 # Kuck and Associates, Inc. (KAI) C++ Compiler
20233 # KCC will only create a shared library if the output file
20234 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20235 # to its proper name (with version) after linking.
20236 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'
20237 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'
20238 # Commands to make compiler produce verbose output that lists
20239 # what "hidden" libraries, object files and flags are used when
20240 # linking a shared library.
20242 # There doesn't appear to be a way to prevent this compiler from
20243 # explicitly linking system object files so we need to strip them
20244 # from the output so that they don't get included in the library
20245 # dependencies.
20246 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"'
20248 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20249 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20251 # Archives containing C++ object files must be created using
20252 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20253 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20255 icpc* | ecpc* )
20256 # Intel C++
20257 with_gnu_ld=yes
20258 # version 8.0 and above of icpc choke on multiply defined symbols
20259 # if we add $predep_objects and $postdep_objects, however 7.1 and
20260 # earlier do not add the objects themselves.
20261 case `$CC -V 2>&1` in
20262 *"Version 7."*)
20263 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20264 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'
20266 *) # Version 8.0 or newer
20267 tmp_idyn=
20268 case $host_cpu in
20269 ia64*) tmp_idyn=' -i_dynamic';;
20270 esac
20271 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20272 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'
20274 esac
20275 archive_cmds_need_lc_CXX=no
20276 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20277 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20278 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20280 pgCC* | pgcpp*)
20281 # Portland Group C++ compiler
20282 case `$CC -V` in
20283 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20284 prelink_cmds_CXX='tpldir=Template.dir~
20285 rm -rf $tpldir~
20286 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20287 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20288 old_archive_cmds_CXX='tpldir=Template.dir~
20289 rm -rf $tpldir~
20290 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20291 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20292 $RANLIB $oldlib'
20293 archive_cmds_CXX='tpldir=Template.dir~
20294 rm -rf $tpldir~
20295 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20296 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20297 archive_expsym_cmds_CXX='tpldir=Template.dir~
20298 rm -rf $tpldir~
20299 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20300 $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'
20302 *) # Version 6 and above use weak symbols
20303 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20304 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'
20306 esac
20308 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20309 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20310 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'
20312 cxx*)
20313 # Compaq C++
20314 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20315 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'
20317 runpath_var=LD_RUN_PATH
20318 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20319 hardcode_libdir_separator_CXX=:
20321 # Commands to make compiler produce verbose output that lists
20322 # what "hidden" libraries, object files and flags are used when
20323 # linking a shared library.
20325 # There doesn't appear to be a way to prevent this compiler from
20326 # explicitly linking system object files so we need to strip them
20327 # from the output so that they don't get included in the library
20328 # dependencies.
20329 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'
20331 xl* | mpixl* | bgxl*)
20332 # IBM XL 8.0 on PPC, with GNU ld
20333 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20334 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20335 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20336 if test "x$supports_anon_versioning" = xyes; then
20337 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20339 echo "local: *; };" >> $output_objdir/$libname.ver~
20340 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20344 case `$CC -V 2>&1 | sed 5q` in
20345 *Sun\ C*)
20346 # Sun C++ 5.9
20347 no_undefined_flag_CXX=' -zdefs'
20348 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20349 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'
20350 hardcode_libdir_flag_spec_CXX='-R$libdir'
20351 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'
20352 compiler_needs_object_CXX=yes
20354 # Not sure whether something based on
20355 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20356 # would be better.
20357 output_verbose_link_cmd='func_echo_all'
20359 # Archives containing C++ object files must be created using
20360 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20361 # necessary to make sure instantiated templates are included
20362 # in the archive.
20363 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20365 esac
20367 esac
20370 lynxos*)
20371 # FIXME: insert proper C++ library support
20372 ld_shlibs_CXX=no
20375 m88k*)
20376 # FIXME: insert proper C++ library support
20377 ld_shlibs_CXX=no
20380 mvs*)
20381 case $cc_basename in
20382 cxx*)
20383 # FIXME: insert proper C++ library support
20384 ld_shlibs_CXX=no
20387 # FIXME: insert proper C++ library support
20388 ld_shlibs_CXX=no
20390 esac
20393 netbsd*)
20394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20395 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20396 wlarc=
20397 hardcode_libdir_flag_spec_CXX='-R$libdir'
20398 hardcode_direct_CXX=yes
20399 hardcode_shlibpath_var_CXX=no
20401 # Workaround some broken pre-1.5 toolchains
20402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20405 *nto* | *qnx*)
20406 ld_shlibs_CXX=yes
20409 openbsd2*)
20410 # C++ shared libraries are fairly broken
20411 ld_shlibs_CXX=no
20414 openbsd*)
20415 if test -f /usr/libexec/ld.so; then
20416 hardcode_direct_CXX=yes
20417 hardcode_shlibpath_var_CXX=no
20418 hardcode_direct_absolute_CXX=yes
20419 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20422 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20423 export_dynamic_flag_spec_CXX='${wl}-E'
20424 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20426 output_verbose_link_cmd=func_echo_all
20427 else
20428 ld_shlibs_CXX=no
20432 osf3* | osf4* | osf5*)
20433 case $cc_basename in
20434 KCC*)
20435 # Kuck and Associates, Inc. (KAI) C++ Compiler
20437 # KCC will only create a shared library if the output file
20438 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20439 # to its proper name (with version) after linking.
20440 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'
20442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20443 hardcode_libdir_separator_CXX=:
20445 # Archives containing C++ object files must be created using
20446 # the KAI C++ compiler.
20447 case $host in
20448 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20449 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20450 esac
20452 RCC*)
20453 # Rational C++ 2.4.1
20454 # FIXME: insert proper C++ library support
20455 ld_shlibs_CXX=no
20457 cxx*)
20458 case $host in
20459 osf3*)
20460 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20461 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'
20462 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20465 allow_undefined_flag_CXX=' -expect_unresolved \*'
20466 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'
20467 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20468 echo "-hidden">> $lib.exp~
20469 $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~
20470 $RM $lib.exp'
20471 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20473 esac
20475 hardcode_libdir_separator_CXX=:
20477 # Commands to make compiler produce verbose output that lists
20478 # what "hidden" libraries, object files and flags are used when
20479 # linking a shared library.
20481 # There doesn't appear to be a way to prevent this compiler from
20482 # explicitly linking system object files so we need to strip them
20483 # from the output so that they don't get included in the library
20484 # dependencies.
20485 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"'
20488 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20489 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20490 case $host in
20491 osf3*)
20492 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'
20495 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'
20497 esac
20499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20500 hardcode_libdir_separator_CXX=:
20502 # Commands to make compiler produce verbose output that lists
20503 # what "hidden" libraries, object files and flags are used when
20504 # linking a shared library.
20505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20507 else
20508 # FIXME: insert proper C++ library support
20509 ld_shlibs_CXX=no
20512 esac
20515 psos*)
20516 # FIXME: insert proper C++ library support
20517 ld_shlibs_CXX=no
20520 sunos4*)
20521 case $cc_basename in
20522 CC*)
20523 # Sun C++ 4.x
20524 # FIXME: insert proper C++ library support
20525 ld_shlibs_CXX=no
20527 lcc*)
20528 # Lucid
20529 # FIXME: insert proper C++ library support
20530 ld_shlibs_CXX=no
20533 # FIXME: insert proper C++ library support
20534 ld_shlibs_CXX=no
20536 esac
20539 solaris*)
20540 case $cc_basename in
20541 CC*)
20542 # Sun C++ 4.2, 5.x and Centerline C++
20543 archive_cmds_need_lc_CXX=yes
20544 no_undefined_flag_CXX=' -zdefs'
20545 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20546 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20547 $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'
20549 hardcode_libdir_flag_spec_CXX='-R$libdir'
20550 hardcode_shlibpath_var_CXX=no
20551 case $host_os in
20552 solaris2.[0-5] | solaris2.[0-5].*) ;;
20554 # The compiler driver will combine and reorder linker options,
20555 # but understands `-z linker_flag'.
20556 # Supported since Solaris 2.6 (maybe 2.5.1?)
20557 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20559 esac
20560 link_all_deplibs_CXX=yes
20562 output_verbose_link_cmd='func_echo_all'
20564 # Archives containing C++ object files must be created using
20565 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20566 # necessary to make sure instantiated templates are included
20567 # in the archive.
20568 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20570 gcx*)
20571 # Green Hills C++ Compiler
20572 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20574 # The C++ compiler must be used to create the archive.
20575 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20578 # GNU C++ compiler with Solaris linker
20579 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20580 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20581 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20582 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20583 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20584 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20586 # Commands to make compiler produce verbose output that lists
20587 # what "hidden" libraries, object files and flags are used when
20588 # linking a shared library.
20589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20590 else
20591 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20592 # platform.
20593 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20594 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20595 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20597 # Commands to make compiler produce verbose output that lists
20598 # what "hidden" libraries, object files and flags are used when
20599 # linking a shared library.
20600 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20603 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20604 case $host_os in
20605 solaris2.[0-5] | solaris2.[0-5].*) ;;
20607 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20609 esac
20612 esac
20615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20616 no_undefined_flag_CXX='${wl}-z,text'
20617 archive_cmds_need_lc_CXX=no
20618 hardcode_shlibpath_var_CXX=no
20619 runpath_var='LD_RUN_PATH'
20621 case $cc_basename in
20622 CC*)
20623 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20624 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20627 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20628 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20630 esac
20633 sysv5* | sco3.2v5* | sco5v6*)
20634 # Note: We can NOT use -z defs as we might desire, because we do not
20635 # link with -lc, and that would cause any symbols used from libc to
20636 # always be unresolved, which means just about no library would
20637 # ever link correctly. If we're not using GNU ld we use -z text
20638 # though, which does catch some bad symbols but isn't as heavy-handed
20639 # as -z defs.
20640 no_undefined_flag_CXX='${wl}-z,text'
20641 allow_undefined_flag_CXX='${wl}-z,nodefs'
20642 archive_cmds_need_lc_CXX=no
20643 hardcode_shlibpath_var_CXX=no
20644 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20645 hardcode_libdir_separator_CXX=':'
20646 link_all_deplibs_CXX=yes
20647 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20648 runpath_var='LD_RUN_PATH'
20650 case $cc_basename in
20651 CC*)
20652 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20653 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20654 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20655 '"$old_archive_cmds_CXX"
20656 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20657 '"$reload_cmds_CXX"
20660 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20661 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20663 esac
20666 tandem*)
20667 case $cc_basename in
20668 NCC*)
20669 # NonStop-UX NCC 3.20
20670 # FIXME: insert proper C++ library support
20671 ld_shlibs_CXX=no
20674 # FIXME: insert proper C++ library support
20675 ld_shlibs_CXX=no
20677 esac
20680 vxworks*)
20681 # FIXME: insert proper C++ library support
20682 ld_shlibs_CXX=no
20686 # FIXME: insert proper C++ library support
20687 ld_shlibs_CXX=no
20689 esac
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20692 $as_echo "$ld_shlibs_CXX" >&6; }
20693 test "$ld_shlibs_CXX" = no && can_build_shared=no
20695 GCC_CXX="$GXX"
20696 LD_CXX="$LD"
20698 ## CAVEAT EMPTOR:
20699 ## There is no encapsulation within the following macros, do not change
20700 ## the running order or otherwise move them around unless you know exactly
20701 ## what you are doing...
20702 # Dependencies to place before and after the object being linked:
20703 predep_objects_CXX=
20704 postdep_objects_CXX=
20705 predeps_CXX=
20706 postdeps_CXX=
20707 compiler_lib_search_path_CXX=
20709 cat > conftest.$ac_ext <<_LT_EOF
20710 class Foo
20712 public:
20713 Foo (void) { a = 0; }
20714 private:
20715 int a;
20717 _LT_EOF
20719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20720 (eval $ac_compile) 2>&5
20721 ac_status=$?
20722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20723 test $ac_status = 0; }; then
20724 # Parse the compiler output and extract the necessary
20725 # objects, libraries and library flags.
20727 # Sentinel used to keep track of whether or not we are before
20728 # the conftest object file.
20729 pre_test_object_deps_done=no
20731 for p in `eval "$output_verbose_link_cmd"`; do
20732 case $p in
20734 -L* | -R* | -l*)
20735 # Some compilers place space between "-{L,R}" and the path.
20736 # Remove the space.
20737 if test $p = "-L" ||
20738 test $p = "-R"; then
20739 prev=$p
20740 continue
20741 else
20742 prev=
20745 if test "$pre_test_object_deps_done" = no; then
20746 case $p in
20747 -L* | -R*)
20748 # Internal compiler library paths should come after those
20749 # provided the user. The postdeps already come after the
20750 # user supplied libs so there is no need to process them.
20751 if test -z "$compiler_lib_search_path_CXX"; then
20752 compiler_lib_search_path_CXX="${prev}${p}"
20753 else
20754 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20757 # The "-l" case would never come before the object being
20758 # linked, so don't bother handling this case.
20759 esac
20760 else
20761 if test -z "$postdeps_CXX"; then
20762 postdeps_CXX="${prev}${p}"
20763 else
20764 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20769 *.$objext)
20770 # This assumes that the test object file only shows up
20771 # once in the compiler output.
20772 if test "$p" = "conftest.$objext"; then
20773 pre_test_object_deps_done=yes
20774 continue
20777 if test "$pre_test_object_deps_done" = no; then
20778 if test -z "$predep_objects_CXX"; then
20779 predep_objects_CXX="$p"
20780 else
20781 predep_objects_CXX="$predep_objects_CXX $p"
20783 else
20784 if test -z "$postdep_objects_CXX"; then
20785 postdep_objects_CXX="$p"
20786 else
20787 postdep_objects_CXX="$postdep_objects_CXX $p"
20792 *) ;; # Ignore the rest.
20794 esac
20795 done
20797 # Clean up.
20798 rm -f a.out a.exe
20799 else
20800 echo "libtool.m4: error: problem compiling CXX test program"
20803 $RM -f confest.$objext
20805 # PORTME: override above test on systems where it is broken
20806 case $host_os in
20807 interix[3-9]*)
20808 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20809 # hack all around it, let's just trust "g++" to DTRT.
20810 predep_objects_CXX=
20811 postdep_objects_CXX=
20812 postdeps_CXX=
20815 linux*)
20816 case `$CC -V 2>&1 | sed 5q` in
20817 *Sun\ C*)
20818 # Sun C++ 5.9
20820 # The more standards-conforming stlport4 library is
20821 # incompatible with the Cstd library. Avoid specifying
20822 # it if it's in CXXFLAGS. Ignore libCrun as
20823 # -library=stlport4 depends on it.
20824 case " $CXX $CXXFLAGS " in
20825 *" -library=stlport4 "*)
20826 solaris_use_stlport4=yes
20828 esac
20830 if test "$solaris_use_stlport4" != yes; then
20831 postdeps_CXX='-library=Cstd -library=Crun'
20834 esac
20837 solaris*)
20838 case $cc_basename in
20839 CC*)
20840 # The more standards-conforming stlport4 library is
20841 # incompatible with the Cstd library. Avoid specifying
20842 # it if it's in CXXFLAGS. Ignore libCrun as
20843 # -library=stlport4 depends on it.
20844 case " $CXX $CXXFLAGS " in
20845 *" -library=stlport4 "*)
20846 solaris_use_stlport4=yes
20848 esac
20850 # Adding this requires a known-good setup of shared libraries for
20851 # Sun compiler versions before 5.6, else PIC objects from an old
20852 # archive will be linked into the output, leading to subtle bugs.
20853 if test "$solaris_use_stlport4" != yes; then
20854 postdeps_CXX='-library=Cstd -library=Crun'
20857 esac
20859 esac
20862 case " $postdeps_CXX " in
20863 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20864 esac
20865 compiler_lib_search_dirs_CXX=
20866 if test -n "${compiler_lib_search_path_CXX}"; then
20867 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20900 lt_prog_compiler_wl_CXX=
20901 lt_prog_compiler_pic_CXX=
20902 lt_prog_compiler_static_CXX=
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20905 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20907 # C++ specific cases for pic, static, wl, etc.
20908 if test "$GXX" = yes; then
20909 lt_prog_compiler_wl_CXX='-Wl,'
20910 lt_prog_compiler_static_CXX='-static'
20912 case $host_os in
20913 aix*)
20914 # All AIX code is PIC.
20915 if test "$host_cpu" = ia64; then
20916 # AIX 5 now supports IA64 processor
20917 lt_prog_compiler_static_CXX='-Bstatic'
20919 lt_prog_compiler_pic_CXX='-fPIC'
20922 amigaos*)
20923 case $host_cpu in
20924 powerpc)
20925 # see comment about AmigaOS4 .so support
20926 lt_prog_compiler_pic_CXX='-fPIC'
20928 m68k)
20929 # FIXME: we need at least 68020 code to build shared libraries, but
20930 # adding the `-m68020' flag to GCC prevents building anything better,
20931 # like `-m68040'.
20932 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20934 esac
20937 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20938 # PIC is the default for these OSes.
20940 mingw* | cygwin* | os2* | pw32* | cegcc*)
20941 # This hack is so that the source file can tell whether it is being
20942 # built for inclusion in a dll (and should export symbols for example).
20943 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20944 # (--disable-auto-import) libraries
20945 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20947 darwin* | rhapsody*)
20948 # PIC is the default on this platform
20949 # Common symbols not allowed in MH_DYLIB files
20950 lt_prog_compiler_pic_CXX='-fno-common'
20952 *djgpp*)
20953 # DJGPP does not support shared libraries at all
20954 lt_prog_compiler_pic_CXX=
20956 haiku*)
20957 # PIC is the default for Haiku.
20958 # The "-static" flag exists, but is broken.
20959 lt_prog_compiler_static_CXX=
20961 interix[3-9]*)
20962 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20963 # Instead, we relocate shared libraries at runtime.
20965 sysv4*MP*)
20966 if test -d /usr/nec; then
20967 lt_prog_compiler_pic_CXX=-Kconform_pic
20970 hpux*)
20971 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20972 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20973 # sets the default TLS model and affects inlining.
20974 case $host_cpu in
20975 hppa*64*)
20978 lt_prog_compiler_pic_CXX='-fPIC'
20980 esac
20982 *qnx* | *nto*)
20983 # QNX uses GNU C++, but need to define -shared option too, otherwise
20984 # it will coredump.
20985 lt_prog_compiler_pic_CXX='-fPIC -shared'
20988 lt_prog_compiler_pic_CXX='-fPIC'
20990 esac
20991 else
20992 case $host_os in
20993 aix[4-9]*)
20994 # All AIX code is PIC.
20995 if test "$host_cpu" = ia64; then
20996 # AIX 5 now supports IA64 processor
20997 lt_prog_compiler_static_CXX='-Bstatic'
20998 else
20999 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21002 chorus*)
21003 case $cc_basename in
21004 cxch68*)
21005 # Green Hills C++ Compiler
21006 # _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"
21008 esac
21010 dgux*)
21011 case $cc_basename in
21012 ec++*)
21013 lt_prog_compiler_pic_CXX='-KPIC'
21015 ghcx*)
21016 # Green Hills C++ Compiler
21017 lt_prog_compiler_pic_CXX='-pic'
21021 esac
21023 freebsd* | dragonfly*)
21024 # FreeBSD uses GNU C++
21026 hpux9* | hpux10* | hpux11*)
21027 case $cc_basename in
21028 CC*)
21029 lt_prog_compiler_wl_CXX='-Wl,'
21030 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21031 if test "$host_cpu" != ia64; then
21032 lt_prog_compiler_pic_CXX='+Z'
21035 aCC*)
21036 lt_prog_compiler_wl_CXX='-Wl,'
21037 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21038 case $host_cpu in
21039 hppa*64*|ia64*)
21040 # +Z the default
21043 lt_prog_compiler_pic_CXX='+Z'
21045 esac
21049 esac
21051 interix*)
21052 # This is c89, which is MS Visual C++ (no shared libs)
21053 # Anyone wants to do a port?
21055 irix5* | irix6* | nonstopux*)
21056 case $cc_basename in
21057 CC*)
21058 lt_prog_compiler_wl_CXX='-Wl,'
21059 lt_prog_compiler_static_CXX='-non_shared'
21060 # CC pic flag -KPIC is the default.
21064 esac
21066 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21067 case $cc_basename in
21068 KCC*)
21069 # KAI C++ Compiler
21070 lt_prog_compiler_wl_CXX='--backend -Wl,'
21071 lt_prog_compiler_pic_CXX='-fPIC'
21073 ecpc* )
21074 # old Intel C++ for x86_64 which still supported -KPIC.
21075 lt_prog_compiler_wl_CXX='-Wl,'
21076 lt_prog_compiler_pic_CXX='-KPIC'
21077 lt_prog_compiler_static_CXX='-static'
21079 icpc* )
21080 # Intel C++, used to be incompatible with GCC.
21081 # ICC 10 doesn't accept -KPIC any more.
21082 lt_prog_compiler_wl_CXX='-Wl,'
21083 lt_prog_compiler_pic_CXX='-fPIC'
21084 lt_prog_compiler_static_CXX='-static'
21086 pgCC* | pgcpp*)
21087 # Portland Group C++ compiler
21088 lt_prog_compiler_wl_CXX='-Wl,'
21089 lt_prog_compiler_pic_CXX='-fpic'
21090 lt_prog_compiler_static_CXX='-Bstatic'
21092 cxx*)
21093 # Compaq C++
21094 # Make sure the PIC flag is empty. It appears that all Alpha
21095 # Linux and Compaq Tru64 Unix objects are PIC.
21096 lt_prog_compiler_pic_CXX=
21097 lt_prog_compiler_static_CXX='-non_shared'
21099 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21100 # IBM XL 8.0, 9.0 on PPC and BlueGene
21101 lt_prog_compiler_wl_CXX='-Wl,'
21102 lt_prog_compiler_pic_CXX='-qpic'
21103 lt_prog_compiler_static_CXX='-qstaticlink'
21106 case `$CC -V 2>&1 | sed 5q` in
21107 *Sun\ C*)
21108 # Sun C++ 5.9
21109 lt_prog_compiler_pic_CXX='-KPIC'
21110 lt_prog_compiler_static_CXX='-Bstatic'
21111 lt_prog_compiler_wl_CXX='-Qoption ld '
21113 esac
21115 esac
21117 lynxos*)
21119 m88k*)
21121 mvs*)
21122 case $cc_basename in
21123 cxx*)
21124 lt_prog_compiler_pic_CXX='-W c,exportall'
21128 esac
21130 netbsd*)
21132 *qnx* | *nto*)
21133 # QNX uses GNU C++, but need to define -shared option too, otherwise
21134 # it will coredump.
21135 lt_prog_compiler_pic_CXX='-fPIC -shared'
21137 osf3* | osf4* | osf5*)
21138 case $cc_basename in
21139 KCC*)
21140 lt_prog_compiler_wl_CXX='--backend -Wl,'
21142 RCC*)
21143 # Rational C++ 2.4.1
21144 lt_prog_compiler_pic_CXX='-pic'
21146 cxx*)
21147 # Digital/Compaq C++
21148 lt_prog_compiler_wl_CXX='-Wl,'
21149 # Make sure the PIC flag is empty. It appears that all Alpha
21150 # Linux and Compaq Tru64 Unix objects are PIC.
21151 lt_prog_compiler_pic_CXX=
21152 lt_prog_compiler_static_CXX='-non_shared'
21156 esac
21158 psos*)
21160 solaris*)
21161 case $cc_basename in
21162 CC*)
21163 # Sun C++ 4.2, 5.x and Centerline C++
21164 lt_prog_compiler_pic_CXX='-KPIC'
21165 lt_prog_compiler_static_CXX='-Bstatic'
21166 lt_prog_compiler_wl_CXX='-Qoption ld '
21168 gcx*)
21169 # Green Hills C++ Compiler
21170 lt_prog_compiler_pic_CXX='-PIC'
21174 esac
21176 sunos4*)
21177 case $cc_basename in
21178 CC*)
21179 # Sun C++ 4.x
21180 lt_prog_compiler_pic_CXX='-pic'
21181 lt_prog_compiler_static_CXX='-Bstatic'
21183 lcc*)
21184 # Lucid
21185 lt_prog_compiler_pic_CXX='-pic'
21189 esac
21191 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21192 case $cc_basename in
21193 CC*)
21194 lt_prog_compiler_wl_CXX='-Wl,'
21195 lt_prog_compiler_pic_CXX='-KPIC'
21196 lt_prog_compiler_static_CXX='-Bstatic'
21198 esac
21200 tandem*)
21201 case $cc_basename in
21202 NCC*)
21203 # NonStop-UX NCC 3.20
21204 lt_prog_compiler_pic_CXX='-KPIC'
21208 esac
21210 vxworks*)
21213 lt_prog_compiler_can_build_shared_CXX=no
21215 esac
21218 case $host_os in
21219 # For platforms which do not support PIC, -DPIC is meaningless:
21220 *djgpp*)
21221 lt_prog_compiler_pic_CXX=
21224 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21226 esac
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21228 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21233 # Check to make sure the PIC flag actually works.
21235 if test -n "$lt_prog_compiler_pic_CXX"; then
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21237 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21238 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21239 $as_echo_n "(cached) " >&6
21240 else
21241 lt_cv_prog_compiler_pic_works_CXX=no
21242 ac_outfile=conftest.$ac_objext
21243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21244 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21245 # Insert the option either (1) after the last *FLAGS variable, or
21246 # (2) before a word containing "conftest.", or (3) at the end.
21247 # Note that $ac_compile itself does not contain backslashes and begins
21248 # with a dollar sign (not a hyphen), so the echo should work correctly.
21249 # The option is referenced via a variable to avoid confusing sed.
21250 lt_compile=`echo "$ac_compile" | $SED \
21251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21253 -e 's:$: $lt_compiler_flag:'`
21254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21255 (eval "$lt_compile" 2>conftest.err)
21256 ac_status=$?
21257 cat conftest.err >&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 if (exit $ac_status) && test -s "$ac_outfile"; then
21260 # The compiler can only warn and ignore the option if not recognized
21261 # So say no if there are warnings other than the usual output.
21262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21265 lt_cv_prog_compiler_pic_works_CXX=yes
21268 $RM conftest*
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21272 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21274 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21275 case $lt_prog_compiler_pic_CXX in
21276 "" | " "*) ;;
21277 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21278 esac
21279 else
21280 lt_prog_compiler_pic_CXX=
21281 lt_prog_compiler_can_build_shared_CXX=no
21289 # Check to make sure the static flag actually works.
21291 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21293 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21294 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21295 $as_echo_n "(cached) " >&6
21296 else
21297 lt_cv_prog_compiler_static_works_CXX=no
21298 save_LDFLAGS="$LDFLAGS"
21299 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21300 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21302 # The linker can only warn and ignore the option if not recognized
21303 # So say no if there are warnings
21304 if test -s conftest.err; then
21305 # Append any errors to the config.log.
21306 cat conftest.err 1>&5
21307 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21309 if diff conftest.exp conftest.er2 >/dev/null; then
21310 lt_cv_prog_compiler_static_works_CXX=yes
21312 else
21313 lt_cv_prog_compiler_static_works_CXX=yes
21316 $RM -r conftest*
21317 LDFLAGS="$save_LDFLAGS"
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21321 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21323 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21325 else
21326 lt_prog_compiler_static_CXX=
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21333 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21334 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21335 $as_echo_n "(cached) " >&6
21336 else
21337 lt_cv_prog_compiler_c_o_CXX=no
21338 $RM -r conftest 2>/dev/null
21339 mkdir conftest
21340 cd conftest
21341 mkdir out
21342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21344 lt_compiler_flag="-o out/conftest2.$ac_objext"
21345 # Insert the option either (1) after the last *FLAGS variable, or
21346 # (2) before a word containing "conftest.", or (3) at the end.
21347 # Note that $ac_compile itself does not contain backslashes and begins
21348 # with a dollar sign (not a hyphen), so the echo should work correctly.
21349 lt_compile=`echo "$ac_compile" | $SED \
21350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21352 -e 's:$: $lt_compiler_flag:'`
21353 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21354 (eval "$lt_compile" 2>out/conftest.err)
21355 ac_status=$?
21356 cat out/conftest.err >&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21359 then
21360 # The compiler can only warn and ignore the option if not recognized
21361 # So say no if there are warnings
21362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21365 lt_cv_prog_compiler_c_o_CXX=yes
21368 chmod u+w . 2>&5
21369 $RM conftest*
21370 # SGI C++ compiler will create directory out/ii_files/ for
21371 # template instantiation
21372 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21373 $RM out/* && rmdir out
21374 cd ..
21375 $RM -r conftest
21376 $RM conftest*
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21380 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21385 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21386 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21387 $as_echo_n "(cached) " >&6
21388 else
21389 lt_cv_prog_compiler_c_o_CXX=no
21390 $RM -r conftest 2>/dev/null
21391 mkdir conftest
21392 cd conftest
21393 mkdir out
21394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21396 lt_compiler_flag="-o out/conftest2.$ac_objext"
21397 # Insert the option either (1) after the last *FLAGS variable, or
21398 # (2) before a word containing "conftest.", or (3) at the end.
21399 # Note that $ac_compile itself does not contain backslashes and begins
21400 # with a dollar sign (not a hyphen), so the echo should work correctly.
21401 lt_compile=`echo "$ac_compile" | $SED \
21402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21404 -e 's:$: $lt_compiler_flag:'`
21405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21406 (eval "$lt_compile" 2>out/conftest.err)
21407 ac_status=$?
21408 cat out/conftest.err >&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21411 then
21412 # The compiler can only warn and ignore the option if not recognized
21413 # So say no if there are warnings
21414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21417 lt_cv_prog_compiler_c_o_CXX=yes
21420 chmod u+w . 2>&5
21421 $RM conftest*
21422 # SGI C++ compiler will create directory out/ii_files/ for
21423 # template instantiation
21424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21425 $RM out/* && rmdir out
21426 cd ..
21427 $RM -r conftest
21428 $RM conftest*
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21432 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21437 hard_links="nottested"
21438 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21439 # do not overwrite the value of need_locks provided by the user
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21441 $as_echo_n "checking if we can lock with hard links... " >&6; }
21442 hard_links=yes
21443 $RM conftest*
21444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21445 touch conftest.a
21446 ln conftest.a conftest.b 2>&5 || hard_links=no
21447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21449 $as_echo "$hard_links" >&6; }
21450 if test "$hard_links" = no; then
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21452 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21453 need_locks=warn
21455 else
21456 need_locks=no
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21462 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21464 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21465 case $host_os in
21466 aix[4-9]*)
21467 # If we're using GNU nm, then we don't want the "-C" option.
21468 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21469 # Also, AIX nm treats weak defined symbols like other global defined
21470 # symbols, whereas GNU nm marks them as "W".
21471 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21472 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'
21473 else
21474 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'
21477 pw32*)
21478 export_symbols_cmds_CXX="$ltdll_cmds"
21480 cygwin* | mingw* | cegcc*)
21481 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'
21484 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21486 esac
21487 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21490 $as_echo "$ld_shlibs_CXX" >&6; }
21491 test "$ld_shlibs_CXX" = no && can_build_shared=no
21493 with_gnu_ld_CXX=$with_gnu_ld
21501 # Do we need to explicitly link libc?
21503 case "x$archive_cmds_need_lc_CXX" in
21504 x|xyes)
21505 # Assume -lc should be added
21506 archive_cmds_need_lc_CXX=yes
21508 if test "$enable_shared" = yes && test "$GCC" = yes; then
21509 case $archive_cmds_CXX in
21510 *'~'*)
21511 # FIXME: we may have to deal with multi-command sequences.
21513 '$CC '*)
21514 # Test whether the compiler implicitly links with -lc since on some
21515 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21516 # to ld, don't add -lc before -lgcc.
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21518 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21519 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21520 $as_echo_n "(cached) " >&6
21521 else
21522 $RM conftest*
21523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21526 (eval $ac_compile) 2>&5
21527 ac_status=$?
21528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21529 test $ac_status = 0; } 2>conftest.err; then
21530 soname=conftest
21531 lib=conftest
21532 libobjs=conftest.$ac_objext
21533 deplibs=
21534 wl=$lt_prog_compiler_wl_CXX
21535 pic_flag=$lt_prog_compiler_pic_CXX
21536 compiler_flags=-v
21537 linker_flags=-v
21538 verstring=
21539 output_objdir=.
21540 libname=conftest
21541 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21542 allow_undefined_flag_CXX=
21543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21544 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21545 ac_status=$?
21546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21547 test $ac_status = 0; }
21548 then
21549 lt_cv_archive_cmds_need_lc_CXX=no
21550 else
21551 lt_cv_archive_cmds_need_lc_CXX=yes
21553 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21554 else
21555 cat conftest.err 1>&5
21557 $RM conftest*
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21561 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21562 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21564 esac
21567 esac
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21633 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21635 library_names_spec=
21636 libname_spec='lib$name'
21637 soname_spec=
21638 shrext_cmds=".so"
21639 postinstall_cmds=
21640 postuninstall_cmds=
21641 finish_cmds=
21642 finish_eval=
21643 shlibpath_var=
21644 shlibpath_overrides_runpath=unknown
21645 version_type=none
21646 dynamic_linker="$host_os ld.so"
21647 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21648 need_lib_prefix=unknown
21649 hardcode_into_libs=no
21651 # when you set need_version to no, make sure it does not cause -set_version
21652 # flags to be left without arguments
21653 need_version=unknown
21655 case $host_os in
21656 aix3*)
21657 version_type=linux
21658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21659 shlibpath_var=LIBPATH
21661 # AIX 3 has no versioning support, so we append a major version to the name.
21662 soname_spec='${libname}${release}${shared_ext}$major'
21665 aix[4-9]*)
21666 version_type=linux
21667 need_lib_prefix=no
21668 need_version=no
21669 hardcode_into_libs=yes
21670 if test "$host_cpu" = ia64; then
21671 # AIX 5 supports IA64
21672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21673 shlibpath_var=LD_LIBRARY_PATH
21674 else
21675 # With GCC up to 2.95.x, collect2 would create an import file
21676 # for dependence libraries. The import file would start with
21677 # the line `#! .'. This would cause the generated library to
21678 # depend on `.', always an invalid library. This was fixed in
21679 # development snapshots of GCC prior to 3.0.
21680 case $host_os in
21681 aix4 | aix4.[01] | aix4.[01].*)
21682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21683 echo ' yes '
21684 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21686 else
21687 can_build_shared=no
21690 esac
21691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21692 # soname into executable. Probably we can add versioning support to
21693 # collect2, so additional links can be useful in future.
21694 if test "$aix_use_runtimelinking" = yes; then
21695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21696 # instead of lib<name>.a to let people know that these are not
21697 # typical AIX shared libraries.
21698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21699 else
21700 # We preserve .a as extension for shared libraries through AIX4.2
21701 # and later when we are not doing run time linking.
21702 library_names_spec='${libname}${release}.a $libname.a'
21703 soname_spec='${libname}${release}${shared_ext}$major'
21705 shlibpath_var=LIBPATH
21709 amigaos*)
21710 case $host_cpu in
21711 powerpc)
21712 # Since July 2007 AmigaOS4 officially supports .so libraries.
21713 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21716 m68k)
21717 library_names_spec='$libname.ixlibrary $libname.a'
21718 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21719 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'
21721 esac
21724 beos*)
21725 library_names_spec='${libname}${shared_ext}'
21726 dynamic_linker="$host_os ld.so"
21727 shlibpath_var=LIBRARY_PATH
21730 bsdi[45]*)
21731 version_type=linux
21732 need_version=no
21733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21734 soname_spec='${libname}${release}${shared_ext}$major'
21735 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21736 shlibpath_var=LD_LIBRARY_PATH
21737 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21738 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21739 # the default ld.so.conf also contains /usr/contrib/lib and
21740 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21741 # libtool to hard-code these into programs
21744 cygwin* | mingw* | pw32* | cegcc*)
21745 version_type=windows
21746 shrext_cmds=".dll"
21747 need_version=no
21748 need_lib_prefix=no
21750 case $GCC,$host_os in
21751 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21752 library_names_spec='$libname.dll.a'
21753 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21754 postinstall_cmds='base_file=`basename \${file}`~
21755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21756 dldir=$destdir/`dirname \$dlpath`~
21757 test -d \$dldir || mkdir -p \$dldir~
21758 $install_prog $dir/$dlname \$dldir/$dlname~
21759 chmod a+x \$dldir/$dlname~
21760 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21761 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21763 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21764 dlpath=$dir/\$dldll~
21765 $RM \$dlpath'
21766 shlibpath_overrides_runpath=yes
21768 case $host_os in
21769 cygwin*)
21770 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21771 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21774 mingw* | cegcc*)
21775 # MinGW DLLs use traditional 'lib' prefix
21776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21778 pw32*)
21779 # pw32 DLLs use 'pw' prefix rather than 'lib'
21780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21782 esac
21786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21788 esac
21789 dynamic_linker='Win32 ld.exe'
21790 # FIXME: first we should search . and the directory the executable is in
21791 shlibpath_var=PATH
21794 darwin* | rhapsody*)
21795 dynamic_linker="$host_os dyld"
21796 version_type=darwin
21797 need_lib_prefix=no
21798 need_version=no
21799 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21800 soname_spec='${libname}${release}${major}$shared_ext'
21801 shlibpath_overrides_runpath=yes
21802 shlibpath_var=DYLD_LIBRARY_PATH
21803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21808 dgux*)
21809 version_type=linux
21810 need_lib_prefix=no
21811 need_version=no
21812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21813 soname_spec='${libname}${release}${shared_ext}$major'
21814 shlibpath_var=LD_LIBRARY_PATH
21817 freebsd* | dragonfly*)
21818 # DragonFly does not have aout. When/if they implement a new
21819 # versioning mechanism, adjust this.
21820 if test -x /usr/bin/objformat; then
21821 objformat=`/usr/bin/objformat`
21822 else
21823 case $host_os in
21824 freebsd[23].*) objformat=aout ;;
21825 *) objformat=elf ;;
21826 esac
21828 version_type=freebsd-$objformat
21829 case $version_type in
21830 freebsd-elf*)
21831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21832 need_version=no
21833 need_lib_prefix=no
21835 freebsd-*)
21836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21837 need_version=yes
21839 esac
21840 shlibpath_var=LD_LIBRARY_PATH
21841 case $host_os in
21842 freebsd2.*)
21843 shlibpath_overrides_runpath=yes
21845 freebsd3.[01]* | freebsdelf3.[01]*)
21846 shlibpath_overrides_runpath=yes
21847 hardcode_into_libs=yes
21849 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21850 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21851 shlibpath_overrides_runpath=no
21852 hardcode_into_libs=yes
21854 *) # from 4.6 on, and DragonFly
21855 shlibpath_overrides_runpath=yes
21856 hardcode_into_libs=yes
21858 esac
21861 gnu*)
21862 version_type=linux
21863 need_lib_prefix=no
21864 need_version=no
21865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21866 soname_spec='${libname}${release}${shared_ext}$major'
21867 shlibpath_var=LD_LIBRARY_PATH
21868 hardcode_into_libs=yes
21871 haiku*)
21872 version_type=linux
21873 need_lib_prefix=no
21874 need_version=no
21875 dynamic_linker="$host_os runtime_loader"
21876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21877 soname_spec='${libname}${release}${shared_ext}$major'
21878 shlibpath_var=LIBRARY_PATH
21879 shlibpath_overrides_runpath=yes
21880 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21881 hardcode_into_libs=yes
21884 hpux9* | hpux10* | hpux11*)
21885 # Give a soname corresponding to the major version so that dld.sl refuses to
21886 # link against other versions.
21887 version_type=sunos
21888 need_lib_prefix=no
21889 need_version=no
21890 case $host_cpu in
21891 ia64*)
21892 shrext_cmds='.so'
21893 hardcode_into_libs=yes
21894 dynamic_linker="$host_os dld.so"
21895 shlibpath_var=LD_LIBRARY_PATH
21896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21898 soname_spec='${libname}${release}${shared_ext}$major'
21899 if test "X$HPUX_IA64_MODE" = X32; then
21900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21901 else
21902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21906 hppa*64*)
21907 shrext_cmds='.sl'
21908 hardcode_into_libs=yes
21909 dynamic_linker="$host_os dld.sl"
21910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21913 soname_spec='${libname}${release}${shared_ext}$major'
21914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21918 shrext_cmds='.sl'
21919 dynamic_linker="$host_os dld.sl"
21920 shlibpath_var=SHLIB_PATH
21921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21923 soname_spec='${libname}${release}${shared_ext}$major'
21925 esac
21926 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21927 postinstall_cmds='chmod 555 $lib'
21928 # or fails outright, so override atomically:
21929 install_override_mode=555
21932 interix[3-9]*)
21933 version_type=linux
21934 need_lib_prefix=no
21935 need_version=no
21936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21937 soname_spec='${libname}${release}${shared_ext}$major'
21938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21939 shlibpath_var=LD_LIBRARY_PATH
21940 shlibpath_overrides_runpath=no
21941 hardcode_into_libs=yes
21944 irix5* | irix6* | nonstopux*)
21945 case $host_os in
21946 nonstopux*) version_type=nonstopux ;;
21948 if test "$lt_cv_prog_gnu_ld" = yes; then
21949 version_type=linux
21950 else
21951 version_type=irix
21952 fi ;;
21953 esac
21954 need_lib_prefix=no
21955 need_version=no
21956 soname_spec='${libname}${release}${shared_ext}$major'
21957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21958 case $host_os in
21959 irix5* | nonstopux*)
21960 libsuff= shlibsuff=
21963 case $LD in # libtool.m4 will add one of these switches to LD
21964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21965 libsuff= shlibsuff= libmagic=32-bit;;
21966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21967 libsuff=32 shlibsuff=N32 libmagic=N32;;
21968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21969 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21970 *) libsuff= shlibsuff= libmagic=never-match;;
21971 esac
21973 esac
21974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21975 shlibpath_overrides_runpath=no
21976 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21977 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21978 hardcode_into_libs=yes
21981 # No shared lib support for Linux oldld, aout, or coff.
21982 linux*oldld* | linux*aout* | linux*coff*)
21983 dynamic_linker=no
21986 # This must be Linux ELF.
21988 # uclinux* changes (here and below) have been submitted to the libtool
21989 # project, but have not yet been accepted: they are GCC-local changes
21990 # for the time being. (See
21991 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21992 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
21993 version_type=linux
21994 need_lib_prefix=no
21995 need_version=no
21996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21997 soname_spec='${libname}${release}${shared_ext}$major'
21998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21999 shlibpath_var=LD_LIBRARY_PATH
22000 shlibpath_overrides_runpath=no
22002 # Some binutils ld are patched to set DT_RUNPATH
22003 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22004 $as_echo_n "(cached) " >&6
22005 else
22006 lt_cv_shlibpath_overrides_runpath=no
22007 save_LDFLAGS=$LDFLAGS
22008 save_libdir=$libdir
22009 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22010 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h. */
22015 main ()
22019 return 0;
22021 _ACEOF
22022 if ac_fn_cxx_try_link "$LINENO"; then :
22023 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22024 lt_cv_shlibpath_overrides_runpath=yes
22027 rm -f core conftest.err conftest.$ac_objext \
22028 conftest$ac_exeext conftest.$ac_ext
22029 LDFLAGS=$save_LDFLAGS
22030 libdir=$save_libdir
22034 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22036 # This implies no fast_install, which is unacceptable.
22037 # Some rework will be needed to allow for fast_install
22038 # before this can be enabled.
22039 hardcode_into_libs=yes
22041 # Append ld.so.conf contents to the search path
22042 if test -f /etc/ld.so.conf; then
22043 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' ' '`
22044 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22047 # We used to test for /lib/ld.so.1 and disable shared libraries on
22048 # powerpc, because MkLinux only supported shared libraries with the
22049 # GNU dynamic linker. Since this was broken with cross compilers,
22050 # most powerpc-linux boxes support dynamic linking these days and
22051 # people can always --disable-shared, the test was removed, and we
22052 # assume the GNU/Linux dynamic linker is in use.
22053 dynamic_linker='GNU/Linux ld.so'
22056 netbsd*)
22057 version_type=sunos
22058 need_lib_prefix=no
22059 need_version=no
22060 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22063 dynamic_linker='NetBSD (a.out) ld.so'
22064 else
22065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22066 soname_spec='${libname}${release}${shared_ext}$major'
22067 dynamic_linker='NetBSD ld.elf_so'
22069 shlibpath_var=LD_LIBRARY_PATH
22070 shlibpath_overrides_runpath=yes
22071 hardcode_into_libs=yes
22074 newsos6)
22075 version_type=linux
22076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22077 shlibpath_var=LD_LIBRARY_PATH
22078 shlibpath_overrides_runpath=yes
22081 *nto* | *qnx*)
22082 version_type=qnx
22083 need_lib_prefix=no
22084 need_version=no
22085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22086 soname_spec='${libname}${release}${shared_ext}$major'
22087 shlibpath_var=LD_LIBRARY_PATH
22088 shlibpath_overrides_runpath=no
22089 hardcode_into_libs=yes
22090 dynamic_linker='ldqnx.so'
22093 openbsd*)
22094 version_type=sunos
22095 sys_lib_dlsearch_path_spec="/usr/lib"
22096 need_lib_prefix=no
22097 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22098 case $host_os in
22099 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22100 *) need_version=no ;;
22101 esac
22102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22104 shlibpath_var=LD_LIBRARY_PATH
22105 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22106 case $host_os in
22107 openbsd2.[89] | openbsd2.[89].*)
22108 shlibpath_overrides_runpath=no
22111 shlibpath_overrides_runpath=yes
22113 esac
22114 else
22115 shlibpath_overrides_runpath=yes
22119 os2*)
22120 libname_spec='$name'
22121 shrext_cmds=".dll"
22122 need_lib_prefix=no
22123 library_names_spec='$libname${shared_ext} $libname.a'
22124 dynamic_linker='OS/2 ld.exe'
22125 shlibpath_var=LIBPATH
22128 osf3* | osf4* | osf5*)
22129 version_type=osf
22130 need_lib_prefix=no
22131 need_version=no
22132 soname_spec='${libname}${release}${shared_ext}$major'
22133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22134 shlibpath_var=LD_LIBRARY_PATH
22135 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22136 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22139 rdos*)
22140 dynamic_linker=no
22143 solaris*)
22144 version_type=linux
22145 need_lib_prefix=no
22146 need_version=no
22147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22148 soname_spec='${libname}${release}${shared_ext}$major'
22149 shlibpath_var=LD_LIBRARY_PATH
22150 shlibpath_overrides_runpath=yes
22151 hardcode_into_libs=yes
22152 # ldd complains unless libraries are executable
22153 postinstall_cmds='chmod +x $lib'
22156 sunos4*)
22157 version_type=sunos
22158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22159 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22160 shlibpath_var=LD_LIBRARY_PATH
22161 shlibpath_overrides_runpath=yes
22162 if test "$with_gnu_ld" = yes; then
22163 need_lib_prefix=no
22165 need_version=yes
22168 sysv4 | sysv4.3*)
22169 version_type=linux
22170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22171 soname_spec='${libname}${release}${shared_ext}$major'
22172 shlibpath_var=LD_LIBRARY_PATH
22173 case $host_vendor in
22174 sni)
22175 shlibpath_overrides_runpath=no
22176 need_lib_prefix=no
22177 runpath_var=LD_RUN_PATH
22179 siemens)
22180 need_lib_prefix=no
22182 motorola)
22183 need_lib_prefix=no
22184 need_version=no
22185 shlibpath_overrides_runpath=no
22186 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22188 esac
22191 sysv4*MP*)
22192 if test -d /usr/nec ;then
22193 version_type=linux
22194 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22195 soname_spec='$libname${shared_ext}.$major'
22196 shlibpath_var=LD_LIBRARY_PATH
22200 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22201 version_type=freebsd-elf
22202 need_lib_prefix=no
22203 need_version=no
22204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22205 soname_spec='${libname}${release}${shared_ext}$major'
22206 shlibpath_var=LD_LIBRARY_PATH
22207 shlibpath_overrides_runpath=yes
22208 hardcode_into_libs=yes
22209 if test "$with_gnu_ld" = yes; then
22210 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22211 else
22212 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22213 case $host_os in
22214 sco3.2v5*)
22215 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22217 esac
22219 sys_lib_dlsearch_path_spec='/usr/lib'
22222 tpf*)
22223 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22224 version_type=linux
22225 need_lib_prefix=no
22226 need_version=no
22227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22228 shlibpath_var=LD_LIBRARY_PATH
22229 shlibpath_overrides_runpath=no
22230 hardcode_into_libs=yes
22233 uts4*)
22234 version_type=linux
22235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22236 soname_spec='${libname}${release}${shared_ext}$major'
22237 shlibpath_var=LD_LIBRARY_PATH
22241 dynamic_linker=no
22243 esac
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22245 $as_echo "$dynamic_linker" >&6; }
22246 test "$dynamic_linker" = no && can_build_shared=no
22248 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22249 if test "$GCC" = yes; then
22250 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22253 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22254 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22256 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22257 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22298 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22299 hardcode_action_CXX=
22300 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22301 test -n "$runpath_var_CXX" ||
22302 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22304 # We can hardcode non-existent directories.
22305 if test "$hardcode_direct_CXX" != no &&
22306 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22307 # have to relink, otherwise we might link with an installed library
22308 # when we should be linking with a yet-to-be-installed one
22309 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22310 test "$hardcode_minus_L_CXX" != no; then
22311 # Linking always hardcodes the temporary library directory.
22312 hardcode_action_CXX=relink
22313 else
22314 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22315 hardcode_action_CXX=immediate
22317 else
22318 # We cannot hardcode anything, or else we can only hardcode existing
22319 # directories.
22320 hardcode_action_CXX=unsupported
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22323 $as_echo "$hardcode_action_CXX" >&6; }
22325 if test "$hardcode_action_CXX" = relink ||
22326 test "$inherit_rpath_CXX" = yes; then
22327 # Fast installation is not supported
22328 enable_fast_install=no
22329 elif test "$shlibpath_overrides_runpath" = yes ||
22330 test "$enable_shared" = no; then
22331 # Fast installation is not necessary
22332 enable_fast_install=needless
22341 fi # test -n "$compiler"
22343 CC=$lt_save_CC
22344 LDCXX=$LD
22345 LD=$lt_save_LD
22346 GCC=$lt_save_GCC
22347 with_gnu_ld=$lt_save_with_gnu_ld
22348 lt_cv_path_LDCXX=$lt_cv_path_LD
22349 lt_cv_path_LD=$lt_save_path_LD
22350 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22351 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22352 fi # test "$_lt_caught_CXX_error" != yes
22354 ac_ext=cpp
22355 ac_cpp='$CXXCPP $CPPFLAGS'
22356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22375 # Only expand once:
22381 # Identify the assembler which will work hand-in-glove with the newly
22382 # built GCC, so that we can examine its features. This is the assembler
22383 # which will be driven by the driver program.
22385 # If build != host, and we aren't building gas in-tree, we identify a
22386 # build->target assembler and hope that it will have the same features
22387 # as the host->target assembler we'll be using.
22388 gcc_cv_gas_major_version=
22389 gcc_cv_gas_minor_version=
22390 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22392 if ${gcc_cv_as+:} false; then :
22394 else
22396 if test -x "$DEFAULT_ASSEMBLER"; then
22397 gcc_cv_as="$DEFAULT_ASSEMBLER"
22398 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22399 && test -f ../gas/Makefile \
22400 && test x$build = x$host; then
22401 gcc_cv_as=../gas/as-new$build_exeext
22402 elif test -x as$build_exeext; then
22403 # Build using assembler in the current directory.
22404 gcc_cv_as=./as$build_exeext
22405 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22406 gcc_cv_as="$AS_FOR_TARGET"
22407 else
22408 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22409 set dummy $AS_FOR_TARGET; ac_word=$2
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22411 $as_echo_n "checking for $ac_word... " >&6; }
22412 if ${ac_cv_path_gcc_cv_as+:} false; then :
22413 $as_echo_n "(cached) " >&6
22414 else
22415 case $gcc_cv_as in
22416 [\\/]* | ?:[\\/]*)
22417 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22421 for as_dir in $PATH
22423 IFS=$as_save_IFS
22424 test -z "$as_dir" && as_dir=.
22425 for ac_exec_ext in '' $ac_executable_extensions; do
22426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22427 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22429 break 2
22431 done
22432 done
22433 IFS=$as_save_IFS
22436 esac
22438 gcc_cv_as=$ac_cv_path_gcc_cv_as
22439 if test -n "$gcc_cv_as"; then
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22441 $as_echo "$gcc_cv_as" >&6; }
22442 else
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22444 $as_echo "no" >&6; }
22451 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22453 case "$ORIGINAL_AS_FOR_TARGET" in
22454 ./as | ./as$build_exeext) ;;
22455 *) ac_config_files="$ac_config_files as:exec-tool.in"
22457 esac
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22460 $as_echo_n "checking what assembler to use... " >&6; }
22461 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22462 # Single tree build which includes gas. We want to prefer it
22463 # over whatever linker top-level may have detected, since
22464 # we'll use what we're building after installation anyway.
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22466 $as_echo "newly built gas" >&6; }
22467 in_tree_gas=yes
22468 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22469 for f in $gcc_cv_as_bfd_srcdir/configure \
22470 $gcc_cv_as_gas_srcdir/configure \
22471 $gcc_cv_as_gas_srcdir/configure.ac \
22472 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22473 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22474 if test x$gcc_cv_gas_version != x; then
22475 break
22477 done
22478 case $gcc_cv_gas_version in
22479 VERSION=[0-9]*) ;;
22480 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22481 esac
22482 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22483 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22484 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22485 case $gcc_cv_gas_patch_version in
22486 "") gcc_cv_gas_patch_version="0" ;;
22487 esac
22488 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22489 + $gcc_cv_gas_minor_version \) \* 1000 \
22490 + $gcc_cv_gas_patch_version`
22492 in_tree_gas_is_elf=no
22493 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22494 || (grep 'obj_format = multi' ../gas/Makefile \
22495 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22496 then
22497 in_tree_gas_is_elf=yes
22499 else
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22501 $as_echo "$gcc_cv_as" >&6; }
22502 in_tree_gas=no
22505 default_ld=
22506 # Check whether --enable-ld was given.
22507 if test "${enable_ld+set}" = set; then :
22508 enableval=$enable_ld; case "${enableval}" in
22510 default_ld=ld.gold
22512 esac
22516 install_gold_as_default=no
22517 # Check whether --enable-gold was given.
22518 if test "${enable_gold+set}" = set; then :
22519 enableval=$enable_gold; case "${enableval}" in
22520 default)
22521 install_gold_as_default=yes
22523 yes)
22524 if test x${default_ld} != x; then
22525 install_gold_as_default=yes
22531 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22533 esac
22537 # Identify the linker which will work hand-in-glove with the newly
22538 # built GCC, so that we can examine its features. This is the linker
22539 # which will be driven by the driver program.
22541 # If build != host, and we aren't building gas in-tree, we identify a
22542 # build->target linker and hope that it will have the same features
22543 # as the host->target linker we'll be using.
22544 gcc_cv_gld_major_version=
22545 gcc_cv_gld_minor_version=
22546 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22547 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22548 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22550 if ${gcc_cv_ld+:} false; then :
22552 else
22554 if test -x "$DEFAULT_LINKER"; then
22555 gcc_cv_ld="$DEFAULT_LINKER"
22556 elif test $install_gold_as_default = yes \
22557 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22558 && test -f ../gold/Makefile \
22559 && test x$build = x$host; then
22560 gcc_cv_ld=../gold/ld-new$build_exeext
22561 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22562 && test -f ../ld/Makefile \
22563 && test x$build = x$host; then
22564 gcc_cv_ld=../ld/ld-new$build_exeext
22565 elif test -x collect-ld$build_exeext; then
22566 # Build using linker in the current directory.
22567 gcc_cv_ld=./collect-ld$build_exeext
22568 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22569 gcc_cv_ld="$LD_FOR_TARGET"
22570 else
22571 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22572 set dummy $LD_FOR_TARGET; ac_word=$2
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22574 $as_echo_n "checking for $ac_word... " >&6; }
22575 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22576 $as_echo_n "(cached) " >&6
22577 else
22578 case $gcc_cv_ld in
22579 [\\/]* | ?:[\\/]*)
22580 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22584 for as_dir in $PATH
22586 IFS=$as_save_IFS
22587 test -z "$as_dir" && as_dir=.
22588 for ac_exec_ext in '' $ac_executable_extensions; do
22589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22590 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22592 break 2
22594 done
22595 done
22596 IFS=$as_save_IFS
22599 esac
22601 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22602 if test -n "$gcc_cv_ld"; then
22603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22604 $as_echo "$gcc_cv_ld" >&6; }
22605 else
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22607 $as_echo "no" >&6; }
22614 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22615 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22616 # if the PLUGIN_LD is set ld-new, just have it as ld
22617 # as that is the installed named.
22618 if test x$PLUGIN_LD_SUFFIX = xld-new \
22619 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22620 PLUGIN_LD_SUFFIX=ld
22623 # Check whether --with-plugin-ld was given.
22624 if test "${with_plugin_ld+set}" = set; then :
22625 withval=$with_plugin_ld; if test x"$withval" != x; then
22626 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22627 PLUGIN_LD_SUFFIX="$withval"
22633 cat >>confdefs.h <<_ACEOF
22634 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22635 _ACEOF
22638 # Check to see if we are using gold instead of ld
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22640 $as_echo_n "checking whether we are using gold... " >&6; }
22641 ld_is_gold=no
22642 if test x$gcc_cv_ld != x; then
22643 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22644 | grep "GNU gold" > /dev/null; then
22645 ld_is_gold=yes
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22649 $as_echo "$ld_is_gold" >&6; }
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22652 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22653 # Check to see if default ld is not gold, but gold is
22654 # available and has support for split stack. If gcc was configured
22655 # with gold then no checking is done.
22657 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22659 # For platforms other than powerpc64*, enable as appropriate.
22661 gold_non_default=no
22662 ld_gold=`which ${gcc_cv_ld}.gold`
22663 # Make sure this gold has minimal split stack support
22664 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22665 ld_vers=`$ld_gold --version | sed 1q`
22666 gold_vers=`echo $ld_vers | sed -n \
22667 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22668 case $target in
22669 # check that the gold version contains the complete split stack support
22670 # on powerpc64 big and little endian
22671 powerpc64*-*-*)
22672 case "$gold_vers" in
22673 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22675 *) gold_non_default=no
22677 esac
22679 esac
22681 if test $gold_non_default = yes; then
22683 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22688 $as_echo "$gold_non_default" >&6; }
22690 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22692 case "$ORIGINAL_LD_FOR_TARGET" in
22693 ./collect-ld | ./collect-ld$build_exeext) ;;
22694 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22696 esac
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22699 $as_echo_n "checking what linker to use... " >&6; }
22700 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22701 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22702 # Single tree build which includes ld. We want to prefer it
22703 # over whatever linker top-level may have detected, since
22704 # we'll use what we're building after installation anyway.
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22706 $as_echo "newly built ld" >&6; }
22707 in_tree_ld=yes
22708 in_tree_ld_is_elf=no
22709 if (grep 'EMUL = .*elf' ../ld/Makefile \
22710 || grep 'EMUL = .*linux' ../ld/Makefile \
22711 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22712 in_tree_ld_is_elf=yes
22713 elif test "$ld_is_gold" = yes; then
22714 in_tree_ld_is_elf=yes
22716 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
22718 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22719 if test x$gcc_cv_gld_version != x; then
22720 break
22722 done
22723 case $gcc_cv_gld_version in
22724 VERSION=[0-9]*) ;;
22725 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22726 esac
22727 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22728 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22729 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22730 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22731 else
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22733 $as_echo "$gcc_cv_ld" >&6; }
22734 in_tree_ld=no
22735 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22736 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22737 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22743 # Figure out what nm we will be using.
22744 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22745 if ${gcc_cv_nm+:} false; then :
22747 else
22749 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22750 && test -f ../binutils/Makefile \
22751 && test x$build = x$host; then
22752 gcc_cv_nm=../binutils/nm-new$build_exeext
22753 elif test -x nm$build_exeext; then
22754 gcc_cv_nm=./nm$build_exeext
22755 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22756 gcc_cv_nm="$NM_FOR_TARGET"
22757 else
22758 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22759 set dummy $NM_FOR_TARGET; ac_word=$2
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22761 $as_echo_n "checking for $ac_word... " >&6; }
22762 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22763 $as_echo_n "(cached) " >&6
22764 else
22765 case $gcc_cv_nm in
22766 [\\/]* | ?:[\\/]*)
22767 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22771 for as_dir in $PATH
22773 IFS=$as_save_IFS
22774 test -z "$as_dir" && as_dir=.
22775 for ac_exec_ext in '' $ac_executable_extensions; do
22776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22777 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22779 break 2
22781 done
22782 done
22783 IFS=$as_save_IFS
22786 esac
22788 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22789 if test -n "$gcc_cv_nm"; then
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22791 $as_echo "$gcc_cv_nm" >&6; }
22792 else
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22794 $as_echo "no" >&6; }
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22802 $as_echo_n "checking what nm to use... " >&6; }
22803 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22804 # Single tree build which includes binutils.
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22806 $as_echo "newly built nm" >&6; }
22807 in_tree_nm=yes
22808 else
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22810 $as_echo "$gcc_cv_nm" >&6; }
22811 in_tree_nm=no
22814 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22816 case "$ORIGINAL_NM_FOR_TARGET" in
22817 ./nm | ./nm$build_exeext) ;;
22818 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22820 esac
22823 # Figure out what objdump we will be using.
22824 if ${gcc_cv_objdump+:} false; then :
22826 else
22828 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22829 && test -f ../binutils/Makefile \
22830 && test x$build = x$host; then
22831 # Single tree build which includes binutils.
22832 gcc_cv_objdump=../binutils/objdump$build_exeext
22833 elif test -x objdump$build_exeext; then
22834 gcc_cv_objdump=./objdump$build_exeext
22835 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22836 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22837 else
22838 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22839 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22841 $as_echo_n "checking for $ac_word... " >&6; }
22842 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22843 $as_echo_n "(cached) " >&6
22844 else
22845 case $gcc_cv_objdump in
22846 [\\/]* | ?:[\\/]*)
22847 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22851 for as_dir in $PATH
22853 IFS=$as_save_IFS
22854 test -z "$as_dir" && as_dir=.
22855 for ac_exec_ext in '' $ac_executable_extensions; do
22856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22857 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22859 break 2
22861 done
22862 done
22863 IFS=$as_save_IFS
22866 esac
22868 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22869 if test -n "$gcc_cv_objdump"; then
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22871 $as_echo "$gcc_cv_objdump" >&6; }
22872 else
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22874 $as_echo "no" >&6; }
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22882 $as_echo_n "checking what objdump to use... " >&6; }
22883 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22884 # Single tree build which includes binutils.
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22886 $as_echo "newly built objdump" >&6; }
22887 elif test x$gcc_cv_objdump = x; then
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22889 $as_echo "not found" >&6; }
22890 else
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22892 $as_echo "$gcc_cv_objdump" >&6; }
22895 # Figure out what readelf we will be using.
22896 if ${gcc_cv_readelf+:} false; then :
22898 else
22900 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22901 && test -f ../binutils/Makefile \
22902 && test x$build = x$host; then
22903 # Single tree build which includes binutils.
22904 gcc_cv_readelf=../binutils/readelf$build_exeext
22905 elif test -x readelf$build_exeext; then
22906 gcc_cv_readelf=./readelf$build_exeext
22907 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22908 gcc_cv_readelf="$READELF_FOR_TARGET"
22909 else
22910 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22911 set dummy $READELF_FOR_TARGET; ac_word=$2
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22913 $as_echo_n "checking for $ac_word... " >&6; }
22914 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22915 $as_echo_n "(cached) " >&6
22916 else
22917 case $gcc_cv_readelf in
22918 [\\/]* | ?:[\\/]*)
22919 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22923 for as_dir in $PATH
22925 IFS=$as_save_IFS
22926 test -z "$as_dir" && as_dir=.
22927 for ac_exec_ext in '' $ac_executable_extensions; do
22928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22929 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22931 break 2
22933 done
22934 done
22935 IFS=$as_save_IFS
22938 esac
22940 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22941 if test -n "$gcc_cv_readelf"; then
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22943 $as_echo "$gcc_cv_readelf" >&6; }
22944 else
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22946 $as_echo "no" >&6; }
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22954 $as_echo_n "checking what readelf to use... " >&6; }
22955 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22956 # Single tree build which includes binutils.
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22958 $as_echo "newly built readelf" >&6; }
22959 elif test x$gcc_cv_readelf = x; then
22960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22961 $as_echo "not found" >&6; }
22962 else
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22964 $as_echo "$gcc_cv_readelf" >&6; }
22967 # Figure out what otool we will be using.
22968 if ${gcc_cv_otool+:} false; then :
22970 else
22972 if test -x otool$build_exeext; then
22973 gcc_cv_otool=./otool$build_exeext
22974 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22975 gcc_cv_otool="$OTOOL_FOR_TARGET"
22976 else
22977 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22978 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22980 $as_echo_n "checking for $ac_word... " >&6; }
22981 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22982 $as_echo_n "(cached) " >&6
22983 else
22984 case $gcc_cv_otool in
22985 [\\/]* | ?:[\\/]*)
22986 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22990 for as_dir in $PATH
22992 IFS=$as_save_IFS
22993 test -z "$as_dir" && as_dir=.
22994 for ac_exec_ext in '' $ac_executable_extensions; do
22995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22996 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22998 break 2
23000 done
23001 done
23002 IFS=$as_save_IFS
23005 esac
23007 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23008 if test -n "$gcc_cv_otool"; then
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23010 $as_echo "$gcc_cv_otool" >&6; }
23011 else
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23013 $as_echo "no" >&6; }
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23021 $as_echo_n "checking what otool to use... " >&6; }
23022 if test x$gcc_cv_otool = x; then
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23024 $as_echo "not found" >&6; }
23025 else
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23027 $as_echo "$gcc_cv_otool" >&6; }
23030 # Figure out what assembler alignment features are present.
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23032 $as_echo_n "checking assembler flags... " >&6; }
23033 if ${gcc_cv_as_flags+:} false; then :
23034 $as_echo_n "(cached) " >&6
23035 else
23036 case "$target" in
23037 i[34567]86-*-linux*)
23038 gcc_cv_as_flags=--32
23040 x86_64-*-linux-gnux32)
23041 gcc_cv_as_flags=--x32
23043 x86_64-*-linux*)
23044 gcc_cv_as_flags=--64
23046 powerpc*-*-darwin*)
23047 gcc_cv_as_flags="-arch ppc"
23050 gcc_cv_as_flags=" "
23052 esac
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23055 $as_echo "$gcc_cv_as_flags" >&6; }
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23058 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23059 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23060 $as_echo_n "(cached) " >&6
23061 else
23062 gcc_cv_as_balign_and_p2align=no
23063 if test $in_tree_gas = yes; then
23064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23065 then gcc_cv_as_balign_and_p2align=yes
23067 elif test x$gcc_cv_as != x; then
23068 $as_echo '.balign 4
23069 .p2align 2' > conftest.s
23070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23072 (eval $ac_try) 2>&5
23073 ac_status=$?
23074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23075 test $ac_status = 0; }; }
23076 then
23077 gcc_cv_as_balign_and_p2align=yes
23078 else
23079 echo "configure: failed program was" >&5
23080 cat conftest.s >&5
23082 rm -f conftest.o conftest.s
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23086 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23087 if test $gcc_cv_as_balign_and_p2align = yes; then
23089 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23095 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23096 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23097 $as_echo_n "(cached) " >&6
23098 else
23099 gcc_cv_as_max_skip_p2align=no
23100 if test $in_tree_gas = yes; then
23101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23102 then gcc_cv_as_max_skip_p2align=yes
23104 elif test x$gcc_cv_as != x; then
23105 $as_echo '.p2align 4,,7' > conftest.s
23106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23108 (eval $ac_try) 2>&5
23109 ac_status=$?
23110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23111 test $ac_status = 0; }; }
23112 then
23113 gcc_cv_as_max_skip_p2align=yes
23114 else
23115 echo "configure: failed program was" >&5
23116 cat conftest.s >&5
23118 rm -f conftest.o conftest.s
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23122 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23123 if test $gcc_cv_as_max_skip_p2align = yes; then
23125 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23131 $as_echo_n "checking assembler for .literal16... " >&6; }
23132 if ${gcc_cv_as_literal16+:} false; then :
23133 $as_echo_n "(cached) " >&6
23134 else
23135 gcc_cv_as_literal16=no
23136 if test $in_tree_gas = yes; then
23137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23138 then gcc_cv_as_literal16=yes
23140 elif test x$gcc_cv_as != x; then
23141 $as_echo '.literal16' > conftest.s
23142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23144 (eval $ac_try) 2>&5
23145 ac_status=$?
23146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23147 test $ac_status = 0; }; }
23148 then
23149 gcc_cv_as_literal16=yes
23150 else
23151 echo "configure: failed program was" >&5
23152 cat conftest.s >&5
23154 rm -f conftest.o conftest.s
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23158 $as_echo "$gcc_cv_as_literal16" >&6; }
23159 if test $gcc_cv_as_literal16 = yes; then
23161 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23167 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23168 if ${gcc_cv_as_subsection_m1+:} false; then :
23169 $as_echo_n "(cached) " >&6
23170 else
23171 gcc_cv_as_subsection_m1=no
23172 if test $in_tree_gas = yes; then
23173 if test $in_tree_gas_is_elf = yes \
23174 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23175 then gcc_cv_as_subsection_m1=yes
23177 elif test x$gcc_cv_as != x; then
23178 $as_echo 'conftest_label1: .word 0
23179 .subsection -1
23180 conftest_label2: .word 0
23181 .previous' > conftest.s
23182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23184 (eval $ac_try) 2>&5
23185 ac_status=$?
23186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23187 test $ac_status = 0; }; }
23188 then
23189 if test x$gcc_cv_nm != x; then
23190 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23191 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23192 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23193 then :
23194 else gcc_cv_as_subsection_m1=yes
23196 rm -f conftest.nm1 conftest.nm2
23198 else
23199 echo "configure: failed program was" >&5
23200 cat conftest.s >&5
23202 rm -f conftest.o conftest.s
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23206 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23207 if test $gcc_cv_as_subsection_m1 = yes; then
23209 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23215 $as_echo_n "checking assembler for .weak... " >&6; }
23216 if ${gcc_cv_as_weak+:} false; then :
23217 $as_echo_n "(cached) " >&6
23218 else
23219 gcc_cv_as_weak=no
23220 if test $in_tree_gas = yes; then
23221 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23222 then gcc_cv_as_weak=yes
23224 elif test x$gcc_cv_as != x; then
23225 $as_echo ' .weak foobar' > conftest.s
23226 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23228 (eval $ac_try) 2>&5
23229 ac_status=$?
23230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23231 test $ac_status = 0; }; }
23232 then
23233 gcc_cv_as_weak=yes
23234 else
23235 echo "configure: failed program was" >&5
23236 cat conftest.s >&5
23238 rm -f conftest.o conftest.s
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23242 $as_echo "$gcc_cv_as_weak" >&6; }
23243 if test $gcc_cv_as_weak = yes; then
23245 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23251 $as_echo_n "checking assembler for .weakref... " >&6; }
23252 if ${gcc_cv_as_weakref+:} false; then :
23253 $as_echo_n "(cached) " >&6
23254 else
23255 gcc_cv_as_weakref=no
23256 if test $in_tree_gas = yes; then
23257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23258 then gcc_cv_as_weakref=yes
23260 elif test x$gcc_cv_as != x; then
23261 $as_echo ' .weakref foobar, barfnot' > conftest.s
23262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23264 (eval $ac_try) 2>&5
23265 ac_status=$?
23266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23267 test $ac_status = 0; }; }
23268 then
23269 gcc_cv_as_weakref=yes
23270 else
23271 echo "configure: failed program was" >&5
23272 cat conftest.s >&5
23274 rm -f conftest.o conftest.s
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23278 $as_echo "$gcc_cv_as_weakref" >&6; }
23279 if test $gcc_cv_as_weakref = yes; then
23281 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23287 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23288 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23289 $as_echo_n "(cached) " >&6
23290 else
23291 gcc_cv_as_nsubspa_comdat=no
23292 if test $in_tree_gas = yes; then
23293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23294 then gcc_cv_as_nsubspa_comdat=yes
23296 elif test x$gcc_cv_as != x; then
23297 $as_echo ' .SPACE $TEXT$
23298 .NSUBSPA $CODE$,COMDAT' > conftest.s
23299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23301 (eval $ac_try) 2>&5
23302 ac_status=$?
23303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23304 test $ac_status = 0; }; }
23305 then
23306 gcc_cv_as_nsubspa_comdat=yes
23307 else
23308 echo "configure: failed program was" >&5
23309 cat conftest.s >&5
23311 rm -f conftest.o conftest.s
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23315 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23316 if test $gcc_cv_as_nsubspa_comdat = yes; then
23318 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23323 # .hidden needs to be supported in both the assembler and the linker,
23324 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23325 # This is irritatingly difficult to feature test for; we have to check the
23326 # date string after the version number. If we've got an in-tree
23327 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23328 # to be safe.
23329 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23330 case "${target}" in
23331 *-*-aix*)
23332 conftest_s=' .globl foobar,hidden'
23335 conftest_s=' .hidden foobar
23336 foobar:'
23338 esac
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23340 $as_echo_n "checking assembler for .hidden... " >&6; }
23341 if ${gcc_cv_as_hidden+:} false; then :
23342 $as_echo_n "(cached) " >&6
23343 else
23344 gcc_cv_as_hidden=no
23345 if test $in_tree_gas = yes; then
23346 if test $in_tree_gas_is_elf = yes \
23347 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23348 then gcc_cv_as_hidden=yes
23350 elif test x$gcc_cv_as != x; then
23351 $as_echo "$conftest_s" > conftest.s
23352 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23354 (eval $ac_try) 2>&5
23355 ac_status=$?
23356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23357 test $ac_status = 0; }; }
23358 then
23359 gcc_cv_as_hidden=yes
23360 else
23361 echo "configure: failed program was" >&5
23362 cat conftest.s >&5
23364 rm -f conftest.o conftest.s
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23368 $as_echo "$gcc_cv_as_hidden" >&6; }
23371 case "${target}" in
23372 *-*-darwin*)
23373 # Darwin as has some visibility support, though with a different syntax.
23374 gcc_cv_as_hidden=yes
23376 esac
23378 # gnu_indirect_function type is an extension proposed at
23379 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23380 # selection of function implementation
23381 # Check whether --enable-gnu-indirect-function was given.
23382 if test "${enable_gnu_indirect_function+set}" = set; then :
23383 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23384 yes | no) ;;
23385 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23386 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23387 esac
23388 else
23389 enable_gnu_indirect_function="$default_gnu_indirect_function"
23393 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23395 cat >>confdefs.h <<_ACEOF
23396 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23397 _ACEOF
23401 if test $in_tree_ld != yes ; then
23402 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23403 if echo "$ld_ver" | grep GNU > /dev/null; then
23404 if test x"$ld_is_gold" = xyes; then
23405 # GNU gold --version looks like this:
23407 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23409 # We extract the binutils version which is more familiar and specific
23410 # than the gold version.
23411 ld_vers=`echo $ld_ver | sed -n \
23412 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23413 else
23414 # GNU ld --version looks like this:
23416 # GNU ld (GNU Binutils) 2.21.51.20110225
23417 ld_vers=`echo $ld_ver | sed -n \
23418 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23420 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
23421 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23422 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23423 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23424 else
23425 case "${target}" in
23426 *-*-solaris2*)
23427 # Solaris 2 ld -V output looks like this for a regular version:
23429 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23431 # but test versions add stuff at the end:
23433 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23435 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23436 # numbers can be used in ld.so.1 feature checks even if a different
23437 # linker is configured.
23438 ld_ver=`$gcc_cv_ld -V 2>&1`
23439 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23440 ld_vers=`echo $ld_ver | sed -n \
23441 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23442 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23443 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23446 esac
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23451 $as_echo_n "checking linker for .hidden support... " >&6; }
23452 if ${gcc_cv_ld_hidden+:} false; then :
23453 $as_echo_n "(cached) " >&6
23454 else
23455 if test $in_tree_ld = yes ; then
23456 gcc_cv_ld_hidden=no
23457 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 \
23458 && test $in_tree_ld_is_elf = yes; then
23459 gcc_cv_ld_hidden=yes
23461 else
23462 gcc_cv_ld_hidden=yes
23463 if test x"$ld_is_gold" = xyes; then
23465 elif echo "$ld_ver" | grep GNU > /dev/null; then
23466 if test 0"$ld_date" -lt 20020404; then
23467 if test -n "$ld_date"; then
23468 # If there was date string, but was earlier than 2002-04-04, fail
23469 gcc_cv_ld_hidden=no
23470 elif test -z "$ld_vers"; then
23471 # If there was no date string nor ld version number, something is wrong
23472 gcc_cv_ld_hidden=no
23473 else
23474 test -z "$ld_vers_patch" && ld_vers_patch=0
23475 if test "$ld_vers_major" -lt 2; then
23476 gcc_cv_ld_hidden=no
23477 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23478 gcc_cv_ld_hidden="no"
23479 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23480 gcc_cv_ld_hidden=no
23484 else
23485 case "${target}" in
23486 *-*-aix[789]*)
23487 gcc_cv_ld_hidden=yes
23489 *-*-darwin*)
23490 # Darwin ld has some visibility support.
23491 gcc_cv_ld_hidden=yes
23493 hppa64*-*-hpux* | ia64*-*-hpux*)
23494 gcc_cv_ld_hidden=yes
23496 *-*-solaris2*)
23497 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23498 # .symbolic was only added in Solaris 9 12/02.
23499 gcc_cv_ld_hidden=yes
23502 gcc_cv_ld_hidden=no
23504 esac
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23509 $as_echo "$gcc_cv_ld_hidden" >&6; }
23510 libgcc_visibility=no
23513 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23514 libgcc_visibility=yes
23516 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23521 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23522 gcc_cv_ld_ro_rw_mix=unknown
23523 if test $in_tree_ld = yes ; then
23524 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 \
23525 && test $in_tree_ld_is_elf = yes; then
23526 gcc_cv_ld_ro_rw_mix=read-write
23528 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23529 echo '.section myfoosect, "a"' > conftest1.s
23530 echo '.section myfoosect, "aw"' > conftest2.s
23531 echo '.byte 1' >> conftest2.s
23532 echo '.section myfoosect, "a"' > conftest3.s
23533 echo '.byte 0' >> conftest3.s
23534 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23535 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23536 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23537 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23538 conftest2.o conftest3.o > /dev/null 2>&1; then
23539 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23540 | sed -e '/myfoosect/!d' -e N`
23541 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23542 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23543 gcc_cv_ld_ro_rw_mix=read-only
23544 else
23545 gcc_cv_ld_ro_rw_mix=read-write
23549 rm -f conftest.* conftest[123].*
23551 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23553 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23557 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23559 # Check whether --enable-initfini-array was given.
23560 if test "${enable_initfini_array+set}" = set; then :
23561 enableval=$enable_initfini_array;
23562 else
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23565 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23566 if ${gcc_cv_initfini_array+:} false; then :
23567 $as_echo_n "(cached) " >&6
23568 else
23569 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23570 case "${target}" in
23571 ia64-*)
23572 if test "$cross_compiling" = yes; then :
23573 gcc_cv_initfini_array=no
23574 else
23575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23576 /* end confdefs.h. */
23578 #ifndef __ELF__
23579 #error Not an ELF OS
23580 #endif
23581 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23582 if it can be used. */
23583 static int x = -1;
23584 int main (void) { return x; }
23585 int foo (void) { x = 0; }
23586 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23588 _ACEOF
23589 if ac_fn_cxx_try_run "$LINENO"; then :
23590 gcc_cv_initfini_array=yes
23591 else
23592 gcc_cv_initfini_array=no
23594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23595 conftest.$ac_objext conftest.beam conftest.$ac_ext
23599 gcc_cv_initfini_array=no
23600 if test $in_tree_ld = yes ; then
23601 if test "$gcc_cv_gld_major_version" -eq 2 \
23602 -a "$gcc_cv_gld_minor_version" -ge 22 \
23603 -o "$gcc_cv_gld_major_version" -gt 2 \
23604 && test $in_tree_ld_is_elf = yes; then
23605 gcc_cv_initfini_array=yes
23607 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23608 case $target:$gas in
23609 *:yes)
23610 sh_flags='"a"'
23611 sh_type='%progbits'
23613 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23614 sh_flags='"a"'
23615 sh_type='@progbits'
23617 sparc*-*-solaris2*:no)
23618 sh_flags='#alloc'
23619 sh_type='#progbits'
23620 sh_quote='"'
23622 esac
23623 case "$target:$gnu_ld" in
23624 *:yes)
23625 cat > conftest.s <<EOF
23626 .section .dtors,$sh_flags,$sh_type
23627 .balign 4
23628 .byte 'A', 'A', 'A', 'A'
23629 .section .ctors,$sh_flags,$sh_type
23630 .balign 4
23631 .byte 'B', 'B', 'B', 'B'
23632 .section .fini_array.65530,$sh_flags,$sh_type
23633 .balign 4
23634 .byte 'C', 'C', 'C', 'C'
23635 .section .init_array.65530,$sh_flags,$sh_type
23636 .balign 4
23637 .byte 'D', 'D', 'D', 'D'
23638 .section .dtors.64528,$sh_flags,$sh_type
23639 .balign 4
23640 .byte 'E', 'E', 'E', 'E'
23641 .section .ctors.64528,$sh_flags,$sh_type
23642 .balign 4
23643 .byte 'F', 'F', 'F', 'F'
23644 .section .fini_array.01005,$sh_flags,$sh_type
23645 .balign 4
23646 .byte 'G', 'G', 'G', 'G'
23647 .section .init_array.01005,$sh_flags,$sh_type
23648 .balign 4
23649 .byte 'H', 'H', 'H', 'H'
23650 .text
23651 .globl _start
23652 _start:
23654 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23655 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23656 && $gcc_cv_objdump -s -j .init_array conftest \
23657 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23658 && $gcc_cv_objdump -s -j .fini_array conftest \
23659 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23660 gcc_cv_initfini_array=yes
23663 *-*-solaris2*:no)
23664 # When Solaris ld added constructor priority support, it was
23665 # decided to only handle .init_array.N/.fini_array.N since
23666 # there was no need for backwards compatibility with
23667 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23668 # sections with correct execution order resp. to
23669 # .init_array/.fini_array, while gld merges them into
23670 # .init_array/.fini_array.
23671 cat > conftest.s <<EOF
23672 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23673 .align 4
23674 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23675 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23676 .align 4
23677 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23678 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23679 .align 4
23680 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23681 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23682 .align 4
23683 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23684 .text
23685 .globl _start
23686 _start:
23688 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23689 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23690 && $gcc_cv_objdump -s -j .init_array conftest \
23691 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23692 && $gcc_cv_objdump -s -j .fini_array conftest \
23693 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23694 gcc_cv_initfini_array=yes
23697 esac
23698 rm -f conftest conftest.*
23700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23701 /* end confdefs.h. */
23703 #ifndef __ELF__
23704 # error Not an ELF OS
23705 #endif
23706 #include <stdlib.h>
23707 #if defined __GLIBC_PREREQ
23708 # if __GLIBC_PREREQ (2, 4)
23709 # else
23710 # error GLIBC 2.4 required
23711 # endif
23712 #else
23713 # if defined __sun__ && defined __svr4__
23714 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23715 # else
23716 # error The C library not known to support .init_array/.fini_array
23717 # endif
23718 #endif
23720 _ACEOF
23721 if ac_fn_cxx_try_cpp "$LINENO"; then :
23723 else
23724 gcc_cv_initfini_array=no
23726 rm -f conftest.err conftest.i conftest.$ac_ext;;
23727 esac
23728 else
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23730 $as_echo_n "checking cross compile... guessing... " >&6; }
23731 gcc_cv_initfini_array=no
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23735 $as_echo "$gcc_cv_initfini_array" >&6; }
23736 enable_initfini_array=$gcc_cv_initfini_array
23741 cat >>confdefs.h <<_ACEOF
23742 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23743 _ACEOF
23747 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23749 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23750 if ${gcc_cv_as_leb128+:} false; then :
23751 $as_echo_n "(cached) " >&6
23752 else
23753 gcc_cv_as_leb128=no
23754 if test $in_tree_gas = yes; then
23755 if test $in_tree_gas_is_elf = yes \
23756 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23757 then gcc_cv_as_leb128=yes
23759 elif test x$gcc_cv_as != x; then
23760 $as_echo ' .data
23761 .uleb128 L2 - L1
23763 .uleb128 1280
23764 .sleb128 -1010
23765 L2:' > conftest.s
23766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23768 (eval $ac_try) 2>&5
23769 ac_status=$?
23770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23771 test $ac_status = 0; }; }
23772 then
23773 # GAS versions before 2.11 do not support uleb128,
23774 # despite appearing to.
23775 # ??? There exists an elf-specific test that will crash
23776 # the assembler. Perhaps it's better to figure out whether
23777 # arbitrary sections are supported and try the test.
23778 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23779 if echo "$as_ver" | grep GNU > /dev/null; then
23780 as_vers=`echo $as_ver | sed -n \
23781 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23782 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23783 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23784 if test $as_major -eq 2 && test $as_minor -lt 11
23785 then :
23786 else gcc_cv_as_leb128=yes
23789 else
23790 echo "configure: failed program was" >&5
23791 cat conftest.s >&5
23793 rm -f conftest.o conftest.s
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23797 $as_echo "$gcc_cv_as_leb128" >&6; }
23798 if test $gcc_cv_as_leb128 = yes; then
23800 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23803 if test $gcc_cv_as_leb128 != yes; then
23805 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23809 # Determine if an .eh_frame section is read-only.
23810 gcc_fn_eh_frame_ro () {
23811 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23812 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23813 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23816 # Check if we have assembler support for unwind directives.
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23818 $as_echo_n "checking assembler for cfi directives... " >&6; }
23819 if ${gcc_cv_as_cfi_directive+:} false; then :
23820 $as_echo_n "(cached) " >&6
23821 else
23822 gcc_cv_as_cfi_directive=no
23823 if test x$gcc_cv_as != x; then
23824 $as_echo ' .text
23825 .cfi_startproc
23826 .cfi_offset 0, 0
23827 .cfi_same_value 1
23828 .cfi_def_cfa 1, 2
23829 .cfi_escape 1, 2, 3, 4, 5
23830 .cfi_endproc' > conftest.s
23831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23833 (eval $ac_try) 2>&5
23834 ac_status=$?
23835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23836 test $ac_status = 0; }; }
23837 then
23838 case "$target" in
23839 *-*-solaris*)
23840 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23841 # read-only and read-write sections, we need to make sure that the
23842 # assembler used emits read-write .eh_frame sections.
23843 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23844 gcc_cv_as_cfi_directive=yes
23845 elif test "x$gcc_cv_objdump" = x; then
23846 # No objdump, err on the side of caution.
23847 gcc_cv_as_cfi_directive=no
23848 else
23849 if test x$gas = xyes; then
23850 as_32_opt="--32"
23851 as_64_opt="--64"
23852 else
23853 as_32_opt="-m32"
23854 as_64_opt="-m64"
23856 case "$target" in
23857 sparc*-*-solaris2.*)
23858 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23859 if gcc_fn_eh_frame_ro $as_32_opt \
23860 || gcc_fn_eh_frame_ro $as_64_opt; then
23861 gcc_cv_as_cfi_directive=no
23862 else
23863 gcc_cv_as_cfi_directive=yes
23866 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23867 # On Solaris/x86, make sure that GCC and assembler agree on using
23868 # read-only .eh_frame sections for 64-bit.
23869 if gcc_fn_eh_frame_ro $as_32_opt; then
23870 gcc_cv_as_cfi_directive=no
23871 elif gcc_fn_eh_frame_ro $as_64_opt; then
23872 gcc_cv_as_cfi_directive=yes
23873 else
23874 gcc_cv_as_cfi_directive=no
23877 esac
23880 *-*-*)
23881 gcc_cv_as_cfi_directive=yes
23883 esac
23884 else
23885 echo "configure: failed program was" >&5
23886 cat conftest.s >&5
23888 rm -f conftest.o conftest.s
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23892 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23895 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23897 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23898 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23899 $as_echo_n "(cached) " >&6
23900 else
23901 gcc_cv_as_cfi_advance_working=no
23902 if test x$gcc_cv_as != x; then
23903 $as_echo ' .text
23904 .cfi_startproc
23905 .cfi_adjust_cfa_offset 64
23906 .skip 75040, 0
23907 .cfi_adjust_cfa_offset 128
23908 .cfi_endproc' > conftest.s
23909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23911 (eval $ac_try) 2>&5
23912 ac_status=$?
23913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23914 test $ac_status = 0; }; }
23915 then
23917 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23918 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23919 gcc_cv_as_cfi_advance_working=yes
23922 else
23923 echo "configure: failed program was" >&5
23924 cat conftest.s >&5
23926 rm -f conftest.o conftest.s
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23930 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23933 else
23934 # no objdump, err on the side of caution
23935 gcc_cv_as_cfi_advance_working=no
23939 cat >>confdefs.h <<_ACEOF
23940 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23941 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23942 _ACEOF
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23947 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23948 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23949 $as_echo_n "(cached) " >&6
23950 else
23951 gcc_cv_as_cfi_personality_directive=no
23952 if test x$gcc_cv_as != x; then
23953 $as_echo ' .text
23954 .cfi_startproc
23955 .cfi_personality 0, symbol
23956 .cfi_endproc' > conftest.s
23957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23959 (eval $ac_try) 2>&5
23960 ac_status=$?
23961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23962 test $ac_status = 0; }; }
23963 then
23964 gcc_cv_as_cfi_personality_directive=yes
23965 else
23966 echo "configure: failed program was" >&5
23967 cat conftest.s >&5
23969 rm -f conftest.o conftest.s
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23973 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23977 cat >>confdefs.h <<_ACEOF
23978 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23979 _ACEOF
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23983 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23984 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23985 $as_echo_n "(cached) " >&6
23986 else
23987 gcc_cv_as_cfi_sections_directive=no
23988 if test x$gcc_cv_as != x; then
23989 $as_echo ' .text
23990 .cfi_sections .debug_frame, .eh_frame
23991 .cfi_startproc
23992 .cfi_endproc' > conftest.s
23993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23995 (eval $ac_try) 2>&5
23996 ac_status=$?
23997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23998 test $ac_status = 0; }; }
23999 then
24000 case $target_os in
24001 win32 | pe | cygwin* | mingw32*)
24002 # Need to check that we generated the correct relocation for the
24003 # .debug_frame section. This was fixed for binutils 2.21.
24004 gcc_cv_as_cfi_sections_directive=no
24005 if test "x$gcc_cv_objdump" != x; then
24006 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24007 grep secrel > /dev/null; then
24008 gcc_cv_as_cfi_sections_directive=yes
24013 gcc_cv_as_cfi_sections_directive=yes
24015 esac
24016 else
24017 echo "configure: failed program was" >&5
24018 cat conftest.s >&5
24020 rm -f conftest.o conftest.s
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24024 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24029 cat >>confdefs.h <<_ACEOF
24030 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24031 _ACEOF
24034 # GAS versions up to and including 2.11.0 may mis-optimize
24035 # .eh_frame data.
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24037 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24038 if ${gcc_cv_as_eh_frame+:} false; then :
24039 $as_echo_n "(cached) " >&6
24040 else
24041 gcc_cv_as_eh_frame=no
24042 if test $in_tree_gas = yes; then
24043 if test $in_tree_gas_is_elf = yes \
24044 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24045 then gcc_cv_as_eh_frame=yes
24047 elif test x$gcc_cv_as != x; then
24048 $as_echo ' .text
24049 .LFB1:
24050 .4byte 0
24051 .L1:
24052 .4byte 0
24053 .LFE1:
24054 .section .eh_frame,"aw",@progbits
24055 __FRAME_BEGIN__:
24056 .4byte .LECIE1-.LSCIE1
24057 .LSCIE1:
24058 .4byte 0x0
24059 .byte 0x1
24060 .ascii "z\0"
24061 .byte 0x1
24062 .byte 0x78
24063 .byte 0x1a
24064 .byte 0x0
24065 .byte 0x4
24066 .4byte 1
24067 .p2align 1
24068 .LECIE1:
24069 .LSFDE1:
24070 .4byte .LEFDE1-.LASFDE1
24071 .LASFDE1:
24072 .4byte .LASFDE1-__FRAME_BEGIN__
24073 .4byte .LFB1
24074 .4byte .LFE1-.LFB1
24075 .byte 0x4
24076 .4byte .LFE1-.LFB1
24077 .byte 0x4
24078 .4byte .L1-.LFB1
24079 .LEFDE1:' > conftest.s
24080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24082 (eval $ac_try) 2>&5
24083 ac_status=$?
24084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24085 test $ac_status = 0; }; }
24086 then
24087 cat > conftest.lit <<EOF
24088 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24089 0010 01000000 12000000 18000000 00000000 ................
24090 0020 08000000 04080000 0044 .........D
24092 cat > conftest.big <<EOF
24093 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24094 0010 00000001 00000012 00000018 00000000 ................
24095 0020 00000008 04000000 0844 .........D
24097 # If the assembler didn't choke, and we can objdump,
24098 # and we got the correct data, then succeed.
24099 # The text in the here-document typically retains its unix-style line
24100 # endings, while the output of objdump will use host line endings.
24101 # Therefore, use diff -b for the comparisons.
24102 if test x$gcc_cv_objdump != x \
24103 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24104 | tail -3 > conftest.got \
24105 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24106 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24107 then
24108 gcc_cv_as_eh_frame=yes
24109 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24111 (eval $ac_try) 2>&5
24112 ac_status=$?
24113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24114 test $ac_status = 0; }; }; then
24115 gcc_cv_as_eh_frame=buggy
24116 else
24117 # Uh oh, what do we do now?
24118 gcc_cv_as_eh_frame=no
24120 else
24121 echo "configure: failed program was" >&5
24122 cat conftest.s >&5
24124 rm -f conftest.o conftest.s
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24128 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24132 if test $gcc_cv_as_eh_frame = buggy; then
24134 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24138 # Test if the assembler supports the section flag 'e' or #exclude for
24139 # specifying an excluded section.
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24141 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24142 if ${gcc_cv_as_section_exclude_e+:} false; then :
24143 $as_echo_n "(cached) " >&6
24144 else
24145 gcc_cv_as_section_exclude_e=no
24146 if test $in_tree_gas = yes; then
24147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24148 then gcc_cv_as_section_exclude_e=yes
24150 elif test x$gcc_cv_as != x; then
24151 $as_echo '.section foo1,"e"
24152 .byte 0,0,0,0' > conftest.s
24153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24155 (eval $ac_try) 2>&5
24156 ac_status=$?
24157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24158 test $ac_status = 0; }; }
24159 then
24160 gcc_cv_as_section_exclude_e=yes
24161 else
24162 echo "configure: failed program was" >&5
24163 cat conftest.s >&5
24165 rm -f conftest.o conftest.s
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24169 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24172 if test $gcc_cv_as_section_exclude_e = no; then
24173 case "${target}" in
24174 # Solaris as uses #exclude instead.
24175 *-*-solaris2*)
24176 case "${target}" in
24177 sparc*-*-solaris2*)
24178 conftest_s='.section "foo1", #exclude'
24180 i?86-*-solaris2* | x86_64-*-solaris2*)
24181 conftest_s='.section foo1, #exclude'
24183 esac
24185 esac
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24187 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24188 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24189 $as_echo_n "(cached) " >&6
24190 else
24191 gcc_cv_as_section_exclude_hash=no
24192 if test x$gcc_cv_as != x; then
24193 $as_echo "$conftest_s
24194 .byte 0,0,0,0" > conftest.s
24195 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24197 (eval $ac_try) 2>&5
24198 ac_status=$?
24199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24200 test $ac_status = 0; }; }
24201 then
24202 gcc_cv_as_section_exclude_hash=yes
24203 else
24204 echo "configure: failed program was" >&5
24205 cat conftest.s >&5
24207 rm -f conftest.o conftest.s
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24211 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24216 cat >>confdefs.h <<_ACEOF
24217 #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`
24218 _ACEOF
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24222 $as_echo_n "checking assembler for section merging support... " >&6; }
24223 if ${gcc_cv_as_shf_merge+:} false; then :
24224 $as_echo_n "(cached) " >&6
24225 else
24226 gcc_cv_as_shf_merge=no
24227 if test $in_tree_gas = yes; then
24228 if test $in_tree_gas_is_elf = yes \
24229 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24230 then gcc_cv_as_shf_merge=yes
24232 elif test x$gcc_cv_as != x; then
24233 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }
24240 then
24241 gcc_cv_as_shf_merge=yes
24242 else
24243 echo "configure: failed program was" >&5
24244 cat conftest.s >&5
24246 rm -f conftest.o conftest.s
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24250 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24253 if test $gcc_cv_as_shf_merge = no; then
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24255 $as_echo_n "checking assembler for section merging support... " >&6; }
24256 if ${gcc_cv_as_shf_merge+:} false; then :
24257 $as_echo_n "(cached) " >&6
24258 else
24259 gcc_cv_as_shf_merge=no
24260 if test $in_tree_gas = yes; then
24261 if test $in_tree_gas_is_elf = yes \
24262 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24263 then gcc_cv_as_shf_merge=yes
24265 elif test x$gcc_cv_as != x; then
24266 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24269 (eval $ac_try) 2>&5
24270 ac_status=$?
24271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24272 test $ac_status = 0; }; }
24273 then
24274 gcc_cv_as_shf_merge=yes
24275 else
24276 echo "configure: failed program was" >&5
24277 cat conftest.s >&5
24279 rm -f conftest.o conftest.s
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24283 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24288 cat >>confdefs.h <<_ACEOF
24289 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24290 _ACEOF
24293 gcc_cv_ld_aligned_shf_merge=yes
24294 case "$target" in
24295 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24296 # alignment > 1.
24297 sparc*-*-solaris2.11*)
24298 if test x"$gnu_ld" = xno \
24299 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24300 gcc_cv_ld_aligned_shf_merge=no
24303 esac
24305 cat >>confdefs.h <<_ACEOF
24306 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24307 _ACEOF
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24311 $as_echo_n "checking assembler for stabs directive... " >&6; }
24312 if ${gcc_cv_as_stabs_directive+:} false; then :
24313 $as_echo_n "(cached) " >&6
24314 else
24315 gcc_cv_as_stabs_directive=no
24316 if test x$gcc_cv_as != x; then
24317 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24320 (eval $ac_try) 2>&5
24321 ac_status=$?
24322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24323 test $ac_status = 0; }; }
24324 then
24325 gcc_cv_as_stabs_directive=yes
24326 else
24327 echo "configure: failed program was" >&5
24328 cat conftest.s >&5
24330 rm -f conftest.o conftest.s
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24334 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24335 if test $gcc_cv_as_stabs_directive = yes; then
24337 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24343 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24344 if ${gcc_cv_as_comdat_group+:} false; then :
24345 $as_echo_n "(cached) " >&6
24346 else
24347 gcc_cv_as_comdat_group=no
24348 if test $in_tree_gas = yes; then
24349 if test $in_tree_gas_is_elf = yes \
24350 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24351 then gcc_cv_as_comdat_group=yes
24353 elif test x$gcc_cv_as != x; then
24354 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24357 (eval $ac_try) 2>&5
24358 ac_status=$?
24359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24360 test $ac_status = 0; }; }
24361 then
24362 gcc_cv_as_comdat_group=yes
24363 else
24364 echo "configure: failed program was" >&5
24365 cat conftest.s >&5
24367 rm -f conftest.o conftest.s
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24371 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24374 if test $gcc_cv_as_comdat_group = yes; then
24375 gcc_cv_as_comdat_group_percent=no
24376 gcc_cv_as_comdat_group_group=no
24377 else
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24379 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24380 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24381 $as_echo_n "(cached) " >&6
24382 else
24383 gcc_cv_as_comdat_group_percent=no
24384 if test $in_tree_gas = yes; then
24385 if test $in_tree_gas_is_elf = yes \
24386 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24387 then gcc_cv_as_comdat_group_percent=yes
24389 elif test x$gcc_cv_as != x; then
24390 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24393 (eval $ac_try) 2>&5
24394 ac_status=$?
24395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24396 test $ac_status = 0; }; }
24397 then
24398 gcc_cv_as_comdat_group_percent=yes
24399 else
24400 echo "configure: failed program was" >&5
24401 cat conftest.s >&5
24403 rm -f conftest.o conftest.s
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24407 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24410 if test $gcc_cv_as_comdat_group_percent = yes; then
24411 gcc_cv_as_comdat_group_group=no
24412 else
24413 case "${target}" in
24414 # Sun as uses a completely different syntax.
24415 *-*-solaris2*)
24416 case "${target}" in
24417 sparc*-*-solaris2*)
24418 conftest_s='
24419 .group foo,".text%foo",#comdat
24420 .section ".text%foo", #alloc,#execinstr,#progbits
24421 .globl foo
24422 foo:
24425 i?86-*-solaris2* | x86_64-*-solaris2*)
24426 conftest_s='
24427 .group foo,.text%foo,#comdat
24428 .section .text%foo, "ax", @progbits
24429 .globl foo
24430 foo:
24433 esac
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24435 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24436 if ${gcc_cv_as_comdat_group_group+:} false; then :
24437 $as_echo_n "(cached) " >&6
24438 else
24439 gcc_cv_as_comdat_group_group=no
24440 if test x$gcc_cv_as != x; then
24441 $as_echo "$conftest_s" > conftest.s
24442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24444 (eval $ac_try) 2>&5
24445 ac_status=$?
24446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24447 test $ac_status = 0; }; }
24448 then
24449 gcc_cv_as_comdat_group_group=yes
24450 else
24451 echo "configure: failed program was" >&5
24452 cat conftest.s >&5
24454 rm -f conftest.o conftest.s
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24458 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24462 esac
24463 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24464 gcc_cv_as_comdat_group_group=no
24468 if test x"$ld_is_gold" = xyes; then
24469 comdat_group=yes
24470 elif test $in_tree_ld = yes ; then
24471 comdat_group=no
24472 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 \
24473 && test $in_tree_ld_is_elf = yes; then
24474 comdat_group=yes
24476 elif echo "$ld_ver" | grep GNU > /dev/null; then
24477 comdat_group=yes
24478 if test 0"$ld_date" -lt 20050308; then
24479 if test -n "$ld_date"; then
24480 # If there was date string, but was earlier than 2005-03-08, fail
24481 comdat_group=no
24482 elif test "$ld_vers_major" -lt 2; then
24483 comdat_group=no
24484 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24485 comdat_group=no
24488 else
24489 case "${target}" in
24490 *-*-solaris2.1[1-9]*)
24491 comdat_group=no
24492 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24493 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24494 # version 1.688.
24496 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24497 # least ld version 1.2267.
24498 if test "$ld_vers_major" -gt 1; then
24499 comdat_group=yes
24500 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24501 comdat_group=yes
24502 elif test "$ld_vers_minor" -ge 2267; then
24503 comdat_group=yes
24507 # Assume linkers other than GNU ld don't support COMDAT group.
24508 comdat_group=no
24510 esac
24512 # Allow overriding the automatic COMDAT group tests above.
24513 # Check whether --enable-comdat was given.
24514 if test "${enable_comdat+set}" = set; then :
24515 enableval=$enable_comdat; comdat_group="$enable_comdat"
24518 if test $comdat_group = no; then
24519 gcc_cv_as_comdat_group=no
24520 gcc_cv_as_comdat_group_percent=no
24521 gcc_cv_as_comdat_group_group=no
24524 cat >>confdefs.h <<_ACEOF
24525 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24526 || test $gcc_cv_as_comdat_group_percent = yes \
24527 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24528 _ACEOF
24531 # Restrict this test to Solaris/x86: other targets define this statically.
24532 case "${target}" in
24533 i?86-*-solaris2* | x86_64-*-solaris2*)
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24535 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24536 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24537 hidden_linkonce=yes
24538 else
24539 case "${target}" in
24540 # Full support for hidden thunks in linkonce sections only appeared in
24541 # Solaris 11/OpenSolaris.
24542 *-*-solaris2.1[1-9]*)
24543 hidden_linkonce=yes
24546 hidden_linkonce=no
24548 esac
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24551 $as_echo "$hidden_linkonce" >&6; }
24553 cat >>confdefs.h <<_ACEOF
24554 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24555 _ACEOF
24558 esac
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24561 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24562 if ${gcc_cv_as_is_stmt+:} false; then :
24563 $as_echo_n "(cached) " >&6
24564 else
24565 gcc_cv_as_is_stmt=no
24566 if test $in_tree_gas = yes; then
24567 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24568 then gcc_cv_as_is_stmt=yes
24570 elif test x$gcc_cv_as != x; then
24571 $as_echo ' .text
24572 .file 1 "conf.c"
24573 .loc 1 1 0 is_stmt 1' > conftest.s
24574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24576 (eval $ac_try) 2>&5
24577 ac_status=$?
24578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24579 test $ac_status = 0; }; }
24580 then
24581 gcc_cv_as_is_stmt=yes
24582 else
24583 echo "configure: failed program was" >&5
24584 cat conftest.s >&5
24586 rm -f conftest.o conftest.s
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24590 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24591 if test $gcc_cv_as_is_stmt = yes; then
24593 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24599 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24600 if ${gcc_cv_as_discriminator+:} false; then :
24601 $as_echo_n "(cached) " >&6
24602 else
24603 gcc_cv_as_discriminator=no
24604 if test $in_tree_gas = yes; then
24605 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24606 then gcc_cv_as_discriminator=yes
24608 elif test x$gcc_cv_as != x; then
24609 $as_echo ' .text
24610 .file 1 "conf.c"
24611 .loc 1 1 0 discriminator 1' > conftest.s
24612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24614 (eval $ac_try) 2>&5
24615 ac_status=$?
24616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24617 test $ac_status = 0; }; }
24618 then
24619 gcc_cv_as_discriminator=yes
24620 else
24621 echo "configure: failed program was" >&5
24622 cat conftest.s >&5
24624 rm -f conftest.o conftest.s
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24628 $as_echo "$gcc_cv_as_discriminator" >&6; }
24629 if test $gcc_cv_as_discriminator = yes; then
24631 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24636 # Catch the newlib flag of the same name so we can gate GCC features on it.
24637 # Check whether --enable-newlib-nano-formatted-io was given.
24638 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24639 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24640 yes|no)
24643 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24645 esac
24649 # Thread-local storage - the check is heavily parameterized.
24650 conftest_s=
24651 tls_first_major=
24652 tls_first_minor=
24653 tls_as_opt=
24654 case "$target" in
24655 alpha*-*-*)
24656 conftest_s='
24657 .section ".tdata","awT",@progbits
24658 foo: .long 25
24659 .text
24660 ldq $27,__tls_get_addr($29) !literal!1
24661 lda $16,foo($29) !tlsgd!1
24662 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24663 ldq $27,__tls_get_addr($29) !literal!2
24664 lda $16,foo($29) !tlsldm!2
24665 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24666 ldq $1,foo($29) !gotdtprel
24667 ldah $2,foo($29) !dtprelhi
24668 lda $3,foo($2) !dtprello
24669 lda $4,foo($29) !dtprel
24670 ldq $1,foo($29) !gottprel
24671 ldah $2,foo($29) !tprelhi
24672 lda $3,foo($2) !tprello
24673 lda $4,foo($29) !tprel'
24674 tls_first_major=2
24675 tls_first_minor=13
24676 tls_as_opt=--fatal-warnings
24678 arc*-*-*)
24679 conftest_s='
24680 add_s r0,r0, @foo@tpoff'
24681 tls_first_major=2
24682 tls_first_minor=23
24684 cris-*-*|crisv32-*-*)
24685 conftest_s='
24686 .section ".tdata","awT",@progbits
24687 x: .long 25
24688 .text
24689 move.d x:IE,$r10
24690 nop'
24691 tls_first_major=2
24692 tls_first_minor=20
24693 tls_as_opt=--fatal-warnings
24695 frv*-*-*)
24696 conftest_s='
24697 .section ".tdata","awT",@progbits
24698 x: .long 25
24699 .text
24700 call #gettlsoff(x)'
24701 tls_first_major=2
24702 tls_first_minor=14
24704 hppa*-*-linux*)
24705 conftest_s='
24706 t1: .reg %r20
24707 t2: .reg %r21
24708 gp: .reg %r19
24709 .section ".tdata","awT",@progbits
24710 foo: .long 25
24711 .text
24712 .align 4
24713 addil LT%foo-$tls_gdidx$,gp
24714 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24715 b __tls_get_addr
24717 addil LT%foo-$tls_ldidx$,gp
24718 b __tls_get_addr
24719 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24720 addil LR%foo-$tls_dtpoff$,%ret0
24721 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24722 mfctl %cr27,%t1
24723 addil LT%foo-$tls_ieoff$,gp
24724 ldw RT%foo-$tls_ieoff$(%r1),%t2
24725 add %t1,%t2,%t3
24726 mfctl %cr27,%t1
24727 addil LR%foo-$tls_leoff$,%t1
24728 ldo RR%foo-$tls_leoff$(%r1),%t2'
24729 tls_first_major=2
24730 tls_first_minor=15
24731 tls_as_opt=--fatal-warnings
24733 arm*-*-*)
24734 conftest_s='
24735 .section ".tdata","awT",%progbits
24736 foo: .long 25
24737 .text
24738 .word foo(gottpoff)
24739 .word foo(tpoff)
24740 .word foo(tlsgd)
24741 .word foo(tlsldm)
24742 .word foo(tlsldo)'
24743 tls_first_major=2
24744 tls_first_minor=17
24746 i[34567]86-*-* | x86_64-*-*)
24747 case "$target" in
24748 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24749 on_solaris=yes
24752 on_solaris=no
24754 esac
24755 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24756 conftest_s='
24757 .section .tdata,"awt",@progbits'
24758 tls_first_major=0
24759 tls_first_minor=0
24760 tls_section_flag=t
24762 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24764 else
24765 conftest_s='
24766 .section ".tdata","awT",@progbits'
24767 tls_first_major=2
24768 tls_first_minor=14
24769 tls_section_flag=T
24770 tls_as_opt="--fatal-warnings"
24772 case "$target" in
24773 i[34567]86-*-*)
24774 if test x$on_solaris = xyes; then
24775 case $gas_flag in
24776 yes) tls_as_opt="$tls_as_opt --32" ;;
24777 esac
24779 conftest_s="$conftest_s
24780 foo: .long 25
24781 .text
24782 movl %gs:0, %eax
24783 leal foo@tlsgd(,%ebx,1), %eax
24784 leal foo@tlsldm(%ebx), %eax
24785 leal foo@dtpoff(%eax), %edx
24786 movl foo@gottpoff(%ebx), %eax
24787 subl foo@gottpoff(%ebx), %eax
24788 addl foo@gotntpoff(%ebx), %eax
24789 movl foo@indntpoff, %eax
24790 movl \$foo@tpoff, %eax
24791 subl \$foo@tpoff, %eax
24792 leal foo@ntpoff(%ecx), %eax"
24794 x86_64-*-*)
24795 if test x$on_solaris = xyes; then
24796 case $gas_flag in
24797 yes) tls_as_opt="$tls_as_opt --64" ;;
24798 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24799 esac
24801 conftest_s="$conftest_s
24802 foo: .long 25
24803 .text
24804 movq %fs:0, %rax
24805 leaq foo@tlsgd(%rip), %rdi
24806 leaq foo@tlsld(%rip), %rdi
24807 leaq foo@dtpoff(%rax), %rdx
24808 movq foo@gottpoff(%rip), %rax
24809 movq \$foo@tpoff, %rax"
24811 esac
24813 ia64-*-*)
24814 conftest_s='
24815 .section ".tdata","awT",@progbits
24816 foo: data8 25
24817 .text
24818 addl r16 = @ltoff(@dtpmod(foo#)), gp
24819 addl r17 = @ltoff(@dtprel(foo#)), gp
24820 addl r18 = @ltoff(@tprel(foo#)), gp
24821 addl r19 = @dtprel(foo#), gp
24822 adds r21 = @dtprel(foo#), r13
24823 movl r23 = @dtprel(foo#)
24824 addl r20 = @tprel(foo#), gp
24825 adds r22 = @tprel(foo#), r13
24826 movl r24 = @tprel(foo#)'
24827 tls_first_major=2
24828 tls_first_minor=13
24829 tls_as_opt=--fatal-warnings
24831 microblaze*-*-*)
24832 conftest_s='
24833 .section .tdata,"awT",@progbits
24835 .word 2
24836 .text
24837 addik r5,r20,x@TLSGD
24838 addik r5,r20,x@TLSLDM'
24839 tls_first_major=2
24840 tls_first_minor=20
24841 tls_as_opt='--fatal-warnings'
24843 mips*-*-*)
24844 conftest_s='
24845 .section .tdata,"awT",@progbits
24847 .word 2
24848 .text
24849 addiu $4, $28, %tlsgd(x)
24850 addiu $4, $28, %tlsldm(x)
24851 lui $4, %dtprel_hi(x)
24852 addiu $4, $4, %dtprel_lo(x)
24853 lw $4, %gottprel(x)($28)
24854 lui $4, %tprel_hi(x)
24855 addiu $4, $4, %tprel_lo(x)'
24856 tls_first_major=2
24857 tls_first_minor=16
24858 tls_as_opt='-32 --fatal-warnings'
24860 m68k-*-*)
24861 conftest_s='
24862 .section .tdata,"awT",@progbits
24864 .word 2
24865 .text
24866 foo:
24867 move.l x@TLSGD(%a5),%a0
24868 move.l x@TLSLDM(%a5),%a0
24869 move.l x@TLSLDO(%a5),%a0
24870 move.l x@TLSIE(%a5),%a0
24871 move.l x@TLSLE(%a5),%a0'
24872 tls_first_major=2
24873 tls_first_minor=19
24874 tls_as_opt='--fatal-warnings'
24876 nios2-*-*)
24877 conftest_s='
24878 .section ".tdata","awT",@progbits'
24879 tls_first_major=2
24880 tls_first_minor=23
24881 tls_as_opt="--fatal-warnings"
24883 aarch64*-*-*)
24884 conftest_s='
24885 .section ".tdata","awT",%progbits
24886 foo: .long 25
24887 .text
24888 adrp x0, :tlsgd:x
24889 add x0, x0, #:tlsgd_lo12:x
24890 bl __tls_get_addr
24891 nop'
24892 tls_first_major=2
24893 tls_first_minor=20
24894 tls_as_opt='--fatal-warnings'
24896 or1k*-*-*)
24897 conftest_s='
24898 .section ".tdata","awT",@progbits
24899 foo: .long 25
24900 .text
24901 l.movhi r3, tpoffha(foo)
24902 l.add r3, r3, r10
24903 l.lwz r4, tpofflo(foo)(r3)'
24904 tls_first_major=2
24905 tls_first_minor=30
24906 tls_as_opt=--fatal-warnings
24908 powerpc-ibm-aix*)
24909 conftest_s='
24910 .extern __get_tpointer
24911 .toc
24912 LC..1:
24913 .tc a[TC],a[TL]@le
24914 .csect .text[PR]
24915 .tlstest:
24916 lwz 9,LC..1(2)
24917 bla __get_tpointer
24918 lwzx 3,9,3
24919 .globl a
24920 .csect a[TL],4
24922 .space 4'
24923 tls_first_major=0
24924 tls_first_minor=0
24926 powerpc64*-*-*)
24927 conftest_s='
24928 .section ".tdata","awT",@progbits
24929 .align 3
24930 ld0: .space 8
24931 ld1: .space 8
24932 x1: .space 8
24933 x2: .space 8
24934 x3: .space 8
24935 .text
24936 addi 3,2,ld0@got@tlsgd
24937 bl .__tls_get_addr
24939 addi 3,2,ld1@toc
24940 bl .__tls_get_addr
24942 addi 3,2,x1@got@tlsld
24943 bl .__tls_get_addr
24945 addi 9,3,x1@dtprel
24946 bl .__tls_get_addr
24948 addis 9,3,x2@dtprel@ha
24949 addi 9,9,x2@dtprel@l
24950 bl .__tls_get_addr
24952 ld 9,x3@got@dtprel(2)
24953 add 9,9,3
24954 bl .__tls_get_addr
24955 nop'
24956 tls_first_major=2
24957 tls_first_minor=14
24958 tls_as_opt="-a64 --fatal-warnings"
24960 powerpc*-*-*)
24961 conftest_s='
24962 .section ".tdata","awT",@progbits
24963 .align 2
24964 ld0: .space 4
24965 ld1: .space 4
24966 x1: .space 4
24967 x2: .space 4
24968 x3: .space 4
24969 .text
24970 addi 3,31,ld0@got@tlsgd
24971 bl __tls_get_addr
24972 addi 3,31,x1@got@tlsld
24973 bl __tls_get_addr
24974 addi 9,3,x1@dtprel
24975 addis 9,3,x2@dtprel@ha
24976 addi 9,9,x2@dtprel@l
24977 lwz 9,x3@got@tprel(31)
24978 add 9,9,x@tls
24979 addi 9,2,x1@tprel
24980 addis 9,2,x2@tprel@ha
24981 addi 9,9,x2@tprel@l'
24982 tls_first_major=2
24983 tls_first_minor=14
24984 tls_as_opt="-a32 --fatal-warnings"
24986 riscv*-*-*)
24987 conftest_s='
24988 .section .tdata,"awT",@progbits
24989 x: .word 2
24990 .text
24991 la.tls.gd a0,x
24992 call __tls_get_addr'
24993 tls_first_major=2
24994 tls_first_minor=21
24995 tls_as_opt='--fatal-warnings'
24997 s390-*-*)
24998 conftest_s='
24999 .section ".tdata","awT",@progbits
25000 foo: .long 25
25001 .text
25002 .long foo@TLSGD
25003 .long foo@TLSLDM
25004 .long foo@DTPOFF
25005 .long foo@NTPOFF
25006 .long foo@GOTNTPOFF
25007 .long foo@INDNTPOFF
25008 l %r1,foo@GOTNTPOFF(%r12)
25009 l %r1,0(%r1):tls_load:foo
25010 bas %r14,0(%r1,%r13):tls_gdcall:foo
25011 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25012 tls_first_major=2
25013 tls_first_minor=14
25014 tls_as_opt="-m31 --fatal-warnings"
25016 s390x-*-*)
25017 conftest_s='
25018 .section ".tdata","awT",@progbits
25019 foo: .long 25
25020 .text
25021 .quad foo@TLSGD
25022 .quad foo@TLSLDM
25023 .quad foo@DTPOFF
25024 .quad foo@NTPOFF
25025 .quad foo@GOTNTPOFF
25026 lg %r1,foo@GOTNTPOFF(%r12)
25027 larl %r1,foo@INDNTPOFF
25028 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25029 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25030 tls_first_major=2
25031 tls_first_minor=14
25032 tls_as_opt="-m64 -Aesame --fatal-warnings"
25034 sh-*-* | sh[123456789lbe]*-*-*)
25035 conftest_s='
25036 .section ".tdata","awT",@progbits
25037 foo: .long 25
25038 .text
25039 .long foo@TLSGD
25040 .long foo@TLSLDM
25041 .long foo@DTPOFF
25042 .long foo@GOTTPOFF
25043 .long foo@TPOFF'
25044 tls_first_major=2
25045 tls_first_minor=13
25046 tls_as_opt=--fatal-warnings
25048 sparc*-*-*)
25049 case "$target" in
25050 sparc*-sun-solaris2.*)
25051 on_solaris=yes
25054 on_solaris=no
25056 esac
25057 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25058 conftest_s='
25059 .section ".tdata",#alloc,#write,#tls'
25060 tls_first_major=0
25061 tls_first_minor=0
25062 else
25063 conftest_s='
25064 .section ".tdata","awT",@progbits'
25065 tls_first_major=2
25066 tls_first_minor=14
25067 tls_as_opt="-32 --fatal-warnings"
25069 conftest_s="$conftest_s
25070 foo: .long 25
25071 .text
25072 sethi %tgd_hi22(foo), %o0
25073 add %o0, %tgd_lo10(foo), %o1
25074 add %l7, %o1, %o0, %tgd_add(foo)
25075 call __tls_get_addr, %tgd_call(foo)
25076 sethi %tldm_hi22(foo), %l1
25077 add %l1, %tldm_lo10(foo), %l2
25078 add %l7, %l2, %o0, %tldm_add(foo)
25079 call __tls_get_addr, %tldm_call(foo)
25080 sethi %tldo_hix22(foo), %l3
25081 xor %l3, %tldo_lox10(foo), %l4
25082 add %o0, %l4, %l5, %tldo_add(foo)
25083 sethi %tie_hi22(foo), %o3
25084 add %o3, %tie_lo10(foo), %o3
25085 ld [%l7 + %o3], %o2, %tie_ld(foo)
25086 add %g7, %o2, %o4, %tie_add(foo)
25087 sethi %tle_hix22(foo), %l1
25088 xor %l1, %tle_lox10(foo), %o5
25089 ld [%g7 + %o5], %o1"
25091 tilepro*-*-*)
25092 conftest_s='
25093 .section ".tdata","awT",@progbits
25094 foo: .long 25
25095 .text
25096 addli r0, zero, tls_gd(foo)
25097 auli r0, zero, tls_gd_ha16(foo)
25098 addli r0, r0, tls_gd_lo16(foo)
25099 jal __tls_get_addr
25100 addli r0, zero, tls_ie(foo)
25101 auli r0, r0, tls_ie_ha16(foo)
25102 addli r0, r0, tls_ie_lo16(foo)'
25103 tls_first_major=2
25104 tls_first_minor=22
25105 tls_as_opt="--fatal-warnings"
25107 tilegx*-*-*)
25108 conftest_s='
25109 .section ".tdata","awT",@progbits
25110 foo: .long 25
25111 .text
25112 shl16insli r0, zero, hw0_last_tls_gd(foo)
25113 shl16insli r0, zero, hw1_last_tls_gd(foo)
25114 shl16insli r0, r0, hw0_tls_gd(foo)
25115 jal __tls_get_addr
25116 shl16insli r0, zero, hw1_last_tls_ie(foo)
25117 shl16insli r0, r0, hw0_tls_ie(foo)'
25118 tls_first_major=2
25119 tls_first_minor=22
25120 tls_as_opt="--fatal-warnings"
25122 xtensa*-*-*)
25123 conftest_s='
25124 .section ".tdata","awT",@progbits
25125 foo: .long 25
25126 .text
25127 movi a8, foo@TLSFUNC
25128 movi a10, foo@TLSARG
25129 callx8.tls a8, foo@TLSCALL'
25130 tls_first_major=2
25131 tls_first_minor=19
25133 esac
25134 set_have_as_tls=no
25135 if test "x$enable_tls" = xno ; then
25136 : # TLS explicitly disabled.
25137 elif test "x$enable_tls" = xyes ; then
25138 set_have_as_tls=yes # TLS explicitly enabled.
25139 elif test -z "$tls_first_major"; then
25140 : # If we don't have a check, assume no support.
25141 else
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25143 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25144 if ${gcc_cv_as_tls+:} false; then :
25145 $as_echo_n "(cached) " >&6
25146 else
25147 gcc_cv_as_tls=no
25148 if test $in_tree_gas = yes; then
25149 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25150 then gcc_cv_as_tls=yes
25152 elif test x$gcc_cv_as != x; then
25153 $as_echo "$conftest_s" > conftest.s
25154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25156 (eval $ac_try) 2>&5
25157 ac_status=$?
25158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25159 test $ac_status = 0; }; }
25160 then
25161 gcc_cv_as_tls=yes
25162 else
25163 echo "configure: failed program was" >&5
25164 cat conftest.s >&5
25166 rm -f conftest.o conftest.s
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25170 $as_echo "$gcc_cv_as_tls" >&6; }
25171 if test $gcc_cv_as_tls = yes; then
25172 set_have_as_tls=yes
25176 if test $set_have_as_tls = yes ; then
25178 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25182 # Target-specific assembler checks.
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25185 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25186 gcc_cv_ld_static_dynamic=no
25187 gcc_cv_ld_static_option='-Bstatic'
25188 gcc_cv_ld_dynamic_option='-Bdynamic'
25189 if test $in_tree_ld = yes ; then
25190 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
25191 gcc_cv_ld_static_dynamic=yes
25193 elif test x$gcc_cv_ld != x; then
25194 # Check if linker supports -Bstatic/-Bdynamic option
25195 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25196 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25197 gcc_cv_ld_static_dynamic=yes
25198 else
25199 case "$target" in
25200 # AIX ld uses -b flags
25201 *-*-aix4.[23]* | *-*-aix[5-9]*)
25202 gcc_cv_ld_static_dynamic=yes
25203 gcc_cv_ld_static_option="-bstatic"
25204 gcc_cv_ld_dynamic_option="-bdynamic"
25206 # HP-UX ld uses -a flags to select between shared and archive.
25207 *-*-hpux*)
25208 if test x"$gnu_ld" = xno; then
25209 gcc_cv_ld_static_dynamic=yes
25210 gcc_cv_ld_static_option="-aarchive_shared"
25211 gcc_cv_ld_dynamic_option="-adefault"
25214 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25215 *-*-solaris2*)
25216 gcc_cv_ld_static_dynamic=yes
25218 esac
25221 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25223 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25226 cat >>confdefs.h <<_ACEOF
25227 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25228 _ACEOF
25231 cat >>confdefs.h <<_ACEOF
25232 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25233 _ACEOF
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25237 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25240 $as_echo_n "checking linker --version-script option... " >&6; }
25241 gcc_cv_ld_version_script=no
25242 ld_version_script_option=''
25243 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25244 gcc_cv_ld_version_script=yes
25245 ld_version_script_option='--version-script'
25246 elif test x$gcc_cv_ld != x; then
25247 case "$target" in
25248 # Solaris 2 ld always supports -M. It also supports a subset of
25249 # --version-script since Solaris 11.4, but requires
25250 # -z gnu-version-script-compat to activate.
25251 *-*-solaris2*)
25252 gcc_cv_ld_version_script=yes
25253 ld_version_script_option='-M'
25255 esac
25257 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25259 $as_echo "$gcc_cv_ld_version_script" >&6; }
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25263 $as_echo_n "checking linker soname option... " >&6; }
25264 gcc_cv_ld_soname=no
25265 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25266 gcc_cv_ld_soname=yes
25267 ld_soname_option='-soname'
25268 elif test x$gcc_cv_ld != x; then
25269 case "$target" in
25270 *-*-darwin*)
25271 gcc_cv_ld_soname=yes
25272 ld_soname_option='-install_name'
25274 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25275 # ld compatiblity since some Solaris 10 update.
25276 *-*-solaris2*)
25277 gcc_cv_ld_soname=yes
25278 ld_soname_option='-h'
25280 esac
25282 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25284 $as_echo "$gcc_cv_ld_soname" >&6; }
25287 if test x"$demangler_in_ld" = xyes; then
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25289 $as_echo_n "checking linker --demangle support... " >&6; }
25290 gcc_cv_ld_demangle=no
25291 if test $in_tree_ld = yes; then
25292 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 \
25293 gcc_cv_ld_demangle=yes
25295 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25296 # Check if the GNU linker supports --demangle option
25297 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25298 gcc_cv_ld_demangle=yes
25301 if test x"$gcc_cv_ld_demangle" = xyes; then
25303 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25307 $as_echo "$gcc_cv_ld_demangle" >&6; }
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25311 $as_echo_n "checking linker plugin support... " >&6; }
25312 gcc_cv_lto_plugin=0
25313 if test -f liblto_plugin.la; then
25314 save_ld_ver="$ld_ver"
25315 save_ld_vers_major="$ld_vers_major"
25316 save_ld_vers_minor="$ld_vers_minor"
25317 save_ld_is_gold="$ld_is_gold"
25319 ld_is_gold=no
25321 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25322 ld_ver="GNU ld"
25323 # FIXME: ld_is_gold?
25324 ld_vers_major="$gcc_cv_gld_major_version"
25325 ld_vers_minor="$gcc_cv_gld_minor_version"
25326 else
25327 # Determine plugin linker version.
25328 # FIXME: Partial duplicate from above, generalize.
25329 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25330 if echo "$ld_ver" | grep GNU > /dev/null; then
25331 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25332 ld_is_gold=yes
25333 ld_vers=`echo $ld_ver | sed -n \
25334 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25335 else
25336 ld_vers=`echo $ld_ver | sed -n \
25337 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25339 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25340 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25344 # Determine plugin support.
25345 if echo "$ld_ver" | grep GNU > /dev/null; then
25346 # Require GNU ld or gold 2.21+ for plugin support by default.
25347 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25348 gcc_cv_lto_plugin=2
25349 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25350 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25351 gcc_cv_lto_plugin=1
25355 ld_ver="$save_ld_ver"
25356 ld_vers_major="$save_ld_vers_major"
25357 ld_vers_minor="$save_ld_vers_minor"
25358 ld_is_gold="$save_ld_is_gold"
25361 cat >>confdefs.h <<_ACEOF
25362 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25363 _ACEOF
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25366 $as_echo "$gcc_cv_lto_plugin" >&6; }
25368 # Target OS-specific assembler checks.
25370 case "$target_os" in
25371 darwin*)
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25373 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25374 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25375 $as_echo_n "(cached) " >&6
25376 else
25377 gcc_cv_as_mmacosx_version_min=no
25378 if test x$gcc_cv_as != x; then
25379 $as_echo '.text' > conftest.s
25380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25382 (eval $ac_try) 2>&5
25383 ac_status=$?
25384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25385 test $ac_status = 0; }; }
25386 then
25387 gcc_cv_as_mmacosx_version_min=yes
25388 else
25389 echo "configure: failed program was" >&5
25390 cat conftest.s >&5
25392 rm -f conftest.o conftest.s
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25396 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25397 if test $gcc_cv_as_mmacosx_version_min = yes; then
25399 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25404 esac
25406 # Target CPU-specific assembler checks.
25408 case "$target" in
25409 aarch64*-*-*)
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25411 $as_echo_n "checking assembler for -mabi option... " >&6; }
25412 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25413 $as_echo_n "(cached) " >&6
25414 else
25415 gcc_cv_as_aarch64_mabi=no
25416 if test x$gcc_cv_as != x; then
25417 $as_echo '.text' > conftest.s
25418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25420 (eval $ac_try) 2>&5
25421 ac_status=$?
25422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25423 test $ac_status = 0; }; }
25424 then
25425 gcc_cv_as_aarch64_mabi=yes
25426 else
25427 echo "configure: failed program was" >&5
25428 cat conftest.s >&5
25430 rm -f conftest.o conftest.s
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25434 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25437 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25439 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25441 else
25442 if test x$with_abi = xilp32; then
25443 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25444 Upgrade the Assembler." "$LINENO" 5
25446 if test x"$with_multilib_list" = xdefault; then
25447 TM_MULTILIB_CONFIG=lp64
25448 else
25449 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25450 for aarch64_multilib in ${aarch64_multilibs}; do
25451 case ${aarch64_multilib} in
25452 ilp32)
25453 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25454 Upgrade the Assembler." "$LINENO" 5
25458 esac
25459 done
25462 # Check if we have binutils support for relocations types needed by -fpic
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25464 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25465 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25466 $as_echo_n "(cached) " >&6
25467 else
25468 gcc_cv_as_aarch64_picreloc=no
25469 if test x$gcc_cv_as != x; then
25470 $as_echo '
25471 .text
25472 ldr x0, [x2, #:gotpage_lo15:globalsym]
25473 ' > conftest.s
25474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25477 ac_status=$?
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; }
25480 then
25481 gcc_cv_as_aarch64_picreloc=yes
25482 else
25483 echo "configure: failed program was" >&5
25484 cat conftest.s >&5
25486 rm -f conftest.o conftest.s
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25490 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25491 if test $gcc_cv_as_aarch64_picreloc = yes; then
25493 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25497 # Enable Branch Target Identification Mechanism and Return Address
25498 # Signing by default.
25499 # Check whether --enable-standard-branch-protection was given.
25500 if test "${enable_standard_branch_protection+set}" = set; then :
25501 enableval=$enable_standard_branch_protection;
25502 case $enableval in
25503 yes)
25504 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25509 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25510 Valid choices are 'yes' and 'no'." "$LINENO" 5
25512 esac
25516 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25517 # Check whether --enable-fix-cortex-a53-835769 was given.
25518 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25519 enableval=$enable_fix_cortex_a53_835769;
25520 case $enableval in
25521 yes)
25522 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25527 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25528 Valid choices are 'yes' and 'no'." "$LINENO" 5
25531 esac
25535 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25536 # Check whether --enable-fix-cortex-a53-843419 was given.
25537 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25538 enableval=$enable_fix_cortex_a53_843419;
25539 case $enableval in
25540 yes)
25541 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25546 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25547 Valid choices are 'yes' and 'no'." "$LINENO" 5
25550 esac
25556 # All TARGET_ABI_OSF targets.
25557 alpha*-*-linux* | alpha*-*-*bsd*)
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25559 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25560 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25561 $as_echo_n "(cached) " >&6
25562 else
25563 gcc_cv_as_alpha_explicit_relocs=no
25564 if test $in_tree_gas = yes; then
25565 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25566 then gcc_cv_as_alpha_explicit_relocs=yes
25568 elif test x$gcc_cv_as != x; then
25569 $as_echo ' .set nomacro
25570 .text
25571 extbl $3, $2, $3 !lituse_bytoff!1
25572 ldq $2, a($29) !literal!1
25573 ldq $4, b($29) !literal!2
25574 ldq_u $3, 0($2) !lituse_base!1
25575 ldq $27, f($29) !literal!5
25576 jsr $26, ($27), f !lituse_jsr!5
25577 ldah $29, 0($26) !gpdisp!3
25578 lda $0, c($29) !gprel
25579 ldah $1, d($29) !gprelhigh
25580 lda $1, d($1) !gprellow
25581 lda $29, 0($29) !gpdisp!3' > conftest.s
25582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25584 (eval $ac_try) 2>&5
25585 ac_status=$?
25586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25587 test $ac_status = 0; }; }
25588 then
25589 gcc_cv_as_alpha_explicit_relocs=yes
25590 else
25591 echo "configure: failed program was" >&5
25592 cat conftest.s >&5
25594 rm -f conftest.o conftest.s
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25598 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25599 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25601 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25606 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25607 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25608 $as_echo_n "(cached) " >&6
25609 else
25610 gcc_cv_as_alpha_jsrdirect_relocs=no
25611 if test $in_tree_gas = yes; then
25612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25613 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25615 elif test x$gcc_cv_as != x; then
25616 $as_echo ' .set nomacro
25617 .text
25618 ldq $27, a($29) !literal!1
25619 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25622 (eval $ac_try) 2>&5
25623 ac_status=$?
25624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25625 test $ac_status = 0; }; }
25626 then
25627 gcc_cv_as_alpha_jsrdirect_relocs=yes
25628 else
25629 echo "configure: failed program was" >&5
25630 cat conftest.s >&5
25632 rm -f conftest.o conftest.s
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25636 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25637 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25639 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25645 avr-*-*)
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25647 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25648 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25649 $as_echo_n "(cached) " >&6
25650 else
25651 gcc_cv_as_avr_mlink_relax=no
25652 if test x$gcc_cv_as != x; then
25653 $as_echo '.text' > conftest.s
25654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25656 (eval $ac_try) 2>&5
25657 ac_status=$?
25658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25659 test $ac_status = 0; }; }
25660 then
25661 gcc_cv_as_avr_mlink_relax=yes
25662 else
25663 echo "configure: failed program was" >&5
25664 cat conftest.s >&5
25666 rm -f conftest.o conftest.s
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25670 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25671 if test $gcc_cv_as_avr_mlink_relax = yes; then
25673 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25679 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25680 if ${gcc_cv_as_avr_mrmw+:} false; then :
25681 $as_echo_n "(cached) " >&6
25682 else
25683 gcc_cv_as_avr_mrmw=no
25684 if test x$gcc_cv_as != x; then
25685 $as_echo '.text' > conftest.s
25686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25688 (eval $ac_try) 2>&5
25689 ac_status=$?
25690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25691 test $ac_status = 0; }; }
25692 then
25693 gcc_cv_as_avr_mrmw=yes
25694 else
25695 echo "configure: failed program was" >&5
25696 cat conftest.s >&5
25698 rm -f conftest.o conftest.s
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25702 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25703 if test $gcc_cv_as_avr_mrmw = yes; then
25705 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25711 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25712 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25713 $as_echo_n "(cached) " >&6
25714 else
25715 gcc_cv_as_avr_mgccisr=no
25716 if test x$gcc_cv_as != x; then
25717 $as_echo '.text
25718 __gcc_isr 1
25719 __gcc_isr 2
25720 __gcc_isr 0,r24
25721 ' > conftest.s
25722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25724 (eval $ac_try) 2>&5
25725 ac_status=$?
25726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25727 test $ac_status = 0; }; }
25728 then
25729 gcc_cv_as_avr_mgccisr=yes
25730 else
25731 echo "configure: failed program was" >&5
25732 cat conftest.s >&5
25734 rm -f conftest.o conftest.s
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25738 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25739 if test $gcc_cv_as_avr_mgccisr = yes; then
25741 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25746 # Check how default linker description file implements .rodata for
25747 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25748 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25750 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25751 cat > conftest.s <<EOF
25752 .section .rodata,"a",@progbits
25753 .global xxvaryy
25754 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25755 xxvaryy:
25756 .word 1
25758 rm -f conftest.nm
25759 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25761 (eval $ac_try) 2>&5
25762 ac_status=$?
25763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25764 test $ac_status = 0; }; }
25765 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25767 (eval $ac_try) 2>&5
25768 ac_status=$?
25769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25770 test $ac_status = 0; }; }
25771 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25773 (eval $ac_try) 2>&5
25774 ac_status=$?
25775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25776 test $ac_status = 0; }; }
25777 if test -s conftest.nm
25778 then
25779 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25781 $as_echo "yes" >&6; }
25783 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25785 else
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25787 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25788 echo "$as_me: nm output was" >&5
25789 cat conftest.nm >&5
25790 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25791 { $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
25792 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25794 else
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25796 $as_echo "test failed" >&6; }
25797 echo "$as_me: failed program was" >&5
25798 cat conftest.s >&5
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25800 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25802 rm -f conftest.s conftest.o conftest.elf conftest.nm
25805 cris-*-*)
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25807 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25808 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25809 $as_echo_n "(cached) " >&6
25810 else
25811 gcc_cv_as_cris_no_mul_bug=no
25812 if test $in_tree_gas = yes; then
25813 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25814 then gcc_cv_as_cris_no_mul_bug=yes
25816 elif test x$gcc_cv_as != x; then
25817 $as_echo '.text' > conftest.s
25818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25820 (eval $ac_try) 2>&5
25821 ac_status=$?
25822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25823 test $ac_status = 0; }; }
25824 then
25825 gcc_cv_as_cris_no_mul_bug=yes
25826 else
25827 echo "configure: failed program was" >&5
25828 cat conftest.s >&5
25830 rm -f conftest.o conftest.s
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25834 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25835 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25837 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25843 sparc*-*-*)
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25845 $as_echo_n "checking assembler for -relax option... " >&6; }
25846 if ${gcc_cv_as_sparc_relax+:} false; then :
25847 $as_echo_n "(cached) " >&6
25848 else
25849 gcc_cv_as_sparc_relax=no
25850 if test x$gcc_cv_as != x; then
25851 $as_echo '.text' > conftest.s
25852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25857 test $ac_status = 0; }; }
25858 then
25859 gcc_cv_as_sparc_relax=yes
25860 else
25861 echo "configure: failed program was" >&5
25862 cat conftest.s >&5
25864 rm -f conftest.o conftest.s
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25868 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25869 if test $gcc_cv_as_sparc_relax = yes; then
25871 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25877 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25878 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25879 $as_echo_n "(cached) " >&6
25880 else
25881 gcc_cv_as_sparc_gotdata_op=no
25882 if test x$gcc_cv_as != x; then
25883 $as_echo '.text
25884 .align 4
25885 foo:
25887 bar:
25888 sethi %gdop_hix22(foo), %g1
25889 xor %g1, %gdop_lox10(foo), %g1
25890 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25893 (eval $ac_try) 2>&5
25894 ac_status=$?
25895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25896 test $ac_status = 0; }; }
25897 then
25898 if test x$gcc_cv_ld != x \
25899 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25900 if test x$gcc_cv_objdump != x; then
25901 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25902 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25903 gcc_cv_as_sparc_gotdata_op=no
25904 else
25905 gcc_cv_as_sparc_gotdata_op=yes
25909 rm -f conftest
25910 else
25911 echo "configure: failed program was" >&5
25912 cat conftest.s >&5
25914 rm -f conftest.o conftest.s
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25918 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25919 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25921 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25927 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25928 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25929 $as_echo_n "(cached) " >&6
25930 else
25931 gcc_cv_as_sparc_ua_pcrel=no
25932 if test x$gcc_cv_as != x; then
25933 $as_echo '.text
25934 foo:
25936 .data
25937 .align 4
25938 .byte 0
25939 .uaword %r_disp32(foo)' > conftest.s
25940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25942 (eval $ac_try) 2>&5
25943 ac_status=$?
25944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25945 test $ac_status = 0; }; }
25946 then
25947 if test x$gcc_cv_ld != x \
25948 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25949 gcc_cv_as_sparc_ua_pcrel=yes
25951 rm -f conftest
25952 else
25953 echo "configure: failed program was" >&5
25954 cat conftest.s >&5
25956 rm -f conftest.o conftest.s
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25960 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25961 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25963 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25967 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25968 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25969 $as_echo_n "(cached) " >&6
25970 else
25971 gcc_cv_as_sparc_ua_pcrel_hidden=no
25972 if test x$gcc_cv_as != x; then
25973 $as_echo '.data
25974 .align 4
25975 .byte 0x31
25976 .uaword %r_disp32(foo)
25977 .byte 0x32, 0x33, 0x34
25978 .global foo
25979 .hidden foo
25980 foo:
25981 .skip 4' > conftest.s
25982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25984 (eval $ac_try) 2>&5
25985 ac_status=$?
25986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25987 test $ac_status = 0; }; }
25988 then
25989 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25990 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25991 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25992 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25993 if $gcc_cv_objdump -R conftest 2> /dev/null \
25994 | grep 'DISP32' > /dev/null 2>&1; then
25996 else
25997 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26000 rm -f conftest
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_sparc_ua_pcrel_hidden" >&5
26009 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26010 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26012 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26018 # unaligned pcrel relocs
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26021 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26022 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26023 $as_echo_n "(cached) " >&6
26024 else
26025 gcc_cv_as_sparc_offsetable_lo10=no
26026 if test x$gcc_cv_as != x; then
26027 $as_echo '.text
26028 or %g1, %lo(ab) + 12, %g1
26029 or %g1, %lo(ab + 12), %g1' > conftest.s
26030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26032 (eval $ac_try) 2>&5
26033 ac_status=$?
26034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26035 test $ac_status = 0; }; }
26036 then
26037 if test x$gcc_cv_objdump != x \
26038 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26039 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26040 gcc_cv_as_sparc_offsetable_lo10=yes
26042 else
26043 echo "configure: failed program was" >&5
26044 cat conftest.s >&5
26046 rm -f conftest.o conftest.s
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26050 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26051 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26053 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26059 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26060 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26061 $as_echo_n "(cached) " >&6
26062 else
26063 gcc_cv_as_sparc_fmaf=no
26064 if test x$gcc_cv_as != x; then
26065 $as_echo '.text
26066 .register %g2, #scratch
26067 .register %g3, #scratch
26068 .align 4
26069 fmaddd %f0, %f2, %f4, %f6
26070 addxccc %g1, %g2, %g3
26071 fsrl32 %f2, %f4, %f8
26072 fnaddd %f10, %f12, %f14' > conftest.s
26073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26075 (eval $ac_try) 2>&5
26076 ac_status=$?
26077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26078 test $ac_status = 0; }; }
26079 then
26080 gcc_cv_as_sparc_fmaf=yes
26081 else
26082 echo "configure: failed program was" >&5
26083 cat conftest.s >&5
26085 rm -f conftest.o conftest.s
26088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26089 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26090 if test $gcc_cv_as_sparc_fmaf = yes; then
26092 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26098 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26099 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26100 $as_echo_n "(cached) " >&6
26101 else
26102 gcc_cv_as_sparc_sparc4=no
26103 if test x$gcc_cv_as != x; then
26104 $as_echo '.text
26105 .register %g2, #scratch
26106 .register %g3, #scratch
26107 .align 4
26108 cxbe %g2, %g3, 1f
26109 1: cwbneg %g2, %g3, 1f
26110 1: sha1
26112 aes_kexpand0 %f4, %f6, %f8
26113 des_round %f38, %f40, %f42, %f44
26114 camellia_f %f54, %f56, %f58, %f60
26115 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26118 (eval $ac_try) 2>&5
26119 ac_status=$?
26120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26121 test $ac_status = 0; }; }
26122 then
26123 gcc_cv_as_sparc_sparc4=yes
26124 else
26125 echo "configure: failed program was" >&5
26126 cat conftest.s >&5
26128 rm -f conftest.o conftest.s
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26132 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26133 if test $gcc_cv_as_sparc_sparc4 = yes; then
26135 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26141 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26142 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26143 $as_echo_n "(cached) " >&6
26144 else
26145 gcc_cv_as_sparc_sparc5=no
26146 if test x$gcc_cv_as != x; then
26147 $as_echo '.text
26148 .register %g2, #scratch
26149 .register %g3, #scratch
26150 .align 4
26151 subxc %g1, %g2, %g3
26152 fpadd8 %f0, %f2, %f4' > conftest.s
26153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26155 (eval $ac_try) 2>&5
26156 ac_status=$?
26157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26158 test $ac_status = 0; }; }
26159 then
26160 gcc_cv_as_sparc_sparc5=yes
26161 else
26162 echo "configure: failed program was" >&5
26163 cat conftest.s >&5
26165 rm -f conftest.o conftest.s
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26169 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26170 if test $gcc_cv_as_sparc_sparc5 = yes; then
26172 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26178 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26179 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26180 $as_echo_n "(cached) " >&6
26181 else
26182 gcc_cv_as_sparc_sparc6=no
26183 if test x$gcc_cv_as != x; then
26184 $as_echo '.text
26185 .register %g2, #scratch
26186 .register %g3, #scratch
26187 .align 4
26188 rd %entropy, %g1
26189 fpsll64x %f0, %f2, %f4' > conftest.s
26190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26195 test $ac_status = 0; }; }
26196 then
26197 gcc_cv_as_sparc_sparc6=yes
26198 else
26199 echo "configure: failed program was" >&5
26200 cat conftest.s >&5
26202 rm -f conftest.o conftest.s
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26206 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26207 if test $gcc_cv_as_sparc_sparc6 = yes; then
26209 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26215 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26216 if ${gcc_cv_as_sparc_leon+:} false; then :
26217 $as_echo_n "(cached) " >&6
26218 else
26219 gcc_cv_as_sparc_leon=no
26220 if test x$gcc_cv_as != x; then
26221 $as_echo '.text
26222 .register %g2, #scratch
26223 .register %g3, #scratch
26224 .align 4
26225 smac %g2, %g3, %g1
26226 umac %g2, %g3, %g1
26227 casa [%g2] 0xb, %g3, %g1' > conftest.s
26228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26230 (eval $ac_try) 2>&5
26231 ac_status=$?
26232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26233 test $ac_status = 0; }; }
26234 then
26235 gcc_cv_as_sparc_leon=yes
26236 else
26237 echo "configure: failed program was" >&5
26238 cat conftest.s >&5
26240 rm -f conftest.o conftest.s
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26244 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26245 if test $gcc_cv_as_sparc_leon = yes; then
26247 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26253 i[34567]86-*-* | x86_64-*-*)
26254 case $target_os in
26255 cygwin*)
26256 # Full C++ conformance when using a shared libstdc++-v3 requires some
26257 # support from the Cygwin DLL, which in more recent versions exports
26258 # wrappers to aid in interposing and redirecting operators new, delete,
26259 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26260 # are configuring for a version of Cygwin that exports the wrappers.
26261 if test x$host = x$target && test x$host_cpu = xi686; then
26262 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26263 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26264 gcc_ac_cygwin_dll_wrappers=yes
26265 else
26266 gcc_ac_cygwin_dll_wrappers=no
26269 else
26270 # Can't check presence of libc functions during cross-compile, so
26271 # we just have to assume we're building for an up-to-date target.
26272 gcc_ac_cygwin_dll_wrappers=yes
26275 cat >>confdefs.h <<_ACEOF
26276 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26277 _ACEOF
26279 esac
26280 case $target_os in
26281 cygwin* | pe | mingw32*)
26282 # Recent binutils allows the three-operand form of ".comm" on PE. This
26283 # definition is used unconditionally to initialise the default state of
26284 # the target option variable that governs usage of the feature.
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26286 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26287 if ${gcc_cv_as_comm_has_align+:} false; then :
26288 $as_echo_n "(cached) " >&6
26289 else
26290 gcc_cv_as_comm_has_align=no
26291 if test $in_tree_gas = yes; then
26292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26293 then gcc_cv_as_comm_has_align=yes
26295 elif test x$gcc_cv_as != x; then
26296 $as_echo '.comm foo,1,32' > 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_comm_has_align=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_comm_has_align" >&5
26313 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26317 cat >>confdefs.h <<_ACEOF
26318 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26319 _ACEOF
26321 # Used for DWARF 2 in PE
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26323 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26324 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26325 $as_echo_n "(cached) " >&6
26326 else
26327 gcc_cv_as_ix86_pe_secrel32=no
26328 if test $in_tree_gas = yes; then
26329 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26330 then gcc_cv_as_ix86_pe_secrel32=yes
26332 elif test x$gcc_cv_as != x; then
26333 $as_echo '.text
26334 foo: nop
26335 .data
26336 .secrel32 foo' > conftest.s
26337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26339 (eval $ac_try) 2>&5
26340 ac_status=$?
26341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26342 test $ac_status = 0; }; }
26343 then
26344 if test x$gcc_cv_ld != x \
26345 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26346 gcc_cv_as_ix86_pe_secrel32=yes
26348 rm -f conftest
26349 else
26350 echo "configure: failed program was" >&5
26351 cat conftest.s >&5
26353 rm -f conftest.o conftest.s
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26357 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26358 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26360 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26364 # Test if the assembler supports the extended form of the .section
26365 # directive that specifies section alignment. LTO support uses this,
26366 # but normally only after installation, so we warn but don't fail the
26367 # configure if LTO is enabled but the assembler does not support it.
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26369 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26370 if ${gcc_cv_as_section_has_align+:} false; then :
26371 $as_echo_n "(cached) " >&6
26372 else
26373 gcc_cv_as_section_has_align=no
26374 if test $in_tree_gas = yes; then
26375 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26376 then gcc_cv_as_section_has_align=yes
26378 elif test x$gcc_cv_as != x; then
26379 $as_echo '.section lto_test,"dr0"' > conftest.s
26380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26382 (eval $ac_try) 2>&5
26383 ac_status=$?
26384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26385 test $ac_status = 0; }; }
26386 then
26387 gcc_cv_as_section_has_align=yes
26388 else
26389 echo "configure: failed program was" >&5
26390 cat conftest.s >&5
26392 rm -f conftest.o conftest.s
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26396 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26399 if test x$gcc_cv_as_section_has_align != xyes; then
26400 case ",$enable_languages," in
26401 *,lto,*)
26402 { $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
26403 $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;}
26405 esac
26408 esac
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26411 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26412 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26413 $as_echo_n "(cached) " >&6
26414 else
26415 gcc_cv_as_ix86_xbrace_comment=no
26416 if test x$gcc_cv_as != x; then
26417 $as_echo '.text' > conftest.s
26418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26420 (eval $ac_try) 2>&5
26421 ac_status=$?
26422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26423 test $ac_status = 0; }; }
26424 then
26425 gcc_cv_as_ix86_xbrace_comment=yes
26426 else
26427 echo "configure: failed program was" >&5
26428 cat conftest.s >&5
26430 rm -f conftest.o conftest.s
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26434 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26435 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26437 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26443 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26444 if ${gcc_cv_as_ix86_filds+:} false; then :
26445 $as_echo_n "(cached) " >&6
26446 else
26447 gcc_cv_as_ix86_filds=no
26448 if test x$gcc_cv_as != x; then
26449 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26453 ac_status=$?
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26456 then
26457 gcc_cv_as_ix86_filds=yes
26458 else
26459 echo "configure: failed program was" >&5
26460 cat conftest.s >&5
26462 rm -f conftest.o conftest.s
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26466 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26467 if test $gcc_cv_as_ix86_filds = yes; then
26469 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26475 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26476 if ${gcc_cv_as_ix86_fildq+:} false; then :
26477 $as_echo_n "(cached) " >&6
26478 else
26479 gcc_cv_as_ix86_fildq=no
26480 if test x$gcc_cv_as != x; then
26481 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26487 test $ac_status = 0; }; }
26488 then
26489 gcc_cv_as_ix86_fildq=yes
26490 else
26491 echo "configure: failed program was" >&5
26492 cat conftest.s >&5
26494 rm -f conftest.o conftest.s
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26498 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26499 if test $gcc_cv_as_ix86_fildq = yes; then
26501 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26507 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26508 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26509 $as_echo_n "(cached) " >&6
26510 else
26511 gcc_cv_as_ix86_cmov_sun_syntax=no
26512 if test x$gcc_cv_as != x; then
26513 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26516 (eval $ac_try) 2>&5
26517 ac_status=$?
26518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519 test $ac_status = 0; }; }
26520 then
26521 gcc_cv_as_ix86_cmov_sun_syntax=yes
26522 else
26523 echo "configure: failed program was" >&5
26524 cat conftest.s >&5
26526 rm -f conftest.o conftest.s
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26530 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26531 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26533 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26539 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26540 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26541 $as_echo_n "(cached) " >&6
26542 else
26543 gcc_cv_as_ix86_ffreep=no
26544 if test x$gcc_cv_as != x; then
26545 $as_echo 'ffreep %st(1)' > conftest.s
26546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26548 (eval $ac_try) 2>&5
26549 ac_status=$?
26550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26551 test $ac_status = 0; }; }
26552 then
26553 gcc_cv_as_ix86_ffreep=yes
26554 else
26555 echo "configure: failed program was" >&5
26556 cat conftest.s >&5
26558 rm -f conftest.o conftest.s
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26562 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26563 if test $gcc_cv_as_ix86_ffreep = yes; then
26565 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26571 $as_echo_n "checking assembler for .quad directive... " >&6; }
26572 if ${gcc_cv_as_ix86_quad+:} false; then :
26573 $as_echo_n "(cached) " >&6
26574 else
26575 gcc_cv_as_ix86_quad=no
26576 if test x$gcc_cv_as != x; then
26577 $as_echo '.quad 0' > conftest.s
26578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26580 (eval $ac_try) 2>&5
26581 ac_status=$?
26582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26583 test $ac_status = 0; }; }
26584 then
26585 gcc_cv_as_ix86_quad=yes
26586 else
26587 echo "configure: failed program was" >&5
26588 cat conftest.s >&5
26590 rm -f conftest.o conftest.s
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26594 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26595 if test $gcc_cv_as_ix86_quad = yes; then
26597 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26603 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26604 if ${gcc_cv_as_ix86_sahf+:} false; then :
26605 $as_echo_n "(cached) " >&6
26606 else
26607 gcc_cv_as_ix86_sahf=no
26608 if test x$gcc_cv_as != x; then
26609 $as_echo '.code64
26610 sahf' > conftest.s
26611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26613 (eval $ac_try) 2>&5
26614 ac_status=$?
26615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26616 test $ac_status = 0; }; }
26617 then
26618 gcc_cv_as_ix86_sahf=yes
26619 else
26620 echo "configure: failed program was" >&5
26621 cat conftest.s >&5
26623 rm -f conftest.o conftest.s
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26627 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26628 if test $gcc_cv_as_ix86_sahf = yes; then
26630 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26636 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26637 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26638 $as_echo_n "(cached) " >&6
26639 else
26640 gcc_cv_as_ix86_interunit_movq=no
26641 if test x$gcc_cv_as != x; then
26642 $as_echo '.code64
26643 movq %mm0, %rax
26644 movq %rax, %xmm0' > conftest.s
26645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26647 (eval $ac_try) 2>&5
26648 ac_status=$?
26649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26650 test $ac_status = 0; }; }
26651 then
26652 gcc_cv_as_ix86_interunit_movq=yes
26653 else
26654 echo "configure: failed program was" >&5
26655 cat conftest.s >&5
26657 rm -f conftest.o conftest.s
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26661 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26665 cat >>confdefs.h <<_ACEOF
26666 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26667 _ACEOF
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26671 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26672 if ${gcc_cv_as_ix86_hle+:} false; then :
26673 $as_echo_n "(cached) " >&6
26674 else
26675 gcc_cv_as_ix86_hle=no
26676 if test x$gcc_cv_as != x; then
26677 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26684 then
26685 gcc_cv_as_ix86_hle=yes
26686 else
26687 echo "configure: failed program was" >&5
26688 cat conftest.s >&5
26690 rm -f conftest.o conftest.s
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26694 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26695 if test $gcc_cv_as_ix86_hle = yes; then
26697 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26703 $as_echo_n "checking assembler for swap suffix... " >&6; }
26704 if ${gcc_cv_as_ix86_swap+:} false; then :
26705 $as_echo_n "(cached) " >&6
26706 else
26707 gcc_cv_as_ix86_swap=no
26708 if test x$gcc_cv_as != x; then
26709 $as_echo 'movl.s %esp, %ebp' > conftest.s
26710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26715 test $ac_status = 0; }; }
26716 then
26717 gcc_cv_as_ix86_swap=yes
26718 else
26719 echo "configure: failed program was" >&5
26720 cat conftest.s >&5
26722 rm -f conftest.o conftest.s
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26726 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26727 if test $gcc_cv_as_ix86_swap = yes; then
26729 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26735 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26736 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26737 $as_echo_n "(cached) " >&6
26738 else
26739 gcc_cv_as_ix86_diff_sect_delta=no
26740 if test x$gcc_cv_as != x; then
26741 $as_echo '.section .rodata
26742 .L1:
26743 .long .L2-.L1
26744 .long .L3-.L1
26745 .text
26746 .L3: nop
26747 .L2: nop' > conftest.s
26748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26753 test $ac_status = 0; }; }
26754 then
26755 gcc_cv_as_ix86_diff_sect_delta=yes
26756 else
26757 echo "configure: failed program was" >&5
26758 cat conftest.s >&5
26760 rm -f conftest.o conftest.s
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26764 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26765 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26767 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26773 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26774 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26775 $as_echo_n "(cached) " >&6
26776 else
26777 gcc_cv_as_ix86_rep_lock_prefix=no
26778 if test x$gcc_cv_as != x; then
26779 $as_echo 'rep movsl
26780 rep ret
26781 rep nop
26782 rep bsf %ecx, %eax
26783 rep bsr %ecx, %eax
26784 lock addl %edi, (%eax,%esi)
26785 lock orl $0, (%esp)' > conftest.s
26786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26788 (eval $ac_try) 2>&5
26789 ac_status=$?
26790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26791 test $ac_status = 0; }; }
26792 then
26793 gcc_cv_as_ix86_rep_lock_prefix=yes
26794 else
26795 echo "configure: failed program was" >&5
26796 cat conftest.s >&5
26798 rm -f conftest.o conftest.s
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26802 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26803 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26805 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26811 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26812 if ${gcc_cv_as_ix86_ud2+:} false; then :
26813 $as_echo_n "(cached) " >&6
26814 else
26815 gcc_cv_as_ix86_ud2=no
26816 if test x$gcc_cv_as != x; then
26817 $as_echo 'ud2' > conftest.s
26818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26820 (eval $ac_try) 2>&5
26821 ac_status=$?
26822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26823 test $ac_status = 0; }; }
26824 then
26825 gcc_cv_as_ix86_ud2=yes
26826 else
26827 echo "configure: failed program was" >&5
26828 cat conftest.s >&5
26830 rm -f conftest.o conftest.s
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26834 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26835 if test $gcc_cv_as_ix86_ud2 = yes; then
26837 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26842 # Enforce 32-bit output with gas and gld.
26843 if test x$gas = xyes; then
26844 as_ix86_gas_32_opt="--32"
26846 if echo "$ld_ver" | grep GNU > /dev/null; then
26847 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26848 ld_ix86_gld_32_opt="-melf_i386_sol2"
26849 else
26850 ld_ix86_gld_32_opt="-melf_i386"
26854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26855 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26856 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26857 $as_echo_n "(cached) " >&6
26858 else
26859 gcc_cv_as_ix86_tlsgdplt=no
26860 if test x$gcc_cv_as != x; then
26861 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26864 (eval $ac_try) 2>&5
26865 ac_status=$?
26866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26867 test $ac_status = 0; }; }
26868 then
26869 if test x$gcc_cv_ld != x \
26870 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26871 gcc_cv_as_ix86_tlsgdplt=yes
26873 rm -f conftest
26874 else
26875 echo "configure: failed program was" >&5
26876 cat conftest.s >&5
26878 rm -f conftest.o conftest.s
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26882 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26883 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26885 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26890 conftest_s='
26891 .section .tdata,"aw'$tls_section_flag'",@progbits
26892 tls_ld:
26893 .section .text,"ax",@progbits
26894 call tls_ld@tlsldmplt'
26896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26897 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26898 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26899 $as_echo_n "(cached) " >&6
26900 else
26901 gcc_cv_as_ix86_tlsldmplt=no
26902 if test x$gcc_cv_as != x; then
26903 $as_echo "$conftest_s" > conftest.s
26904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26906 (eval $ac_try) 2>&5
26907 ac_status=$?
26908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26909 test $ac_status = 0; }; }
26910 then
26911 if test x$gcc_cv_ld != x \
26912 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26913 gcc_cv_as_ix86_tlsldmplt=yes
26915 rm -f conftest
26916 else
26917 echo "configure: failed program was" >&5
26918 cat conftest.s >&5
26920 rm -f conftest.o conftest.s
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26924 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26928 cat >>confdefs.h <<_ACEOF
26929 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26930 _ACEOF
26933 conftest_s='
26934 .section .text,"ax",@progbits
26935 .globl _start
26936 .type _start, @function
26937 _start:
26938 leal value@tlsldm(%ebx), %eax
26939 call ___tls_get_addr@plt
26941 .section .tdata,"aw'$tls_section_flag'",@progbits
26942 .type value, @object
26943 value:'
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26945 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26946 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26947 $as_echo_n "(cached) " >&6
26948 else
26949 gcc_cv_as_ix86_tlsldm=no
26950 if test x$gcc_cv_as != x; then
26951 $as_echo "$conftest_s" > conftest.s
26952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26954 (eval $ac_try) 2>&5
26955 ac_status=$?
26956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26957 test $ac_status = 0; }; }
26958 then
26959 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26960 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26961 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26962 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26963 gcc_cv_as_ix86_tlsldm=yes
26966 rm -f conftest
26967 else
26968 echo "configure: failed program was" >&5
26969 cat conftest.s >&5
26971 rm -f conftest.o conftest.s
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26975 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26979 cat >>confdefs.h <<_ACEOF
26980 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26981 _ACEOF
26984 conftest_s='
26985 .data
26986 bar:
26987 .byte 1
26988 .text
26989 .global _start
26990 _start:
26991 cmpl $0, bar@GOT
26992 jmp *_start@GOT'
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26994 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26995 if ${gcc_cv_as_ix86_got32x+:} false; then :
26996 $as_echo_n "(cached) " >&6
26997 else
26998 gcc_cv_as_ix86_got32x=no
26999 if test x$gcc_cv_as != x; then
27000 $as_echo "$conftest_s" > conftest.s
27001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27003 (eval $ac_try) 2>&5
27004 ac_status=$?
27005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27006 test $ac_status = 0; }; }
27007 then
27008 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27009 && test x$gcc_cv_readelf != x \
27010 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27011 | grep R_386_GOT32X > /dev/null 2>&1 \
27012 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27013 if $gcc_cv_objdump -dw conftest 2>&1 \
27014 | grep 0xffffff > /dev/null 2>&1; then
27015 gcc_cv_as_ix86_got32x=no
27016 else
27017 gcc_cv_as_ix86_got32x=yes
27020 rm -f conftest
27021 else
27022 echo "configure: failed program was" >&5
27023 cat conftest.s >&5
27025 rm -f conftest.o conftest.s
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27029 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27033 cat >>confdefs.h <<_ACEOF
27034 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27035 _ACEOF
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27039 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27040 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27041 $as_echo_n "(cached) " >&6
27042 else
27043 gcc_cv_as_ix86_gotoff_in_data=no
27044 if test $in_tree_gas = yes; then
27045 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27046 then gcc_cv_as_ix86_gotoff_in_data=yes
27048 elif test x$gcc_cv_as != x; then
27049 $as_echo ' .text
27050 .L0:
27052 .data
27053 .long .L0@GOTOFF' > conftest.s
27054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27056 (eval $ac_try) 2>&5
27057 ac_status=$?
27058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27059 test $ac_status = 0; }; }
27060 then
27061 gcc_cv_as_ix86_gotoff_in_data=yes
27062 else
27063 echo "configure: failed program was" >&5
27064 cat conftest.s >&5
27066 rm -f conftest.o conftest.s
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27070 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27074 cat >>confdefs.h <<_ACEOF
27075 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27076 _ACEOF
27079 conftest_s='
27080 .section .text,"ax",@progbits
27081 .globl _start
27082 .type _start, @function
27083 _start:
27084 leal ld@tlsldm(%ecx), %eax
27085 call *___tls_get_addr@GOT(%ecx)
27086 leal gd@tlsgd(%ecx), %eax
27087 call *___tls_get_addr@GOT(%ecx)
27089 .section .tdata,"aw'$tls_section_flag'",@progbits
27090 .type ld, @object
27092 .byte 0
27093 .globl gd
27094 .type gd, @object
27096 .byte 0'
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27098 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27099 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27100 $as_echo_n "(cached) " >&6
27101 else
27102 gcc_cv_as_ix86_tls_get_addr_via_got=no
27103 if test x$gcc_cv_as != x; then
27104 $as_echo "$conftest_s" > conftest.s
27105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27107 (eval $ac_try) 2>&5
27108 ac_status=$?
27109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27110 test $ac_status = 0; }; }
27111 then
27112 if test x$gcc_cv_ld != x \
27113 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27114 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27116 rm -f conftest
27117 else
27118 echo "configure: failed program was" >&5
27119 cat conftest.s >&5
27121 rm -f conftest.o conftest.s
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27125 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27129 cat >>confdefs.h <<_ACEOF
27130 #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`
27131 _ACEOF
27135 ia64*-*-*)
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27137 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27138 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27139 $as_echo_n "(cached) " >&6
27140 else
27141 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27142 if test $in_tree_gas = yes; then
27143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27144 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27146 elif test x$gcc_cv_as != x; then
27147 $as_echo ' .text
27148 addl r15 = @ltoffx(x#), gp
27150 ld8.mov r16 = [r15], x#
27151 ' > conftest.s
27152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27154 (eval $ac_try) 2>&5
27155 ac_status=$?
27156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27157 test $ac_status = 0; }; }
27158 then
27159 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27160 else
27161 echo "configure: failed program was" >&5
27162 cat conftest.s >&5
27164 rm -f conftest.o conftest.s
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27168 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27169 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27171 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27178 powerpc*-*-*)
27180 case $target in
27181 *-*-darwin*)
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27183 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27184 if ${gcc_cv_as_machine_directive+:} false; then :
27185 $as_echo_n "(cached) " >&6
27186 else
27187 gcc_cv_as_machine_directive=no
27188 if test x$gcc_cv_as != x; then
27189 $as_echo ' .machine ppc7400' > conftest.s
27190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27192 (eval $ac_try) 2>&5
27193 ac_status=$?
27194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27195 test $ac_status = 0; }; }
27196 then
27197 gcc_cv_as_machine_directive=yes
27198 else
27199 echo "configure: failed program was" >&5
27200 cat conftest.s >&5
27202 rm -f conftest.o conftest.s
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27206 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27209 if test x$gcc_cv_as_machine_directive != xyes; then
27210 echo "*** This target requires an assembler supporting \".machine\"" >&2
27211 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27212 test x$build = x$target && exit 1
27215 esac
27217 case $target in
27218 *-*-aix*) conftest_s=' .machine "pwr5"
27219 .csect .text[PR]
27220 mfcr 3,128';;
27221 *-*-darwin*) conftest_s=' .text
27222 mfcr r3,128';;
27223 *) conftest_s=' .machine power4
27224 .text
27225 mfcr 3,128';;
27226 esac
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27229 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27230 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27231 $as_echo_n "(cached) " >&6
27232 else
27233 gcc_cv_as_powerpc_mfcrf=no
27234 if test $in_tree_gas = yes; then
27235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27236 then gcc_cv_as_powerpc_mfcrf=yes
27238 elif test x$gcc_cv_as != x; then
27239 $as_echo "$conftest_s" > conftest.s
27240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27242 (eval $ac_try) 2>&5
27243 ac_status=$?
27244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27245 test $ac_status = 0; }; }
27246 then
27247 gcc_cv_as_powerpc_mfcrf=yes
27248 else
27249 echo "configure: failed program was" >&5
27250 cat conftest.s >&5
27252 rm -f conftest.o conftest.s
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27256 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27257 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27259 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27264 case $target in
27265 *-*-aix*) conftest_s=' .csect .text[PR]
27266 LCF..0:
27267 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27268 *-*-darwin*)
27269 conftest_s=' .text
27270 LCF0:
27271 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27272 *) conftest_s=' .text
27273 .LCF0:
27274 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27275 esac
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27278 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27279 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27280 $as_echo_n "(cached) " >&6
27281 else
27282 gcc_cv_as_powerpc_rel16=no
27283 if test $in_tree_gas = yes; then
27284 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27285 then gcc_cv_as_powerpc_rel16=yes
27287 elif test x$gcc_cv_as != x; then
27288 $as_echo "$conftest_s" > conftest.s
27289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27291 (eval $ac_try) 2>&5
27292 ac_status=$?
27293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27294 test $ac_status = 0; }; }
27295 then
27296 gcc_cv_as_powerpc_rel16=yes
27297 else
27298 echo "configure: failed program was" >&5
27299 cat conftest.s >&5
27301 rm -f conftest.o conftest.s
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27305 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27306 if test $gcc_cv_as_powerpc_rel16 = yes; then
27308 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27313 case $target in
27314 *-*-aix*) conftest_s=' .machine "pwr7"
27315 .csect .text[PR]
27316 lxvd2x 1,2,3';;
27317 *) conftest_s=' .machine power7
27318 .text
27319 lxvd2x 1,2,3';;
27320 esac
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27323 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27324 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27325 $as_echo_n "(cached) " >&6
27326 else
27327 gcc_cv_as_powerpc_vsx=no
27328 if test $in_tree_gas = yes; then
27329 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27330 then gcc_cv_as_powerpc_vsx=yes
27332 elif test x$gcc_cv_as != x; then
27333 $as_echo "$conftest_s" > conftest.s
27334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27336 (eval $ac_try) 2>&5
27337 ac_status=$?
27338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27339 test $ac_status = 0; }; }
27340 then
27341 gcc_cv_as_powerpc_vsx=yes
27342 else
27343 echo "configure: failed program was" >&5
27344 cat conftest.s >&5
27346 rm -f conftest.o conftest.s
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27350 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27351 if test $gcc_cv_as_powerpc_vsx = yes; then
27353 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27359 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27360 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27361 $as_echo_n "(cached) " >&6
27362 else
27363 gcc_cv_as_powerpc_gnu_attribute=no
27364 if test $in_tree_gas = yes; then
27365 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27366 then gcc_cv_as_powerpc_gnu_attribute=yes
27368 elif test x$gcc_cv_as != x; then
27369 $as_echo '.gnu_attribute 4,1' > conftest.s
27370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27372 (eval $ac_try) 2>&5
27373 ac_status=$?
27374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27375 test $ac_status = 0; }; }
27376 then
27377 gcc_cv_as_powerpc_gnu_attribute=yes
27378 else
27379 echo "configure: failed program was" >&5
27380 cat conftest.s >&5
27382 rm -f conftest.o conftest.s
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27386 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27387 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27389 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27395 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27396 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27397 $as_echo_n "(cached) " >&6
27398 else
27399 gcc_cv_as_powerpc_entry_markers=no
27400 if test $in_tree_gas = yes; then
27401 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27402 then gcc_cv_as_powerpc_entry_markers=yes
27404 elif test x$gcc_cv_as != x; then
27405 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27408 (eval $ac_try) 2>&5
27409 ac_status=$?
27410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27411 test $ac_status = 0; }; }
27412 then
27413 gcc_cv_as_powerpc_entry_markers=yes
27414 else
27415 echo "configure: failed program was" >&5
27416 cat conftest.s >&5
27418 rm -f conftest.o conftest.s
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27422 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27423 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27425 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27431 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27432 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27433 $as_echo_n "(cached) " >&6
27434 else
27435 gcc_cv_as_powerpc_pltseq_markers=no
27436 if test $in_tree_gas = yes; then
27437 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27438 then gcc_cv_as_powerpc_pltseq_markers=yes
27440 elif test x$gcc_cv_as != x; then
27441 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27444 (eval $ac_try) 2>&5
27445 ac_status=$?
27446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27447 test $ac_status = 0; }; }
27448 then
27449 gcc_cv_as_powerpc_pltseq_markers=yes
27450 else
27451 echo "configure: failed program was" >&5
27452 cat conftest.s >&5
27454 rm -f conftest.o conftest.s
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27458 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27459 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27461 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27466 case $target in
27467 *-*-aix*)
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27469 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27470 if ${gcc_cv_as_aix_ref+:} false; then :
27471 $as_echo_n "(cached) " >&6
27472 else
27473 gcc_cv_as_aix_ref=no
27474 if test $in_tree_gas = yes; then
27475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27476 then gcc_cv_as_aix_ref=yes
27478 elif test x$gcc_cv_as != x; then
27479 $as_echo ' .csect stuff[rw]
27480 stuff:
27481 .long 1
27482 .extern sym
27483 .ref sym
27484 ' > conftest.s
27485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27487 (eval $ac_try) 2>&5
27488 ac_status=$?
27489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27490 test $ac_status = 0; }; }
27491 then
27492 gcc_cv_as_aix_ref=yes
27493 else
27494 echo "configure: failed program was" >&5
27495 cat conftest.s >&5
27497 rm -f conftest.o conftest.s
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27501 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27502 if test $gcc_cv_as_aix_ref = yes; then
27504 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27510 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27511 if ${gcc_cv_as_aix_dwloc+:} false; then :
27512 $as_echo_n "(cached) " >&6
27513 else
27514 gcc_cv_as_aix_dwloc=no
27515 if test $in_tree_gas = yes; then
27516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27517 then gcc_cv_as_aix_dwloc=yes
27519 elif test x$gcc_cv_as != x; then
27520 $as_echo ' .dwsect 0xA0000
27521 Lframe..0:
27522 .vbyte 4,Lframe..0
27523 ' > conftest.s
27524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27526 (eval $ac_try) 2>&5
27527 ac_status=$?
27528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27529 test $ac_status = 0; }; }
27530 then
27531 gcc_cv_as_aix_dwloc=yes
27532 else
27533 echo "configure: failed program was" >&5
27534 cat conftest.s >&5
27536 rm -f conftest.o conftest.s
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27540 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27541 if test $gcc_cv_as_aix_dwloc = yes; then
27543 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27548 esac
27551 mips*-*-*)
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27553 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27554 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27555 $as_echo_n "(cached) " >&6
27556 else
27557 gcc_cv_as_mips_explicit_relocs=no
27558 if test $in_tree_gas = yes; then
27559 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27560 then gcc_cv_as_mips_explicit_relocs=yes
27562 elif test x$gcc_cv_as != x; then
27563 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27566 (eval $ac_try) 2>&5
27567 ac_status=$?
27568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27569 test $ac_status = 0; }; }
27570 then
27571 gcc_cv_as_mips_explicit_relocs=yes
27572 else
27573 echo "configure: failed program was" >&5
27574 cat conftest.s >&5
27576 rm -f conftest.o conftest.s
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27580 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27581 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27582 if test x$target_cpu_default = x
27583 then target_cpu_default=MASK_EXPLICIT_RELOCS
27584 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27590 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27591 if ${gcc_cv_as_mips_no_shared+:} false; then :
27592 $as_echo_n "(cached) " >&6
27593 else
27594 gcc_cv_as_mips_no_shared=no
27595 if test $in_tree_gas = yes; then
27596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27597 then gcc_cv_as_mips_no_shared=yes
27599 elif test x$gcc_cv_as != x; then
27600 $as_echo 'nop' > conftest.s
27601 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27603 (eval $ac_try) 2>&5
27604 ac_status=$?
27605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27606 test $ac_status = 0; }; }
27607 then
27608 gcc_cv_as_mips_no_shared=yes
27609 else
27610 echo "configure: failed program was" >&5
27611 cat conftest.s >&5
27613 rm -f conftest.o conftest.s
27616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27617 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27618 if test $gcc_cv_as_mips_no_shared = yes; then
27620 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27626 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27627 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27628 $as_echo_n "(cached) " >&6
27629 else
27630 gcc_cv_as_mips_gnu_attribute=no
27631 if test $in_tree_gas = yes; then
27632 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27633 then gcc_cv_as_mips_gnu_attribute=yes
27635 elif test x$gcc_cv_as != x; then
27636 $as_echo '.gnu_attribute 4,1' > conftest.s
27637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27639 (eval $ac_try) 2>&5
27640 ac_status=$?
27641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27642 test $ac_status = 0; }; }
27643 then
27644 gcc_cv_as_mips_gnu_attribute=yes
27645 else
27646 echo "configure: failed program was" >&5
27647 cat conftest.s >&5
27649 rm -f conftest.o conftest.s
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27653 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27654 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27656 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27662 $as_echo_n "checking assembler for .module support... " >&6; }
27663 if ${gcc_cv_as_mips_dot_module+:} false; then :
27664 $as_echo_n "(cached) " >&6
27665 else
27666 gcc_cv_as_mips_dot_module=no
27667 if test x$gcc_cv_as != x; then
27668 $as_echo '.module mips2
27669 .module fp=xx' > conftest.s
27670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27672 (eval $ac_try) 2>&5
27673 ac_status=$?
27674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27675 test $ac_status = 0; }; }
27676 then
27677 gcc_cv_as_mips_dot_module=yes
27678 else
27679 echo "configure: failed program was" >&5
27680 cat conftest.s >&5
27682 rm -f conftest.o conftest.s
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27686 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27687 if test $gcc_cv_as_mips_dot_module = yes; then
27689 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27693 if test x$gcc_cv_as_mips_dot_module = xno \
27694 && test x$with_fp_32 != x; then
27695 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27699 $as_echo_n "checking assembler for .micromips support... " >&6; }
27700 if ${gcc_cv_as_micromips_support+:} false; then :
27701 $as_echo_n "(cached) " >&6
27702 else
27703 gcc_cv_as_micromips_support=no
27704 if test x$gcc_cv_as != x; then
27705 $as_echo '.set micromips' > conftest.s
27706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27708 (eval $ac_try) 2>&5
27709 ac_status=$?
27710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27711 test $ac_status = 0; }; }
27712 then
27713 gcc_cv_as_micromips_support=yes
27714 else
27715 echo "configure: failed program was" >&5
27716 cat conftest.s >&5
27718 rm -f conftest.o conftest.s
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27722 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27723 if test $gcc_cv_as_micromips_support = yes; then
27725 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27731 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27732 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27733 $as_echo_n "(cached) " >&6
27734 else
27735 gcc_cv_as_mips_dtprelword=no
27736 if test $in_tree_gas = yes; then
27737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27738 then gcc_cv_as_mips_dtprelword=yes
27740 elif test x$gcc_cv_as != x; then
27741 $as_echo '.section .tdata,"awT",@progbits
27743 .word 2
27744 .text
27745 .dtprelword x+0x8000' > conftest.s
27746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27748 (eval $ac_try) 2>&5
27749 ac_status=$?
27750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27751 test $ac_status = 0; }; }
27752 then
27753 gcc_cv_as_mips_dtprelword=yes
27754 else
27755 echo "configure: failed program was" >&5
27756 cat conftest.s >&5
27758 rm -f conftest.o conftest.s
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27762 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27763 if test $gcc_cv_as_mips_dtprelword = yes; then
27765 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27771 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27772 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27773 $as_echo_n "(cached) " >&6
27774 else
27775 gcc_cv_as_mips_dspr1_mult=no
27776 if test x$gcc_cv_as != x; then
27777 $as_echo ' .set mips32r2
27778 .set nodspr2
27779 .set dsp
27780 madd $ac3,$4,$5
27781 maddu $ac3,$4,$5
27782 msub $ac3,$4,$5
27783 msubu $ac3,$4,$5
27784 mult $ac3,$4,$5
27785 multu $ac3,$4,$5' > conftest.s
27786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27788 (eval $ac_try) 2>&5
27789 ac_status=$?
27790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27791 test $ac_status = 0; }; }
27792 then
27793 gcc_cv_as_mips_dspr1_mult=yes
27794 else
27795 echo "configure: failed program was" >&5
27796 cat conftest.s >&5
27798 rm -f conftest.o conftest.s
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27802 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27803 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27805 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27811 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27812 gcc_cv_as_ld_jalr_reloc=no
27813 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27814 if test $in_tree_ld = yes ; then
27815 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 \
27816 && test $in_tree_ld_is_elf = yes; then
27817 gcc_cv_as_ld_jalr_reloc=yes
27819 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27820 echo ' .ent x' > conftest.s
27821 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27822 echo ' lw $25,%call16(y)($28)' >> conftest.s
27823 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27824 echo '1: jalr $25' >> conftest.s
27825 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27826 echo '1: jalr $25' >> conftest.s
27827 echo ' .end x' >> conftest.s
27828 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27829 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27830 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27831 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27832 gcc_cv_as_ld_jalr_reloc=yes
27835 rm -f conftest.*
27838 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27839 if test x$target_cpu_default = x; then
27840 target_cpu_default=MASK_RELAX_PIC_CALLS
27841 else
27842 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27846 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27849 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27850 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27851 $as_echo_n "(cached) " >&6
27852 else
27853 gcc_cv_ld_mips_personality_relaxation=no
27854 if test $in_tree_ld = yes ; then
27855 if test "$gcc_cv_gld_major_version" -eq 2 \
27856 -a "$gcc_cv_gld_minor_version" -ge 21 \
27857 -o "$gcc_cv_gld_major_version" -gt 2; then
27858 gcc_cv_ld_mips_personality_relaxation=yes
27860 elif test x$gcc_cv_as != x \
27861 -a x$gcc_cv_ld != x \
27862 -a x$gcc_cv_readelf != x ; then
27863 cat > conftest.s <<EOF
27864 .cfi_startproc
27865 .cfi_personality 0x80,indirect_ptr
27866 .ent test
27867 test:
27869 .end test
27870 .cfi_endproc
27872 .section .data,"aw",@progbits
27873 indirect_ptr:
27874 .dc.a personality
27876 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27877 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27878 if $gcc_cv_readelf -d conftest 2>&1 \
27879 | grep TEXTREL > /dev/null 2>&1; then
27881 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27882 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27884 else
27885 gcc_cv_ld_mips_personality_relaxation=yes
27889 rm -f conftest.s conftest.o conftest
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27892 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27893 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27895 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27900 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27901 if ${gcc_cv_as_mips_nan+:} false; then :
27902 $as_echo_n "(cached) " >&6
27903 else
27904 gcc_cv_as_mips_nan=no
27905 if test x$gcc_cv_as != x; then
27906 $as_echo '' > conftest.s
27907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27909 (eval $ac_try) 2>&5
27910 ac_status=$?
27911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27912 test $ac_status = 0; }; }
27913 then
27914 gcc_cv_as_mips_nan=yes
27915 else
27916 echo "configure: failed program was" >&5
27917 cat conftest.s >&5
27919 rm -f conftest.o conftest.s
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27923 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27924 if test $gcc_cv_as_mips_nan = yes; then
27926 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27930 if test x$gcc_cv_as_mips_nan = xno \
27931 && test x$with_nan != x; then
27932 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27935 msp430-*-*)
27936 # Earlier GAS versions generically support .gnu_attribute, but the
27937 # msp430 assembler will not do anything with it.
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27939 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27940 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27941 $as_echo_n "(cached) " >&6
27942 else
27943 gcc_cv_as_msp430_gnu_attribute=no
27944 if test $in_tree_gas = yes; then
27945 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27946 then gcc_cv_as_msp430_gnu_attribute=yes
27948 elif test x$gcc_cv_as != x; then
27949 $as_echo '.gnu_attribute 4,1' > conftest.s
27950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27952 (eval $ac_try) 2>&5
27953 ac_status=$?
27954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27955 test $ac_status = 0; }; }
27956 then
27957 gcc_cv_as_msp430_gnu_attribute=yes
27958 else
27959 echo "configure: failed program was" >&5
27960 cat conftest.s >&5
27962 rm -f conftest.o conftest.s
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27966 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27967 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27969 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27974 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27975 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27976 $as_echo_n "(cached) " >&6
27977 else
27978 gcc_cv_as_msp430_mspabi_attribute=no
27979 if test $in_tree_gas = yes; then
27980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27981 then gcc_cv_as_msp430_mspabi_attribute=yes
27983 elif test x$gcc_cv_as != x; then
27984 $as_echo '.mspabi_attribute 4,2' > conftest.s
27985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27987 (eval $ac_try) 2>&5
27988 ac_status=$?
27989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27990 test $ac_status = 0; }; }
27991 then
27992 gcc_cv_as_msp430_mspabi_attribute=yes
27993 else
27994 echo "configure: failed program was" >&5
27995 cat conftest.s >&5
27997 rm -f conftest.o conftest.s
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28001 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28002 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28004 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28008 if test x$enable_newlib_nano_formatted_io = xyes; then
28010 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28014 nios2-*-*)
28015 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28016 # syntax that is documented in the ABI specification.
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28018 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28019 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28020 $as_echo_n "(cached) " >&6
28021 else
28022 gcc_cv_as_nios2_gotoff_relocation=no
28023 if test x$gcc_cv_as != x; then
28024 $as_echo ' .extern foo
28025 .data
28026 .long %gotoff(foo)' > conftest.s
28027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28029 (eval $ac_try) 2>&5
28030 ac_status=$?
28031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28032 test $ac_status = 0; }; }
28033 then
28034 gcc_cv_as_nios2_gotoff_relocation=yes
28035 else
28036 echo "configure: failed program was" >&5
28037 cat conftest.s >&5
28039 rm -f conftest.o conftest.s
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28043 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28044 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28046 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28051 riscv*-*-*)
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28053 $as_echo_n "checking assembler for .attribute support... " >&6; }
28054 if ${gcc_cv_as_riscv_attribute+:} false; then :
28055 $as_echo_n "(cached) " >&6
28056 else
28057 gcc_cv_as_riscv_attribute=no
28058 if test $in_tree_gas = yes; then
28059 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28060 then gcc_cv_as_riscv_attribute=yes
28062 elif test x$gcc_cv_as != x; then
28063 $as_echo '.attribute stack_align,4' > conftest.s
28064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28066 (eval $ac_try) 2>&5
28067 ac_status=$?
28068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28069 test $ac_status = 0; }; }
28070 then
28071 gcc_cv_as_riscv_attribute=yes
28072 else
28073 echo "configure: failed program was" >&5
28074 cat conftest.s >&5
28076 rm -f conftest.o conftest.s
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28080 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28081 if test $gcc_cv_as_riscv_attribute = yes; then
28083 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28088 s390*-*-*)
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28090 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28091 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28092 $as_echo_n "(cached) " >&6
28093 else
28094 gcc_cv_as_s390_gnu_attribute=no
28095 if test $in_tree_gas = yes; then
28096 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28097 then gcc_cv_as_s390_gnu_attribute=yes
28099 elif test x$gcc_cv_as != x; then
28100 $as_echo '.gnu_attribute 8,1' > conftest.s
28101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28103 (eval $ac_try) 2>&5
28104 ac_status=$?
28105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28106 test $ac_status = 0; }; }
28107 then
28108 gcc_cv_as_s390_gnu_attribute=yes
28109 else
28110 echo "configure: failed program was" >&5
28111 cat conftest.s >&5
28113 rm -f conftest.o conftest.s
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28117 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28118 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28120 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28125 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28126 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28127 $as_echo_n "(cached) " >&6
28128 else
28129 gcc_cv_as_s390_machine_machinemode=no
28130 if test $in_tree_gas = yes; then
28131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28132 then gcc_cv_as_s390_machine_machinemode=yes
28134 elif test x$gcc_cv_as != x; then
28135 $as_echo ' .machinemode push
28136 .machinemode pop
28137 .machine push
28138 .machine pop' > conftest.s
28139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28141 (eval $ac_try) 2>&5
28142 ac_status=$?
28143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28144 test $ac_status = 0; }; }
28145 then
28146 gcc_cv_as_s390_machine_machinemode=yes
28147 else
28148 echo "configure: failed program was" >&5
28149 cat conftest.s >&5
28151 rm -f conftest.o conftest.s
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28155 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28156 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28158 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28163 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28164 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28165 $as_echo_n "(cached) " >&6
28166 else
28167 gcc_cv_as_s390_architecture_modifiers=no
28168 if test $in_tree_gas = yes; then
28169 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28170 then gcc_cv_as_s390_architecture_modifiers=yes
28172 elif test x$gcc_cv_as != x; then
28173 $as_echo ' .machine z13+vx ' > conftest.s
28174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28176 (eval $ac_try) 2>&5
28177 ac_status=$?
28178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28179 test $ac_status = 0; }; }
28180 then
28181 gcc_cv_as_s390_architecture_modifiers=yes
28182 else
28183 echo "configure: failed program was" >&5
28184 cat conftest.s >&5
28186 rm -f conftest.o conftest.s
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28190 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28191 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28193 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28198 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28199 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28200 $as_echo_n "(cached) " >&6
28201 else
28202 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28203 if test $in_tree_gas = yes; then
28204 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28205 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28207 elif test x$gcc_cv_as != x; then
28208 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28211 (eval $ac_try) 2>&5
28212 ac_status=$?
28213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28214 test $ac_status = 0; }; }
28215 then
28216 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28217 else
28218 echo "configure: failed program was" >&5
28219 cat conftest.s >&5
28221 rm -f conftest.o conftest.s
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28225 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28226 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28228 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28233 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28234 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28235 $as_echo_n "(cached) " >&6
28236 else
28237 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28238 if test x$gcc_cv_as != x; then
28239 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28242 (eval $ac_try) 2>&5
28243 ac_status=$?
28244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28245 test $ac_status = 0; }; }
28246 then
28247 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28248 else
28249 echo "configure: failed program was" >&5
28250 cat conftest.s >&5
28252 rm -f conftest.o conftest.s
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28256 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28257 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28259 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28265 esac
28267 # Mips and HP-UX need the GNU assembler.
28268 # Linux on IA64 might be able to use the Intel assembler.
28270 case "$target" in
28271 mips*-*-* | *-*-hpux* )
28272 if test x$gas_flag = xyes \
28273 || test x"$host" != x"$build" \
28274 || test ! -x "$gcc_cv_as" \
28275 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28277 else
28278 echo "*** This configuration requires the GNU assembler" >&2
28279 exit 1
28282 esac
28284 # ??? Not all targets support dwarf2 debug_line, even within a version
28285 # of gas. Moreover, we need to emit a valid instruction to trigger any
28286 # info to the output file. So, as supported targets are added to gas 2.11,
28287 # add some instruction here to (also) show we expect this might work.
28288 # ??? Once 2.11 is released, probably need to add first known working
28289 # version to the per-target configury.
28290 case "$cpu_type" in
28291 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28292 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28293 | tilegx | tilepro | visium | xstormy16 | xtensa)
28294 insn="nop"
28296 ia64 | s390)
28297 insn="nop 0"
28299 mmix)
28300 insn="swym 0"
28302 esac
28303 if test x"$insn" != x; then
28304 conftest_s="\
28305 .file 1 \"conftest.s\"
28306 .loc 1 3 0
28307 $insn"
28308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28309 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28310 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28311 $as_echo_n "(cached) " >&6
28312 else
28313 gcc_cv_as_dwarf2_debug_line=no
28314 if test $in_tree_gas = yes; then
28315 if test $in_tree_gas_is_elf = yes \
28316 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28317 then gcc_cv_as_dwarf2_debug_line=yes
28319 elif test x$gcc_cv_as != x; then
28320 $as_echo "$conftest_s" > conftest.s
28321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28323 (eval $ac_try) 2>&5
28324 ac_status=$?
28325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28326 test $ac_status = 0; }; }
28327 then
28328 if test x$gcc_cv_objdump != x \
28329 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28330 | grep debug_line > /dev/null 2>&1; then
28331 gcc_cv_as_dwarf2_debug_line=yes
28332 elif test x$gcc_cv_otool != x \
28333 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28334 | grep debug_line > /dev/null 2>&1; then
28335 gcc_cv_as_dwarf2_debug_line=yes
28337 else
28338 echo "configure: failed program was" >&5
28339 cat conftest.s >&5
28341 rm -f conftest.o conftest.s
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28345 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28349 # The .debug_line file table must be in the exact order that
28350 # we specified the files, since these indices are also used
28351 # by DW_AT_decl_file. Approximate this test by testing if
28352 # the assembler bitches if the same index is assigned twice.
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28354 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28355 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28356 $as_echo_n "(cached) " >&6
28357 else
28358 gcc_cv_as_dwarf2_file_buggy=no
28359 if test x$gcc_cv_as != x; then
28360 $as_echo ' .file 1 "foo.s"
28361 .file 1 "bar.s"' > conftest.s
28362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28364 (eval $ac_try) 2>&5
28365 ac_status=$?
28366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28367 test $ac_status = 0; }; }
28368 then
28369 gcc_cv_as_dwarf2_file_buggy=yes
28370 else
28371 echo "configure: failed program was" >&5
28372 cat conftest.s >&5
28374 rm -f conftest.o conftest.s
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28378 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28382 if test $gcc_cv_as_dwarf2_debug_line = yes \
28383 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28385 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28388 if test $gcc_cv_as_leb128 = yes; then
28389 conftest_s="\
28390 .file 1 \"conftest.s\"
28391 .loc 1 3 0 view .LVU1
28392 $insn
28393 .data
28394 .uleb128 .LVU1
28395 .uleb128 .LVU1
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28398 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28399 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28400 $as_echo_n "(cached) " >&6
28401 else
28402 gcc_cv_as_dwarf2_debug_view=no
28403 if test $in_tree_gas = yes; then
28404 if test $in_tree_gas_is_elf = yes \
28405 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28406 then gcc_cv_as_dwarf2_debug_view=yes
28408 elif test x$gcc_cv_as != x; then
28409 $as_echo "$conftest_s" > conftest.s
28410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28412 (eval $ac_try) 2>&5
28413 ac_status=$?
28414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28415 test $ac_status = 0; }; }
28416 then
28417 gcc_cv_as_dwarf2_debug_view=yes
28418 else
28419 echo "configure: failed program was" >&5
28420 cat conftest.s >&5
28422 rm -f conftest.o conftest.s
28425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28426 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28427 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28429 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28437 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28438 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28439 $as_echo_n "(cached) " >&6
28440 else
28441 gcc_cv_as_gdwarf2_flag=no
28442 if test $in_tree_gas = yes; then
28443 if test $in_tree_gas_is_elf = yes \
28444 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28445 then gcc_cv_as_gdwarf2_flag=yes
28447 elif test x$gcc_cv_as != x; then
28448 $as_echo "$insn" > conftest.s
28449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28451 (eval $ac_try) 2>&5
28452 ac_status=$?
28453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28454 test $ac_status = 0; }; }
28455 then
28456 gcc_cv_as_gdwarf2_flag=yes
28457 else
28458 echo "configure: failed program was" >&5
28459 cat conftest.s >&5
28461 rm -f conftest.o conftest.s
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28465 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28466 if test $gcc_cv_as_gdwarf2_flag = yes; then
28468 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28474 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28475 if ${gcc_cv_as_gstabs_flag+:} false; then :
28476 $as_echo_n "(cached) " >&6
28477 else
28478 gcc_cv_as_gstabs_flag=no
28479 if test $in_tree_gas = yes; then
28480 if test $in_tree_gas_is_elf = yes \
28481 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28482 then gcc_cv_as_gstabs_flag=yes
28484 elif test x$gcc_cv_as != x; then
28485 $as_echo "$insn" > conftest.s
28486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28488 (eval $ac_try) 2>&5
28489 ac_status=$?
28490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28491 test $ac_status = 0; }; }
28492 then
28493 gcc_cv_as_gstabs_flag=yes
28494 else
28495 echo "configure: failed program was" >&5
28496 cat conftest.s >&5
28498 rm -f conftest.o conftest.s
28501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28502 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28503 if test $gcc_cv_as_gstabs_flag = yes; then
28505 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28511 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28512 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28513 $as_echo_n "(cached) " >&6
28514 else
28515 gcc_cv_as_debug_prefix_map_flag=no
28516 if test $in_tree_gas = yes; then
28517 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28518 then gcc_cv_as_debug_prefix_map_flag=yes
28520 elif test x$gcc_cv_as != x; then
28521 $as_echo "$insn" > conftest.s
28522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28524 (eval $ac_try) 2>&5
28525 ac_status=$?
28526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28527 test $ac_status = 0; }; }
28528 then
28529 gcc_cv_as_debug_prefix_map_flag=yes
28530 else
28531 echo "configure: failed program was" >&5
28532 cat conftest.s >&5
28534 rm -f conftest.o conftest.s
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28538 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28539 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28541 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28548 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28549 if ${gcc_cv_as_compress_debug+:} false; then :
28550 $as_echo_n "(cached) " >&6
28551 else
28552 gcc_cv_as_compress_debug=no
28553 if test x$gcc_cv_as != x; then
28554 $as_echo '' > conftest.s
28555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28557 (eval $ac_try) 2>&5
28558 ac_status=$?
28559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28560 test $ac_status = 0; }; }
28561 then
28562 # gas compiled without zlib cannot compress debug sections and warns
28563 # about it, but still exits successfully. So check for this, too.
28564 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28565 then
28566 gcc_cv_as_compress_debug=0
28567 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28568 # defaulting to the ELF gABI format.
28569 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28570 then
28571 gcc_cv_as_compress_debug=2
28572 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28573 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28574 # Before binutils 2.26, gas only supported --compress-debug-options and
28575 # emitted the traditional GNU format.
28576 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28577 then
28578 gcc_cv_as_compress_debug=1
28579 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28580 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28581 else
28582 gcc_cv_as_compress_debug=0
28584 else
28585 echo "configure: failed program was" >&5
28586 cat conftest.s >&5
28588 rm -f conftest.o conftest.s
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28592 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28596 cat >>confdefs.h <<_ACEOF
28597 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28598 _ACEOF
28601 cat >>confdefs.h <<_ACEOF
28602 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28603 _ACEOF
28606 cat >>confdefs.h <<_ACEOF
28607 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28608 _ACEOF
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28612 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28613 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28614 $as_echo_n "(cached) " >&6
28615 else
28616 gcc_cv_as_lcomm_with_alignment=no
28617 if test x$gcc_cv_as != x; then
28618 $as_echo '.lcomm bar,4,16' > conftest.s
28619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28621 (eval $ac_try) 2>&5
28622 ac_status=$?
28623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28624 test $ac_status = 0; }; }
28625 then
28626 gcc_cv_as_lcomm_with_alignment=yes
28627 else
28628 echo "configure: failed program was" >&5
28629 cat conftest.s >&5
28631 rm -f conftest.o conftest.s
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28635 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28636 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28638 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28643 if test x$with_sysroot = x && test x$host = x$target \
28644 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28645 && test "$prefix" != "NONE"; then
28647 cat >>confdefs.h <<_ACEOF
28648 #define PREFIX_INCLUDE_DIR "$prefix/include"
28649 _ACEOF
28653 # Determine the version of glibc, if any, used on the target.
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28655 $as_echo_n "checking for target glibc version... " >&6; }
28657 # Check whether --with-glibc-version was given.
28658 if test "${with_glibc_version+set}" = set; then :
28659 withval=$with_glibc_version;
28660 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28661 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28662 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28663 else
28664 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28666 else
28668 glibc_version_major=0
28669 glibc_version_minor=0
28670 if test -f $target_header_dir/features.h \
28671 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28672 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28673 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28674 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28679 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28681 cat >>confdefs.h <<_ACEOF
28682 #define TARGET_GLIBC_MAJOR $glibc_version_major
28683 _ACEOF
28686 cat >>confdefs.h <<_ACEOF
28687 #define TARGET_GLIBC_MINOR $glibc_version_minor
28688 _ACEOF
28691 # Check whether --enable-gnu-unique-object was given.
28692 if test "${enable_gnu_unique_object+set}" = set; then :
28693 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28694 yes | no) ;;
28695 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28696 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28697 esac
28698 else
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28700 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28701 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28702 $as_echo_n "(cached) " >&6
28703 else
28704 gcc_cv_as_gnu_unique_object=no
28705 if test $in_tree_gas = yes; then
28706 if test $in_tree_gas_is_elf = yes \
28707 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28708 then gcc_cv_as_gnu_unique_object=yes
28710 elif test x$gcc_cv_as != x; then
28711 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28714 (eval $ac_try) 2>&5
28715 ac_status=$?
28716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28717 test $ac_status = 0; }; }
28718 then
28719 gcc_cv_as_gnu_unique_object=yes
28720 else
28721 echo "configure: failed program was" >&5
28722 cat conftest.s >&5
28724 rm -f conftest.o conftest.s
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28728 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28729 if test $gcc_cv_as_gnu_unique_object = yes; then
28730 # We need to unquote above to to use the definition from config.gcc.
28731 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28733 if test $glibc_version_major -gt 2 \
28734 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28735 enable_gnu_unique_object=yes
28742 if test x$enable_gnu_unique_object = xyes; then
28744 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28749 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28750 if ${gcc_cv_as_line_zero+:} false; then :
28751 $as_echo_n "(cached) " >&6
28752 else
28753 gcc_cv_as_line_zero=no
28754 if test $in_tree_gas = yes; then
28755 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28756 then gcc_cv_as_line_zero=yes
28758 elif test "x$gcc_cv_as" != x; then
28759 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28760 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28762 (eval $ac_try) 2>&5
28763 ac_status=$?
28764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28765 test $ac_status = 0; }; } &&
28766 test "x`cat conftest.out`" = x
28767 then
28768 gcc_cv_as_line_zero=yes
28769 else
28770 echo "configure: failed program was" >&5
28771 cat conftest.s >&5
28772 echo "configure: error output was" >&5
28773 cat conftest.out >&5
28775 rm -f conftest.o conftest.s conftest.out
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28779 $as_echo "$gcc_cv_as_line_zero" >&6; }
28780 if test "x$gcc_cv_as_line_zero" = xyes; then
28782 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28787 $as_echo_n "checking support for thin archives... " >&6; }
28788 thin_archive_support=no
28789 echo 'int main (void) { return 0; }' > conftest.c
28790 if ($AR --version | sed 1q | grep "GNU ar" \
28791 && $CC $CFLAGS -c conftest.c \
28792 && $AR rcT conftest.a conftest.o \
28793 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28794 thin_archive_support=yes
28796 rm -f conftest.c conftest.o conftest.a conftest
28797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28798 $as_echo "$thin_archive_support" >&6; }
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28802 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28803 gcc_cv_ld_eh_frame_hdr=no
28804 if test $in_tree_ld = yes ; then
28805 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 \
28806 && test $in_tree_ld_is_elf = yes; then
28807 gcc_cv_ld_eh_frame_hdr=yes
28809 elif test x$gcc_cv_ld != x; then
28810 if echo "$ld_ver" | grep GNU > /dev/null; then
28811 # Check if linker supports --eh-frame-hdr option
28812 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28813 gcc_cv_ld_eh_frame_hdr=yes
28815 else
28816 case "$target" in
28817 *-*-solaris2*)
28818 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28819 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28820 gcc_cv_ld_eh_frame_hdr=yes
28823 esac
28827 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28829 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28833 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28836 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28837 gcc_cv_ld_eh_frame_ciev3=no
28838 if test $in_tree_ld = yes ; then
28839 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 \
28840 && test $in_tree_ld_is_elf = yes; then
28841 gcc_cv_ld_eh_frame_ciev3=yes
28843 elif test x$gcc_cv_ld != x; then
28844 if echo "$ld_ver" | grep GNU > /dev/null; then
28845 gcc_cv_ld_eh_frame_ciev3=yes
28846 if test 0"$ld_date" -lt 20040513; then
28847 if test -n "$ld_date"; then
28848 # If there was date string, but was earlier than 2004-05-13, fail
28849 gcc_cv_ld_eh_frame_ciev3=no
28850 elif test "$ld_vers_major" -lt 2; then
28851 gcc_cv_ld_eh_frame_ciev3=no
28852 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28853 gcc_cv_ld_eh_frame_ciev3=no
28856 else
28857 case "$target" in
28858 *-*-solaris2*)
28859 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28860 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28861 gcc_cv_ld_eh_frame_ciev3=yes
28864 esac
28868 cat >>confdefs.h <<_ACEOF
28869 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28870 _ACEOF
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28873 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28876 $as_echo_n "checking linker position independent executable support... " >&6; }
28877 gcc_cv_ld_pie=no
28878 if test $in_tree_ld = yes ; then
28879 case "$target" in
28880 # Full PIE support on Solaris was only introduced in gld 2.26.
28881 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28882 *) gcc_gld_pie_min_version=15 ;;
28883 esac
28884 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 \
28885 && test $in_tree_ld_is_elf = yes; then
28886 gcc_cv_ld_pie=yes
28888 elif test x$gcc_cv_ld != x; then
28889 # Check if linker supports -pie option
28890 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28891 gcc_cv_ld_pie=yes
28892 case "$target" in
28893 *-*-solaris2*)
28894 if echo "$ld_ver" | grep GNU > /dev/null \
28895 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28896 gcc_cv_ld_pie=no
28899 esac
28900 else
28901 case "$target" in
28902 *-*-solaris2.1[1-9]*)
28903 # Solaris 11.3 added PIE support.
28904 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28905 gcc_cv_ld_pie=yes
28908 esac
28911 if test x"$gcc_cv_ld_pie" = xyes; then
28913 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28917 $as_echo "$gcc_cv_ld_pie" >&6; }
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28920 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28921 gcc_cv_ld_pie_copyreloc=no
28922 if test $gcc_cv_ld_pie = yes ; then
28923 if test $in_tree_ld = yes ; then
28924 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
28925 gcc_cv_ld_pie_copyreloc=yes
28927 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28928 # Check if linker supports -pie option with copy reloc
28929 case "$target" in
28930 i?86-*-linux* | x86_64-*-linux*)
28931 cat > conftest1.s <<EOF
28932 .globl a_glob
28933 .data
28934 .type a_glob, @object
28935 .size a_glob, 4
28936 a_glob:
28937 .long 2
28939 cat > conftest2.s <<EOF
28940 .text
28941 .globl main
28942 .type main, @function
28943 main:
28944 movl %eax, a_glob(%rip)
28945 .size main, .-main
28946 .globl ptr
28947 .section .data.rel,"aw",@progbits
28948 .type ptr, @object
28949 ptr:
28950 .quad a_glob
28952 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28953 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28954 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28955 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28956 gcc_cv_ld_pie_copyreloc=yes
28958 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28960 esac
28964 cat >>confdefs.h <<_ACEOF
28965 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28966 _ACEOF
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28969 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28972 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28973 gcc_cv_ld_eh_gc_sections=no
28974 if test $in_tree_ld = yes ; then
28975 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 \
28976 && test $in_tree_ld_is_elf = yes; then
28977 gcc_cv_ld_eh_gc_sections=yes
28979 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28980 cat > conftest.s <<EOF
28981 .section .text
28982 .globl _start
28983 .type _start, @function
28984 _start:
28985 .long foo
28986 .size _start, .-_start
28987 .section .text.foo,"ax",@progbits
28988 .type foo, @function
28989 foo:
28990 .long 0
28991 .size foo, .-foo
28992 .section .gcc_except_table.foo,"a",@progbits
28993 .L0:
28994 .long 0
28995 .section .eh_frame,"a",@progbits
28996 .long .L0
28998 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28999 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29000 | grep "gc-sections option ignored" > /dev/null; then
29001 gcc_cv_ld_eh_gc_sections=no
29002 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29003 | grep gcc_except_table > /dev/null; then
29004 gcc_cv_ld_eh_gc_sections=yes
29005 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
29006 if test x$gcc_cv_as_comdat_group != xyes; then
29007 gcc_cv_ld_eh_gc_sections=no
29008 cat > conftest.s <<EOF
29009 .section .text
29010 .globl _start
29011 .type _start, @function
29012 _start:
29013 .long foo
29014 .size _start, .-_start
29015 .section .gnu.linkonce.t.foo,"ax",@progbits
29016 .type foo, @function
29017 foo:
29018 .long 0
29019 .size foo, .-foo
29020 .section .gcc_except_table.foo,"a",@progbits
29021 .L0:
29022 .long 0
29023 .section .eh_frame,"a",@progbits
29024 .long .L0
29026 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29027 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29028 | grep "gc-sections option ignored" > /dev/null; then
29029 gcc_cv_ld_eh_gc_sections=no
29030 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29031 | grep gcc_except_table > /dev/null; then
29032 gcc_cv_ld_eh_gc_sections=yes
29038 rm -f conftest.s conftest.o conftest
29040 case "$target" in
29041 hppa*-*-linux*)
29042 # ??? This apparently exposes a binutils bug with PC-relative relocations.
29043 gcc_cv_ld_eh_gc_sections=no
29045 esac
29046 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
29048 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
29052 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
29055 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
29056 gcc_cv_ld_eh_gc_sections_bug=no
29057 if test $in_tree_ld = yes ; then
29058 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 \
29059 && test $in_tree_ld_is_elf = yes; then
29060 gcc_cv_ld_eh_gc_sections_bug=yes
29062 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
29063 gcc_cv_ld_eh_gc_sections_bug=yes
29064 cat > conftest.s <<EOF
29065 .section .text
29066 .globl _start
29067 .type _start, @function
29068 _start:
29069 .long foo
29070 .size _start, .-_start
29071 .section .text.startup.foo,"ax",@progbits
29072 .type foo, @function
29073 foo:
29074 .long 0
29075 .size foo, .-foo
29076 .section .gcc_except_table.foo,"a",@progbits
29077 .L0:
29078 .long 0
29079 .section .eh_frame,"a",@progbits
29080 .long .L0
29082 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29083 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29084 | grep "gc-sections option ignored" > /dev/null; then
29086 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29087 | grep gcc_except_table > /dev/null; then
29088 gcc_cv_ld_eh_gc_sections_bug=no
29091 rm -f conftest.s conftest.o conftest
29093 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
29095 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29099 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29102 $as_echo_n "checking linker for compressed debug sections... " >&6; }
29103 # gold/gld support compressed debug sections since binutils 2.19/2.21
29104 # In binutils 2.26, gld gained support for the ELF gABI format.
29105 if test $in_tree_ld = yes ; then
29106 gcc_cv_ld_compress_debug=0
29107 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 \
29108 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29109 gcc_cv_ld_compress_debug=2
29110 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29111 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 \
29112 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
29113 gcc_cv_ld_compress_debug=3
29114 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29115 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 \
29116 && test $in_tree_ld_is_elf = yes; then
29117 gcc_cv_ld_compress_debug=1
29119 elif echo "$ld_ver" | grep GNU > /dev/null; then
29120 if test "$ld_vers_major" -lt 2 \
29121 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29122 gcc_cv_ld_compress_debug=0
29123 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29124 gcc_cv_ld_compress_debug=1
29125 else
29126 gcc_cv_ld_compress_debug=3
29127 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29129 if test $ld_is_gold = yes; then
29130 gcc_cv_ld_compress_debug=2
29131 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29133 else
29134 case "${target}" in
29135 *-*-solaris2*)
29136 # Introduced in Solaris 11.2.
29137 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29138 gcc_cv_ld_compress_debug=3
29139 gcc_cv_ld_compress_debug_option="-z compress-sections"
29140 else
29141 gcc_cv_ld_compress_debug=0
29145 # Assume linkers other than GNU ld don't support compessed debug
29146 # sections.
29147 gcc_cv_ld_compress_debug=0
29149 esac
29152 cat >>confdefs.h <<_ACEOF
29153 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29154 _ACEOF
29157 cat >>confdefs.h <<_ACEOF
29158 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29159 _ACEOF
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29162 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29164 if test x"$ld64_flag" = x"yes"; then
29166 # Set defaults for possibly untestable items.
29167 gcc_cv_ld64_export_dynamic=0
29169 if test "$build" = "$host"; then
29170 darwin_try_test=1
29171 else
29172 darwin_try_test=0
29175 # On Darwin, because of FAT library support, it is often possible to execute
29176 # exes from compatible archs even when the host differs from the build system.
29177 case "$build","$host" in
29178 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29179 darwin_try_test=1;;
29180 *) ;;
29181 esac
29183 # If the configurer specified a minimum ld64 version to be supported, then use
29184 # that to determine feature support.
29185 if test x"${gcc_cv_ld64_version}" != x; then
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29187 $as_echo_n "checking ld64 specified version... " >&6; }
29188 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29190 $as_echo "$gcc_cv_ld64_major" >&6; }
29191 if test "$gcc_cv_ld64_major" -ge 236; then
29192 gcc_cv_ld64_export_dynamic=1
29194 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29195 # If the version was not specified, try to find it.
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29197 $as_echo_n "checking linker version... " >&6; }
29198 if test x"${gcc_cv_ld64_version}" = x; then
29199 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29202 $as_echo "$gcc_cv_ld64_version" >&6; }
29204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29205 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29206 gcc_cv_ld64_export_dynamic=1
29207 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29208 gcc_cv_ld64_export_dynamic=0
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29211 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29214 if test x"${gcc_cv_ld64_version}" != x; then
29216 cat >>confdefs.h <<_ACEOF
29217 #define LD64_VERSION "${gcc_cv_ld64_version}"
29218 _ACEOF
29223 cat >>confdefs.h <<_ACEOF
29224 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29225 _ACEOF
29229 # --------
29230 # UNSORTED
29231 # --------
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29234 $as_echo_n "checking linker --as-needed support... " >&6; }
29235 if ${gcc_cv_ld_as_needed+:} false; then :
29236 $as_echo_n "(cached) " >&6
29237 else
29238 gcc_cv_ld_as_needed=no
29239 gcc_cv_ld_as_needed_option='--as-needed'
29240 gcc_cv_ld_no_as_needed_option='--no-as-needed'
29241 if test $in_tree_ld = yes ; then
29242 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 \
29243 && test $in_tree_ld_is_elf = yes; then
29244 gcc_cv_ld_as_needed=yes
29245 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29246 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29247 gcc_cv_ld_no_as_needed_option='--pop-state'
29250 elif test x$gcc_cv_ld != x; then
29251 # Check if linker supports --as-needed and --no-as-needed options
29252 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29253 gcc_cv_ld_as_needed=yes
29254 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29255 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29256 && echo "$ld_ver" | grep GNU > /dev/null \
29257 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29258 # Use these options only when both ld.bfd and ld.gold support
29259 # --push-state/--pop-state, which unfortunately wasn't added
29260 # at the same time.
29261 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29262 gcc_cv_ld_no_as_needed_option='--pop-state'
29265 case "$target:$gnu_ld" in
29266 *-*-solaris2*:no)
29267 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29268 # forms.
29269 gcc_cv_ld_as_needed=yes
29270 gcc_cv_ld_as_needed_option="-z ignore"
29271 gcc_cv_ld_no_as_needed_option="-z record"
29273 esac
29275 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29276 # dl_iterate_phdr, i.e. since Solaris 11.
29277 case "$target" in
29278 *-*-solaris2.1[1-9]*)
29279 case "$target" in
29280 i?86-*-* | x86_64-*-*)
29281 if echo "$ld_ver" | grep GNU > /dev/null; then
29282 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29283 gcc_cv_ld_as_needed=no
29286 esac
29288 *-*-solaris2*)
29289 gcc_cv_ld_as_needed=no
29291 esac
29294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29295 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29296 if test x"$gcc_cv_ld_as_needed" = xyes; then
29298 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29301 cat >>confdefs.h <<_ACEOF
29302 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29303 _ACEOF
29306 cat >>confdefs.h <<_ACEOF
29307 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29308 _ACEOF
29312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29313 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29314 saved_LDFLAGS="$LDFLAGS"
29315 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29316 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29318 /* end confdefs.h. */
29319 int main(void) {return 0;}
29320 _ACEOF
29321 if ac_fn_cxx_try_link "$LINENO"; then :
29322 gcc_cv_ld_clearcap=yes; break
29323 else
29324 gcc_cv_ld_clearcap=no
29326 rm -f core conftest.err conftest.$ac_objext \
29327 conftest$ac_exeext conftest.$ac_ext
29328 done
29329 LDFLAGS="$saved_LDFLAGS"
29330 if test "x$gcc_cv_ld_clearcap" = xyes; then
29332 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29334 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29338 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29340 case "$target" in
29341 powerpc*-*-*)
29342 case "$target" in
29343 *le-*-linux*)
29344 emul_name="-melf32lppc"
29347 emul_name="-melf32ppc"
29349 esac
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29351 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29352 if ${gcc_cv_ld_ppc_attr+:} false; then :
29353 $as_echo_n "(cached) " >&6
29354 else
29355 gcc_cv_ld_ppc_attr=no
29356 if test x"$ld_is_gold" = xyes; then
29357 gcc_cv_ld_ppc_attr=yes
29358 elif test $in_tree_ld = yes ; then
29359 if test "$gcc_cv_gld_major_version" -eq 2 \
29360 -a "$gcc_cv_gld_minor_version" -ge 28 \
29361 -o "$gcc_cv_gld_major_version" -gt 2; then
29362 gcc_cv_ld_ppc_attr=yes
29364 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29365 # check that merging the long double .gnu_attribute doesn't warn
29366 cat > conftest1.s <<EOF
29367 .gnu_attribute 4,1
29369 cat > conftest2.s <<EOF
29370 .gnu_attribute 4,9
29372 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29373 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29374 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29375 && test ! -s conftest.err; then
29376 gcc_cv_ld_ppc_attr=yes
29378 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29383 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29384 if test x$gcc_cv_ld_ppc_attr = xyes; then
29386 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29390 esac
29392 case "$target:$tm_file" in
29393 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29394 case "$target" in
29395 *le-*-linux*)
29396 emul_name="-melf64lppc"
29398 *-*-linux*)
29399 emul_name="-melf64ppc"
29401 *-*-freebsd*)
29402 emul_name="-melf64ppc_fbsd"
29404 esac
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29406 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29407 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29408 $as_echo_n "(cached) " >&6
29409 else
29410 gcc_cv_ld_no_dot_syms=no
29411 if test x"$ld_is_gold" = xyes; then
29412 gcc_cv_ld_no_dot_syms=yes
29413 elif test $in_tree_ld = yes ; then
29414 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
29415 gcc_cv_ld_no_dot_syms=yes
29417 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29418 cat > conftest1.s <<EOF
29419 .text
29420 bl .foo
29422 cat > conftest2.s <<EOF
29423 .section ".opd","aw"
29424 .align 3
29425 .globl foo
29426 .type foo,@function
29427 foo:
29428 .quad .LEfoo,.TOC.@tocbase,0
29429 .text
29430 .LEfoo:
29432 .size foo,.-.LEfoo
29434 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29435 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29436 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29437 gcc_cv_ld_no_dot_syms=yes
29439 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29444 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29445 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29447 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29452 $as_echo_n "checking linker large toc support... " >&6; }
29453 if ${gcc_cv_ld_large_toc+:} false; then :
29454 $as_echo_n "(cached) " >&6
29455 else
29456 gcc_cv_ld_large_toc=no
29457 if test x"$ld_is_gold" = xyes; then
29458 gcc_cv_ld_large_toc=yes
29459 elif test $in_tree_ld = yes ; then
29460 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
29461 gcc_cv_ld_large_toc=yes
29463 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29464 cat > conftest.s <<EOF
29465 .section ".tbss","awT",@nobits
29466 .align 3
29467 ie0: .space 8
29468 .global _start
29469 .text
29470 _start:
29471 addis 9,13,ie0@got@tprel@ha
29472 ld 9,ie0@got@tprel@l(9)
29474 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29475 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29476 gcc_cv_ld_large_toc=yes
29478 rm -f conftest conftest.o conftest.s
29482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29483 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29484 if test x"$gcc_cv_ld_large_toc" = xyes; then
29486 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29491 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29492 if ${gcc_cv_ld_toc_align+:} false; then :
29493 $as_echo_n "(cached) " >&6
29494 else
29495 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29496 cat > conftest.s <<EOF
29497 .global _start
29498 .text
29499 _start:
29500 addis 9,2,x@got@ha
29501 .section .data.rel.ro,"aw",@progbits
29502 .p2align 16
29503 .space 32768
29504 x: .quad .TOC.
29506 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29507 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29508 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)) }'`
29510 rm -f conftest conftest.o conftest.s
29514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29515 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29516 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29518 cat >>confdefs.h <<_ACEOF
29519 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29520 _ACEOF
29524 esac
29526 case "$target" in
29527 *-*-aix*)
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29529 $as_echo_n "checking linker large toc support... " >&6; }
29530 if ${gcc_cv_ld_large_toc+:} false; then :
29531 $as_echo_n "(cached) " >&6
29532 else
29533 gcc_cv_ld_large_toc=no
29534 if test x$gcc_cv_as != x ; then
29535 cat > conftest.s <<EOF
29536 .toc
29537 LC..1:
29538 .tc a[TC],a[RW]
29539 .extern a[RW]
29540 .csect .text[PR]
29541 .largetoctest:
29542 addis 9,LC..1@u(2)
29543 ld 3,LC..1@l(9)
29545 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29546 gcc_cv_ld_large_toc=yes
29548 rm -f conftest conftest.o conftest.s
29552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29553 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29554 if test x"$gcc_cv_ld_large_toc" = xyes; then
29556 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29560 esac
29562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29563 $as_echo_n "checking linker --build-id support... " >&6; }
29564 if ${gcc_cv_ld_buildid+:} false; then :
29565 $as_echo_n "(cached) " >&6
29566 else
29567 gcc_cv_ld_buildid=no
29568 if test $in_tree_ld = yes ; then
29569 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29570 "$gcc_cv_gld_minor_version" -ge 18 -o \
29571 "$gcc_cv_gld_major_version" -gt 2 \
29572 && test $in_tree_ld_is_elf = yes; then
29573 gcc_cv_ld_buildid=yes
29575 elif test x$gcc_cv_ld != x; then
29576 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29577 gcc_cv_ld_buildid=yes
29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29582 $as_echo "$gcc_cv_ld_buildid" >&6; }
29583 if test x"$gcc_cv_ld_buildid" = xyes; then
29585 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29589 # Check whether --enable-linker-build-id was given.
29590 if test "${enable_linker_build_id+set}" = set; then :
29591 enableval=$enable_linker_build_id;
29592 else
29593 enable_linker_build_id=no
29597 if test x"$enable_linker_build_id" = xyes; then
29598 if test x"$gcc_cv_ld_buildid" = xyes; then
29600 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29602 else
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29604 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29608 # In binutils 2.21, GNU ld gained support for new emulations fully
29609 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29611 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29612 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29613 $as_echo_n "(cached) " >&6
29614 else
29615 gcc_cv_ld_sol2_emulation=no
29616 if test $in_tree_ld = yes ; then
29617 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29618 "$gcc_cv_gld_minor_version" -ge 21 -o \
29619 "$gcc_cv_gld_major_version" -gt 2 \
29620 && test $in_tree_ld_is_elf = yes; then
29621 gcc_cv_ld_sol2_emulation=yes
29623 elif test x$gcc_cv_ld != x; then
29624 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29625 grep _sol2 > /dev/null; then
29626 gcc_cv_ld_sol2_emulation=yes
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29631 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29632 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29634 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29639 $as_echo_n "checking linker --sysroot support... " >&6; }
29640 if ${gcc_cv_ld_sysroot+:} false; then :
29641 $as_echo_n "(cached) " >&6
29642 else
29643 gcc_cv_ld_sysroot=no
29644 if test $in_tree_ld = yes ; then
29645 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
29646 gcc_cv_ld_sysroot=yes
29648 elif test x$gcc_cv_ld != x; then
29649 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29650 gcc_cv_ld_sysroot=yes
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29655 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29656 if test x"$gcc_cv_ld_sysroot" = xyes; then
29658 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29662 case $target in
29663 *-*-solaris2*)
29664 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29666 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29667 if ${gcc_cv_solaris_crts+:} false; then :
29668 $as_echo_n "(cached) " >&6
29669 else
29670 gcc_cv_solaris_crts=no
29671 if test x$host != x$target; then
29672 if test "x$with_sysroot" = xyes; then
29673 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29674 else
29675 target_sysroot="${with_sysroot}"
29678 target_libdir="$target_sysroot/usr/lib"
29679 # At the time they were added, gcrt1.o became a symlink for backwards
29680 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29681 case $target in
29682 i?86-*-solaris2* | x86_64-*-solaris2*)
29683 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29685 sparc*-*-solaris2*)
29686 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29688 esac
29690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29691 $as_echo "$gcc_cv_solaris_crts" >&6; }
29693 esac
29694 if test x$gcc_cv_solaris_crts = xyes; then
29696 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29700 # Check whether --enable-libssp was given.
29701 if test "${enable_libssp+set}" = set; then :
29702 enableval=$enable_libssp; case "${enableval}" in
29703 yes|no)
29706 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29708 esac
29712 # Test for stack protector support in target C library.
29713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29714 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29715 if ${gcc_cv_libc_provides_ssp+:} false; then :
29716 $as_echo_n "(cached) " >&6
29717 else
29718 gcc_cv_libc_provides_ssp=no
29719 if test "x$enable_libssp" = "xno"; then
29720 gcc_cv_libc_provides_ssp=yes
29721 elif test "x$enable_libssp" = "xyes"; then
29722 gcc_cv_libc_provides_ssp=no
29723 else
29724 case "$target" in
29725 *-*-musl*)
29726 # All versions of musl provide stack protector
29727 gcc_cv_libc_provides_ssp=yes;;
29728 *-*-linux* | *-*-kfreebsd*-gnu)
29729 # glibc 2.4 and later provides __stack_chk_fail and
29730 # either __stack_chk_guard, or TLS access to stack guard canary.
29732 if test $glibc_version_major -gt 2 \
29733 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29734 gcc_cv_libc_provides_ssp=yes
29735 else
29737 if test -f $target_header_dir/features.h \
29738 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29739 $target_header_dir/features.h > /dev/null; then
29740 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29741 $target_header_dir/features.h > /dev/null && \
29742 test -f $target_header_dir/bits/uClibc_config.h && \
29743 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29744 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29745 gcc_cv_libc_provides_ssp=yes
29747 # all versions of Bionic support stack protector
29748 elif test -f $target_header_dir/sys/cdefs.h \
29749 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29750 $target_header_dir/sys/cdefs.h > /dev/null; then
29751 gcc_cv_libc_provides_ssp=yes
29755 *-*-gnu*)
29756 # Avoid complicated tests (see
29757 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29758 # simply assert that glibc does provide this, which is true for all
29759 # realistically usable GNU/Hurd configurations.
29760 # All supported versions of musl provide it as well
29761 gcc_cv_libc_provides_ssp=yes;;
29762 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29763 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29764 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29765 gcc_cv_libc_provides_ssp=yes
29766 else
29767 echo "no __stack_chk_fail on this target"
29771 *) gcc_cv_libc_provides_ssp=no ;;
29772 esac
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29776 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29778 if test x$gcc_cv_libc_provides_ssp = xyes; then
29780 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29784 # Check whether --enable-default-ssp was given.
29785 # Check whether --enable-default-ssp was given.
29786 if test "${enable_default_ssp+set}" = set; then :
29787 enableval=$enable_default_ssp;
29788 if test x$gcc_cv_libc_provides_ssp = xyes; then
29789 case "$target" in
29790 ia64*-*-*) enable_default_ssp=no ;;
29791 *) enable_default_ssp=$enableval ;;
29792 esac
29793 else
29794 enable_default_ssp=no
29796 else
29797 enable_default_ssp=no
29800 if test x$enable_default_ssp = xyes ; then
29802 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29807 # Test for <sys/sdt.h> on the target.
29809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29810 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29811 have_sys_sdt_h=no
29812 if test -f $target_header_dir/sys/sdt.h; then
29813 have_sys_sdt_h=yes
29815 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29819 $as_echo "$have_sys_sdt_h" >&6; }
29821 # Check if TFmode long double should be used by default or not.
29822 # Some glibc targets used DFmode long double, but with glibc 2.4
29823 # and later they can use TFmode.
29824 case "$target" in
29825 powerpc*-*-linux* | \
29826 sparc*-*-linux* | \
29827 s390*-*-linux* | \
29828 alpha*-*-linux*)
29830 # Check whether --with-long-double-128 was given.
29831 if test "${with_long_double_128+set}" = set; then :
29832 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29833 else
29835 case "$target" in
29836 s390*-*-linux-musl*)
29837 gcc_cv_target_ldbl128=yes
29839 powerpc*-*-linux-musl*)
29840 gcc_cv_target_ldbl128=no
29844 if test $glibc_version_major -gt 2 \
29845 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29846 gcc_cv_target_ldbl128=yes
29847 else
29849 gcc_cv_target_ldbl128=no
29850 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29851 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29852 && gcc_cv_target_ldbl128=yes
29857 esac
29862 esac
29863 if test x$gcc_cv_target_ldbl128 = xyes; then
29865 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29869 # Check if TFmode long double target should use the IBM extended double or IEEE
29870 # 128-bit floating point formats if long doubles are 128-bits long. The long
29871 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29872 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29873 # libgcc.
29875 # Check whether --with-long-double-format was given.
29876 if test "${with_long_double_format+set}" = set; then :
29877 withval=$with_long_double_format;
29878 case "$target:$with_long_double_format" in
29879 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29882 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29883 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29884 case "$with_cpu" in
29885 power7 | power8 | power9 | power1*)
29889 as_fn_error $? "Configuration option --with-long-double-format is only \
29890 supported if the default cpu is power7 or newer" "$LINENO" 5
29891 with_long_double_format=""
29893 esac
29895 xpowerpc64*-*-linux*:*)
29896 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29897 with_long_double_format=""
29900 as_fn_error $? "Configure option --with-long-double-format is only supported \
29901 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29902 with_long_double_format=""
29904 esac
29908 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29909 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29910 gcc_cv_libc_provides_hwcap_in_tcb=no
29911 case "$target" in
29912 powerpc*-*-linux*)
29914 if test $glibc_version_major -gt 2 \
29915 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29916 gcc_cv_libc_provides_hwcap_in_tcb=yes
29919 esac
29920 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29922 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29926 # Check if the target LIBC handles PT_GNU_STACK.
29927 gcc_cv_libc_gnustack=unknown
29928 case "$target" in
29929 mips*-*-linux*)
29931 if test $glibc_version_major -gt 2 \
29932 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
29933 gcc_cv_libc_gnustack=yes
29936 esac
29937 if test x$gcc_cv_libc_gnustack = xyes; then
29939 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
29943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29944 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29945 gcc_cv_target_dl_iterate_phdr=unknown
29946 case "$target" in
29947 *-*-solaris2*)
29948 # <link.h> needs both a dl_iterate_phdr declaration and support for
29949 # compilation with largefile support.
29950 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29951 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29952 gcc_cv_target_dl_iterate_phdr=yes
29953 else
29954 gcc_cv_target_dl_iterate_phdr=no
29957 *-*-dragonfly* | *-*-freebsd*)
29958 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29959 gcc_cv_target_dl_iterate_phdr=yes
29960 else
29961 gcc_cv_target_dl_iterate_phdr=no
29964 *-linux-musl*)
29965 gcc_cv_target_dl_iterate_phdr=yes
29967 esac
29969 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29971 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29975 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29977 # We no longer support different GC mechanisms. Emit an error if
29978 # the user configures with --with-gc.
29980 # Check whether --with-gc was given.
29981 if test "${with_gc+set}" = set; then :
29982 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29986 # Libraries to use on the host. This will normally be set by the top
29987 # level Makefile. Here we simply capture the value for our Makefile.
29988 if test -z "${HOST_LIBS+set}"; then
29989 HOST_LIBS=
29993 # Use the system's zlib library.
29995 # Use the system's zlib library.
29996 zlibdir="-L\$(top_builddir)/../zlib"
29997 zlibinc="-I\$(top_srcdir)/../zlib"
29999 # Check whether --with-system-zlib was given.
30000 if test "${with_system_zlib+set}" = set; then :
30001 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
30002 zlibdir=
30003 zlibinc=
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
30014 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
30015 # Check whether --enable-maintainer-mode was given.
30016 if test "${enable_maintainer_mode+set}" = set; then :
30017 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
30018 else
30019 maintainer_mode=no
30023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
30024 $as_echo "$maintainer_mode" >&6; }
30026 if test "$maintainer_mode" = "yes"; then
30027 MAINT=''
30028 else
30029 MAINT='#'
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
30034 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
30035 # Check whether --enable-link-mutex was given.
30036 if test "${enable_link_mutex+set}" = set; then :
30037 enableval=$enable_link_mutex; do_link_mutex=$enableval
30038 else
30039 do_link_mutex=no
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
30043 $as_echo "$do_link_mutex" >&6; }
30045 if test "$do_link_mutex" = "yes"; then
30046 DO_LINK_MUTEX=true
30047 else
30048 DO_LINK_MUTEX=false
30052 # --------------
30053 # Language hooks
30054 # --------------
30056 # Make empty files to contain the specs and options for each language.
30057 # Then add #include lines to for a compiler that has specs and/or options.
30059 subdirs=
30060 lang_opt_files=
30061 lang_specs_files=
30062 lang_tree_files=
30063 # These (without "all_") are set in each config-lang.in.
30064 # `language' must be a single word so is spelled singularly.
30065 all_languages=
30066 all_compilers=
30067 all_outputs='Makefile'
30068 # List of language configure and makefile fragments.
30069 all_lang_configurefrags=
30070 all_lang_makefrags=
30071 # Additional files for gengtype
30072 all_gtfiles="$target_gtfiles"
30074 # These are the languages that are set in --enable-languages,
30075 # and are available in the GCC tree.
30076 all_selected_languages=
30078 # Add the language fragments.
30079 # Languages are added via two mechanisms. Some information must be
30080 # recorded in makefile variables, these are defined in config-lang.in.
30081 # We accumulate them and plug them into the main Makefile.
30082 # The other mechanism is a set of hooks for each of the main targets
30083 # like `clean', `install', etc.
30085 language_hooks="Make-hooks"
30087 for lang in ${srcdir}/*/config-lang.in
30089 test "$lang" = "${srcdir}/*/config-lang.in" && continue
30091 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
30092 if test "x$lang_alias" = x
30093 then
30094 echo "$lang doesn't set \$language." 1>&2
30095 exit 1
30097 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30098 subdirs="$subdirs $subdir"
30100 # $gcc_subdir is where the gcc integration files are to be found
30101 # for a language, both for internal compiler purposes (compiler
30102 # sources implementing front-end to GCC tree converters), and for
30103 # build infrastructure purposes (Make-lang.in, etc.)
30105 # This will be <subdir> (relative to $srcdir) if a line like
30106 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30107 # is found in <langdir>/config-lang.in, and will remain <langdir>
30108 # otherwise.
30110 # Except for the language alias (fetched above), the regular
30111 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30112 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30113 # only this and the language alias.
30115 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30116 if [ "$gcc_subdir" = "" ]; then
30117 gcc_subdir="$subdir"
30120 case ",$enable_languages," in
30121 *,$lang_alias,*)
30122 all_selected_languages="$all_selected_languages $lang_alias"
30123 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
30124 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30127 esac
30129 language=
30130 boot_language=
30131 compilers=
30132 outputs=
30133 gtfiles=
30134 subdir_requires=
30135 . ${srcdir}/$gcc_subdir/config-lang.in
30136 if test "x$language" = x
30137 then
30138 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30139 exit 1
30142 ok=:
30143 case ",$enable_languages," in
30144 *,$lang_alias,*) ;;
30146 for i in $subdir_requires; do
30147 test -f "${srcdir}/$i/config-lang.in" && continue
30148 ok=false
30149 break
30150 done
30152 esac
30153 $ok || continue
30155 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30156 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30157 if test -f $srcdir/$gcc_subdir/lang.opt; then
30158 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30159 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30161 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30162 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30164 all_languages="$all_languages $language"
30165 all_compilers="$all_compilers $compilers"
30166 all_outputs="$all_outputs $outputs"
30167 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30168 case ",$enable_languages," in
30169 *,lto,*)
30171 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30173 enable_lto=yes
30176 *) ;;
30177 esac
30178 done
30180 check_languages=
30181 for language in $all_selected_languages
30183 check_languages="$check_languages check-$language"
30184 done
30186 selftest_languages=
30187 for language in $all_selected_languages
30189 selftest_languages="$selftest_languages selftest-$language"
30190 done
30192 # We link each language in with a set of hooks, reached indirectly via
30193 # lang.${target}. Only do so for selected languages.
30195 rm -f Make-hooks
30196 touch Make-hooks
30197 target_list="all.cross start.encap rest.encap tags \
30198 install-common install-man install-info install-pdf install-html dvi \
30199 pdf html uninstall info man srcextra srcman srcinfo \
30200 mostlyclean clean distclean maintainer-clean install-plugin"
30202 for t in $target_list
30205 for lang in $all_selected_languages
30207 x="$x $lang.$t"
30208 done
30209 echo "lang.$t: $x" >> Make-hooks
30210 done
30212 # --------
30213 # Option include files
30214 # --------
30216 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30217 option_includes="option-includes.mk"
30220 # --------
30221 # UNSORTED
30222 # --------
30224 # Create .gdbinit.
30226 echo "dir ." > .gdbinit
30227 echo "dir ${srcdir}" >> .gdbinit
30228 if test x$gdb_needs_out_file_path = xyes
30229 then
30230 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30232 if test "x$subdirs" != x; then
30233 for s in $subdirs
30235 echo "dir ${srcdir}/$s" >> .gdbinit
30236 done
30238 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30239 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30241 # Put a breakpoint on __asan_report_error to help with debugging buffer
30242 # overflow.
30243 case "$CFLAGS" in
30244 *-fsanitize=address*)
30245 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30247 esac
30249 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30253 # Find a directory in which to install a shared libgcc.
30255 # Check whether --enable-version-specific-runtime-libs was given.
30256 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30257 enableval=$enable_version_specific_runtime_libs;
30261 # Substitute configuration variables
30329 # Echo link setup.
30330 if test x${build} = x${host} ; then
30331 if test x${host} = x${target} ; then
30332 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30333 else
30334 echo "Links are now set up to build a cross-compiler" 1>&2
30335 echo " from ${host} to ${target}." 1>&2
30337 else
30338 if test x${host} = x${target} ; then
30339 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30340 echo " for ${target}." 1>&2
30341 else
30342 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30343 echo " from ${host} to ${target}." 1>&2
30352 if test "x${ISLLIBS}" != "x" ; then
30354 $as_echo "#define HAVE_isl 1" >>confdefs.h
30358 # Check for plugin support
30359 # Check whether --enable-plugin was given.
30360 if test "${enable_plugin+set}" = set; then :
30361 enableval=$enable_plugin; enable_plugin=$enableval
30362 else
30363 enable_plugin=yes; default_plugin=yes
30367 pluginlibs=
30368 plugin_check=yes
30370 case "${host}" in
30371 *-*-mingw*)
30372 # Since plugin support under MinGW is not as straightforward as on
30373 # other platforms (e.g., we have to link import library, etc), we
30374 # only enable it if explicitly requested.
30375 if test x"$default_plugin" = x"yes"; then
30376 enable_plugin=no
30377 elif test x"$enable_plugin" = x"yes"; then
30378 # Use make's target variable to derive import library name.
30379 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30380 plugin_check=no
30383 *-*-darwin*)
30384 if test x$build = x$host; then
30385 export_sym_check="nm${exeext} -g"
30386 elif test x$host = x$target; then
30387 export_sym_check="$gcc_cv_nm -g"
30388 else
30389 export_sym_check=
30393 if test x$build = x$host; then
30394 export_sym_check="objdump${exeext} -T"
30395 elif test x$host = x$target; then
30396 export_sym_check="$gcc_cv_objdump -T"
30397 else
30398 export_sym_check=
30401 esac
30403 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30406 $as_echo_n "checking for exported symbols... " >&6; }
30407 if test "x$export_sym_check" != x; then
30408 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30409 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30410 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30411 : # No need to use a flag
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30413 $as_echo "yes" >&6; }
30414 else
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30416 $as_echo "yes" >&6; }
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30418 $as_echo_n "checking for -rdynamic... " >&6; }
30419 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30420 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30421 plugin_rdynamic=yes
30422 pluginlibs="-rdynamic"
30423 else
30424 plugin_rdynamic=no
30425 enable_plugin=no
30427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30428 $as_echo "$plugin_rdynamic" >&6; }
30430 else
30431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30432 $as_echo "unable to check" >&6; }
30435 # Check -ldl
30436 saved_LIBS="$LIBS"
30437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30438 $as_echo_n "checking for library containing dlopen... " >&6; }
30439 if ${ac_cv_search_dlopen+:} false; then :
30440 $as_echo_n "(cached) " >&6
30441 else
30442 ac_func_search_save_LIBS=$LIBS
30443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30444 /* end confdefs.h. */
30446 /* Override any GCC internal prototype to avoid an error.
30447 Use char because int might match the return type of a GCC
30448 builtin and then its argument prototype would still apply. */
30449 #ifdef __cplusplus
30450 extern "C"
30451 #endif
30452 char dlopen ();
30454 main ()
30456 return dlopen ();
30458 return 0;
30460 _ACEOF
30461 for ac_lib in '' dl; do
30462 if test -z "$ac_lib"; then
30463 ac_res="none required"
30464 else
30465 ac_res=-l$ac_lib
30466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30468 if ac_fn_cxx_try_link "$LINENO"; then :
30469 ac_cv_search_dlopen=$ac_res
30471 rm -f core conftest.err conftest.$ac_objext \
30472 conftest$ac_exeext
30473 if ${ac_cv_search_dlopen+:} false; then :
30474 break
30476 done
30477 if ${ac_cv_search_dlopen+:} false; then :
30479 else
30480 ac_cv_search_dlopen=no
30482 rm conftest.$ac_ext
30483 LIBS=$ac_func_search_save_LIBS
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30486 $as_echo "$ac_cv_search_dlopen" >&6; }
30487 ac_res=$ac_cv_search_dlopen
30488 if test "$ac_res" != no; then :
30489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30493 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30494 pluginlibs="$pluginlibs -ldl"
30496 LIBS="$saved_LIBS"
30498 # Check that we can build shared objects with -fPIC -shared
30499 saved_LDFLAGS="$LDFLAGS"
30500 saved_CFLAGS="$CFLAGS"
30501 case "${host}" in
30502 *-*-darwin*)
30503 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30504 CFLAGS="$CFLAGS -fPIC"
30505 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30508 CFLAGS="$CFLAGS -fPIC"
30509 LDFLAGS="$LDFLAGS -fPIC -shared"
30511 esac
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30513 $as_echo_n "checking for -fPIC -shared... " >&6; }
30514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30515 /* end confdefs.h. */
30516 extern int X;
30518 main ()
30520 return X == 0;
30522 return 0;
30524 _ACEOF
30525 if ac_fn_cxx_try_link "$LINENO"; then :
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30527 $as_echo "yes" >&6; }; have_pic_shared=yes
30528 else
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30530 $as_echo "no" >&6; }; have_pic_shared=no
30532 rm -f core conftest.err conftest.$ac_objext \
30533 conftest$ac_exeext conftest.$ac_ext
30534 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30535 pluginlibs=
30536 enable_plugin=no
30538 LDFLAGS="$saved_LDFLAGS"
30539 CFLAGS="$saved_CFLAGS"
30541 # If plugin support had been requested but not available, fail.
30542 if test x"$enable_plugin" = x"no" ; then
30543 if test x"$default_plugin" != x"yes"; then
30544 as_fn_error $? "
30545 Building GCC with plugin support requires a host that supports
30546 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30553 if test x"$enable_plugin" = x"yes"; then
30555 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30560 # Enable --enable-host-shared
30561 # Check whether --enable-host-shared was given.
30562 if test "${enable_host_shared+set}" = set; then :
30563 enableval=$enable_host_shared; PICFLAG=-fPIC
30564 else
30565 PICFLAG=
30572 # Check whether --enable-libquadmath-support was given.
30573 if test "${enable_libquadmath_support+set}" = set; then :
30574 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30575 else
30576 ENABLE_LIBQUADMATH_SUPPORT=yes
30579 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30581 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30586 # Specify what hash style to use by default.
30588 # Check whether --with-linker-hash-style was given.
30589 if test "${with_linker_hash_style+set}" = set; then :
30590 withval=$with_linker_hash_style; case x"$withval" in
30591 xsysv)
30592 LINKER_HASH_STYLE=sysv
30594 xgnu)
30595 LINKER_HASH_STYLE=gnu
30597 xboth)
30598 LINKER_HASH_STYLE=both
30601 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30603 esac
30604 else
30605 LINKER_HASH_STYLE=''
30608 if test x"${LINKER_HASH_STYLE}" != x; then
30610 cat >>confdefs.h <<_ACEOF
30611 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30612 _ACEOF
30616 # Specify what should be the default of -fdiagnostics-color option.
30618 # Check whether --with-diagnostics-color was given.
30619 if test "${with_diagnostics_color+set}" = set; then :
30620 withval=$with_diagnostics_color; case x"$withval" in
30621 xnever)
30622 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30624 xauto)
30625 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30627 xauto-if-env)
30628 DIAGNOSTICS_COLOR_DEFAULT=-1
30630 xalways)
30631 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30634 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30636 esac
30637 else
30638 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30642 cat >>confdefs.h <<_ACEOF
30643 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30644 _ACEOF
30647 # Specify what should be the default of -fdiagnostics-urls option.
30649 # Check whether --with-diagnostics-urls was given.
30650 if test "${with_diagnostics_urls+set}" = set; then :
30651 withval=$with_diagnostics_urls; case x"$withval" in
30652 xnever)
30653 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
30655 xauto)
30656 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30658 xauto-if-env)
30659 DIAGNOSTICS_URLS_DEFAULT=-1
30661 xalways)
30662 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
30665 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
30667 esac
30668 else
30669 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30673 cat >>confdefs.h <<_ACEOF
30674 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
30675 _ACEOF
30678 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30679 # of jit/jit-playback.c.
30680 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30681 echo "gcc_driver_version: ${gcc_driver_version}"
30682 cat > gcc-driver-name.h <<EOF
30683 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30686 # Check whether --enable-default-pie was given.
30687 # Check whether --enable-default-pie was given.
30688 if test "${enable_default_pie+set}" = set; then :
30689 enableval=$enable_default_pie; enable_default_pie=$enableval
30690 else
30691 enable_default_pie=no
30694 if test x$enable_default_pie = xyes ; then
30696 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30701 # Check if -fno-PIE works.
30702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30703 $as_echo_n "checking for -fno-PIE option... " >&6; }
30704 if ${gcc_cv_c_no_fpie+:} false; then :
30705 $as_echo_n "(cached) " >&6
30706 else
30707 saved_CXXFLAGS="$CXXFLAGS"
30708 CXXFLAGS="$CXXFLAGS -fno-PIE"
30709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30710 /* end confdefs.h. */
30711 int main(void) {return 0;}
30712 _ACEOF
30713 if ac_fn_cxx_try_compile "$LINENO"; then :
30714 gcc_cv_c_no_fpie=yes
30715 else
30716 gcc_cv_c_no_fpie=no
30718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30719 CXXFLAGS="$saved_CXXFLAGS"
30721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30722 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30723 if test "$gcc_cv_c_no_fpie" = "yes"; then
30724 NO_PIE_CFLAGS="-fno-PIE"
30728 # Check if -no-pie works.
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30730 $as_echo_n "checking for -no-pie option... " >&6; }
30731 if ${gcc_cv_no_pie+:} false; then :
30732 $as_echo_n "(cached) " >&6
30733 else
30734 saved_LDFLAGS="$LDFLAGS"
30735 LDFLAGS="$LDFLAGS -no-pie"
30736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30737 /* end confdefs.h. */
30738 int main(void) {return 0;}
30739 _ACEOF
30740 if ac_fn_cxx_try_link "$LINENO"; then :
30741 gcc_cv_no_pie=yes
30742 else
30743 gcc_cv_no_pie=no
30745 rm -f core conftest.err conftest.$ac_objext \
30746 conftest$ac_exeext conftest.$ac_ext
30747 LDFLAGS="$saved_LDFLAGS"
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30750 $as_echo "$gcc_cv_no_pie" >&6; }
30751 if test "$gcc_cv_no_pie" = "yes"; then
30752 NO_PIE_FLAG="-no-pie"
30756 # Enable Intel CET on Intel CET enabled host if jit is enabled.
30757 # Check whether --enable-cet was given.
30758 if test "${enable_cet+set}" = set; then :
30759 enableval=$enable_cet;
30760 case "$enableval" in
30761 yes|no|auto) ;;
30762 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
30763 esac
30765 else
30766 enable_cet=auto
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
30771 $as_echo_n "checking for CET support... " >&6; }
30773 case "$host" in
30774 i[34567]86-*-linux* | x86_64-*-linux*)
30775 may_have_cet=yes
30776 cet_save_CFLAGS="$CFLAGS"
30777 CFLAGS="$CFLAGS -fcf-protection"
30778 case "$enable_cet" in
30779 auto)
30780 # Check if target supports multi-byte NOPs
30781 # and if compiler and assembler support CET.
30782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30783 /* end confdefs.h. */
30786 main ()
30789 #if !defined(__SSE2__)
30790 #error target does not support multi-byte NOPs
30791 #else
30792 asm ("setssbsy");
30793 #endif
30796 return 0;
30798 _ACEOF
30799 if ac_fn_cxx_try_compile "$LINENO"; then :
30800 enable_cet=yes
30801 else
30802 enable_cet=no
30804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30806 yes)
30807 # Check if compiler and assembler support CET.
30808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30809 /* end confdefs.h. */
30812 main ()
30814 asm ("setssbsy");
30816 return 0;
30818 _ACEOF
30819 if ac_fn_cxx_try_compile "$LINENO"; then :
30820 support_cet=yes
30821 else
30822 support_cet=no
30824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30825 if test $support_cet = "no"; then
30826 if test x$enable_bootstrap != xno \
30827 && test -z "${with_build_subdir}" \
30828 && (test ! -f ../stage_current \
30829 || test `cat ../stage_current` != "stage1"); then
30830 # Require CET support only for the final GCC build.
30831 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
30832 else
30833 # Don't enable CET without CET support for non-bootstrap
30834 # build, in stage1 nor for build support.
30835 enable_cet=no
30839 esac
30840 CFLAGS="$cet_save_CFLAGS"
30843 may_have_cet=no
30844 enable_cet=no
30846 esac
30848 cet_save_CFLAGS="$CFLAGS"
30849 CFLAGS="$CFLAGS -fcf-protection=none"
30850 cet_save_LDFLAGS="$LDFLAGS"
30851 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
30852 if test x$may_have_cet = xyes; then
30853 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
30854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30855 /* end confdefs.h. */
30858 main ()
30860 return 0;
30862 return 0;
30864 _ACEOF
30865 if ac_fn_cxx_try_link "$LINENO"; then :
30866 may_have_cet=yes
30867 else
30868 may_have_cet=no
30870 rm -f core conftest.err conftest.$ac_objext \
30871 conftest$ac_exeext conftest.$ac_ext
30874 if test x$may_have_cet = xyes; then
30875 if test x$cross_compiling = xno; then
30876 if test "$cross_compiling" = yes; then :
30877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30879 as_fn_error $? "cannot run test program while cross compiling
30880 See \`config.log' for more details" "$LINENO" 5; }
30881 else
30882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30883 /* end confdefs.h. */
30885 static void
30886 foo (void)
30890 static void
30891 __attribute__ ((noinline, noclone))
30892 xxx (void (*f) (void))
30894 f ();
30897 static void
30898 __attribute__ ((noinline, noclone))
30899 bar (void)
30901 xxx (foo);
30905 main ()
30907 bar ();
30908 return 0;
30911 _ACEOF
30912 if ac_fn_cxx_try_run "$LINENO"; then :
30913 have_cet=no
30914 else
30915 have_cet=yes
30917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30918 conftest.$ac_objext conftest.beam conftest.$ac_ext
30921 if test x$enable_cet = xno -a x$have_cet = xyes; then
30922 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
30925 else
30926 # Enable CET in cross compiler if possible so that it will run on both
30927 # CET and non-CET hosts.
30928 have_cet=yes
30930 if test x$enable_cet = xyes; then
30931 CET_HOST_FLAGS="-fcf-protection"
30932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30933 $as_echo "yes" >&6; }
30934 else
30935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30936 $as_echo "no" >&6; }
30938 CFLAGS="$cet_save_CFLAGS"
30939 LDFLAGS="$cet_save_LDFLAGS"
30941 case x$enable_languages in
30942 *jit*)
30945 CET_HOST_FLAGS=
30947 esac
30950 # Check linker supports '-z bndplt'
30951 ld_bndplt_support=no
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30953 $as_echo_n "checking linker -z bndplt option... " >&6; }
30954 if test x"$ld_is_gold" = xno; then
30955 if test $in_tree_ld = yes ; then
30956 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
30957 ld_bndplt_support=yes
30959 elif test x$gcc_cv_ld != x; then
30960 # Check if linker supports -a bndplt option
30961 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30962 ld_bndplt_support=yes
30966 if test x"$ld_bndplt_support" = xyes; then
30968 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30972 $as_echo "$ld_bndplt_support" >&6; }
30974 # Check linker supports '--push-state'/'--pop-state'
30975 ld_pushpopstate_support=no
30976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30977 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30978 if test x"$ld_is_gold" = xno; then
30979 if test $in_tree_ld = yes ; then
30980 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
30981 ld_pushpopstate_support=yes
30983 elif test x$gcc_cv_ld != x; then
30984 # Check if linker supports --push-state/--pop-state options
30985 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30986 ld_pushpopstate_support=yes
30990 if test x"$ld_pushpopstate_support" = xyes; then
30992 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30996 $as_echo "$ld_pushpopstate_support" >&6; }
30998 # Configure the subdirectories
30999 # AC_CONFIG_SUBDIRS($subdirs)
31001 # Create the Makefile
31002 # and configure language subdirectories
31003 ac_config_files="$ac_config_files $all_outputs"
31006 ac_config_commands="$ac_config_commands default"
31008 cat >confcache <<\_ACEOF
31009 # This file is a shell script that caches the results of configure
31010 # tests run on this system so they can be shared between configure
31011 # scripts and configure runs, see configure's option --config-cache.
31012 # It is not useful on other systems. If it contains results you don't
31013 # want to keep, you may remove or edit it.
31015 # config.status only pays attention to the cache file if you give it
31016 # the --recheck option to rerun configure.
31018 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31019 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31020 # following values.
31022 _ACEOF
31024 # The following way of writing the cache mishandles newlines in values,
31025 # but we know of no workaround that is simple, portable, and efficient.
31026 # So, we kill variables containing newlines.
31027 # Ultrix sh set writes to stderr and can't be redirected directly,
31028 # and sets the high bit in the cache file unless we assign to the vars.
31030 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31031 eval ac_val=\$$ac_var
31032 case $ac_val in #(
31033 *${as_nl}*)
31034 case $ac_var in #(
31035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31037 esac
31038 case $ac_var in #(
31039 _ | IFS | as_nl) ;; #(
31040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31041 *) { eval $ac_var=; unset $ac_var;} ;;
31042 esac ;;
31043 esac
31044 done
31046 (set) 2>&1 |
31047 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31048 *${as_nl}ac_space=\ *)
31049 # `set' does not quote correctly, so add quotes: double-quote
31050 # substitution turns \\\\ into \\, and sed turns \\ into \.
31051 sed -n \
31052 "s/'/'\\\\''/g;
31053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31054 ;; #(
31056 # `set' quotes correctly as required by POSIX, so do not add quotes.
31057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31059 esac |
31060 sort
31062 sed '
31063 /^ac_cv_env_/b end
31064 t clear
31065 :clear
31066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31067 t end
31068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31069 :end' >>confcache
31070 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31071 if test -w "$cache_file"; then
31072 if test "x$cache_file" != "x/dev/null"; then
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31074 $as_echo "$as_me: updating cache $cache_file" >&6;}
31075 if test ! -f "$cache_file" || test -h "$cache_file"; then
31076 cat confcache >"$cache_file"
31077 else
31078 case $cache_file in #(
31079 */* | ?:*)
31080 mv -f confcache "$cache_file"$$ &&
31081 mv -f "$cache_file"$$ "$cache_file" ;; #(
31083 mv -f confcache "$cache_file" ;;
31084 esac
31087 else
31088 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31089 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31092 rm -f confcache
31094 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31095 # Let make expand exec_prefix.
31096 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31098 DEFS=-DHAVE_CONFIG_H
31100 ac_libobjs=
31101 ac_ltlibobjs=
31103 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31104 # 1. Remove the extension, and $U if already installed.
31105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31106 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31108 # will be set to the directory where LIBOBJS objects are built.
31109 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31110 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31111 done
31112 LIBOBJS=$ac_libobjs
31114 LTLIBOBJS=$ac_ltlibobjs
31119 : "${CONFIG_STATUS=./config.status}"
31120 ac_write_fail=0
31121 ac_clean_files_save=$ac_clean_files
31122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31125 as_write_fail=0
31126 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31127 #! $SHELL
31128 # Generated by $as_me.
31129 # Run this file to recreate the current configuration.
31130 # Compiler output produced by configure, useful for debugging
31131 # configure, is in config.log if it exists.
31133 debug=false
31134 ac_cs_recheck=false
31135 ac_cs_silent=false
31137 SHELL=\${CONFIG_SHELL-$SHELL}
31138 export SHELL
31139 _ASEOF
31140 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31141 ## -------------------- ##
31142 ## M4sh Initialization. ##
31143 ## -------------------- ##
31145 # Be more Bourne compatible
31146 DUALCASE=1; export DUALCASE # for MKS sh
31147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31148 emulate sh
31149 NULLCMD=:
31150 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31151 # is contrary to our usage. Disable this feature.
31152 alias -g '${1+"$@"}'='"$@"'
31153 setopt NO_GLOB_SUBST
31154 else
31155 case `(set -o) 2>/dev/null` in #(
31156 *posix*) :
31157 set -o posix ;; #(
31158 *) :
31160 esac
31164 as_nl='
31166 export as_nl
31167 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31168 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31171 # Prefer a ksh shell builtin over an external printf program on Solaris,
31172 # but without wasting forks for bash or zsh.
31173 if test -z "$BASH_VERSION$ZSH_VERSION" \
31174 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31175 as_echo='print -r --'
31176 as_echo_n='print -rn --'
31177 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31178 as_echo='printf %s\n'
31179 as_echo_n='printf %s'
31180 else
31181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31182 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31183 as_echo_n='/usr/ucb/echo -n'
31184 else
31185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31186 as_echo_n_body='eval
31187 arg=$1;
31188 case $arg in #(
31189 *"$as_nl"*)
31190 expr "X$arg" : "X\\(.*\\)$as_nl";
31191 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31192 esac;
31193 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31195 export as_echo_n_body
31196 as_echo_n='sh -c $as_echo_n_body as_echo'
31198 export as_echo_body
31199 as_echo='sh -c $as_echo_body as_echo'
31202 # The user is always right.
31203 if test "${PATH_SEPARATOR+set}" != set; then
31204 PATH_SEPARATOR=:
31205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31207 PATH_SEPARATOR=';'
31212 # IFS
31213 # We need space, tab and new line, in precisely that order. Quoting is
31214 # there to prevent editors from complaining about space-tab.
31215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31216 # splitting by setting IFS to empty value.)
31217 IFS=" "" $as_nl"
31219 # Find who we are. Look in the path if we contain no directory separator.
31220 as_myself=
31221 case $0 in #((
31222 *[\\/]* ) as_myself=$0 ;;
31223 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31224 for as_dir in $PATH
31226 IFS=$as_save_IFS
31227 test -z "$as_dir" && as_dir=.
31228 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31229 done
31230 IFS=$as_save_IFS
31233 esac
31234 # We did not find ourselves, most probably we were run as `sh COMMAND'
31235 # in which case we are not to be found in the path.
31236 if test "x$as_myself" = x; then
31237 as_myself=$0
31239 if test ! -f "$as_myself"; then
31240 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31241 exit 1
31244 # Unset variables that we do not need and which cause bugs (e.g. in
31245 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31246 # suppresses any "Segmentation fault" message there. '((' could
31247 # trigger a bug in pdksh 5.2.14.
31248 for as_var in BASH_ENV ENV MAIL MAILPATH
31249 do eval test x\${$as_var+set} = xset \
31250 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31251 done
31252 PS1='$ '
31253 PS2='> '
31254 PS4='+ '
31256 # NLS nuisances.
31257 LC_ALL=C
31258 export LC_ALL
31259 LANGUAGE=C
31260 export LANGUAGE
31262 # CDPATH.
31263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31266 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31267 # ----------------------------------------
31268 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31269 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31270 # script with STATUS, using 1 if that was 0.
31271 as_fn_error ()
31273 as_status=$1; test $as_status -eq 0 && as_status=1
31274 if test "$4"; then
31275 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31276 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31278 $as_echo "$as_me: error: $2" >&2
31279 as_fn_exit $as_status
31280 } # as_fn_error
31283 # as_fn_set_status STATUS
31284 # -----------------------
31285 # Set $? to STATUS, without forking.
31286 as_fn_set_status ()
31288 return $1
31289 } # as_fn_set_status
31291 # as_fn_exit STATUS
31292 # -----------------
31293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31294 as_fn_exit ()
31296 set +e
31297 as_fn_set_status $1
31298 exit $1
31299 } # as_fn_exit
31301 # as_fn_unset VAR
31302 # ---------------
31303 # Portably unset VAR.
31304 as_fn_unset ()
31306 { eval $1=; unset $1;}
31308 as_unset=as_fn_unset
31309 # as_fn_append VAR VALUE
31310 # ----------------------
31311 # Append the text in VALUE to the end of the definition contained in VAR. Take
31312 # advantage of any shell optimizations that allow amortized linear growth over
31313 # repeated appends, instead of the typical quadratic growth present in naive
31314 # implementations.
31315 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31316 eval 'as_fn_append ()
31318 eval $1+=\$2
31320 else
31321 as_fn_append ()
31323 eval $1=\$$1\$2
31325 fi # as_fn_append
31327 # as_fn_arith ARG...
31328 # ------------------
31329 # Perform arithmetic evaluation on the ARGs, and store the result in the
31330 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31331 # must be portable across $(()) and expr.
31332 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31333 eval 'as_fn_arith ()
31335 as_val=$(( $* ))
31337 else
31338 as_fn_arith ()
31340 as_val=`expr "$@" || test $? -eq 1`
31342 fi # as_fn_arith
31345 if expr a : '\(a\)' >/dev/null 2>&1 &&
31346 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31347 as_expr=expr
31348 else
31349 as_expr=false
31352 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31353 as_basename=basename
31354 else
31355 as_basename=false
31358 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31359 as_dirname=dirname
31360 else
31361 as_dirname=false
31364 as_me=`$as_basename -- "$0" ||
31365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31366 X"$0" : 'X\(//\)$' \| \
31367 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31368 $as_echo X/"$0" |
31369 sed '/^.*\/\([^/][^/]*\)\/*$/{
31370 s//\1/
31373 /^X\/\(\/\/\)$/{
31374 s//\1/
31377 /^X\/\(\/\).*/{
31378 s//\1/
31381 s/.*/./; q'`
31383 # Avoid depending upon Character Ranges.
31384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31387 as_cr_digits='0123456789'
31388 as_cr_alnum=$as_cr_Letters$as_cr_digits
31390 ECHO_C= ECHO_N= ECHO_T=
31391 case `echo -n x` in #(((((
31392 -n*)
31393 case `echo 'xy\c'` in
31394 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31395 xy) ECHO_C='\c';;
31396 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31397 ECHO_T=' ';;
31398 esac;;
31400 ECHO_N='-n';;
31401 esac
31403 rm -f conf$$ conf$$.exe conf$$.file
31404 if test -d conf$$.dir; then
31405 rm -f conf$$.dir/conf$$.file
31406 else
31407 rm -f conf$$.dir
31408 mkdir conf$$.dir 2>/dev/null
31410 if (echo >conf$$.file) 2>/dev/null; then
31411 if ln -s conf$$.file conf$$ 2>/dev/null; then
31412 as_ln_s='ln -s'
31413 # ... but there are two gotchas:
31414 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31415 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31416 # In both cases, we have to default to `cp -pR'.
31417 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31418 as_ln_s='cp -pR'
31419 elif ln conf$$.file conf$$ 2>/dev/null; then
31420 as_ln_s=ln
31421 else
31422 as_ln_s='cp -pR'
31424 else
31425 as_ln_s='cp -pR'
31427 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31428 rmdir conf$$.dir 2>/dev/null
31431 # as_fn_mkdir_p
31432 # -------------
31433 # Create "$as_dir" as a directory, including parents if necessary.
31434 as_fn_mkdir_p ()
31437 case $as_dir in #(
31438 -*) as_dir=./$as_dir;;
31439 esac
31440 test -d "$as_dir" || eval $as_mkdir_p || {
31441 as_dirs=
31442 while :; do
31443 case $as_dir in #(
31444 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31445 *) as_qdir=$as_dir;;
31446 esac
31447 as_dirs="'$as_qdir' $as_dirs"
31448 as_dir=`$as_dirname -- "$as_dir" ||
31449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31450 X"$as_dir" : 'X\(//\)[^/]' \| \
31451 X"$as_dir" : 'X\(//\)$' \| \
31452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31453 $as_echo X"$as_dir" |
31454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31455 s//\1/
31458 /^X\(\/\/\)[^/].*/{
31459 s//\1/
31462 /^X\(\/\/\)$/{
31463 s//\1/
31466 /^X\(\/\).*/{
31467 s//\1/
31470 s/.*/./; q'`
31471 test -d "$as_dir" && break
31472 done
31473 test -z "$as_dirs" || eval "mkdir $as_dirs"
31474 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31477 } # as_fn_mkdir_p
31478 if mkdir -p . 2>/dev/null; then
31479 as_mkdir_p='mkdir -p "$as_dir"'
31480 else
31481 test -d ./-p && rmdir ./-p
31482 as_mkdir_p=false
31486 # as_fn_executable_p FILE
31487 # -----------------------
31488 # Test if FILE is an executable regular file.
31489 as_fn_executable_p ()
31491 test -f "$1" && test -x "$1"
31492 } # as_fn_executable_p
31493 as_test_x='test -x'
31494 as_executable_p=as_fn_executable_p
31496 # Sed expression to map a string onto a valid CPP name.
31497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31499 # Sed expression to map a string onto a valid variable name.
31500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31503 exec 6>&1
31504 ## ----------------------------------- ##
31505 ## Main body of $CONFIG_STATUS script. ##
31506 ## ----------------------------------- ##
31507 _ASEOF
31508 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31511 # Save the log message, to keep $0 and so on meaningful, and to
31512 # report actual input values of CONFIG_FILES etc. instead of their
31513 # values after options handling.
31514 ac_log="
31515 This file was extended by $as_me, which was
31516 generated by GNU Autoconf 2.69. Invocation command line was
31518 CONFIG_FILES = $CONFIG_FILES
31519 CONFIG_HEADERS = $CONFIG_HEADERS
31520 CONFIG_LINKS = $CONFIG_LINKS
31521 CONFIG_COMMANDS = $CONFIG_COMMANDS
31522 $ $0 $@
31524 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31527 _ACEOF
31529 case $ac_config_files in *"
31530 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31531 esac
31533 case $ac_config_headers in *"
31534 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31535 esac
31538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31539 # Files that config.status was made for.
31540 config_files="$ac_config_files"
31541 config_headers="$ac_config_headers"
31542 config_links="$ac_config_links"
31543 config_commands="$ac_config_commands"
31545 _ACEOF
31547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31548 ac_cs_usage="\
31549 \`$as_me' instantiates files and other configuration actions
31550 from templates according to the current configuration. Unless the files
31551 and actions are specified as TAGs, all are instantiated by default.
31553 Usage: $0 [OPTION]... [TAG]...
31555 -h, --help print this help, then exit
31556 -V, --version print version number and configuration settings, then exit
31557 --config print configuration, then exit
31558 -q, --quiet, --silent
31559 do not print progress messages
31560 -d, --debug don't remove temporary files
31561 --recheck update $as_me by reconfiguring in the same conditions
31562 --file=FILE[:TEMPLATE]
31563 instantiate the configuration file FILE
31564 --header=FILE[:TEMPLATE]
31565 instantiate the configuration header FILE
31567 Configuration files:
31568 $config_files
31570 Configuration headers:
31571 $config_headers
31573 Configuration links:
31574 $config_links
31576 Configuration commands:
31577 $config_commands
31579 Report bugs to the package provider."
31581 _ACEOF
31582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31583 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31584 ac_cs_version="\\
31585 config.status
31586 configured by $0, generated by GNU Autoconf 2.69,
31587 with options \\"\$ac_cs_config\\"
31589 Copyright (C) 2012 Free Software Foundation, Inc.
31590 This config.status script is free software; the Free Software Foundation
31591 gives unlimited permission to copy, distribute and modify it."
31593 ac_pwd='$ac_pwd'
31594 srcdir='$srcdir'
31595 AWK='$AWK'
31596 test -n "\$AWK" || AWK=awk
31597 _ACEOF
31599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31600 # The default lists apply if the user does not specify any file.
31601 ac_need_defaults=:
31602 while test $# != 0
31604 case $1 in
31605 --*=?*)
31606 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31607 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31608 ac_shift=:
31610 --*=)
31611 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31612 ac_optarg=
31613 ac_shift=:
31616 ac_option=$1
31617 ac_optarg=$2
31618 ac_shift=shift
31620 esac
31622 case $ac_option in
31623 # Handling of the options.
31624 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31625 ac_cs_recheck=: ;;
31626 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31627 $as_echo "$ac_cs_version"; exit ;;
31628 --config | --confi | --conf | --con | --co | --c )
31629 $as_echo "$ac_cs_config"; exit ;;
31630 --debug | --debu | --deb | --de | --d | -d )
31631 debug=: ;;
31632 --file | --fil | --fi | --f )
31633 $ac_shift
31634 case $ac_optarg in
31635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31636 '') as_fn_error $? "missing file argument" ;;
31637 esac
31638 as_fn_append CONFIG_FILES " '$ac_optarg'"
31639 ac_need_defaults=false;;
31640 --header | --heade | --head | --hea )
31641 $ac_shift
31642 case $ac_optarg in
31643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31644 esac
31645 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31646 ac_need_defaults=false;;
31647 --he | --h)
31648 # Conflict between --help and --header
31649 as_fn_error $? "ambiguous option: \`$1'
31650 Try \`$0 --help' for more information.";;
31651 --help | --hel | -h )
31652 $as_echo "$ac_cs_usage"; exit ;;
31653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31654 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31655 ac_cs_silent=: ;;
31657 # This is an error.
31658 -*) as_fn_error $? "unrecognized option: \`$1'
31659 Try \`$0 --help' for more information." ;;
31661 *) as_fn_append ac_config_targets " $1"
31662 ac_need_defaults=false ;;
31664 esac
31665 shift
31666 done
31668 ac_configure_extra_args=
31670 if $ac_cs_silent; then
31671 exec 6>/dev/null
31672 ac_configure_extra_args="$ac_configure_extra_args --silent"
31675 _ACEOF
31676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31677 if \$ac_cs_recheck; then
31678 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31679 shift
31680 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31681 CONFIG_SHELL='$SHELL'
31682 export CONFIG_SHELL
31683 exec "\$@"
31686 _ACEOF
31687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31688 exec 5>>config.log
31690 echo
31691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31692 ## Running $as_me. ##
31693 _ASBOX
31694 $as_echo "$ac_log"
31695 } >&5
31697 _ACEOF
31698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31700 # INIT-COMMANDS
31702 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31703 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31704 subdirs='$subdirs'
31706 _ACEOF
31708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31710 # Handling of arguments.
31711 for ac_config_target in $ac_config_targets
31713 case $ac_config_target in
31714 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31715 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31716 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31717 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31718 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31719 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31720 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31721 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31722 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31724 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31725 esac
31726 done
31729 # If the user did not use the arguments to specify the items to instantiate,
31730 # then the envvar interface is used. Set only those that are not.
31731 # We use the long form for the default assignment because of an extremely
31732 # bizarre bug on SunOS 4.1.3.
31733 if $ac_need_defaults; then
31734 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31735 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31736 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31737 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31740 # Have a temporary directory for convenience. Make it in the build tree
31741 # simply because there is no reason against having it here, and in addition,
31742 # creating and moving files from /tmp can sometimes cause problems.
31743 # Hook for its removal unless debugging.
31744 # Note that there is a small window in which the directory will not be cleaned:
31745 # after its creation but before its name has been assigned to `$tmp'.
31746 $debug ||
31748 tmp= ac_tmp=
31749 trap 'exit_status=$?
31750 : "${ac_tmp:=$tmp}"
31751 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31753 trap 'as_fn_exit 1' 1 2 13 15
31755 # Create a (secure) tmp directory for tmp files.
31758 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31759 test -d "$tmp"
31760 } ||
31762 tmp=./conf$$-$RANDOM
31763 (umask 077 && mkdir "$tmp")
31764 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31765 ac_tmp=$tmp
31767 # Set up the scripts for CONFIG_FILES section.
31768 # No need to generate them if there are no CONFIG_FILES.
31769 # This happens for instance with `./config.status config.h'.
31770 if test -n "$CONFIG_FILES"; then
31772 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31773 ac_cs_awk_getline=:
31774 ac_cs_awk_pipe_init=
31775 ac_cs_awk_read_file='
31776 while ((getline aline < (F[key])) > 0)
31777 print(aline)
31778 close(F[key])'
31779 ac_cs_awk_pipe_fini=
31780 else
31781 ac_cs_awk_getline=false
31782 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31783 ac_cs_awk_read_file='
31784 print "|#_!!_#|"
31785 print "cat " F[key] " &&"
31786 '$ac_cs_awk_pipe_init
31787 # The final `:' finishes the AND list.
31788 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31790 ac_cr=`echo X | tr X '\015'`
31791 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31792 # But we know of no other shell where ac_cr would be empty at this
31793 # point, so we can use a bashism as a fallback.
31794 if test "x$ac_cr" = x; then
31795 eval ac_cr=\$\'\\r\'
31797 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31798 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31799 ac_cs_awk_cr='\\r'
31800 else
31801 ac_cs_awk_cr=$ac_cr
31804 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31805 _ACEOF
31807 # Create commands to substitute file output variables.
31809 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31810 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31811 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31812 echo "_ACAWK" &&
31813 echo "_ACEOF"
31814 } >conf$$files.sh &&
31815 . ./conf$$files.sh ||
31816 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31817 rm -f conf$$files.sh
31820 echo "cat >conf$$subs.awk <<_ACEOF" &&
31821 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31822 echo "_ACEOF"
31823 } >conf$$subs.sh ||
31824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31825 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31826 ac_delim='%!_!# '
31827 for ac_last_try in false false false false false :; do
31828 . ./conf$$subs.sh ||
31829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31831 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31832 if test $ac_delim_n = $ac_delim_num; then
31833 break
31834 elif $ac_last_try; then
31835 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31836 else
31837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31839 done
31840 rm -f conf$$subs.sh
31842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31843 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31844 _ACEOF
31845 sed -n '
31847 s/^/S["/; s/!.*/"]=/
31850 s/^[^!]*!//
31851 :repl
31852 t repl
31853 s/'"$ac_delim"'$//
31854 t delim
31857 s/\(.\{148\}\)..*/\1/
31858 t more1
31859 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31862 b repl
31863 :more1
31864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31867 s/.\{148\}//
31868 t nl
31869 :delim
31871 s/\(.\{148\}\)..*/\1/
31872 t more2
31873 s/["\\]/\\&/g; s/^/"/; s/$/"/
31876 :more2
31877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31880 s/.\{148\}//
31881 t delim
31882 ' <conf$$subs.awk | sed '
31883 /^[^""]/{
31885 s/\n//
31887 ' >>$CONFIG_STATUS || ac_write_fail=1
31888 rm -f conf$$subs.awk
31889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31890 _ACAWK
31891 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31892 for (key in S) S_is_set[key] = 1
31893 FS = "\a"
31894 \$ac_cs_awk_pipe_init
31897 line = $ 0
31898 nfields = split(line, field, "@")
31899 substed = 0
31900 len = length(field[1])
31901 for (i = 2; i < nfields; i++) {
31902 key = field[i]
31903 keylen = length(key)
31904 if (S_is_set[key]) {
31905 value = S[key]
31906 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31907 len += length(value) + length(field[++i])
31908 substed = 1
31909 } else
31910 len += 1 + keylen
31912 if (nfields == 3 && !substed) {
31913 key = field[2]
31914 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31915 \$ac_cs_awk_read_file
31916 next
31919 print line
31921 \$ac_cs_awk_pipe_fini
31922 _ACAWK
31923 _ACEOF
31924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31925 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31926 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31927 else
31929 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31930 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31931 _ACEOF
31933 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31934 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31935 # trailing colons and then remove the whole line if VPATH becomes empty
31936 # (actually we leave an empty line to preserve line numbers).
31937 if test "x$srcdir" = x.; then
31938 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31940 s///
31941 s/^/:/
31942 s/[ ]*$/:/
31943 s/:\$(srcdir):/:/g
31944 s/:\${srcdir}:/:/g
31945 s/:@srcdir@:/:/g
31946 s/^:*//
31947 s/:*$//
31949 s/\(=[ ]*\).*/\1/
31951 s/\n//
31952 s/^[^=]*=[ ]*$//
31956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31957 fi # test -n "$CONFIG_FILES"
31959 # Set up the scripts for CONFIG_HEADERS section.
31960 # No need to generate them if there are no CONFIG_HEADERS.
31961 # This happens for instance with `./config.status Makefile'.
31962 if test -n "$CONFIG_HEADERS"; then
31963 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31964 BEGIN {
31965 _ACEOF
31967 # Transform confdefs.h into an awk script `defines.awk', embedded as
31968 # here-document in config.status, that substitutes the proper values into
31969 # config.h.in to produce config.h.
31971 # Create a delimiter string that does not exist in confdefs.h, to ease
31972 # handling of long lines.
31973 ac_delim='%!_!# '
31974 for ac_last_try in false false :; do
31975 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31976 if test -z "$ac_tt"; then
31977 break
31978 elif $ac_last_try; then
31979 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31980 else
31981 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31983 done
31985 # For the awk script, D is an array of macro values keyed by name,
31986 # likewise P contains macro parameters if any. Preserve backslash
31987 # newline sequences.
31989 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31990 sed -n '
31991 s/.\{148\}/&'"$ac_delim"'/g
31992 t rset
31993 :rset
31994 s/^[ ]*#[ ]*define[ ][ ]*/ /
31995 t def
31997 :def
31998 s/\\$//
31999 t bsnl
32000 s/["\\]/\\&/g
32001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32002 D["\1"]=" \3"/p
32003 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32005 :bsnl
32006 s/["\\]/\\&/g
32007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32008 D["\1"]=" \3\\\\\\n"\\/p
32009 t cont
32010 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32011 t cont
32013 :cont
32015 s/.\{148\}/&'"$ac_delim"'/g
32016 t clear
32017 :clear
32018 s/\\$//
32019 t bsnlc
32020 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32022 :bsnlc
32023 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32024 b cont
32025 ' <confdefs.h | sed '
32026 s/'"$ac_delim"'/"\\\
32027 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32030 for (key in D) D_is_set[key] = 1
32031 FS = "\a"
32033 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32034 line = \$ 0
32035 split(line, arg, " ")
32036 if (arg[1] == "#") {
32037 defundef = arg[2]
32038 mac1 = arg[3]
32039 } else {
32040 defundef = substr(arg[1], 2)
32041 mac1 = arg[2]
32043 split(mac1, mac2, "(") #)
32044 macro = mac2[1]
32045 prefix = substr(line, 1, index(line, defundef) - 1)
32046 if (D_is_set[macro]) {
32047 # Preserve the white space surrounding the "#".
32048 print prefix "define", macro P[macro] D[macro]
32049 next
32050 } else {
32051 # Replace #undef with comments. This is necessary, for example,
32052 # in the case of _POSIX_SOURCE, which is predefined and required
32053 # on some systems where configure will not decide to define it.
32054 if (defundef == "undef") {
32055 print "/*", prefix defundef, macro, "*/"
32056 next
32060 { print }
32061 _ACAWK
32062 _ACEOF
32063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32064 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32065 fi # test -n "$CONFIG_HEADERS"
32068 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
32069 shift
32070 for ac_tag
32072 case $ac_tag in
32073 :[FHLC]) ac_mode=$ac_tag; continue;;
32074 esac
32075 case $ac_mode$ac_tag in
32076 :[FHL]*:*);;
32077 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32078 :[FH]-) ac_tag=-:-;;
32079 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32080 esac
32081 ac_save_IFS=$IFS
32082 IFS=:
32083 set x $ac_tag
32084 IFS=$ac_save_IFS
32085 shift
32086 ac_file=$1
32087 shift
32089 case $ac_mode in
32090 :L) ac_source=$1;;
32091 :[FH])
32092 ac_file_inputs=
32093 for ac_f
32095 case $ac_f in
32096 -) ac_f="$ac_tmp/stdin";;
32097 *) # Look for the file first in the build tree, then in the source tree
32098 # (if the path is not absolute). The absolute path cannot be DOS-style,
32099 # because $ac_f cannot contain `:'.
32100 test -f "$ac_f" ||
32101 case $ac_f in
32102 [\\/$]*) false;;
32103 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32104 esac ||
32105 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32106 esac
32107 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32108 as_fn_append ac_file_inputs " '$ac_f'"
32109 done
32111 # Let's still pretend it is `configure' which instantiates (i.e., don't
32112 # use $as_me), people would be surprised to read:
32113 # /* config.h. Generated by config.status. */
32114 configure_input='Generated from '`
32115 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32116 `' by configure.'
32117 if test x"$ac_file" != x-; then
32118 configure_input="$ac_file. $configure_input"
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32120 $as_echo "$as_me: creating $ac_file" >&6;}
32122 # Neutralize special characters interpreted by sed in replacement strings.
32123 case $configure_input in #(
32124 *\&* | *\|* | *\\* )
32125 ac_sed_conf_input=`$as_echo "$configure_input" |
32126 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32127 *) ac_sed_conf_input=$configure_input;;
32128 esac
32130 case $ac_tag in
32131 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32133 esac
32135 esac
32137 ac_dir=`$as_dirname -- "$ac_file" ||
32138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32139 X"$ac_file" : 'X\(//\)[^/]' \| \
32140 X"$ac_file" : 'X\(//\)$' \| \
32141 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32142 $as_echo X"$ac_file" |
32143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32144 s//\1/
32147 /^X\(\/\/\)[^/].*/{
32148 s//\1/
32151 /^X\(\/\/\)$/{
32152 s//\1/
32155 /^X\(\/\).*/{
32156 s//\1/
32159 s/.*/./; q'`
32160 as_dir="$ac_dir"; as_fn_mkdir_p
32161 ac_builddir=.
32163 case "$ac_dir" in
32164 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32166 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32167 # A ".." for each directory in $ac_dir_suffix.
32168 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32169 case $ac_top_builddir_sub in
32170 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32171 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32172 esac ;;
32173 esac
32174 ac_abs_top_builddir=$ac_pwd
32175 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32176 # for backward compatibility:
32177 ac_top_builddir=$ac_top_build_prefix
32179 case $srcdir in
32180 .) # We are building in place.
32181 ac_srcdir=.
32182 ac_top_srcdir=$ac_top_builddir_sub
32183 ac_abs_top_srcdir=$ac_pwd ;;
32184 [\\/]* | ?:[\\/]* ) # Absolute name.
32185 ac_srcdir=$srcdir$ac_dir_suffix;
32186 ac_top_srcdir=$srcdir
32187 ac_abs_top_srcdir=$srcdir ;;
32188 *) # Relative name.
32189 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32190 ac_top_srcdir=$ac_top_build_prefix$srcdir
32191 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32192 esac
32193 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32196 case $ac_mode in
32199 # CONFIG_FILE
32202 _ACEOF
32204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32205 # If the template does not know about datarootdir, expand it.
32206 # FIXME: This hack should be removed a few years after 2.60.
32207 ac_datarootdir_hack=; ac_datarootdir_seen=
32208 ac_sed_dataroot='
32209 /datarootdir/ {
32213 /@datadir@/p
32214 /@docdir@/p
32215 /@infodir@/p
32216 /@localedir@/p
32217 /@mandir@/p'
32218 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32219 *datarootdir*) ac_datarootdir_seen=yes;;
32220 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32222 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32223 _ACEOF
32224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32225 ac_datarootdir_hack='
32226 s&@datadir@&$datadir&g
32227 s&@docdir@&$docdir&g
32228 s&@infodir@&$infodir&g
32229 s&@localedir@&$localedir&g
32230 s&@mandir@&$mandir&g
32231 s&\\\${datarootdir}&$datarootdir&g' ;;
32232 esac
32233 _ACEOF
32235 # Neutralize VPATH when `$srcdir' = `.'.
32236 # Shell code in configure.ac might set extrasub.
32237 # FIXME: do we really want to maintain this feature?
32238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32239 ac_sed_extra="$ac_vpsub
32240 $extrasub
32241 _ACEOF
32242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32245 s|@configure_input@|$ac_sed_conf_input|;t t
32246 s&@top_builddir@&$ac_top_builddir_sub&;t t
32247 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32248 s&@srcdir@&$ac_srcdir&;t t
32249 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32250 s&@top_srcdir@&$ac_top_srcdir&;t t
32251 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32252 s&@builddir@&$ac_builddir&;t t
32253 s&@abs_builddir@&$ac_abs_builddir&;t t
32254 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32255 $ac_datarootdir_hack
32257 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32258 if $ac_cs_awk_getline; then
32259 $AWK -f "$ac_tmp/subs.awk"
32260 else
32261 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32262 fi \
32263 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32265 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32266 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32267 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32268 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32270 which seems to be undefined. Please make sure it is defined" >&5
32271 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32272 which seems to be undefined. Please make sure it is defined" >&2;}
32274 rm -f "$ac_tmp/stdin"
32275 case $ac_file in
32276 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32277 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32278 esac \
32279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32283 # CONFIG_HEADER
32285 if test x"$ac_file" != x-; then
32287 $as_echo "/* $configure_input */" \
32288 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32289 } >"$ac_tmp/config.h" \
32290 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32291 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32293 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32294 else
32295 rm -f "$ac_file"
32296 mv "$ac_tmp/config.h" "$ac_file" \
32297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32299 else
32300 $as_echo "/* $configure_input */" \
32301 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32302 || as_fn_error $? "could not create -" "$LINENO" 5
32307 # CONFIG_LINK
32310 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32312 else
32313 # Prefer the file from the source tree if names are identical.
32314 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32315 ac_source=$srcdir/$ac_source
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32319 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32321 if test ! -r "$ac_source"; then
32322 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32324 rm -f "$ac_file"
32326 # Try a relative symlink, then a hard link, then a copy.
32327 case $ac_source in
32328 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32329 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32330 esac
32331 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32332 ln "$ac_source" "$ac_file" 2>/dev/null ||
32333 cp -p "$ac_source" "$ac_file" ||
32334 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32337 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32338 $as_echo "$as_me: executing $ac_file commands" >&6;}
32340 esac
32343 case $ac_file$ac_mode in
32344 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32345 "gccdepdir":C)
32346 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32347 for lang in $subdirs c-family common analyzer
32349 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32350 done ;;
32351 "as":F) chmod +x as ;;
32352 "collect-ld":F) chmod +x collect-ld ;;
32353 "nm":F) chmod +x nm ;;
32354 "default":C)
32355 case ${CONFIG_HEADERS} in
32356 *auto-host.h:config.in*)
32357 echo > cstamp-h ;;
32358 esac
32359 # Make sure all the subdirs exist.
32360 for d in $subdirs doc build common c-family
32362 test -d $d || mkdir $d
32363 done
32366 esac
32367 done # for ac_tag
32370 as_fn_exit 0
32371 _ACEOF
32372 ac_clean_files=$ac_clean_files_save
32374 test $ac_write_fail = 0 ||
32375 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32378 # configure is writing to config.log, and then calls config.status.
32379 # config.status does its own redirection, appending to config.log.
32380 # Unfortunately, on DOS this fails, as config.log is still kept open
32381 # by configure, so config.status won't be able to write to it; its
32382 # output is simply discarded. So we exec the FD to /dev/null,
32383 # effectively closing config.log, so it can be properly (re)opened and
32384 # appended to by config.status. When coming back to configure, we
32385 # need to make the FD available again.
32386 if test "$no_create" != yes; then
32387 ac_cs_success=:
32388 ac_config_status_args=
32389 test "$silent" = yes &&
32390 ac_config_status_args="$ac_config_status_args --quiet"
32391 exec 5>/dev/null
32392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32393 exec 5>>config.log
32394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32395 # would make configure fail if this is the last instruction.
32396 $ac_cs_success || as_fn_exit 1
32398 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32400 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}