hppa: Export main in pr104869.C on hpux
[official-gcc.git] / gcc / configure
bloba1446cadc0c699c827c577413805eb27153f4c44
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.cc"
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 gt_needs=
633 ac_subst_vars='LTLIBOBJS
634 LIBOBJS
635 CET_HOST_FLAGS
636 LD_PICFLAG
637 PICFLAG
638 enable_default_pie
639 enable_host_bind_now
640 enable_host_pie
641 enable_host_shared
642 enable_plugin
643 pluginlibs
644 ISLINC
645 ISLLIBS
646 GMPINC
647 GMPLIBS
648 target_cpu_default
649 rust_target_objs
650 d_target_objs
651 fortran_target_objs
652 cxx_target_objs
653 c_target_objs
654 use_gcc_stdint
655 xm_defines
656 xm_include_list
657 xm_file_list
658 tm_rust_include_list
659 tm_rust_file_list
660 tm_d_include_list
661 tm_d_file_list
662 tm_p_include_list
663 tm_p_file_list
664 tm_defines
665 tm_include_list
666 tm_file_list
667 common_out_object_file
668 common_out_file
669 out_object_file
670 out_file
671 objc_boehm_gc
672 md_file
673 local_prefix
674 lang_tree_files
675 lang_specs_files
676 lang_opt_files
677 install
678 out_host_hook_obj
679 host_xm_defines
680 host_xm_include_list
681 host_xm_file_list
682 host_exeext
683 gcc_gxx_libcxx_include_dir_add_sysroot
684 gcc_gxx_libcxx_include_dir
685 gcc_gxx_include_dir_add_sysroot
686 gcc_gxx_include_dir
687 gcc_config_arguments
688 float_h_file
689 extra_programs
690 extra_objs
691 extra_headers_list
692 user_headers_inc_next_post
693 user_headers_inc_next_pre
694 extra_gcc_objs
695 TM_MULTILIB_EXCEPTIONS_CONFIG
696 TM_MULTILIB_CONFIG
697 TM_ENDIAN_CONFIG
698 tmake_file
699 xmake_file
700 cpp_install_dir
701 selftest_languages
702 check_languages
703 build_file_translate
704 build_xm_defines
705 build_xm_include_list
706 build_xm_file_list
707 build_install_headers_dir
708 build_exeext
709 all_selected_languages
710 all_languages
711 all_lang_makefrags
712 all_lang_configurefrags
713 all_gtfiles
714 all_compilers
715 srcdir
716 subdirs
717 dollar
718 gcc_tooldir
719 enable_lto
720 DO_LINK_SERIALIZATION
721 DO_LINK_MUTEX
722 CSCOPE
723 ETAGS
724 CTAGS
725 MAINT
726 zlibinc
727 zlibdir
728 HOST_LIBS
729 enable_default_ssp
730 thin_archive_support
731 ld_soname_option
732 ld_version_script_option
733 libgcc_visibility
734 ORIGINAL_DSYMUTIL_FOR_TARGET
735 gcc_cv_dsymutil
736 gcc_cv_otool
737 gcc_cv_readelf
738 gcc_cv_objdump
739 ORIGINAL_NM_FOR_TARGET
740 gcc_cv_nm
741 ORIGINAL_LD_GOLD_FOR_TARGET
742 ORIGINAL_LD_BFD_FOR_TARGET
743 ORIGINAL_LD_FOR_TARGET
744 ORIGINAL_PLUGIN_LD_FOR_TARGET
745 gcc_cv_ld
746 ORIGINAL_AS_FOR_TARGET
747 gcc_cv_as
748 ENABLE_DARWIN_AT_RPATH_FALSE
749 ENABLE_DARWIN_AT_RPATH_TRUE
750 enable_fast_install
751 objdir
752 OTOOL64
753 OTOOL
754 LIPO
755 NMEDIT
756 DSYMUTIL
757 STRIP
758 OBJDUMP
759 ac_ct_DUMPBIN
760 DUMPBIN
762 FGREP
764 LIBTOOL
765 collect2
766 STMP_FIXINC
767 BUILD_LDFLAGS
768 BUILD_CXXFLAGS
769 BUILD_CFLAGS
770 CXX_FOR_BUILD
771 CC_FOR_BUILD
772 inhibit_libc
773 BUILD_SYSTEM_HEADER_DIR
774 SYSTEM_HEADER_DIR
776 CROSS
777 CATOBJEXT
778 GENCAT
779 INSTOBJEXT
780 DATADIRNAME
781 CATALOGS
782 INCINTL
783 LIBINTL_DEP
784 POSUB
785 LTLIBINTL
786 LIBINTL
787 INTLLIBS
788 INTL_MACOSX_LIBS
789 MSGMERGE
790 XGETTEXT
791 GMSGFMT
792 MSGFMT
793 USE_NLS
794 MKINSTALLDIRS
795 INSTALL_SCRIPT
796 get_gcc_base_ver
797 HAVE_AUTO_BUILD
798 extra_opt_files
799 extra_modes_file
800 NATIVE_SYSTEM_HEADER_DIR
801 objext
802 manext
803 LIBICONV_DEP
804 LTLIBICONV
805 LIBICONV
806 ZSTD_LDFLAGS
807 ZSTD_CPPFLAGS
808 ZSTD_LIB
809 ZSTD_INCLUDE
810 DL_LIB
811 LDEXP_LIB
812 NETLIBS
813 EXTRA_GCC_LIBS
814 GNAT_LIBEXC
815 COLLECT2_LIBS
816 CXXDEPMODE
817 DEPDIR
818 am__leading_dot
819 doc_build_sys
822 HAVE_PYTHON
823 PYTHON
824 BISON
825 FLEX
826 GENERATED_MANPAGES
827 MAKEINFO_TOC_INLINE_FLAG
828 BUILD_INFO
829 MAKEINFO
830 have_mktemp_command
831 make_compare_target
832 INSTALL_DATA
833 INSTALL_PROGRAM
834 INSTALL
835 ranlib_flags
836 RANLIB
838 LN_S
840 SET_MAKE
841 omp_device_property_deps
842 omp_device_properties
843 accel_dir_suffix
844 real_target_noncanonical
845 enable_as_accelerator
846 gnat_install_lib
847 REPORT_BUGS_TEXI
848 REPORT_BUGS_TO
849 PKGVERSION
850 CONFIGURE_SPECS
851 enable_gcov
852 enable_shared
853 enable_fixed_point
854 enable_decimal_float
855 DEFAULT_INSNEMIT_PARTITIONS
856 DEFAULT_MATCHPD_PARTITIONS
857 with_float
858 with_cpu
859 enable_multiarch
860 enable_multilib
861 coverage_flags
862 valgrind_command
863 valgrind_path_defines
864 valgrind_path
865 TREECHECKING
866 nocommon_flag
867 noexception_flags
868 warn_cxxflags
869 warn_cflags
870 c_strict_warn
871 strict_warn
872 c_loose_warn
873 loose_warn
874 aliasing_flags
876 EGREP
877 GREP
878 CXXCPP
879 PICFLAG_FOR_TARGET
880 GDCFLAGS
882 GNATMAKE
883 GNATBIND
884 ac_ct_CXX
885 CXXFLAGS
887 OBJEXT
888 EXEEXT
889 ac_ct_CC
890 CPPFLAGS
891 LDFLAGS
892 CFLAGS
894 GENINSRC
895 CROSS_SYSTEM_HEADER_DIR
896 TARGET_SYSTEM_ROOT_DEFINE
897 TARGET_SYSTEM_ROOT
898 SYSROOT_CFLAGS_FOR_TARGET
899 target_subdir
900 host_subdir
901 build_subdir
902 build_libsubdir
903 target_noncanonical
904 host_noncanonical
905 target_os
906 target_vendor
907 target_cpu
908 target
909 host_os
910 host_vendor
911 host_cpu
912 host
913 build_os
914 build_vendor
915 build_cpu
916 build
917 target_alias
918 host_alias
919 build_alias
920 LIBS
921 ECHO_T
922 ECHO_N
923 ECHO_C
924 DEFS
925 mandir
926 localedir
927 libdir
928 psdir
929 pdfdir
930 dvidir
931 htmldir
932 infodir
933 docdir
934 oldincludedir
935 includedir
936 localstatedir
937 sharedstatedir
938 sysconfdir
939 datadir
940 datarootdir
941 libexecdir
942 sbindir
943 bindir
944 program_transform_name
945 prefix
946 exec_prefix
947 PACKAGE_URL
948 PACKAGE_BUGREPORT
949 PACKAGE_STRING
950 PACKAGE_VERSION
951 PACKAGE_TARNAME
952 PACKAGE_NAME
953 PATH_SEPARATOR
954 SHELL'
955 ac_subst_files='option_includes
956 language_hooks'
957 ac_user_opts='
958 enable_option_checking
959 with_build_libsubdir
960 with_local_prefix
961 with_native_system_header_dir
962 with_build_sysroot
963 with_sysroot
964 with_gxx_include_dir
965 with_gxx_libcxx_include_dir
966 with_cpp_install_dir
967 enable_generated_files_in_srcdir
968 with_gnu_ld
969 with_ld
970 with_demangler_in_ld
971 with_dsymutil
972 with_gnu_as
973 with_as
974 enable_largefile
975 enable_build_format_warnings
976 enable_werror_always
977 enable_checking
978 enable_coverage
979 enable_gather_detailed_mem_stats
980 enable_valgrind_annotations
981 enable_multilib
982 enable_multiarch
983 with_stack_clash_protection_guard_size
984 with_matchpd_partitions
985 with_insnemit_partitions
986 enable___cxa_atexit
987 enable_decimal_float
988 enable_fixed_point
989 enable_threads
990 enable_tls
991 enable_vtable_verify
992 enable_analyzer
993 enable_objc_gc
994 with_dwarf2
995 enable_shared
996 enable_gcov
997 with_specs
998 with_pkgversion
999 with_bugurl
1000 with_documentation_root_url
1001 with_changes_root_url
1002 enable_languages
1003 with_multilib_list
1004 with_multilib_generator
1005 with_zstd
1006 with_zstd_include
1007 with_zstd_lib
1008 enable_rpath
1009 with_libiconv_prefix
1010 with_libiconv_type
1011 enable_sjlj_exceptions
1012 enable_win32_utf8_manifest
1013 with_gcc_major_version_only
1014 enable_nls
1015 with_libintl_prefix
1016 with_libintl_type
1017 enable_secureplt
1018 enable_mingw_wildcard
1019 enable_large_address_aware
1020 enable_leading_mingw64_underscores
1021 enable_cld
1022 enable_frame_pointer
1023 enable_win32_registry
1024 enable_static
1025 with_pic
1026 enable_fast_install
1027 enable_libtool_lock
1028 enable_darwin_at_rpath
1029 with_darwin_extra_rpath
1030 enable_ld
1031 enable_gold
1032 with_plugin_ld
1033 enable_gnu_indirect_function
1034 enable_initfini_array
1035 enable_comdat
1036 enable_newlib_nano_formatted_io
1037 enable_standard_branch_protection
1038 enable_fix_cortex_a53_835769
1039 enable_fix_cortex_a53_843419
1040 with_glibc_version
1041 enable_gnu_unique_object
1042 enable_linker_build_id
1043 enable_libssp
1044 enable_default_ssp
1045 with_long_double_128
1046 with_long_double_format
1047 with_gc
1048 with_system_zlib
1049 enable_maintainer_mode
1050 enable_link_mutex
1051 enable_link_serialization
1052 enable_version_specific_runtime_libs
1053 enable_plugin
1054 enable_host_shared
1055 enable_host_pie
1056 enable_host_bind_now
1057 enable_libquadmath_support
1058 with_linker_hash_style
1059 with_diagnostics_color
1060 with_diagnostics_urls
1061 enable_default_pie
1062 enable_cet
1063 enable_s390_excess_float_precision
1065 ac_precious_vars='build_alias
1066 host_alias
1067 target_alias
1069 CFLAGS
1070 LDFLAGS
1071 LIBS
1072 CPPFLAGS
1074 CXXFLAGS
1076 CXXCPP
1078 GMPLIBS
1079 GMPINC
1080 ISLLIBS
1081 ISLINC'
1084 # Initialize some variables set by options.
1085 ac_init_help=
1086 ac_init_version=false
1087 ac_unrecognized_opts=
1088 ac_unrecognized_sep=
1089 # The variables have the same names as the options, with
1090 # dashes changed to underlines.
1091 cache_file=/dev/null
1092 exec_prefix=NONE
1093 no_create=
1094 no_recursion=
1095 prefix=NONE
1096 program_prefix=NONE
1097 program_suffix=NONE
1098 program_transform_name=s,x,x,
1099 silent=
1100 site=
1101 srcdir=
1102 verbose=
1103 x_includes=NONE
1104 x_libraries=NONE
1106 # Installation directory options.
1107 # These are left unexpanded so users can "make install exec_prefix=/foo"
1108 # and all the variables that are supposed to be based on exec_prefix
1109 # by default will actually change.
1110 # Use braces instead of parens because sh, perl, etc. also accept them.
1111 # (The list follows the same order as the GNU Coding Standards.)
1112 bindir='${exec_prefix}/bin'
1113 sbindir='${exec_prefix}/sbin'
1114 libexecdir='${exec_prefix}/libexec'
1115 datarootdir='${prefix}/share'
1116 datadir='${datarootdir}'
1117 sysconfdir='${prefix}/etc'
1118 sharedstatedir='${prefix}/com'
1119 localstatedir='${prefix}/var'
1120 includedir='${prefix}/include'
1121 oldincludedir='/usr/include'
1122 docdir='${datarootdir}/doc/${PACKAGE}'
1123 infodir='${datarootdir}/info'
1124 htmldir='${docdir}'
1125 dvidir='${docdir}'
1126 pdfdir='${docdir}'
1127 psdir='${docdir}'
1128 libdir='${exec_prefix}/lib'
1129 localedir='${datarootdir}/locale'
1130 mandir='${datarootdir}/man'
1132 ac_prev=
1133 ac_dashdash=
1134 for ac_option
1136 # If the previous option needs an argument, assign it.
1137 if test -n "$ac_prev"; then
1138 eval $ac_prev=\$ac_option
1139 ac_prev=
1140 continue
1143 case $ac_option in
1144 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1145 *=) ac_optarg= ;;
1146 *) ac_optarg=yes ;;
1147 esac
1149 # Accept the important Cygnus configure options, so we can diagnose typos.
1151 case $ac_dashdash$ac_option in
1153 ac_dashdash=yes ;;
1155 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1156 ac_prev=bindir ;;
1157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1158 bindir=$ac_optarg ;;
1160 -build | --build | --buil | --bui | --bu)
1161 ac_prev=build_alias ;;
1162 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1163 build_alias=$ac_optarg ;;
1165 -cache-file | --cache-file | --cache-fil | --cache-fi \
1166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1167 ac_prev=cache_file ;;
1168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1170 cache_file=$ac_optarg ;;
1172 --config-cache | -C)
1173 cache_file=config.cache ;;
1175 -datadir | --datadir | --datadi | --datad)
1176 ac_prev=datadir ;;
1177 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1178 datadir=$ac_optarg ;;
1180 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1181 | --dataroo | --dataro | --datar)
1182 ac_prev=datarootdir ;;
1183 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1184 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1185 datarootdir=$ac_optarg ;;
1187 -disable-* | --disable-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid feature name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "enable_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval enable_$ac_useropt=no ;;
1203 -docdir | --docdir | --docdi | --doc | --do)
1204 ac_prev=docdir ;;
1205 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1206 docdir=$ac_optarg ;;
1208 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1209 ac_prev=dvidir ;;
1210 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1211 dvidir=$ac_optarg ;;
1213 -enable-* | --enable-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid feature name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1222 "enable_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval enable_$ac_useropt=\$ac_optarg ;;
1229 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1230 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1231 | --exec | --exe | --ex)
1232 ac_prev=exec_prefix ;;
1233 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1234 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1235 | --exec=* | --exe=* | --ex=*)
1236 exec_prefix=$ac_optarg ;;
1238 -gas | --gas | --ga | --g)
1239 # Obsolete; use --with-gas.
1240 with_gas=yes ;;
1242 -help | --help | --hel | --he | -h)
1243 ac_init_help=long ;;
1244 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1245 ac_init_help=recursive ;;
1246 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1247 ac_init_help=short ;;
1249 -host | --host | --hos | --ho)
1250 ac_prev=host_alias ;;
1251 -host=* | --host=* | --hos=* | --ho=*)
1252 host_alias=$ac_optarg ;;
1254 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1255 ac_prev=htmldir ;;
1256 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1257 | --ht=*)
1258 htmldir=$ac_optarg ;;
1260 -includedir | --includedir | --includedi | --included | --include \
1261 | --includ | --inclu | --incl | --inc)
1262 ac_prev=includedir ;;
1263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1264 | --includ=* | --inclu=* | --incl=* | --inc=*)
1265 includedir=$ac_optarg ;;
1267 -infodir | --infodir | --infodi | --infod | --info | --inf)
1268 ac_prev=infodir ;;
1269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1270 infodir=$ac_optarg ;;
1272 -libdir | --libdir | --libdi | --libd)
1273 ac_prev=libdir ;;
1274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1275 libdir=$ac_optarg ;;
1277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1278 | --libexe | --libex | --libe)
1279 ac_prev=libexecdir ;;
1280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1281 | --libexe=* | --libex=* | --libe=*)
1282 libexecdir=$ac_optarg ;;
1284 -localedir | --localedir | --localedi | --localed | --locale)
1285 ac_prev=localedir ;;
1286 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1287 localedir=$ac_optarg ;;
1289 -localstatedir | --localstatedir | --localstatedi | --localstated \
1290 | --localstate | --localstat | --localsta | --localst | --locals)
1291 ac_prev=localstatedir ;;
1292 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1293 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1294 localstatedir=$ac_optarg ;;
1296 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1297 ac_prev=mandir ;;
1298 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1299 mandir=$ac_optarg ;;
1301 -nfp | --nfp | --nf)
1302 # Obsolete; use --without-fp.
1303 with_fp=no ;;
1305 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1306 | --no-cr | --no-c | -n)
1307 no_create=yes ;;
1309 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1310 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1311 no_recursion=yes ;;
1313 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1314 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1315 | --oldin | --oldi | --old | --ol | --o)
1316 ac_prev=oldincludedir ;;
1317 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1318 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1319 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1320 oldincludedir=$ac_optarg ;;
1322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1323 ac_prev=prefix ;;
1324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1325 prefix=$ac_optarg ;;
1327 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1328 | --program-pre | --program-pr | --program-p)
1329 ac_prev=program_prefix ;;
1330 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1331 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1332 program_prefix=$ac_optarg ;;
1334 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1335 | --program-suf | --program-su | --program-s)
1336 ac_prev=program_suffix ;;
1337 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1338 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1339 program_suffix=$ac_optarg ;;
1341 -program-transform-name | --program-transform-name \
1342 | --program-transform-nam | --program-transform-na \
1343 | --program-transform-n | --program-transform- \
1344 | --program-transform | --program-transfor \
1345 | --program-transfo | --program-transf \
1346 | --program-trans | --program-tran \
1347 | --progr-tra | --program-tr | --program-t)
1348 ac_prev=program_transform_name ;;
1349 -program-transform-name=* | --program-transform-name=* \
1350 | --program-transform-nam=* | --program-transform-na=* \
1351 | --program-transform-n=* | --program-transform-=* \
1352 | --program-transform=* | --program-transfor=* \
1353 | --program-transfo=* | --program-transf=* \
1354 | --program-trans=* | --program-tran=* \
1355 | --progr-tra=* | --program-tr=* | --program-t=*)
1356 program_transform_name=$ac_optarg ;;
1358 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1359 ac_prev=pdfdir ;;
1360 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1361 pdfdir=$ac_optarg ;;
1363 -psdir | --psdir | --psdi | --psd | --ps)
1364 ac_prev=psdir ;;
1365 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1366 psdir=$ac_optarg ;;
1368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1369 | -silent | --silent | --silen | --sile | --sil)
1370 silent=yes ;;
1372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1373 ac_prev=sbindir ;;
1374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1375 | --sbi=* | --sb=*)
1376 sbindir=$ac_optarg ;;
1378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1380 | --sharedst | --shareds | --shared | --share | --shar \
1381 | --sha | --sh)
1382 ac_prev=sharedstatedir ;;
1383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1386 | --sha=* | --sh=*)
1387 sharedstatedir=$ac_optarg ;;
1389 -site | --site | --sit)
1390 ac_prev=site ;;
1391 -site=* | --site=* | --sit=*)
1392 site=$ac_optarg ;;
1394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1395 ac_prev=srcdir ;;
1396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1397 srcdir=$ac_optarg ;;
1399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1400 | --syscon | --sysco | --sysc | --sys | --sy)
1401 ac_prev=sysconfdir ;;
1402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1404 sysconfdir=$ac_optarg ;;
1406 -target | --target | --targe | --targ | --tar | --ta | --t)
1407 ac_prev=target_alias ;;
1408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1409 target_alias=$ac_optarg ;;
1411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1412 verbose=yes ;;
1414 -version | --version | --versio | --versi | --vers | -V)
1415 ac_init_version=: ;;
1417 -with-* | --with-*)
1418 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1419 # Reject names that are not valid shell variable names.
1420 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1421 as_fn_error $? "invalid package name: $ac_useropt"
1422 ac_useropt_orig=$ac_useropt
1423 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1424 case $ac_user_opts in
1426 "with_$ac_useropt"
1427 "*) ;;
1428 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1429 ac_unrecognized_sep=', ';;
1430 esac
1431 eval with_$ac_useropt=\$ac_optarg ;;
1433 -without-* | --without-*)
1434 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1435 # Reject names that are not valid shell variable names.
1436 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1437 as_fn_error $? "invalid package name: $ac_useropt"
1438 ac_useropt_orig=$ac_useropt
1439 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1440 case $ac_user_opts in
1442 "with_$ac_useropt"
1443 "*) ;;
1444 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1445 ac_unrecognized_sep=', ';;
1446 esac
1447 eval with_$ac_useropt=no ;;
1449 --x)
1450 # Obsolete; use --with-x.
1451 with_x=yes ;;
1453 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1454 | --x-incl | --x-inc | --x-in | --x-i)
1455 ac_prev=x_includes ;;
1456 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1457 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1458 x_includes=$ac_optarg ;;
1460 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1461 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1462 ac_prev=x_libraries ;;
1463 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1464 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1465 x_libraries=$ac_optarg ;;
1467 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1468 Try \`$0 --help' for more information"
1471 *=*)
1472 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1473 # Reject names that are not valid shell variable names.
1474 case $ac_envvar in #(
1475 '' | [0-9]* | *[!_$as_cr_alnum]* )
1476 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1477 esac
1478 eval $ac_envvar=\$ac_optarg
1479 export $ac_envvar ;;
1482 # FIXME: should be removed in autoconf 3.0.
1483 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1485 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1486 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1489 esac
1490 done
1492 if test -n "$ac_prev"; then
1493 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1494 as_fn_error $? "missing argument to $ac_option"
1497 if test -n "$ac_unrecognized_opts"; then
1498 case $enable_option_checking in
1499 no) ;;
1500 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1501 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1502 esac
1505 # Check all directory arguments for consistency.
1506 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1507 datadir sysconfdir sharedstatedir localstatedir includedir \
1508 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1509 libdir localedir mandir
1511 eval ac_val=\$$ac_var
1512 # Remove trailing slashes.
1513 case $ac_val in
1514 */ )
1515 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1516 eval $ac_var=\$ac_val;;
1517 esac
1518 # Be sure to have absolute directory names.
1519 case $ac_val in
1520 [\\/$]* | ?:[\\/]* ) continue;;
1521 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1522 esac
1523 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1524 done
1526 # There might be people who depend on the old broken behavior: `$host'
1527 # used to hold the argument of --host etc.
1528 # FIXME: To remove some day.
1529 build=$build_alias
1530 host=$host_alias
1531 target=$target_alias
1533 # FIXME: To remove some day.
1534 if test "x$host_alias" != x; then
1535 if test "x$build_alias" = x; then
1536 cross_compiling=maybe
1537 elif test "x$build_alias" != "x$host_alias"; then
1538 cross_compiling=yes
1542 ac_tool_prefix=
1543 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1545 test "$silent" = yes && exec 6>/dev/null
1548 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1549 ac_ls_di=`ls -di .` &&
1550 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1551 as_fn_error $? "working directory cannot be determined"
1552 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1553 as_fn_error $? "pwd does not report name of working directory"
1556 # Find the source files, if location was not specified.
1557 if test -z "$srcdir"; then
1558 ac_srcdir_defaulted=yes
1559 # Try the directory containing this script, then the parent directory.
1560 ac_confdir=`$as_dirname -- "$as_myself" ||
1561 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1562 X"$as_myself" : 'X\(//\)[^/]' \| \
1563 X"$as_myself" : 'X\(//\)$' \| \
1564 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1565 $as_echo X"$as_myself" |
1566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1567 s//\1/
1570 /^X\(\/\/\)[^/].*/{
1571 s//\1/
1574 /^X\(\/\/\)$/{
1575 s//\1/
1578 /^X\(\/\).*/{
1579 s//\1/
1582 s/.*/./; q'`
1583 srcdir=$ac_confdir
1584 if test ! -r "$srcdir/$ac_unique_file"; then
1585 srcdir=..
1587 else
1588 ac_srcdir_defaulted=no
1590 if test ! -r "$srcdir/$ac_unique_file"; then
1591 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1592 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1594 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1595 ac_abs_confdir=`(
1596 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1597 pwd)`
1598 # When building in place, set srcdir=.
1599 if test "$ac_abs_confdir" = "$ac_pwd"; then
1600 srcdir=.
1602 # Remove unnecessary trailing slashes from srcdir.
1603 # Double slashes in file names in object file debugging info
1604 # mess up M-x gdb in Emacs.
1605 case $srcdir in
1606 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1607 esac
1608 for ac_var in $ac_precious_vars; do
1609 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1610 eval ac_env_${ac_var}_value=\$${ac_var}
1611 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1612 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1613 done
1616 # Report the --help message.
1618 if test "$ac_init_help" = "long"; then
1619 # Omit some internal or obsolete options to make the list less imposing.
1620 # This message is too long to be a string in the A/UX 3.1 sh.
1621 cat <<_ACEOF
1622 \`configure' configures this package to adapt to many kinds of systems.
1624 Usage: $0 [OPTION]... [VAR=VALUE]...
1626 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1627 VAR=VALUE. See below for descriptions of some of the useful variables.
1629 Defaults for the options are specified in brackets.
1631 Configuration:
1632 -h, --help display this help and exit
1633 --help=short display options specific to this package
1634 --help=recursive display the short help of all the included packages
1635 -V, --version display version information and exit
1636 -q, --quiet, --silent do not print \`checking ...' messages
1637 --cache-file=FILE cache test results in FILE [disabled]
1638 -C, --config-cache alias for \`--cache-file=config.cache'
1639 -n, --no-create do not create output files
1640 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1642 Installation directories:
1643 --prefix=PREFIX install architecture-independent files in PREFIX
1644 [$ac_default_prefix]
1645 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1646 [PREFIX]
1648 By default, \`make install' will install all the files in
1649 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1650 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1651 for instance \`--prefix=\$HOME'.
1653 For better control, use the options below.
1655 Fine tuning of the installation directories:
1656 --bindir=DIR user executables [EPREFIX/bin]
1657 --sbindir=DIR system admin executables [EPREFIX/sbin]
1658 --libexecdir=DIR program executables [EPREFIX/libexec]
1659 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1660 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1661 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1662 --libdir=DIR object code libraries [EPREFIX/lib]
1663 --includedir=DIR C header files [PREFIX/include]
1664 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1665 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1667 --infodir=DIR info documentation [DATAROOTDIR/info]
1668 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1669 --mandir=DIR man documentation [DATAROOTDIR/man]
1670 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1671 --htmldir=DIR html documentation [DOCDIR]
1672 --dvidir=DIR dvi documentation [DOCDIR]
1673 --pdfdir=DIR pdf documentation [DOCDIR]
1674 --psdir=DIR ps documentation [DOCDIR]
1675 _ACEOF
1677 cat <<\_ACEOF
1679 Program names:
1680 --program-prefix=PREFIX prepend PREFIX to installed program names
1681 --program-suffix=SUFFIX append SUFFIX to installed program names
1682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1684 System types:
1685 --build=BUILD configure for building on BUILD [guessed]
1686 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1687 --target=TARGET configure for building compilers for TARGET [HOST]
1688 _ACEOF
1691 if test -n "$ac_init_help"; then
1693 cat <<\_ACEOF
1695 Optional Features:
1696 --disable-option-checking ignore unrecognized --enable/--with options
1697 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1698 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1699 --enable-generated-files-in-srcdir
1700 put copies of generated files in source dir intended
1701 for creating source tarballs for users without
1702 texinfo bison or flex
1703 --disable-largefile omit support for large files
1704 --disable-build-format-warnings
1705 don't use -Wformat while building GCC
1706 --enable-werror-always enable -Werror despite compiler version
1707 --enable-checking[=LIST]
1708 enable expensive run-time checks. With LIST, enable
1709 only specific categories of checks. Categories are:
1710 yes,no,all,none,release. Flags are:
1711 assert,df,extra,fold,gc,gcac,gimple,misc,
1712 rtlflag,rtl,runtime,tree,valgrind,types
1713 --enable-coverage[=LEVEL]
1714 enable compiler's code coverage collection. Use to
1715 measure compiler performance and locate unused parts
1716 of the compiler. With LEVEL, specify optimization.
1717 Values are opt, noopt, default is noopt
1718 --enable-gather-detailed-mem-stats
1719 enable detailed memory allocation stats gathering
1720 --enable-valgrind-annotations
1721 enable valgrind runtime interaction
1722 --enable-multilib enable library support for multiple ABIs
1723 --enable-multiarch enable support for multiarch paths
1724 --enable-__cxa_atexit enable __cxa_atexit for C++
1725 --enable-decimal-float={no,yes,bid,dpd}
1726 enable decimal float extension to C. Selecting 'bid'
1727 or 'dpd' choses which decimal floating point format
1728 to use
1729 --enable-fixed-point enable fixed-point arithmetic extension to C
1730 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1731 package
1732 --enable-tls enable or disable generation of tls code overriding
1733 the assembler check for tls support
1734 --enable-vtable-verify enable vtable verification feature
1735 --disable-analyzer disable -fanalyzer static analyzer
1736 --enable-objc-gc enable the use of Boehm's garbage collector with the
1737 GNU Objective-C runtime
1738 --disable-shared don't provide a shared libgcc
1739 --disable-gcov don't provide libgcov and related host tools
1740 --enable-languages=LIST specify which front-ends to build
1741 --disable-rpath do not hardcode runtime library paths
1742 --enable-sjlj-exceptions
1743 arrange to use setjmp/longjmp exception handling
1744 --disable-win32-utf8-manifest
1745 disable embedding a utf8 manifest on mingw hosts
1746 --enable-win32-utf8-manifest
1747 enable embedding a utf8 manifest on mingw hosts
1748 (default)
1749 --disable-nls do not use Native Language Support
1750 --enable-secureplt enable -msecure-plt by default for PowerPC
1751 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1752 Default to platform configuration
1753 --enable-large-address-aware
1754 Link mingw executables with --large-address-aware
1755 --enable-leading-mingw64-underscores
1756 enable leading underscores on 64 bit mingw targets
1757 --enable-cld enable -mcld by default for 32bit x86
1758 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1759 --disable-win32-registry
1760 disable lookup of installation paths in the Registry
1761 on Windows hosts
1762 --enable-win32-registry enable registry lookup (default)
1763 --enable-win32-registry=KEY
1764 use KEY instead of GCC version as the last portion
1765 of the registry key
1766 --enable-shared[=PKGS] build shared libraries [default=yes]
1767 --enable-static[=PKGS] build static libraries [default=yes]
1768 --enable-fast-install[=PKGS]
1769 optimize for fast installation [default=yes]
1770 --disable-libtool-lock avoid locking (might break parallel builds)
1771 --enable-darwin-at-rpath
1772 install libraries with @rpath/library-name, requires
1773 rpaths to be added to executables
1774 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1775 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1776 --enable-gnu-indirect-function
1777 enable the use of the @gnu_indirect_function to
1778 glibc systems
1779 --enable-initfini-array use .init_array/.fini_array sections
1780 --enable-comdat enable COMDAT group support
1781 --enable-newlib-nano-formatted-io
1782 Use nano version formatted IO
1784 --enable-standard-branch-protection
1785 enable Branch Target Identification Mechanism and
1786 Return Address Signing by default for AArch64
1787 --disable-standard-branch-protection
1788 disable Branch Target Identification Mechanism and
1789 Return Address Signing by default for AArch64
1792 --enable-fix-cortex-a53-835769
1793 enable workaround for AArch64 Cortex-A53 erratum
1794 835769 by default
1795 --disable-fix-cortex-a53-835769
1796 disable workaround for AArch64 Cortex-A53 erratum
1797 835769 by default
1800 --enable-fix-cortex-a53-843419
1801 enable workaround for AArch64 Cortex-A53 erratum
1802 843419 by default
1803 --disable-fix-cortex-a53-843419
1804 disable workaround for AArch64 Cortex-A53 erratum
1805 843419 by default
1807 --enable-gnu-unique-object
1808 enable the use of the @gnu_unique_object ELF
1809 extension on glibc systems
1810 --enable-linker-build-id
1811 compiler will always pass --build-id to linker
1812 --enable-libssp enable linking against libssp
1813 --enable-default-ssp enable Stack Smashing Protection as default
1814 --enable-maintainer-mode
1815 enable make rules and dependencies not useful (and
1816 sometimes confusing) to the casual installer
1817 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1818 thrashing on the build machine
1819 --enable-link-serialization
1820 avoid linking multiple GCC front-ends at once using
1821 make dependencies to avoid thrashing on the build
1822 machine
1823 --enable-version-specific-runtime-libs
1824 specify that runtime libraries should be installed
1825 in a compiler-specific directory
1826 --enable-plugin enable plugin support
1827 --enable-host-shared build host code as shared libraries
1828 --enable-host-pie build host code as PIE
1829 --enable-host-bind-now link host code as BIND_NOW
1830 --disable-libquadmath-support
1831 disable libquadmath support for Fortran
1832 --enable-default-pie enable Position Independent Executable as default
1833 --enable-cet enable Intel CET in host libraries [default=auto]
1834 --enable-s390-excess-float-precision
1835 on s390 targets, evaluate float with double
1836 precision when in standards-conforming mode
1838 Optional Packages:
1839 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1840 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1841 --with-build-libsubdir=DIR Directory where to find libraries for build system
1842 --with-local-prefix=DIR specifies directory to put local include
1843 --with-native-system-header-dir=dir
1844 use dir as the directory to look for standard
1845 system header files in. Defaults to /usr/include.
1846 --with-build-sysroot=sysroot
1847 use sysroot as the system root during the build
1848 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1849 --with-gxx-include-dir=DIR
1850 specifies directory to put g++ header files
1851 --with-gxx-libcxx-include-dir=DIR
1852 specifies directory to find libc++ header files
1853 --with-cpp-install-dir=DIR
1854 install the user visible C preprocessor in DIR
1855 (relative to PREFIX) as well as PREFIX/bin
1856 --with-gnu-ld arrange to work with GNU ld
1857 --with-ld arrange to use the specified ld (full pathname)
1858 --with-demangler-in-ld try to use demangler in GNU ld
1859 --with-dsymutil arrange to use the specified dsymutil (full
1860 pathname)
1861 --with-gnu-as arrange to work with GNU as
1862 --with-as arrange to use the specified as (full pathname)
1863 --with-stack-clash-protection-guard-size=size
1864 Set the default stack clash protection guard size
1865 for specific targets as a power of two in bytes.
1866 --with-matchpd-partitions=num
1867 Set the number of partitions to make for gimple and
1868 generic when splitting match.pd. [default=10]
1869 --with-insnemit-partitions=num
1870 Set the number of partitions of insn-emit.cc for
1871 genemit to create. [default=10]
1872 --with-dwarf2 force the default debug format to be DWARF 2 (or
1873 later)
1874 --with-specs=SPECS add SPECS to driver command-line processing
1875 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1876 --with-bugurl=URL Direct users to URL to report a bug
1877 --with-documentation-root-url=URL
1878 Root for documentation URLs
1879 --with-changes-root-url=URL
1880 Root for GCC changes URLs
1881 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1882 SH and x86-64 only)
1883 --with-multilib-generator
1884 Multi-libs configuration string (RISC-V only)
1885 --with-zstd=PATH specify prefix directory for installed zstd library.
1886 Equivalent to --with-zstd-include=PATH/include plus
1887 --with-zstd-lib=PATH/lib
1888 --with-zstd-include=PATH
1889 specify directory for installed zstd include files
1890 --with-zstd-lib=PATH specify directory for the installed zstd library
1891 --with-gnu-ld assume the C compiler uses GNU ld default=no
1892 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1893 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1894 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1895 --with-gcc-major-version-only
1896 use only GCC major number in filesystem paths
1897 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1898 --without-libintl-prefix don't search for libintl in includedir and libdir
1899 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1900 --with-pic try to use only PIC/non-PIC objects [default=use
1901 both]
1902 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1903 --with-darwin-extra-rpath=[ARG]
1904 Specify a runpath directory, additional to those
1905 provided by the compiler
1906 --with-plugin-ld=[ARG] specify the plugin linker
1907 --with-glibc-version=M.N
1908 assume GCC used with glibc version M.N or later
1909 --with-long-double-128 use 128-bit long double by default
1910 --with-long-double-format={ieee,ibm}
1911 Specify whether PowerPC long double uses IEEE or IBM format
1913 --with-gc={page,zone} this option is not supported anymore. It used to
1914 choose the garbage collection mechanism to use with
1915 the compiler
1916 --with-system-zlib use installed libz
1917 --with-linker-hash-style={sysv,gnu,both}
1918 specify the linker hash style
1919 --with-diagnostics-color={never,auto,auto-if-env,always}
1920 specify the default of -fdiagnostics-color option
1921 auto-if-env stands for -fdiagnostics-color=auto if
1922 GCC_COLOR environment variable is present and
1923 -fdiagnostics-color=never otherwise
1924 --with-diagnostics-urls={never,auto,auto-if-env,always}
1925 specify the default of -fdiagnostics-urls option
1926 auto-if-env stands for -fdiagnostics-urls=auto if
1927 GCC_URLS or TERM_URLS environment variable is
1928 present and -fdiagnostics-urls=never otherwise
1930 Some influential environment variables:
1931 CC C compiler command
1932 CFLAGS C compiler flags
1933 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1934 nonstandard directory <lib dir>
1935 LIBS libraries to pass to the linker, e.g. -l<library>
1936 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1937 you have headers in a nonstandard directory <include dir>
1938 CXX C++ compiler command
1939 CXXFLAGS C++ compiler flags
1940 CXXCPP C++ preprocessor
1941 CPP C preprocessor
1942 GMPLIBS How to link GMP
1943 GMPINC How to find GMP include files
1944 ISLLIBS How to link isl
1945 ISLINC How to find isl include files
1947 Use these variables to override the choices made by `configure' or to help
1948 it to find libraries and programs with nonstandard names/locations.
1950 Report bugs to the package provider.
1951 _ACEOF
1952 ac_status=$?
1955 if test "$ac_init_help" = "recursive"; then
1956 # If there are subdirs, report their specific --help.
1957 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1958 test -d "$ac_dir" ||
1959 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1960 continue
1961 ac_builddir=.
1963 case "$ac_dir" in
1964 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1966 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1967 # A ".." for each directory in $ac_dir_suffix.
1968 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1969 case $ac_top_builddir_sub in
1970 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1971 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1972 esac ;;
1973 esac
1974 ac_abs_top_builddir=$ac_pwd
1975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1976 # for backward compatibility:
1977 ac_top_builddir=$ac_top_build_prefix
1979 case $srcdir in
1980 .) # We are building in place.
1981 ac_srcdir=.
1982 ac_top_srcdir=$ac_top_builddir_sub
1983 ac_abs_top_srcdir=$ac_pwd ;;
1984 [\\/]* | ?:[\\/]* ) # Absolute name.
1985 ac_srcdir=$srcdir$ac_dir_suffix;
1986 ac_top_srcdir=$srcdir
1987 ac_abs_top_srcdir=$srcdir ;;
1988 *) # Relative name.
1989 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1990 ac_top_srcdir=$ac_top_build_prefix$srcdir
1991 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1992 esac
1993 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1995 cd "$ac_dir" || { ac_status=$?; continue; }
1996 # Check for guested configure.
1997 if test -f "$ac_srcdir/configure.gnu"; then
1998 echo &&
1999 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2000 elif test -f "$ac_srcdir/configure"; then
2001 echo &&
2002 $SHELL "$ac_srcdir/configure" --help=recursive
2003 else
2004 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2005 fi || ac_status=$?
2006 cd "$ac_pwd" || { ac_status=$?; break; }
2007 done
2010 test -n "$ac_init_help" && exit $ac_status
2011 if $ac_init_version; then
2012 cat <<\_ACEOF
2013 configure
2014 generated by GNU Autoconf 2.69
2016 Copyright (C) 2012 Free Software Foundation, Inc.
2017 This configure script is free software; the Free Software Foundation
2018 gives unlimited permission to copy, distribute and modify it.
2019 _ACEOF
2020 exit
2023 ## ------------------------ ##
2024 ## Autoconf initialization. ##
2025 ## ------------------------ ##
2027 # ac_fn_c_try_compile LINENO
2028 # --------------------------
2029 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2030 ac_fn_c_try_compile ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 rm -f conftest.$ac_objext
2034 if { { ac_try="$ac_compile"
2035 case "(($ac_try" in
2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2038 esac
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_compile") 2>conftest.err
2042 ac_status=$?
2043 if test -s conftest.err; then
2044 grep -v '^ *+' conftest.err >conftest.er1
2045 cat conftest.er1 >&5
2046 mv -f conftest.er1 conftest.err
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && {
2050 test -z "$ac_c_werror_flag" ||
2051 test ! -s conftest.err
2052 } && test -s conftest.$ac_objext; then :
2053 ac_retval=0
2054 else
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 ac_retval=1
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 as_fn_set_status $ac_retval
2063 } # ac_fn_c_try_compile
2065 # ac_fn_cxx_try_compile LINENO
2066 # ----------------------------
2067 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2068 ac_fn_cxx_try_compile ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 rm -f conftest.$ac_objext
2072 if { { ac_try="$ac_compile"
2073 case "(($ac_try" in
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2076 esac
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_compile") 2>conftest.err
2080 ac_status=$?
2081 if test -s conftest.err; then
2082 grep -v '^ *+' conftest.err >conftest.er1
2083 cat conftest.er1 >&5
2084 mv -f conftest.er1 conftest.err
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && {
2088 test -z "$ac_cxx_werror_flag" ||
2089 test ! -s conftest.err
2090 } && test -s conftest.$ac_objext; then :
2091 ac_retval=0
2092 else
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2096 ac_retval=1
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 as_fn_set_status $ac_retval
2101 } # ac_fn_cxx_try_compile
2103 # ac_fn_cxx_try_cpp LINENO
2104 # ------------------------
2105 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_cxx_try_cpp ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 if { { ac_try="$ac_cpp conftest.$ac_ext"
2110 case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113 esac
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2117 ac_status=$?
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } > conftest.i && {
2125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2126 test ! -s conftest.err
2127 }; then :
2128 ac_retval=0
2129 else
2130 $as_echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2133 ac_retval=1
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2138 } # ac_fn_cxx_try_cpp
2140 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2141 # ---------------------------------------------------------
2142 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143 # the include files in INCLUDES and setting the cache variable VAR
2144 # accordingly.
2145 ac_fn_cxx_check_header_mongrel ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if eval \${$3+:} false; then :
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2154 eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 else
2158 # Is the header compilable?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160 $as_echo_n "checking $2 usability... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2164 #include <$2>
2165 _ACEOF
2166 if ac_fn_cxx_try_compile "$LINENO"; then :
2167 ac_header_compiler=yes
2168 else
2169 ac_header_compiler=no
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173 $as_echo "$ac_header_compiler" >&6; }
2175 # Is the header present?
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177 $as_echo_n "checking $2 presence... " >&6; }
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2180 #include <$2>
2181 _ACEOF
2182 if ac_fn_cxx_try_cpp "$LINENO"; then :
2183 ac_header_preproc=yes
2184 else
2185 ac_header_preproc=no
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189 $as_echo "$ac_header_preproc" >&6; }
2191 # So? What about this header?
2192 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2193 yes:no: )
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199 no:yes:* )
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2203 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2207 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2211 esac
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if eval \${$3+:} false; then :
2215 $as_echo_n "(cached) " >&6
2216 else
2217 eval "$3=\$ac_header_compiler"
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 } # ac_fn_cxx_check_header_mongrel
2227 # ac_fn_cxx_try_run LINENO
2228 # ------------------------
2229 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2230 # that executables *can* be run.
2231 ac_fn_cxx_try_run ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 if { { ac_try="$ac_link"
2235 case "(($ac_try" in
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2238 esac
2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_link") 2>&5
2242 ac_status=$?
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2245 { { case "(($ac_try" in
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2248 esac
2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250 $as_echo "$ac_try_echo"; } >&5
2251 (eval "$ac_try") 2>&5
2252 ac_status=$?
2253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254 test $ac_status = 0; }; }; then :
2255 ac_retval=0
2256 else
2257 $as_echo "$as_me: program exited with status $ac_status" >&5
2258 $as_echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2261 ac_retval=$ac_status
2263 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265 as_fn_set_status $ac_retval
2267 } # ac_fn_cxx_try_run
2269 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2270 # ---------------------------------------------------------
2271 # Tests whether HEADER exists and can be compiled using the include files in
2272 # INCLUDES, setting the cache variable VAR accordingly.
2273 ac_fn_cxx_check_header_compile ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 $as_echo_n "checking for $2... " >&6; }
2278 if eval \${$3+:} false; then :
2279 $as_echo_n "(cached) " >&6
2280 else
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2284 #include <$2>
2285 _ACEOF
2286 if ac_fn_cxx_try_compile "$LINENO"; then :
2287 eval "$3=yes"
2288 else
2289 eval "$3=no"
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 } # ac_fn_cxx_check_header_compile
2300 # ac_fn_c_try_cpp LINENO
2301 # ----------------------
2302 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2303 ac_fn_c_try_cpp ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 if { { ac_try="$ac_cpp conftest.$ac_ext"
2307 case "(($ac_try" in
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2310 esac
2311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312 $as_echo "$ac_try_echo"; } >&5
2313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2314 ac_status=$?
2315 if test -s conftest.err; then
2316 grep -v '^ *+' conftest.err >conftest.er1
2317 cat conftest.er1 >&5
2318 mv -f conftest.er1 conftest.err
2320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321 test $ac_status = 0; } > conftest.i && {
2322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2323 test ! -s conftest.err
2324 }; then :
2325 ac_retval=0
2326 else
2327 $as_echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 ac_retval=1
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 as_fn_set_status $ac_retval
2335 } # ac_fn_c_try_cpp
2337 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2338 # ----------------------------------------------
2339 # Tries to find the compile-time value of EXPR in a program that includes
2340 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2341 # computed
2342 ac_fn_cxx_compute_int ()
2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345 if test "$cross_compiling" = yes; then
2346 # Depending upon the size, compute the lo and hi bounds.
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2351 main ()
2353 static int test_array [1 - 2 * !(($2) >= 0)];
2354 test_array [0] = 0;
2355 return test_array [0];
2358 return 0;
2360 _ACEOF
2361 if ac_fn_cxx_try_compile "$LINENO"; then :
2362 ac_lo=0 ac_mid=0
2363 while :; do
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2368 main ()
2370 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2371 test_array [0] = 0;
2372 return test_array [0];
2375 return 0;
2377 _ACEOF
2378 if ac_fn_cxx_try_compile "$LINENO"; then :
2379 ac_hi=$ac_mid; break
2380 else
2381 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2382 if test $ac_lo -le $ac_mid; then
2383 ac_lo= ac_hi=
2384 break
2386 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 done
2390 else
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2395 main ()
2397 static int test_array [1 - 2 * !(($2) < 0)];
2398 test_array [0] = 0;
2399 return test_array [0];
2402 return 0;
2404 _ACEOF
2405 if ac_fn_cxx_try_compile "$LINENO"; then :
2406 ac_hi=-1 ac_mid=-1
2407 while :; do
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2412 main ()
2414 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2415 test_array [0] = 0;
2416 return test_array [0];
2419 return 0;
2421 _ACEOF
2422 if ac_fn_cxx_try_compile "$LINENO"; then :
2423 ac_lo=$ac_mid; break
2424 else
2425 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2426 if test $ac_mid -le $ac_hi; then
2427 ac_lo= ac_hi=
2428 break
2430 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 done
2434 else
2435 ac_lo= ac_hi=
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 # Binary search between lo and hi bounds.
2441 while test "x$ac_lo" != "x$ac_hi"; do
2442 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2447 main ()
2449 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2450 test_array [0] = 0;
2451 return test_array [0];
2454 return 0;
2456 _ACEOF
2457 if ac_fn_cxx_try_compile "$LINENO"; then :
2458 ac_hi=$ac_mid
2459 else
2460 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 done
2464 case $ac_lo in #((
2465 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2466 '') ac_retval=1 ;;
2467 esac
2468 else
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2472 static long int longval () { return $2; }
2473 static unsigned long int ulongval () { return $2; }
2474 #include <stdio.h>
2475 #include <stdlib.h>
2477 main ()
2480 FILE *f = fopen ("conftest.val", "w");
2481 if (! f)
2482 return 1;
2483 if (($2) < 0)
2485 long int i = longval ();
2486 if (i != ($2))
2487 return 1;
2488 fprintf (f, "%ld", i);
2490 else
2492 unsigned long int i = ulongval ();
2493 if (i != ($2))
2494 return 1;
2495 fprintf (f, "%lu", i);
2497 /* Do not output a trailing newline, as this causes \r\n confusion
2498 on some platforms. */
2499 return ferror (f) || fclose (f) != 0;
2502 return 0;
2504 _ACEOF
2505 if ac_fn_cxx_try_run "$LINENO"; then :
2506 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2507 else
2508 ac_retval=1
2510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2511 conftest.$ac_objext conftest.beam conftest.$ac_ext
2512 rm -f conftest.val
2515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2516 as_fn_set_status $ac_retval
2518 } # ac_fn_cxx_compute_int
2520 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2521 # ---------------------------------------------
2522 # Tests whether TYPE exists after having included INCLUDES, setting cache
2523 # variable VAR accordingly.
2524 ac_fn_cxx_check_type ()
2526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2528 $as_echo_n "checking for $2... " >&6; }
2529 if eval \${$3+:} false; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 eval "$3=no"
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2537 main ()
2539 if (sizeof ($2))
2540 return 0;
2542 return 0;
2544 _ACEOF
2545 if ac_fn_cxx_try_compile "$LINENO"; then :
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2550 main ()
2552 if (sizeof (($2)))
2553 return 0;
2555 return 0;
2557 _ACEOF
2558 if ac_fn_cxx_try_compile "$LINENO"; then :
2560 else
2561 eval "$3=yes"
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567 eval ac_res=\$$3
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569 $as_echo "$ac_res" >&6; }
2570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572 } # ac_fn_cxx_check_type
2574 # ac_fn_c_find_intX_t LINENO BITS VAR
2575 # -----------------------------------
2576 # Finds a signed integer type with width BITS, setting cache variable VAR
2577 # accordingly.
2578 ac_fn_c_find_intX_t ()
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2582 $as_echo_n "checking for int$2_t... " >&6; }
2583 if eval \${$3+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 eval "$3=no"
2587 # Order is important - never check a type that is potentially smaller
2588 # than half of the expected target width.
2589 for ac_type in int$2_t 'int' 'long int' \
2590 'long long int' 'short int' 'signed char'; do
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 $ac_includes_default
2594 enum { N = $2 / 2 - 1 };
2596 main ()
2598 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2599 test_array [0] = 0;
2600 return test_array [0];
2603 return 0;
2605 _ACEOF
2606 if ac_fn_cxx_try_compile "$LINENO"; then :
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 $ac_includes_default
2610 enum { N = $2 / 2 - 1 };
2612 main ()
2614 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2615 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2616 test_array [0] = 0;
2617 return test_array [0];
2620 return 0;
2622 _ACEOF
2623 if ac_fn_cxx_try_compile "$LINENO"; then :
2625 else
2626 case $ac_type in #(
2627 int$2_t) :
2628 eval "$3=yes" ;; #(
2629 *) :
2630 eval "$3=\$ac_type" ;;
2631 esac
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 if eval test \"x\$"$3"\" = x"no"; then :
2638 else
2639 break
2641 done
2643 eval ac_res=\$$3
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2645 $as_echo "$ac_res" >&6; }
2646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2648 } # ac_fn_c_find_intX_t
2650 # ac_fn_cxx_try_link LINENO
2651 # -------------------------
2652 # Try to link conftest.$ac_ext, and return whether this succeeded.
2653 ac_fn_cxx_try_link ()
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 rm -f conftest.$ac_objext conftest$ac_exeext
2657 if { { ac_try="$ac_link"
2658 case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2661 esac
2662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2663 $as_echo "$ac_try_echo"; } >&5
2664 (eval "$ac_link") 2>conftest.err
2665 ac_status=$?
2666 if test -s conftest.err; then
2667 grep -v '^ *+' conftest.err >conftest.er1
2668 cat conftest.er1 >&5
2669 mv -f conftest.er1 conftest.err
2671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2672 test $ac_status = 0; } && {
2673 test -z "$ac_cxx_werror_flag" ||
2674 test ! -s conftest.err
2675 } && test -s conftest$ac_exeext && {
2676 test "$cross_compiling" = yes ||
2677 test -x conftest$ac_exeext
2678 }; then :
2679 ac_retval=0
2680 else
2681 $as_echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2684 ac_retval=1
2686 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2687 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2688 # interfere with the next link command; also delete a directory that is
2689 # left behind by Apple's compiler. We do this before executing the actions.
2690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692 as_fn_set_status $ac_retval
2694 } # ac_fn_cxx_try_link
2696 # ac_fn_c_find_uintX_t LINENO BITS VAR
2697 # ------------------------------------
2698 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2699 # accordingly.
2700 ac_fn_c_find_uintX_t ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2704 $as_echo_n "checking for uint$2_t... " >&6; }
2705 if eval \${$3+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 eval "$3=no"
2709 # Order is important - never check a type that is potentially smaller
2710 # than half of the expected target width.
2711 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2712 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2715 $ac_includes_default
2717 main ()
2719 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2720 test_array [0] = 0;
2721 return test_array [0];
2724 return 0;
2726 _ACEOF
2727 if ac_fn_cxx_try_compile "$LINENO"; then :
2728 case $ac_type in #(
2729 uint$2_t) :
2730 eval "$3=yes" ;; #(
2731 *) :
2732 eval "$3=\$ac_type" ;;
2733 esac
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 if eval test \"x\$"$3"\" = x"no"; then :
2738 else
2739 break
2741 done
2743 eval ac_res=\$$3
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745 $as_echo "$ac_res" >&6; }
2746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2748 } # ac_fn_c_find_uintX_t
2750 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2751 # ------------------------------------------------
2752 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2753 ac_fn_cxx_check_header_preproc ()
2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2757 $as_echo_n "checking for $2... " >&6; }
2758 if eval \${$3+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2762 /* end confdefs.h. */
2763 #include <$2>
2764 _ACEOF
2765 if ac_fn_cxx_try_cpp "$LINENO"; then :
2766 eval "$3=yes"
2767 else
2768 eval "$3=no"
2770 rm -f conftest.err conftest.i conftest.$ac_ext
2772 eval ac_res=\$$3
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2774 $as_echo "$ac_res" >&6; }
2775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2777 } # ac_fn_cxx_check_header_preproc
2779 # ac_fn_cxx_check_func LINENO FUNC VAR
2780 # ------------------------------------
2781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2782 ac_fn_cxx_check_func ()
2784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2786 $as_echo_n "checking for $2... " >&6; }
2787 if eval \${$3+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2794 #define $2 innocuous_$2
2796 /* System header to define __stub macros and hopefully few prototypes,
2797 which can conflict with char $2 (); below.
2798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2799 <limits.h> exists even on freestanding compilers. */
2801 #ifdef __STDC__
2802 # include <limits.h>
2803 #else
2804 # include <assert.h>
2805 #endif
2807 #undef $2
2809 /* Override any GCC internal prototype to avoid an error.
2810 Use char because int might match the return type of a GCC
2811 builtin and then its argument prototype would still apply. */
2812 #ifdef __cplusplus
2813 extern "C"
2814 #endif
2815 char $2 ();
2816 /* The GNU C library defines this for functions which it implements
2817 to always fail with ENOSYS. Some functions are actually named
2818 something starting with __ and the normal name is an alias. */
2819 #if defined __stub_$2 || defined __stub___$2
2820 choke me
2821 #endif
2824 main ()
2826 return $2 ();
2828 return 0;
2830 _ACEOF
2831 if ac_fn_cxx_try_link "$LINENO"; then :
2832 eval "$3=yes"
2833 else
2834 eval "$3=no"
2836 rm -f core conftest.err conftest.$ac_objext \
2837 conftest$ac_exeext conftest.$ac_ext
2839 eval ac_res=\$$3
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2841 $as_echo "$ac_res" >&6; }
2842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2844 } # ac_fn_cxx_check_func
2846 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2847 # -----------------------------------------------
2848 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2849 # accordingly.
2850 ac_fn_cxx_check_decl ()
2852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2853 as_decl_name=`echo $2|sed 's/ *(.*//'`
2854 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2856 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2857 if eval \${$3+:} false; then :
2858 $as_echo_n "(cached) " >&6
2859 else
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2864 main ()
2866 #ifndef $as_decl_name
2867 #ifdef __cplusplus
2868 (void) $as_decl_use;
2869 #else
2870 (void) $as_decl_name;
2871 #endif
2872 #endif
2875 return 0;
2877 _ACEOF
2878 if ac_fn_cxx_try_compile "$LINENO"; then :
2879 eval "$3=yes"
2880 else
2881 eval "$3=no"
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 eval ac_res=\$$3
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2887 $as_echo "$ac_res" >&6; }
2888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2890 } # ac_fn_cxx_check_decl
2892 # ac_fn_c_try_link LINENO
2893 # -----------------------
2894 # Try to link conftest.$ac_ext, and return whether this succeeded.
2895 ac_fn_c_try_link ()
2897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2898 rm -f conftest.$ac_objext conftest$ac_exeext
2899 if { { ac_try="$ac_link"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2905 $as_echo "$ac_try_echo"; } >&5
2906 (eval "$ac_link") 2>conftest.err
2907 ac_status=$?
2908 if test -s conftest.err; then
2909 grep -v '^ *+' conftest.err >conftest.er1
2910 cat conftest.er1 >&5
2911 mv -f conftest.er1 conftest.err
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; } && {
2915 test -z "$ac_c_werror_flag" ||
2916 test ! -s conftest.err
2917 } && test -s conftest$ac_exeext && {
2918 test "$cross_compiling" = yes ||
2919 test -x conftest$ac_exeext
2920 }; then :
2921 ac_retval=0
2922 else
2923 $as_echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 ac_retval=1
2928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2930 # interfere with the next link command; also delete a directory that is
2931 # left behind by Apple's compiler. We do this before executing the actions.
2932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2934 as_fn_set_status $ac_retval
2936 } # ac_fn_c_try_link
2938 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2939 # ----------------------------------------------
2940 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2941 ac_fn_c_check_header_preproc ()
2943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2945 $as_echo_n "checking for $2... " >&6; }
2946 if eval \${$3+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h. */
2951 #include <$2>
2952 _ACEOF
2953 if ac_fn_c_try_cpp "$LINENO"; then :
2954 eval "$3=yes"
2955 else
2956 eval "$3=no"
2958 rm -f conftest.err conftest.i conftest.$ac_ext
2960 eval ac_res=\$$3
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2962 $as_echo "$ac_res" >&6; }
2963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2965 } # ac_fn_c_check_header_preproc
2967 # ac_fn_c_check_func LINENO FUNC VAR
2968 # ----------------------------------
2969 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2970 ac_fn_c_check_func ()
2972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2974 $as_echo_n "checking for $2... " >&6; }
2975 if eval \${$3+:} false; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2979 /* end confdefs.h. */
2980 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2982 #define $2 innocuous_$2
2984 /* System header to define __stub macros and hopefully few prototypes,
2985 which can conflict with char $2 (); below.
2986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2987 <limits.h> exists even on freestanding compilers. */
2989 #ifdef __STDC__
2990 # include <limits.h>
2991 #else
2992 # include <assert.h>
2993 #endif
2995 #undef $2
2997 /* Override any GCC internal prototype to avoid an error.
2998 Use char because int might match the return type of a GCC
2999 builtin and then its argument prototype would still apply. */
3000 #ifdef __cplusplus
3001 extern "C"
3002 #endif
3003 char $2 ();
3004 /* The GNU C library defines this for functions which it implements
3005 to always fail with ENOSYS. Some functions are actually named
3006 something starting with __ and the normal name is an alias. */
3007 #if defined __stub_$2 || defined __stub___$2
3008 choke me
3009 #endif
3012 main ()
3014 return $2 ();
3016 return 0;
3018 _ACEOF
3019 if ac_fn_c_try_link "$LINENO"; then :
3020 eval "$3=yes"
3021 else
3022 eval "$3=no"
3024 rm -f core conftest.err conftest.$ac_objext \
3025 conftest$ac_exeext conftest.$ac_ext
3027 eval ac_res=\$$3
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3029 $as_echo "$ac_res" >&6; }
3030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3032 } # ac_fn_c_check_func
3033 cat >config.log <<_ACEOF
3034 This file contains any messages produced by compilers while
3035 running configure, to aid debugging if configure makes a mistake.
3037 It was created by $as_me, which was
3038 generated by GNU Autoconf 2.69. Invocation command line was
3040 $ $0 $@
3042 _ACEOF
3043 exec 5>>config.log
3045 cat <<_ASUNAME
3046 ## --------- ##
3047 ## Platform. ##
3048 ## --------- ##
3050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3057 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3059 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3060 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3062 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3063 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3064 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3065 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3067 _ASUNAME
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 $as_echo "PATH: $as_dir"
3075 done
3076 IFS=$as_save_IFS
3078 } >&5
3080 cat >&5 <<_ACEOF
3083 ## ----------- ##
3084 ## Core tests. ##
3085 ## ----------- ##
3087 _ACEOF
3090 # Keep a trace of the command line.
3091 # Strip out --no-create and --no-recursion so they do not pile up.
3092 # Strip out --silent because we don't want to record it for future runs.
3093 # Also quote any args containing shell meta-characters.
3094 # Make two passes to allow for proper duplicate-argument suppression.
3095 ac_configure_args=
3096 ac_configure_args0=
3097 ac_configure_args1=
3098 ac_must_keep_next=false
3099 for ac_pass in 1 2
3101 for ac_arg
3103 case $ac_arg in
3104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3106 | -silent | --silent | --silen | --sile | --sil)
3107 continue ;;
3108 *\'*)
3109 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3110 esac
3111 case $ac_pass in
3112 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3114 as_fn_append ac_configure_args1 " '$ac_arg'"
3115 if test $ac_must_keep_next = true; then
3116 ac_must_keep_next=false # Got value, back to normal.
3117 else
3118 case $ac_arg in
3119 *=* | --config-cache | -C | -disable-* | --disable-* \
3120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3122 | -with-* | --with-* | -without-* | --without-* | --x)
3123 case "$ac_configure_args0 " in
3124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3125 esac
3127 -* ) ac_must_keep_next=true ;;
3128 esac
3130 as_fn_append ac_configure_args " '$ac_arg'"
3132 esac
3133 done
3134 done
3135 { ac_configure_args0=; unset ac_configure_args0;}
3136 { ac_configure_args1=; unset ac_configure_args1;}
3138 # When interrupted or exit'd, cleanup temporary files, and complete
3139 # config.log. We remove comments because anyway the quotes in there
3140 # would cause problems or look ugly.
3141 # WARNING: Use '\'' to represent an apostrophe within the trap.
3142 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3143 trap 'exit_status=$?
3144 # Save into config.log some information that might help in debugging.
3146 echo
3148 $as_echo "## ---------------- ##
3149 ## Cache variables. ##
3150 ## ---------------- ##"
3151 echo
3152 # The following way of writing the cache mishandles newlines in values,
3154 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3155 eval ac_val=\$$ac_var
3156 case $ac_val in #(
3157 *${as_nl}*)
3158 case $ac_var in #(
3159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3160 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3161 esac
3162 case $ac_var in #(
3163 _ | IFS | as_nl) ;; #(
3164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3165 *) { eval $ac_var=; unset $ac_var;} ;;
3166 esac ;;
3167 esac
3168 done
3169 (set) 2>&1 |
3170 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3171 *${as_nl}ac_space=\ *)
3172 sed -n \
3173 "s/'\''/'\''\\\\'\'''\''/g;
3174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3175 ;; #(
3177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3179 esac |
3180 sort
3182 echo
3184 $as_echo "## ----------------- ##
3185 ## Output variables. ##
3186 ## ----------------- ##"
3187 echo
3188 for ac_var in $ac_subst_vars
3190 eval ac_val=\$$ac_var
3191 case $ac_val in
3192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3193 esac
3194 $as_echo "$ac_var='\''$ac_val'\''"
3195 done | sort
3196 echo
3198 if test -n "$ac_subst_files"; then
3199 $as_echo "## ------------------- ##
3200 ## File substitutions. ##
3201 ## ------------------- ##"
3202 echo
3203 for ac_var in $ac_subst_files
3205 eval ac_val=\$$ac_var
3206 case $ac_val in
3207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3208 esac
3209 $as_echo "$ac_var='\''$ac_val'\''"
3210 done | sort
3211 echo
3214 if test -s confdefs.h; then
3215 $as_echo "## ----------- ##
3216 ## confdefs.h. ##
3217 ## ----------- ##"
3218 echo
3219 cat confdefs.h
3220 echo
3222 test "$ac_signal" != 0 &&
3223 $as_echo "$as_me: caught signal $ac_signal"
3224 $as_echo "$as_me: exit $exit_status"
3225 } >&5
3226 rm -f core *.core core.conftest.* &&
3227 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3228 exit $exit_status
3230 for ac_signal in 1 2 13 15; do
3231 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3232 done
3233 ac_signal=0
3235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3236 rm -f -r conftest* confdefs.h
3238 $as_echo "/* confdefs.h */" > confdefs.h
3240 # Predefined preprocessor variables.
3242 cat >>confdefs.h <<_ACEOF
3243 #define PACKAGE_NAME "$PACKAGE_NAME"
3244 _ACEOF
3246 cat >>confdefs.h <<_ACEOF
3247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3248 _ACEOF
3250 cat >>confdefs.h <<_ACEOF
3251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3252 _ACEOF
3254 cat >>confdefs.h <<_ACEOF
3255 #define PACKAGE_STRING "$PACKAGE_STRING"
3256 _ACEOF
3258 cat >>confdefs.h <<_ACEOF
3259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3260 _ACEOF
3262 cat >>confdefs.h <<_ACEOF
3263 #define PACKAGE_URL "$PACKAGE_URL"
3264 _ACEOF
3267 # Let the site file select an alternate cache file if it wants to.
3268 # Prefer an explicitly selected file to automatically selected ones.
3269 ac_site_file1=NONE
3270 ac_site_file2=NONE
3271 if test -n "$CONFIG_SITE"; then
3272 # We do not want a PATH search for config.site.
3273 case $CONFIG_SITE in #((
3274 -*) ac_site_file1=./$CONFIG_SITE;;
3275 */*) ac_site_file1=$CONFIG_SITE;;
3276 *) ac_site_file1=./$CONFIG_SITE;;
3277 esac
3278 elif test "x$prefix" != xNONE; then
3279 ac_site_file1=$prefix/share/config.site
3280 ac_site_file2=$prefix/etc/config.site
3281 else
3282 ac_site_file1=$ac_default_prefix/share/config.site
3283 ac_site_file2=$ac_default_prefix/etc/config.site
3285 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3287 test "x$ac_site_file" = xNONE && continue
3288 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3290 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3291 sed 's/^/| /' "$ac_site_file" >&5
3292 . "$ac_site_file" \
3293 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "failed to load site script $ac_site_file
3296 See \`config.log' for more details" "$LINENO" 5; }
3298 done
3300 if test -r "$cache_file"; then
3301 # Some versions of bash will fail to source /dev/null (special files
3302 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3303 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3305 $as_echo "$as_me: loading cache $cache_file" >&6;}
3306 case $cache_file in
3307 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3308 *) . "./$cache_file";;
3309 esac
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3313 $as_echo "$as_me: creating cache $cache_file" >&6;}
3314 >$cache_file
3317 gt_needs="$gt_needs "
3318 # Check that the precious variables saved in the cache have kept the same
3319 # value.
3320 ac_cache_corrupted=false
3321 for ac_var in $ac_precious_vars; do
3322 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3323 eval ac_new_set=\$ac_env_${ac_var}_set
3324 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3325 eval ac_new_val=\$ac_env_${ac_var}_value
3326 case $ac_old_set,$ac_new_set in
3327 set,)
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3329 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3330 ac_cache_corrupted=: ;;
3331 ,set)
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3333 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3334 ac_cache_corrupted=: ;;
3335 ,);;
3337 if test "x$ac_old_val" != "x$ac_new_val"; then
3338 # differences in whitespace do not lead to failure.
3339 ac_old_val_w=`echo x $ac_old_val`
3340 ac_new_val_w=`echo x $ac_new_val`
3341 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3343 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3344 ac_cache_corrupted=:
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3347 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3348 eval $ac_var=\$ac_old_val
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3351 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3353 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3354 fi;;
3355 esac
3356 # Pass precious variables to config.status.
3357 if test "$ac_new_set" = set; then
3358 case $ac_new_val in
3359 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3360 *) ac_arg=$ac_var=$ac_new_val ;;
3361 esac
3362 case " $ac_configure_args " in
3363 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3364 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3365 esac
3367 done
3368 if $ac_cache_corrupted; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3372 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3373 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3375 ## -------------------- ##
3376 ## Main body of script. ##
3377 ## -------------------- ##
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3394 gcc_version=`cat $srcdir/BASE-VER`
3396 # Determine the host, build, and target systems
3397 ac_aux_dir=
3398 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3399 if test -f "$ac_dir/install-sh"; then
3400 ac_aux_dir=$ac_dir
3401 ac_install_sh="$ac_aux_dir/install-sh -c"
3402 break
3403 elif test -f "$ac_dir/install.sh"; then
3404 ac_aux_dir=$ac_dir
3405 ac_install_sh="$ac_aux_dir/install.sh -c"
3406 break
3407 elif test -f "$ac_dir/shtool"; then
3408 ac_aux_dir=$ac_dir
3409 ac_install_sh="$ac_aux_dir/shtool install -c"
3410 break
3412 done
3413 if test -z "$ac_aux_dir"; then
3414 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3417 # These three variables are undocumented and unsupported,
3418 # and are intended to be withdrawn in a future Autoconf release.
3419 # They can cause serious problems if a builder's source tree is in a directory
3420 # whose full name contains unusual characters.
3421 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3422 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3423 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3426 # Make sure we can run config.sub.
3427 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3428 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3431 $as_echo_n "checking build system type... " >&6; }
3432 if ${ac_cv_build+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 ac_build_alias=$build_alias
3436 test "x$ac_build_alias" = x &&
3437 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3438 test "x$ac_build_alias" = x &&
3439 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3440 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3445 $as_echo "$ac_cv_build" >&6; }
3446 case $ac_cv_build in
3447 *-*-*) ;;
3448 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3449 esac
3450 build=$ac_cv_build
3451 ac_save_IFS=$IFS; IFS='-'
3452 set x $ac_cv_build
3453 shift
3454 build_cpu=$1
3455 build_vendor=$2
3456 shift; shift
3457 # Remember, the first character of IFS is used to create $*,
3458 # except with old shells:
3459 build_os=$*
3460 IFS=$ac_save_IFS
3461 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3465 $as_echo_n "checking host system type... " >&6; }
3466 if ${ac_cv_host+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test "x$host_alias" = x; then
3470 ac_cv_host=$ac_cv_build
3471 else
3472 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3478 $as_echo "$ac_cv_host" >&6; }
3479 case $ac_cv_host in
3480 *-*-*) ;;
3481 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3482 esac
3483 host=$ac_cv_host
3484 ac_save_IFS=$IFS; IFS='-'
3485 set x $ac_cv_host
3486 shift
3487 host_cpu=$1
3488 host_vendor=$2
3489 shift; shift
3490 # Remember, the first character of IFS is used to create $*,
3491 # except with old shells:
3492 host_os=$*
3493 IFS=$ac_save_IFS
3494 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3498 $as_echo_n "checking target system type... " >&6; }
3499 if ${ac_cv_target+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test "x$target_alias" = x; then
3503 ac_cv_target=$ac_cv_host
3504 else
3505 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3511 $as_echo "$ac_cv_target" >&6; }
3512 case $ac_cv_target in
3513 *-*-*) ;;
3514 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3515 esac
3516 target=$ac_cv_target
3517 ac_save_IFS=$IFS; IFS='-'
3518 set x $ac_cv_target
3519 shift
3520 target_cpu=$1
3521 target_vendor=$2
3522 shift; shift
3523 # Remember, the first character of IFS is used to create $*,
3524 # except with old shells:
3525 target_os=$*
3526 IFS=$ac_save_IFS
3527 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3530 # The aliases save the names the user supplied, while $host etc.
3531 # will get canonicalized.
3532 test -n "$target_alias" &&
3533 test "$program_prefix$program_suffix$program_transform_name" = \
3534 NONENONEs,x,x, &&
3535 program_prefix=${target_alias}-
3537 # Determine the noncanonical host name, for Ada.
3538 case ${build_alias} in
3539 "") build_noncanonical=${build} ;;
3540 *) build_noncanonical=${build_alias} ;;
3541 esac
3543 case ${host_alias} in
3544 "") host_noncanonical=${build_noncanonical} ;;
3545 *) host_noncanonical=${host_alias} ;;
3546 esac
3551 # Determine the noncanonical target name, for directory use.
3552 case ${target_alias} in
3553 "") target_noncanonical=${host_noncanonical} ;;
3554 *) target_noncanonical=${target_alias} ;;
3555 esac
3560 # Used for constructing correct paths for offload compilers.
3561 real_target_noncanonical=${target_noncanonical}
3562 accel_dir_suffix=
3564 # Determine the target- and build-specific subdirectories
3566 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3567 # have matching libraries, they should use host libraries: Makefile.tpl
3568 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3569 # However, they still use the build modules, because the corresponding
3570 # host modules (e.g. bison) are only built for the host when bootstrap
3571 # finishes. So:
3572 # - build_subdir is where we find build modules, and never changes.
3573 # - build_libsubdir is where we find build libraries, and can be overridden.
3575 # Prefix 'build-' so this never conflicts with target_subdir.
3576 build_subdir="build-${build_noncanonical}"
3578 # Check whether --with-build-libsubdir was given.
3579 if test "${with_build_libsubdir+set}" = set; then :
3580 withval=$with_build_libsubdir; build_libsubdir="$withval"
3581 else
3582 build_libsubdir="$build_subdir"
3585 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3586 if ( test $srcdir = . && test -d gcc ) \
3587 || test -d $srcdir/../host-${host_noncanonical}; then
3588 host_subdir="host-${host_noncanonical}"
3589 else
3590 host_subdir=.
3592 # No prefix.
3593 target_subdir=${target_noncanonical}
3596 # Set program_transform_name
3597 test "$program_prefix" != NONE &&
3598 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3599 # Use a double $ so make ignores it.
3600 test "$program_suffix" != NONE &&
3601 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3602 # Double any \ or $.
3603 # By default was `s,x,x', remove it if useless.
3604 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3605 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3608 # Check for bogus environment variables.
3609 # Test if LIBRARY_PATH contains the notation for the current directory
3610 # since this would lead to problems installing/building glibc.
3611 # LIBRARY_PATH contains the current directory if one of the following
3612 # is true:
3613 # - one of the terminals (":" and ";") is the first or last sign
3614 # - two terminals occur directly after each other
3615 # - the path contains an element with a dot in it
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3617 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3618 case ${LIBRARY_PATH} in
3619 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3620 library_path_setting="contains current directory"
3623 library_path_setting="ok"
3625 esac
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3627 $as_echo "$library_path_setting" >&6; }
3628 if test "$library_path_setting" != "ok"; then
3629 as_fn_error $? "
3630 *** LIBRARY_PATH shouldn't contain the current directory when
3631 *** building gcc. Please change the environment variable
3632 *** and run configure again." "$LINENO" 5
3635 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3636 # since this would lead to problems installing/building glibc.
3637 # GCC_EXEC_PREFIX contains the current directory if one of the following
3638 # is true:
3639 # - one of the terminals (":" and ";") is the first or last sign
3640 # - two terminals occur directly after each other
3641 # - the path contains an element with a dot in it
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3643 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3644 case ${GCC_EXEC_PREFIX} in
3645 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3646 gcc_exec_prefix_setting="contains current directory"
3649 gcc_exec_prefix_setting="ok"
3651 esac
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3653 $as_echo "$gcc_exec_prefix_setting" >&6; }
3654 if test "$gcc_exec_prefix_setting" != "ok"; then
3655 as_fn_error $? "
3656 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3657 *** building gcc. Please change the environment variable
3658 *** and run configure again." "$LINENO" 5
3661 # -----------
3662 # Directories
3663 # -----------
3665 # Specify the local prefix
3666 local_prefix=
3668 # Check whether --with-local-prefix was given.
3669 if test "${with_local_prefix+set}" = set; then :
3670 withval=$with_local_prefix; case "${withval}" in
3671 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3672 no) ;;
3673 *) local_prefix=$with_local_prefix ;;
3674 esac
3678 # Default local prefix if it is empty
3679 if test x$local_prefix = x; then
3680 local_prefix=/usr/local
3684 # Check whether --with-native-system-header-dir was given.
3685 if test "${with_native_system_header_dir+set}" = set; then :
3686 withval=$with_native_system_header_dir;
3687 case ${with_native_system_header_dir} in
3688 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3689 /* | [A-Za-z]:[\\/]*) ;;
3690 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3691 esac
3692 configured_native_system_header_dir="${withval}"
3694 else
3695 configured_native_system_header_dir=
3700 # Check whether --with-build-sysroot was given.
3701 if test "${with_build_sysroot+set}" = set; then :
3702 withval=$with_build_sysroot; if test x"$withval" != x ; then
3703 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3705 else
3706 SYSROOT_CFLAGS_FOR_TARGET=
3711 if test "x$prefix" = xNONE; then
3712 test_prefix=/usr/local
3713 else
3714 test_prefix=$prefix
3716 if test "x$exec_prefix" = xNONE; then
3717 test_exec_prefix=$test_prefix
3718 else
3719 test_exec_prefix=$exec_prefix
3723 # Check whether --with-sysroot was given.
3724 if test "${with_sysroot+set}" = set; then :
3725 withval=$with_sysroot;
3726 case ${with_sysroot} in
3727 /) ;;
3728 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3729 esac
3730 case ${with_sysroot} in
3731 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3732 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3733 esac
3735 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3736 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3738 case ${TARGET_SYSTEM_ROOT} in
3739 "${test_prefix}"|"${test_prefix}/"*|\
3740 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3741 '${prefix}'|'${prefix}/'*|\
3742 '${exec_prefix}'|'${exec_prefix}/'*)
3743 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3744 TARGET_SYSTEM_ROOT_DEFINE="$t"
3746 esac
3748 else
3750 TARGET_SYSTEM_ROOT=
3751 TARGET_SYSTEM_ROOT_DEFINE=
3752 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3760 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3761 # passed in by the toplevel make and thus we'd get different behavior
3762 # depending on where we built the sources.
3763 gcc_gxx_include_dir=
3764 # Specify the g++ header file directory
3766 # Check whether --with-gxx-include-dir was given.
3767 if test "${with_gxx_include_dir+set}" = set; then :
3768 withval=$with_gxx_include_dir; case "${withval}" in
3769 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3770 no) ;;
3771 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3772 esac
3776 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3777 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3778 # relative to the sysroot.
3779 gcc_gxx_include_dir_add_sysroot=0
3781 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3782 if test x${gcc_gxx_include_dir} = x; then
3783 if test x${enable_version_specific_runtime_libs} = xyes; then
3784 gcc_gxx_include_dir='${libsubdir}/include/c++'
3785 else
3786 libstdcxx_incdir='include/c++/$(version)'
3787 if test x$host != x$target; then
3788 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3790 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3792 elif test "${with_sysroot+set}" = set; then
3793 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3794 if test "${gcc_gxx_without_sysroot}"; then
3795 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3796 gcc_gxx_include_dir_add_sysroot=1
3800 # Configuration for an alternate set of C++ headers.
3801 gcc_gxx_libcxx_include_dir=
3802 # Specify the alternate g++ header file directory
3804 # Check whether --with-gxx-libcxx-include-dir was given.
3805 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3806 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3807 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3808 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3809 esac
3813 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3814 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3815 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3816 # based on the platform (to be available on platform versions where it is the
3817 # default for the system tools). We also use a default path within the compiler
3818 # install tree.
3819 # Otherwise, we use the path provided and enable the stdlib option.
3820 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3821 # check to see if the latter starts with the former and, upon success, compute
3822 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3823 gcc_gxx_libcxx_include_dir_add_sysroot=0
3824 gcc_enable_stdlib_opt=0
3825 if test x${gcc_gxx_libcxx_include_dir} != x; then
3826 if test x${gcc_gxx_libcxx_include_dir} = xno; then
3827 # set defaults for the dir, but the option is disabled anyway.
3828 gcc_gxx_libcxx_include_dir=
3829 else
3830 gcc_enable_stdlib_opt=1
3832 else
3833 case $target in
3834 *-darwin1[1-9]* | *-darwin2*)
3835 # Default this on for Darwin versions which default to libcxx,
3836 # and embed the path in the compiler install so that we get a
3837 # self-contained toolchain.
3838 gcc_enable_stdlib_opt=1
3840 *) ;;
3841 esac
3844 cat >>confdefs.h <<_ACEOF
3845 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3846 _ACEOF
3849 # Sysroot behaviour as for gxx-include-dir
3850 if test x${gcc_gxx_libcxx_include_dir} = x; then
3851 # default path,embedded in the compiler tree.
3852 libcxx_incdir='include/c++/v1'
3853 if test x${enable_version_specific_runtime_libs} = xyes; then
3854 gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir'
3855 else
3856 if test x$host != x$target; then
3857 libcxx_incdir="$target_alias/$libcxx_incdir"
3859 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3861 elif test "${with_sysroot+set}" = set; then
3862 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3863 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3864 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3865 gcc_gxx_libcxx_include_dir_add_sysroot=1
3870 # Check whether --with-cpp_install_dir was given.
3871 if test "${with_cpp_install_dir+set}" = set; then :
3872 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3873 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3874 elif test x$withval != xno; then
3875 cpp_install_dir=$withval
3880 # We would like to our source tree to be readonly. However when releases or
3881 # pre-releases are generated, the flex/bison generated files as well as the
3882 # various formats of manuals need to be included along with the rest of the
3883 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3884 # just that.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3887 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3888 # Check whether --enable-generated-files-in-srcdir was given.
3889 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3890 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3891 else
3892 generated_files_in_srcdir=no
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3897 $as_echo "$generated_files_in_srcdir" >&6; }
3899 if test "$generated_files_in_srcdir" = "yes"; then
3900 GENINSRC=''
3901 else
3902 GENINSRC='#'
3906 # -------------------
3907 # Find default linker
3908 # -------------------
3910 # With GNU ld
3912 # Check whether --with-gnu-ld was given.
3913 if test "${with_gnu_ld+set}" = set; then :
3914 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3915 else
3916 gnu_ld_flag=no
3920 case $target in
3921 *darwin*)
3922 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3923 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3926 ld64_flag=no
3927 dsymutil_flag=no
3929 esac
3931 # With pre-defined ld
3933 # Check whether --with-ld was given.
3934 if test "${with_ld+set}" = set; then :
3935 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3938 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3939 if test ! -x "$DEFAULT_LINKER"; then
3940 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3941 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3942 gnu_ld_flag=yes
3943 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3944 ld64_flag=yes
3947 cat >>confdefs.h <<_ACEOF
3948 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3949 _ACEOF
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3954 $as_echo_n "checking whether a default linker was specified... " >&6; }
3955 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3956 if test x"$gnu_ld_flag" = x"no"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3958 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3959 else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3961 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3968 # With demangler in GNU ld
3970 # Check whether --with-demangler-in-ld was given.
3971 if test "${with_demangler_in_ld+set}" = set; then :
3972 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3973 else
3974 demangler_in_ld=yes
3978 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3980 # Check whether --with-dsymutil was given.
3981 if test "${with_dsymutil+set}" = set; then :
3982 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3986 dsymutil_vers=
3987 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3988 if test ! -x "$DEFAULT_DSYMUTIL"; then
3989 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3990 else
3991 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3992 dsymutil_flag=yes
3996 cat >>confdefs.h <<_ACEOF
3997 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3998 _ACEOF
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
4003 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
4004 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
4006 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4012 # ----------------------
4013 # Find default assembler
4014 # ----------------------
4016 # With GNU as
4018 # Check whether --with-gnu-as was given.
4019 if test "${with_gnu_as+set}" = set; then :
4020 withval=$with_gnu_as; gas_flag="$with_gnu_as"
4021 else
4022 gas_flag=no
4027 # Check whether --with-as was given.
4028 if test "${with_as+set}" = set; then :
4029 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
4032 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4033 if test ! -x "$DEFAULT_ASSEMBLER"; then
4034 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4035 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
4036 gas_flag=yes
4039 cat >>confdefs.h <<_ACEOF
4040 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4041 _ACEOF
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4046 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4047 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4048 if test x"$gas_flag" = x"no"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4050 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4051 else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4053 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4060 # ---------------
4061 # Find C compiler
4062 # ---------------
4064 # If a non-executable a.out is present (e.g. created by GNU as above even if
4065 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4066 # file, even when creating an executable, so an execution test fails.
4067 # Remove possible default executable files to avoid this.
4069 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4070 # Autoconf includes it.
4071 rm -f a.out a.exe b.out
4073 # Find the native compiler
4074 ac_ext=c
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4081 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_CC+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4101 done
4102 done
4103 IFS=$as_save_IFS
4107 CC=$ac_cv_prog_CC
4108 if test -n "$CC"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4110 $as_echo "$CC" >&6; }
4111 else
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4118 if test -z "$ac_cv_prog_CC"; then
4119 ac_ct_CC=$CC
4120 # Extract the first word of "gcc", so it can be a program name with args.
4121 set dummy gcc; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -n "$ac_ct_CC"; then
4128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_ac_ct_CC="gcc"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4141 done
4142 done
4143 IFS=$as_save_IFS
4147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4148 if test -n "$ac_ct_CC"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4150 $as_echo "$ac_ct_CC" >&6; }
4151 else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4156 if test "x$ac_ct_CC" = x; then
4157 CC=""
4158 else
4159 case $cross_compiling:$ac_tool_warned in
4160 yes:)
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4163 ac_tool_warned=yes ;;
4164 esac
4165 CC=$ac_ct_CC
4167 else
4168 CC="$ac_cv_prog_CC"
4171 if test -z "$CC"; then
4172 if test -n "$ac_tool_prefix"; then
4173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4174 set dummy ${ac_tool_prefix}cc; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if ${ac_cv_prog_CC+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 if test -n "$CC"; then
4181 ac_cv_prog_CC="$CC" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190 ac_cv_prog_CC="${ac_tool_prefix}cc"
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 break 2
4194 done
4195 done
4196 IFS=$as_save_IFS
4200 CC=$ac_cv_prog_CC
4201 if test -n "$CC"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4203 $as_echo "$CC" >&6; }
4204 else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4212 if test -z "$CC"; then
4213 # Extract the first word of "cc", so it can be a program name with args.
4214 set dummy cc; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_CC+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if test -n "$CC"; then
4221 ac_cv_prog_CC="$CC" # Let the user override the test.
4222 else
4223 ac_prog_rejected=no
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4232 ac_prog_rejected=yes
4233 continue
4235 ac_cv_prog_CC="cc"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4239 done
4240 done
4241 IFS=$as_save_IFS
4243 if test $ac_prog_rejected = yes; then
4244 # We found a bogon in the path, so make sure we never use it.
4245 set dummy $ac_cv_prog_CC
4246 shift
4247 if test $# != 0; then
4248 # We chose a different compiler from the bogus one.
4249 # However, it has the same basename, so the bogon will be chosen
4250 # first if we set CC to just the basename; use the full file name.
4251 shift
4252 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4257 CC=$ac_cv_prog_CC
4258 if test -n "$CC"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4260 $as_echo "$CC" >&6; }
4261 else
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4268 if test -z "$CC"; then
4269 if test -n "$ac_tool_prefix"; then
4270 for ac_prog in cl.exe
4272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_CC+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$CC"; then
4280 ac_cv_prog_CC="$CC" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4293 done
4294 done
4295 IFS=$as_save_IFS
4299 CC=$ac_cv_prog_CC
4300 if test -n "$CC"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4302 $as_echo "$CC" >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4309 test -n "$CC" && break
4310 done
4312 if test -z "$CC"; then
4313 ac_ct_CC=$CC
4314 for ac_prog in cl.exe
4316 # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy $ac_prog; ac_word=$2
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if test -n "$ac_ct_CC"; then
4324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_ac_ct_CC="$ac_prog"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4339 IFS=$as_save_IFS
4343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4344 if test -n "$ac_ct_CC"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4346 $as_echo "$ac_ct_CC" >&6; }
4347 else
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4353 test -n "$ac_ct_CC" && break
4354 done
4356 if test "x$ac_ct_CC" = x; then
4357 CC=""
4358 else
4359 case $cross_compiling:$ac_tool_warned in
4360 yes:)
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4363 ac_tool_warned=yes ;;
4364 esac
4365 CC=$ac_ct_CC
4372 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4374 as_fn_error $? "no acceptable C compiler found in \$PATH
4375 See \`config.log' for more details" "$LINENO" 5; }
4377 # Provide some information about the compiler.
4378 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4379 set X $ac_compile
4380 ac_compiler=$2
4381 for ac_option in --version -v -V -qversion; do
4382 { { ac_try="$ac_compiler $ac_option >&5"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4390 ac_status=$?
4391 if test -s conftest.err; then
4392 sed '10a\
4393 ... rest of stderr output deleted ...
4394 10q' conftest.err >conftest.er1
4395 cat conftest.er1 >&5
4397 rm -f conftest.er1 conftest.err
4398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399 test $ac_status = 0; }
4400 done
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4406 main ()
4410 return 0;
4412 _ACEOF
4413 ac_clean_files_save=$ac_clean_files
4414 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4415 # Try to create an executable without -o first, disregard a.out.
4416 # It will help us diagnose broken compilers, and finding out an intuition
4417 # of exeext.
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4419 $as_echo_n "checking whether the C compiler works... " >&6; }
4420 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4422 # The possible output files:
4423 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4425 ac_rmfiles=
4426 for ac_file in $ac_files
4428 case $ac_file in
4429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4430 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4431 esac
4432 done
4433 rm -f $ac_rmfiles
4435 if { { ac_try="$ac_link_default"
4436 case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439 esac
4440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4441 $as_echo "$ac_try_echo"; } >&5
4442 (eval "$ac_link_default") 2>&5
4443 ac_status=$?
4444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; }; then :
4446 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4447 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4448 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4449 # so that the user can short-circuit this test for compilers unknown to
4450 # Autoconf.
4451 for ac_file in $ac_files ''
4453 test -f "$ac_file" || continue
4454 case $ac_file in
4455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4457 [ab].out )
4458 # We found the default executable, but exeext='' is most
4459 # certainly right.
4460 break;;
4461 *.* )
4462 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4463 then :; else
4464 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4466 # We set ac_cv_exeext here because the later test for it is not
4467 # safe: cross compilers may not add the suffix if given an `-o'
4468 # argument, so we may need to know it at that point already.
4469 # Even if this section looks crufty: it has the advantage of
4470 # actually working.
4471 break;;
4473 break;;
4474 esac
4475 done
4476 test "$ac_cv_exeext" = no && ac_cv_exeext=
4478 else
4479 ac_file=''
4481 if test -z "$ac_file"; then :
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4484 $as_echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489 as_fn_error 77 "C compiler cannot create executables
4490 See \`config.log' for more details" "$LINENO" 5; }
4491 else
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4493 $as_echo "yes" >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4496 $as_echo_n "checking for C compiler default output file name... " >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4498 $as_echo "$ac_file" >&6; }
4499 ac_exeext=$ac_cv_exeext
4501 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4502 ac_clean_files=$ac_clean_files_save
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4504 $as_echo_n "checking for suffix of executables... " >&6; }
4505 if { { ac_try="$ac_link"
4506 case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 $as_echo "$ac_try_echo"; } >&5
4512 (eval "$ac_link") 2>&5
4513 ac_status=$?
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }; then :
4516 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4517 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4518 # work properly (i.e., refer to `conftest.exe'), while it won't with
4519 # `rm'.
4520 for ac_file in conftest.exe conftest conftest.*; do
4521 test -f "$ac_file" || continue
4522 case $ac_file in
4523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4525 break;;
4526 * ) break;;
4527 esac
4528 done
4529 else
4530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4532 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details" "$LINENO" 5; }
4535 rm -f conftest conftest$ac_cv_exeext
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4537 $as_echo "$ac_cv_exeext" >&6; }
4539 rm -f conftest.$ac_ext
4540 EXEEXT=$ac_cv_exeext
4541 ac_exeext=$EXEEXT
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 #include <stdio.h>
4546 main ()
4548 FILE *f = fopen ("conftest.out", "w");
4549 return ferror (f) || fclose (f) != 0;
4552 return 0;
4554 _ACEOF
4555 ac_clean_files="$ac_clean_files conftest.out"
4556 # Check that the compiler produces executables we can run. If not, either
4557 # the compiler is broken, or we cross compile.
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4559 $as_echo_n "checking whether we are cross compiling... " >&6; }
4560 if test "$cross_compiling" != yes; then
4561 { { ac_try="$ac_link"
4562 case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565 esac
4566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567 $as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_link") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4571 test $ac_status = 0; }
4572 if { ac_try='./conftest$ac_cv_exeext'
4573 { { case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576 esac
4577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4578 $as_echo "$ac_try_echo"; } >&5
4579 (eval "$ac_try") 2>&5
4580 ac_status=$?
4581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4582 test $ac_status = 0; }; }; then
4583 cross_compiling=no
4584 else
4585 if test "$cross_compiling" = maybe; then
4586 cross_compiling=yes
4587 else
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590 as_fn_error $? "cannot run C compiled programs.
4591 If you meant to cross compile, use \`--host'.
4592 See \`config.log' for more details" "$LINENO" 5; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4597 $as_echo "$cross_compiling" >&6; }
4599 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4600 ac_clean_files=$ac_clean_files_save
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4602 $as_echo_n "checking for suffix of object files... " >&6; }
4603 if ${ac_cv_objext+:} false; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4610 main ()
4614 return 0;
4616 _ACEOF
4617 rm -f conftest.o conftest.obj
4618 if { { ac_try="$ac_compile"
4619 case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_compile") 2>&5
4626 ac_status=$?
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }; then :
4629 for ac_file in conftest.o conftest.obj conftest.*; do
4630 test -f "$ac_file" || continue;
4631 case $ac_file in
4632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4633 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4634 break;;
4635 esac
4636 done
4637 else
4638 $as_echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4643 as_fn_error $? "cannot compute suffix of object files: cannot compile
4644 See \`config.log' for more details" "$LINENO" 5; }
4646 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4649 $as_echo "$ac_cv_objext" >&6; }
4650 OBJEXT=$ac_cv_objext
4651 ac_objext=$OBJEXT
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4653 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4654 if ${ac_cv_c_compiler_gnu+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4661 main ()
4663 #ifndef __GNUC__
4664 choke me
4665 #endif
4668 return 0;
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_compiler_gnu=yes
4673 else
4674 ac_compiler_gnu=no
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4681 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4682 if test $ac_compiler_gnu = yes; then
4683 GCC=yes
4684 else
4685 GCC=
4687 ac_test_CFLAGS=${CFLAGS+set}
4688 ac_save_CFLAGS=$CFLAGS
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4690 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4691 if ${ac_cv_prog_cc_g+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 ac_save_c_werror_flag=$ac_c_werror_flag
4695 ac_c_werror_flag=yes
4696 ac_cv_prog_cc_g=no
4697 CFLAGS="-g"
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4702 main ()
4706 return 0;
4708 _ACEOF
4709 if ac_fn_c_try_compile "$LINENO"; then :
4710 ac_cv_prog_cc_g=yes
4711 else
4712 CFLAGS=""
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4717 main ()
4721 return 0;
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"; then :
4726 else
4727 ac_c_werror_flag=$ac_save_c_werror_flag
4728 CFLAGS="-g"
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4733 main ()
4737 return 0;
4739 _ACEOF
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_cv_prog_cc_g=yes
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 ac_c_werror_flag=$ac_save_c_werror_flag
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4751 $as_echo "$ac_cv_prog_cc_g" >&6; }
4752 if test "$ac_test_CFLAGS" = set; then
4753 CFLAGS=$ac_save_CFLAGS
4754 elif test $ac_cv_prog_cc_g = yes; then
4755 if test "$GCC" = yes; then
4756 CFLAGS="-g -O2"
4757 else
4758 CFLAGS="-g"
4760 else
4761 if test "$GCC" = yes; then
4762 CFLAGS="-O2"
4763 else
4764 CFLAGS=
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4768 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4769 if ${ac_cv_prog_cc_c89+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 ac_cv_prog_cc_c89=no
4773 ac_save_CC=$CC
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 #include <stdarg.h>
4777 #include <stdio.h>
4778 struct stat;
4779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4780 struct buf { int x; };
4781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4782 static char *e (p, i)
4783 char **p;
4784 int i;
4786 return p[i];
4788 static char *f (char * (*g) (char **, int), char **p, ...)
4790 char *s;
4791 va_list v;
4792 va_start (v,p);
4793 s = g (p, va_arg (v,int));
4794 va_end (v);
4795 return s;
4798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4799 function prototypes and stuff, but not '\xHH' hex character constants.
4800 These don't provoke an error unfortunately, instead are silently treated
4801 as 'x'. The following induces an error, until -std is added to get
4802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4803 array size at least. It's necessary to write '\x00'==0 to get something
4804 that's true only with -std. */
4805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4808 inside strings and character constants. */
4809 #define FOO(x) 'x'
4810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4812 int test (int i, double x);
4813 struct s1 {int (*f) (int a);};
4814 struct s2 {int (*f) (double a);};
4815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4816 int argc;
4817 char **argv;
4819 main ()
4821 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4823 return 0;
4825 _ACEOF
4826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4827 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4829 CC="$ac_save_CC $ac_arg"
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 ac_cv_prog_cc_c89=$ac_arg
4833 rm -f core conftest.err conftest.$ac_objext
4834 test "x$ac_cv_prog_cc_c89" != "xno" && break
4835 done
4836 rm -f conftest.$ac_ext
4837 CC=$ac_save_CC
4840 # AC_CACHE_VAL
4841 case "x$ac_cv_prog_cc_c89" in
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4844 $as_echo "none needed" >&6; } ;;
4845 xno)
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4847 $as_echo "unsupported" >&6; } ;;
4849 CC="$CC $ac_cv_prog_cc_c89"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4851 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4852 esac
4853 if test "x$ac_cv_prog_cc_c89" != xno; then :
4857 ac_ext=c
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863 ac_ext=cpp
4864 ac_cpp='$CXXCPP $CPPFLAGS'
4865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4868 if test -z "$CXX"; then
4869 if test -n "$CCC"; then
4870 CXX=$CCC
4871 else
4872 if test -n "$ac_tool_prefix"; then
4873 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if ${ac_cv_prog_CXX+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 if test -n "$CXX"; then
4883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4896 done
4897 done
4898 IFS=$as_save_IFS
4902 CXX=$ac_cv_prog_CXX
4903 if test -n "$CXX"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4905 $as_echo "$CXX" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4912 test -n "$CXX" && break
4913 done
4915 if test -z "$CXX"; then
4916 ac_ct_CXX=$CXX
4917 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$ac_ct_CXX"; then
4927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_ac_ct_CXX="$ac_prog"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4942 IFS=$as_save_IFS
4946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4947 if test -n "$ac_ct_CXX"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4949 $as_echo "$ac_ct_CXX" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4956 test -n "$ac_ct_CXX" && break
4957 done
4959 if test "x$ac_ct_CXX" = x; then
4960 CXX="g++"
4961 else
4962 case $cross_compiling:$ac_tool_warned in
4963 yes:)
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4966 ac_tool_warned=yes ;;
4967 esac
4968 CXX=$ac_ct_CXX
4974 # Provide some information about the compiler.
4975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4976 set X $ac_compile
4977 ac_compiler=$2
4978 for ac_option in --version -v -V -qversion; do
4979 { { ac_try="$ac_compiler $ac_option >&5"
4980 case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983 esac
4984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4985 $as_echo "$ac_try_echo"; } >&5
4986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4987 ac_status=$?
4988 if test -s conftest.err; then
4989 sed '10a\
4990 ... rest of stderr output deleted ...
4991 10q' conftest.err >conftest.er1
4992 cat conftest.er1 >&5
4994 rm -f conftest.er1 conftest.err
4995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4996 test $ac_status = 0; }
4997 done
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5000 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5001 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5008 main ()
5010 #ifndef __GNUC__
5011 choke me
5012 #endif
5015 return 0;
5017 _ACEOF
5018 if ac_fn_cxx_try_compile "$LINENO"; then :
5019 ac_compiler_gnu=yes
5020 else
5021 ac_compiler_gnu=no
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5028 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5029 if test $ac_compiler_gnu = yes; then
5030 GXX=yes
5031 else
5032 GXX=
5034 ac_test_CXXFLAGS=${CXXFLAGS+set}
5035 ac_save_CXXFLAGS=$CXXFLAGS
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5037 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5038 if ${ac_cv_prog_cxx_g+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5042 ac_cxx_werror_flag=yes
5043 ac_cv_prog_cxx_g=no
5044 CXXFLAGS="-g"
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5049 main ()
5053 return 0;
5055 _ACEOF
5056 if ac_fn_cxx_try_compile "$LINENO"; then :
5057 ac_cv_prog_cxx_g=yes
5058 else
5059 CXXFLAGS=""
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5064 main ()
5068 return 0;
5070 _ACEOF
5071 if ac_fn_cxx_try_compile "$LINENO"; then :
5073 else
5074 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5075 CXXFLAGS="-g"
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5080 main ()
5084 return 0;
5086 _ACEOF
5087 if ac_fn_cxx_try_compile "$LINENO"; then :
5088 ac_cv_prog_cxx_g=yes
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5098 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5099 if test "$ac_test_CXXFLAGS" = set; then
5100 CXXFLAGS=$ac_save_CXXFLAGS
5101 elif test $ac_cv_prog_cxx_g = yes; then
5102 if test "$GXX" = yes; then
5103 CXXFLAGS="-g -O2"
5104 else
5105 CXXFLAGS="-g"
5107 else
5108 if test "$GXX" = yes; then
5109 CXXFLAGS="-O2"
5110 else
5111 CXXFLAGS=
5114 ac_ext=c
5115 ac_cpp='$CPP $CPPFLAGS'
5116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_GNATBIND+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$GNATBIND"; then
5132 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 GNATBIND=$ac_cv_prog_GNATBIND
5152 if test -n "$GNATBIND"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5154 $as_echo "$GNATBIND" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5162 if test -z "$ac_cv_prog_GNATBIND"; then
5163 ac_ct_GNATBIND=$GNATBIND
5164 # Extract the first word of "gnatbind", so it can be a program name with args.
5165 set dummy gnatbind; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$ac_ct_GNATBIND"; then
5172 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5191 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5192 if test -n "$ac_ct_GNATBIND"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5194 $as_echo "$ac_ct_GNATBIND" >&6; }
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5200 if test "x$ac_ct_GNATBIND" = x; then
5201 GNATBIND="no"
5202 else
5203 case $cross_compiling:$ac_tool_warned in
5204 yes:)
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207 ac_tool_warned=yes ;;
5208 esac
5209 GNATBIND=$ac_ct_GNATBIND
5211 else
5212 GNATBIND="$ac_cv_prog_GNATBIND"
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5217 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_GNATMAKE+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if test -n "$GNATMAKE"; then
5224 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5237 done
5238 done
5239 IFS=$as_save_IFS
5243 GNATMAKE=$ac_cv_prog_GNATMAKE
5244 if test -n "$GNATMAKE"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5246 $as_echo "$GNATMAKE" >&6; }
5247 else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5254 if test -z "$ac_cv_prog_GNATMAKE"; then
5255 ac_ct_GNATMAKE=$GNATMAKE
5256 # Extract the first word of "gnatmake", so it can be a program name with args.
5257 set dummy gnatmake; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$ac_ct_GNATMAKE"; then
5264 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5283 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5284 if test -n "$ac_ct_GNATMAKE"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5286 $as_echo "$ac_ct_GNATMAKE" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5292 if test "x$ac_ct_GNATMAKE" = x; then
5293 GNATMAKE="no"
5294 else
5295 case $cross_compiling:$ac_tool_warned in
5296 yes:)
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5300 esac
5301 GNATMAKE=$ac_ct_GNATMAKE
5303 else
5304 GNATMAKE="$ac_cv_prog_GNATMAKE"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5308 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5309 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 cat >conftest.adb <<EOF
5313 pragma Warnings (Off);
5314 with System.CRTL;
5315 pragma Warnings (On);
5316 use type System.CRTL.int64;
5317 procedure conftest is begin null; end conftest;
5319 acx_cv_cc_gcc_supports_ada=no
5320 # There is a bug in old released versions of GCC which causes the
5321 # driver to exit successfully when the appropriate language module
5322 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5323 # Therefore we must check for the error message as well as an
5324 # unsuccessful exit.
5325 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5326 # given a .adb file, but produce no object file. So we must check
5327 # if an object file was really produced to guard against this.
5328 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5329 if test x"$errors" = x && test -f conftest.$ac_objext; then
5330 acx_cv_cc_gcc_supports_ada=yes
5332 rm -f conftest.*
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5335 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5337 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5338 have_gnat=yes
5339 else
5340 have_gnat=no
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_GDC+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$GDC"; then
5354 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5367 done
5368 done
5369 IFS=$as_save_IFS
5373 GDC=$ac_cv_prog_GDC
5374 if test -n "$GDC"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5376 $as_echo "$GDC" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5384 if test -z "$ac_cv_prog_GDC"; then
5385 ac_ct_GDC=$GDC
5386 # Extract the first word of "gdc", so it can be a program name with args.
5387 set dummy gdc; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -n "$ac_ct_GDC"; then
5394 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_prog_ac_ct_GDC="gdc"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5407 done
5408 done
5409 IFS=$as_save_IFS
5413 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5414 if test -n "$ac_ct_GDC"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5416 $as_echo "$ac_ct_GDC" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5422 if test "x$ac_ct_GDC" = x; then
5423 GDC="no"
5424 else
5425 case $cross_compiling:$ac_tool_warned in
5426 yes:)
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429 ac_tool_warned=yes ;;
5430 esac
5431 GDC=$ac_ct_GDC
5433 else
5434 GDC="$ac_cv_prog_GDC"
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5438 $as_echo_n "checking whether the D compiler works... " >&6; }
5439 if ${acx_cv_d_compiler_works+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 cat >conftest.d <<EOF
5443 module conftest; int main() { return 0; }
5445 acx_cv_d_compiler_works=no
5446 if test "x$GDC" != xno; then
5447 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5448 if test x"$errors" = x && test -f conftest.$ac_objext; then
5449 acx_cv_d_compiler_works=yes
5451 rm -f conftest.*
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5455 $as_echo "$acx_cv_d_compiler_works" >&6; }
5456 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5457 have_gdc=yes
5458 else
5459 have_gdc=no
5463 # Do configure tests with the C++ compiler, since that's what we build with.
5464 ac_ext=cpp
5465 ac_cpp='$CXXCPP $CPPFLAGS'
5466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5471 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5472 # optimizations to be activated explicitly by the toplevel.
5473 case "$CC" in
5474 */prev-gcc/xgcc*) ;;
5475 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5476 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5477 esac
5482 # Determine PICFLAG for target gnatlib.
5487 case "${target}" in
5488 # PIC is the default on some targets or must not be used.
5489 *-*-darwin*)
5490 # For darwin, common symbols are not allowed in MH_DYLIB files
5491 case "${CFLAGS}" in
5492 # If we are using a compiler supporting mdynamic-no-pic
5493 # and the option has been tested as safe to add, then cancel
5494 # it here, since the code generated is incompatible with shared
5495 # libs.
5496 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5497 *) PICFLAG_FOR_TARGET=-fno-common ;;
5498 esac
5500 alpha*-dec-osf5*)
5501 # PIC is the default.
5503 hppa*64*-*-hpux*)
5504 # PIC is the default for 64-bit PA HP-UX.
5506 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5508 i[34567]86-*-mingw* | x86_64-*-mingw*)
5510 i[34567]86-*-interix[3-9]*)
5511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5512 # Instead, we relocate shared libraries at runtime.
5514 i[34567]86-*-nto-qnx*)
5515 # QNX uses GNU C++, but need to define -shared option too, otherwise
5516 # it will coredump.
5517 PICFLAG_FOR_TARGET='-fPIC -shared'
5519 i[34567]86-pc-msdosdjgpp*)
5520 # DJGPP does not support shared libraries at all.
5522 ia64*-*-hpux*)
5523 # On IA64 HP-UX, PIC is the default but the pic flag
5524 # sets the default TLS model and affects inlining.
5525 PICFLAG_FOR_TARGET=-fPIC
5527 loongarch*-*-*)
5528 PICFLAG_FOR_TARGET=-fpic
5530 mips-sgi-irix6*)
5531 # PIC is the default.
5533 rs6000-ibm-aix* | powerpc-ibm-aix*)
5534 # All AIX code is PIC.
5537 # Some targets support both -fPIC and -fpic, but prefer the latter.
5538 # FIXME: Why?
5539 i[34567]86-*-* | x86_64-*-*)
5540 PICFLAG_FOR_TARGET=-fpic
5542 # FIXME: Override -fPIC default in libgcc only?
5543 sh-*-linux* | sh[2346lbe]*-*-linux*)
5544 PICFLAG_FOR_TARGET=-fpic
5546 sh*-*-netbsd*)
5547 PICFLAG_FOR_TARGET=-fpic
5549 # Default to -fPIC unless specified otherwise.
5551 PICFLAG_FOR_TARGET=-fPIC
5553 esac
5555 # If the user explicitly uses -fpic/-fPIC, keep that.
5556 case "${CFLAGS_FOR_TARGET}" in
5557 *-fpic*)
5558 PICFLAG_FOR_TARGET=-fpic
5560 *-fPIC*)
5561 PICFLAG_FOR_TARGET=-fPIC
5563 esac
5567 # -------------------------
5568 # Check C compiler features
5569 # -------------------------
5572 ac_ext=cpp
5573 ac_cpp='$CXXCPP $CPPFLAGS'
5574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5578 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5579 if test -z "$CXXCPP"; then
5580 if ${ac_cv_prog_CXXCPP+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 # Double quotes because CXXCPP needs to be expanded
5584 for CXXCPP in "$CXX -E" "/lib/cpp"
5586 ac_preproc_ok=false
5587 for ac_cxx_preproc_warn_flag in '' yes
5589 # Use a header file that comes with gcc, so configuring glibc
5590 # with a fresh cross-compiler works.
5591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5592 # <limits.h> exists even on freestanding compilers.
5593 # On the NeXT, cc -E runs the code through the compiler's parser,
5594 # not just through cpp. "Syntax error" is here to catch this case.
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 #ifdef __STDC__
5598 # include <limits.h>
5599 #else
5600 # include <assert.h>
5601 #endif
5602 Syntax error
5603 _ACEOF
5604 if ac_fn_cxx_try_cpp "$LINENO"; then :
5606 else
5607 # Broken: fails on valid input.
5608 continue
5610 rm -f conftest.err conftest.i conftest.$ac_ext
5612 # OK, works on sane cases. Now check whether nonexistent headers
5613 # can be detected and how.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <ac_nonexistent.h>
5617 _ACEOF
5618 if ac_fn_cxx_try_cpp "$LINENO"; then :
5619 # Broken: success on invalid input.
5620 continue
5621 else
5622 # Passes both tests.
5623 ac_preproc_ok=:
5624 break
5626 rm -f conftest.err conftest.i conftest.$ac_ext
5628 done
5629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5630 rm -f conftest.i conftest.err conftest.$ac_ext
5631 if $ac_preproc_ok; then :
5632 break
5635 done
5636 ac_cv_prog_CXXCPP=$CXXCPP
5639 CXXCPP=$ac_cv_prog_CXXCPP
5640 else
5641 ac_cv_prog_CXXCPP=$CXXCPP
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5644 $as_echo "$CXXCPP" >&6; }
5645 ac_preproc_ok=false
5646 for ac_cxx_preproc_warn_flag in '' yes
5648 # Use a header file that comes with gcc, so configuring glibc
5649 # with a fresh cross-compiler works.
5650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 # <limits.h> exists even on freestanding compilers.
5652 # On the NeXT, cc -E runs the code through the compiler's parser,
5653 # not just through cpp. "Syntax error" is here to catch this case.
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #ifdef __STDC__
5657 # include <limits.h>
5658 #else
5659 # include <assert.h>
5660 #endif
5661 Syntax error
5662 _ACEOF
5663 if ac_fn_cxx_try_cpp "$LINENO"; then :
5665 else
5666 # Broken: fails on valid input.
5667 continue
5669 rm -f conftest.err conftest.i conftest.$ac_ext
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <ac_nonexistent.h>
5676 _ACEOF
5677 if ac_fn_cxx_try_cpp "$LINENO"; then :
5678 # Broken: success on invalid input.
5679 continue
5680 else
5681 # Passes both tests.
5682 ac_preproc_ok=:
5683 break
5685 rm -f conftest.err conftest.i conftest.$ac_ext
5687 done
5688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5689 rm -f conftest.i conftest.err conftest.$ac_ext
5690 if $ac_preproc_ok; then :
5692 else
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5696 See \`config.log' for more details" "$LINENO" 5; }
5699 ac_ext=cpp
5700 ac_cpp='$CXXCPP $CPPFLAGS'
5701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5707 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5708 if ${ac_cv_path_GREP+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if test -z "$GREP"; then
5712 ac_path_GREP_found=false
5713 # Loop through the user's path and test for each of PROGNAME-LIST
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_prog in grep ggrep; do
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5722 as_fn_executable_p "$ac_path_GREP" || continue
5723 # Check for GNU ac_path_GREP and select it if it is found.
5724 # Check for GNU $ac_path_GREP
5725 case `"$ac_path_GREP" --version 2>&1` in
5726 *GNU*)
5727 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5729 ac_count=0
5730 $as_echo_n 0123456789 >"conftest.in"
5731 while :
5733 cat "conftest.in" "conftest.in" >"conftest.tmp"
5734 mv "conftest.tmp" "conftest.in"
5735 cp "conftest.in" "conftest.nl"
5736 $as_echo 'GREP' >> "conftest.nl"
5737 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5739 as_fn_arith $ac_count + 1 && ac_count=$as_val
5740 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5741 # Best one so far, save it but keep looking for a better one
5742 ac_cv_path_GREP="$ac_path_GREP"
5743 ac_path_GREP_max=$ac_count
5745 # 10*(2^10) chars as input seems more than enough
5746 test $ac_count -gt 10 && break
5747 done
5748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5749 esac
5751 $ac_path_GREP_found && break 3
5752 done
5753 done
5754 done
5755 IFS=$as_save_IFS
5756 if test -z "$ac_cv_path_GREP"; then
5757 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5759 else
5760 ac_cv_path_GREP=$GREP
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5765 $as_echo "$ac_cv_path_GREP" >&6; }
5766 GREP="$ac_cv_path_GREP"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5770 $as_echo_n "checking for egrep... " >&6; }
5771 if ${ac_cv_path_EGREP+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5775 then ac_cv_path_EGREP="$GREP -E"
5776 else
5777 if test -z "$EGREP"; then
5778 ac_path_EGREP_found=false
5779 # Loop through the user's path and test for each of PROGNAME-LIST
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_prog in egrep; do
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5788 as_fn_executable_p "$ac_path_EGREP" || continue
5789 # Check for GNU ac_path_EGREP and select it if it is found.
5790 # Check for GNU $ac_path_EGREP
5791 case `"$ac_path_EGREP" --version 2>&1` in
5792 *GNU*)
5793 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5795 ac_count=0
5796 $as_echo_n 0123456789 >"conftest.in"
5797 while :
5799 cat "conftest.in" "conftest.in" >"conftest.tmp"
5800 mv "conftest.tmp" "conftest.in"
5801 cp "conftest.in" "conftest.nl"
5802 $as_echo 'EGREP' >> "conftest.nl"
5803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5805 as_fn_arith $ac_count + 1 && ac_count=$as_val
5806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5807 # Best one so far, save it but keep looking for a better one
5808 ac_cv_path_EGREP="$ac_path_EGREP"
5809 ac_path_EGREP_max=$ac_count
5811 # 10*(2^10) chars as input seems more than enough
5812 test $ac_count -gt 10 && break
5813 done
5814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5815 esac
5817 $ac_path_EGREP_found && break 3
5818 done
5819 done
5820 done
5821 IFS=$as_save_IFS
5822 if test -z "$ac_cv_path_EGREP"; then
5823 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5825 else
5826 ac_cv_path_EGREP=$EGREP
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5832 $as_echo "$ac_cv_path_EGREP" >&6; }
5833 EGREP="$ac_cv_path_EGREP"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5837 $as_echo_n "checking for ANSI C header files... " >&6; }
5838 if ${ac_cv_header_stdc+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 #include <stdlib.h>
5844 #include <stdarg.h>
5845 #include <string.h>
5846 #include <float.h>
5849 main ()
5853 return 0;
5855 _ACEOF
5856 if ac_fn_cxx_try_compile "$LINENO"; then :
5857 ac_cv_header_stdc=yes
5858 else
5859 ac_cv_header_stdc=no
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 if test $ac_cv_header_stdc = yes; then
5864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 #include <string.h>
5869 _ACEOF
5870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5871 $EGREP "memchr" >/dev/null 2>&1; then :
5873 else
5874 ac_cv_header_stdc=no
5876 rm -f conftest*
5880 if test $ac_cv_header_stdc = yes; then
5881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 #include <stdlib.h>
5886 _ACEOF
5887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5888 $EGREP "free" >/dev/null 2>&1; then :
5890 else
5891 ac_cv_header_stdc=no
5893 rm -f conftest*
5897 if test $ac_cv_header_stdc = yes; then
5898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5899 if test "$cross_compiling" = yes; then :
5901 else
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 #include <ctype.h>
5905 #include <stdlib.h>
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5909 #else
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5915 #endif
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5919 main ()
5921 int i;
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5925 return 2;
5926 return 0;
5928 _ACEOF
5929 if ac_fn_cxx_try_run "$LINENO"; then :
5931 else
5932 ac_cv_header_stdc=no
5934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5935 conftest.$ac_objext conftest.beam conftest.$ac_ext
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5941 $as_echo "$ac_cv_header_stdc" >&6; }
5942 if test $ac_cv_header_stdc = yes; then
5944 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5949 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5950 inttypes.h stdint.h unistd.h
5951 do :
5952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5955 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5956 cat >>confdefs.h <<_ACEOF
5957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5958 _ACEOF
5962 done
5966 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5967 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5968 MINIX=yes
5969 else
5970 MINIX=
5974 if test "$MINIX" = yes; then
5976 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5979 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5982 $as_echo "#define _MINIX 1" >>confdefs.h
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5988 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5989 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5995 # define __EXTENSIONS__ 1
5996 $ac_includes_default
5998 main ()
6002 return 0;
6004 _ACEOF
6005 if ac_fn_cxx_try_compile "$LINENO"; then :
6006 ac_cv_safe_to_define___extensions__=yes
6007 else
6008 ac_cv_safe_to_define___extensions__=no
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6013 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6014 test $ac_cv_safe_to_define___extensions__ = yes &&
6015 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6017 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6019 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6021 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6023 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6027 ac_ext=c
6028 ac_cpp='$CPP $CPPFLAGS'
6029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6033 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6034 # On Suns, sometimes $CPP names a directory.
6035 if test -n "$CPP" && test -d "$CPP"; then
6036 CPP=
6038 if test -z "$CPP"; then
6039 if ${ac_cv_prog_CPP+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 # Double quotes because CPP needs to be expanded
6043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6045 ac_preproc_ok=false
6046 for ac_c_preproc_warn_flag in '' yes
6048 # Use a header file that comes with gcc, so configuring glibc
6049 # with a fresh cross-compiler works.
6050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6051 # <limits.h> exists even on freestanding compilers.
6052 # On the NeXT, cc -E runs the code through the compiler's parser,
6053 # not just through cpp. "Syntax error" is here to catch this case.
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 #ifdef __STDC__
6057 # include <limits.h>
6058 #else
6059 # include <assert.h>
6060 #endif
6061 Syntax error
6062 _ACEOF
6063 if ac_fn_c_try_cpp "$LINENO"; then :
6065 else
6066 # Broken: fails on valid input.
6067 continue
6069 rm -f conftest.err conftest.i conftest.$ac_ext
6071 # OK, works on sane cases. Now check whether nonexistent headers
6072 # can be detected and how.
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <ac_nonexistent.h>
6076 _ACEOF
6077 if ac_fn_c_try_cpp "$LINENO"; then :
6078 # Broken: success on invalid input.
6079 continue
6080 else
6081 # Passes both tests.
6082 ac_preproc_ok=:
6083 break
6085 rm -f conftest.err conftest.i conftest.$ac_ext
6087 done
6088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6089 rm -f conftest.i conftest.err conftest.$ac_ext
6090 if $ac_preproc_ok; then :
6091 break
6094 done
6095 ac_cv_prog_CPP=$CPP
6098 CPP=$ac_cv_prog_CPP
6099 else
6100 ac_cv_prog_CPP=$CPP
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6103 $as_echo "$CPP" >&6; }
6104 ac_preproc_ok=false
6105 for ac_c_preproc_warn_flag in '' yes
6107 # Use a header file that comes with gcc, so configuring glibc
6108 # with a fresh cross-compiler works.
6109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6110 # <limits.h> exists even on freestanding compilers.
6111 # On the NeXT, cc -E runs the code through the compiler's parser,
6112 # not just through cpp. "Syntax error" is here to catch this case.
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 #ifdef __STDC__
6116 # include <limits.h>
6117 #else
6118 # include <assert.h>
6119 #endif
6120 Syntax error
6121 _ACEOF
6122 if ac_fn_c_try_cpp "$LINENO"; then :
6124 else
6125 # Broken: fails on valid input.
6126 continue
6128 rm -f conftest.err conftest.i conftest.$ac_ext
6130 # OK, works on sane cases. Now check whether nonexistent headers
6131 # can be detected and how.
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 #include <ac_nonexistent.h>
6135 _ACEOF
6136 if ac_fn_c_try_cpp "$LINENO"; then :
6137 # Broken: success on invalid input.
6138 continue
6139 else
6140 # Passes both tests.
6141 ac_preproc_ok=:
6142 break
6144 rm -f conftest.err conftest.i conftest.$ac_ext
6146 done
6147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6148 rm -f conftest.i conftest.err conftest.$ac_ext
6149 if $ac_preproc_ok; then :
6151 else
6152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6154 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6155 See \`config.log' for more details" "$LINENO" 5; }
6158 ac_ext=cpp
6159 ac_cpp='$CXXCPP $CPPFLAGS'
6160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6165 $as_echo_n "checking for inline... " >&6; }
6166 if ${ac_cv_c_inline+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 ac_cv_c_inline=no
6170 for ac_kw in inline __inline__ __inline; do
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173 #ifndef __cplusplus
6174 typedef int foo_t;
6175 static $ac_kw foo_t static_foo () {return 0; }
6176 $ac_kw foo_t foo () {return 0; }
6177 #endif
6179 _ACEOF
6180 if ac_fn_cxx_try_compile "$LINENO"; then :
6181 ac_cv_c_inline=$ac_kw
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 test "$ac_cv_c_inline" != no && break
6185 done
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6189 $as_echo "$ac_cv_c_inline" >&6; }
6191 case $ac_cv_c_inline in
6192 inline | yes) ;;
6194 case $ac_cv_c_inline in
6195 no) ac_val=;;
6196 *) ac_val=$ac_cv_c_inline;;
6197 esac
6198 cat >>confdefs.h <<_ACEOF
6199 #ifndef __cplusplus
6200 #define inline $ac_val
6201 #endif
6202 _ACEOF
6204 esac
6207 # Check whether --enable-largefile was given.
6208 if test "${enable_largefile+set}" = set; then :
6209 enableval=$enable_largefile;
6212 if test "$enable_largefile" != no; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6215 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6216 if ${ac_cv_sys_largefile_CC+:} false; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 ac_cv_sys_largefile_CC=no
6220 if test "$GCC" != yes; then
6221 ac_save_CC=$CC
6222 while :; do
6223 # IRIX 6.2 and later do not support large files by default,
6224 # so use the C compiler's -n32 option if that helps.
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 #include <sys/types.h>
6228 /* Check that off_t can represent 2**63 - 1 correctly.
6229 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6230 since some C++ compilers masquerading as C compilers
6231 incorrectly reject 9223372036854775807. */
6232 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6233 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6234 && LARGE_OFF_T % 2147483647 == 1)
6235 ? 1 : -1];
6237 main ()
6241 return 0;
6243 _ACEOF
6244 if ac_fn_cxx_try_compile "$LINENO"; then :
6245 break
6247 rm -f core conftest.err conftest.$ac_objext
6248 CC="$CC -n32"
6249 if ac_fn_cxx_try_compile "$LINENO"; then :
6250 ac_cv_sys_largefile_CC=' -n32'; break
6252 rm -f core conftest.err conftest.$ac_objext
6253 break
6254 done
6255 CC=$ac_save_CC
6256 rm -f conftest.$ac_ext
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6260 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6261 if test "$ac_cv_sys_largefile_CC" != no; then
6262 CC=$CC$ac_cv_sys_largefile_CC
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6266 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6267 if ${ac_cv_sys_file_offset_bits+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 while :; do
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273 #include <sys/types.h>
6274 /* Check that off_t can represent 2**63 - 1 correctly.
6275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6276 since some C++ compilers masquerading as C compilers
6277 incorrectly reject 9223372036854775807. */
6278 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6280 && LARGE_OFF_T % 2147483647 == 1)
6281 ? 1 : -1];
6283 main ()
6287 return 0;
6289 _ACEOF
6290 if ac_fn_cxx_try_compile "$LINENO"; then :
6291 ac_cv_sys_file_offset_bits=no; break
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6296 #define _FILE_OFFSET_BITS 64
6297 #include <sys/types.h>
6298 /* Check that off_t can represent 2**63 - 1 correctly.
6299 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6300 since some C++ compilers masquerading as C compilers
6301 incorrectly reject 9223372036854775807. */
6302 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6303 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6304 && LARGE_OFF_T % 2147483647 == 1)
6305 ? 1 : -1];
6307 main ()
6311 return 0;
6313 _ACEOF
6314 if ac_fn_cxx_try_compile "$LINENO"; then :
6315 ac_cv_sys_file_offset_bits=64; break
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 ac_cv_sys_file_offset_bits=unknown
6319 break
6320 done
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6323 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6324 case $ac_cv_sys_file_offset_bits in #(
6325 no | unknown) ;;
6327 cat >>confdefs.h <<_ACEOF
6328 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6329 _ACEOF
6331 esac
6332 rm -rf conftest*
6333 if test $ac_cv_sys_file_offset_bits = unknown; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6335 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6336 if ${ac_cv_sys_large_files+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 while :; do
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6342 #include <sys/types.h>
6343 /* Check that off_t can represent 2**63 - 1 correctly.
6344 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6345 since some C++ compilers masquerading as C compilers
6346 incorrectly reject 9223372036854775807. */
6347 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6348 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6349 && LARGE_OFF_T % 2147483647 == 1)
6350 ? 1 : -1];
6352 main ()
6356 return 0;
6358 _ACEOF
6359 if ac_fn_cxx_try_compile "$LINENO"; then :
6360 ac_cv_sys_large_files=no; break
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 #define _LARGE_FILES 1
6366 #include <sys/types.h>
6367 /* Check that off_t can represent 2**63 - 1 correctly.
6368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6369 since some C++ compilers masquerading as C compilers
6370 incorrectly reject 9223372036854775807. */
6371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6373 && LARGE_OFF_T % 2147483647 == 1)
6374 ? 1 : -1];
6376 main ()
6380 return 0;
6382 _ACEOF
6383 if ac_fn_cxx_try_compile "$LINENO"; then :
6384 ac_cv_sys_large_files=1; break
6386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 ac_cv_sys_large_files=unknown
6388 break
6389 done
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6392 $as_echo "$ac_cv_sys_large_files" >&6; }
6393 case $ac_cv_sys_large_files in #(
6394 no | unknown) ;;
6396 cat >>confdefs.h <<_ACEOF
6397 #define _LARGE_FILES $ac_cv_sys_large_files
6398 _ACEOF
6400 esac
6401 rm -rf conftest*
6407 # The cast to long int works around a bug in the HP C Compiler
6408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6410 # This bug is HP SR number 8606223364.
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6412 $as_echo_n "checking size of ino_t... " >&6; }
6413 if ${ac_cv_sizeof_ino_t+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6418 else
6419 if test "$ac_cv_type_ino_t" = yes; then
6420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6422 as_fn_error 77 "cannot compute sizeof (ino_t)
6423 See \`config.log' for more details" "$LINENO" 5; }
6424 else
6425 ac_cv_sizeof_ino_t=0
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6431 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6435 cat >>confdefs.h <<_ACEOF
6436 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6437 _ACEOF
6440 # The cast to long int works around a bug in the HP C Compiler
6441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6443 # This bug is HP SR number 8606223364.
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6445 $as_echo_n "checking size of dev_t... " >&6; }
6446 if ${ac_cv_sizeof_dev_t+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6451 else
6452 if test "$ac_cv_type_dev_t" = yes; then
6453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6455 as_fn_error 77 "cannot compute sizeof (dev_t)
6456 See \`config.log' for more details" "$LINENO" 5; }
6457 else
6458 ac_cv_sizeof_dev_t=0
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6464 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6468 cat >>confdefs.h <<_ACEOF
6469 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6470 _ACEOF
6474 # Select the right stat being able to handle 64bit inodes, if needed.
6475 if test "$enable_largefile" != no; then
6476 case "$host, $build" in
6477 *-*-aix*,*|*,*-*-aix*)
6478 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6480 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6482 fi;;
6483 esac
6487 # sizeof(char) is 1 by definition.
6488 # The cast to long int works around a bug in the HP C Compiler
6489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6491 # This bug is HP SR number 8606223364.
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6493 $as_echo_n "checking size of void *... " >&6; }
6494 if ${ac_cv_sizeof_void_p+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6499 else
6500 if test "$ac_cv_type_void_p" = yes; then
6501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6503 as_fn_error 77 "cannot compute sizeof (void *)
6504 See \`config.log' for more details" "$LINENO" 5; }
6505 else
6506 ac_cv_sizeof_void_p=0
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6512 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6516 cat >>confdefs.h <<_ACEOF
6517 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6518 _ACEOF
6521 # The cast to long int works around a bug in the HP C Compiler
6522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6524 # This bug is HP SR number 8606223364.
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6526 $as_echo_n "checking size of short... " >&6; }
6527 if ${ac_cv_sizeof_short+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6532 else
6533 if test "$ac_cv_type_short" = yes; then
6534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6536 as_fn_error 77 "cannot compute sizeof (short)
6537 See \`config.log' for more details" "$LINENO" 5; }
6538 else
6539 ac_cv_sizeof_short=0
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6545 $as_echo "$ac_cv_sizeof_short" >&6; }
6549 cat >>confdefs.h <<_ACEOF
6550 #define SIZEOF_SHORT $ac_cv_sizeof_short
6551 _ACEOF
6554 # The cast to long int works around a bug in the HP C Compiler
6555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6557 # This bug is HP SR number 8606223364.
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6559 $as_echo_n "checking size of int... " >&6; }
6560 if ${ac_cv_sizeof_int+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6565 else
6566 if test "$ac_cv_type_int" = yes; then
6567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6569 as_fn_error 77 "cannot compute sizeof (int)
6570 See \`config.log' for more details" "$LINENO" 5; }
6571 else
6572 ac_cv_sizeof_int=0
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6578 $as_echo "$ac_cv_sizeof_int" >&6; }
6582 cat >>confdefs.h <<_ACEOF
6583 #define SIZEOF_INT $ac_cv_sizeof_int
6584 _ACEOF
6587 # The cast to long int works around a bug in the HP C Compiler
6588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6590 # This bug is HP SR number 8606223364.
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6592 $as_echo_n "checking size of long... " >&6; }
6593 if ${ac_cv_sizeof_long+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6598 else
6599 if test "$ac_cv_type_long" = yes; then
6600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6602 as_fn_error 77 "cannot compute sizeof (long)
6603 See \`config.log' for more details" "$LINENO" 5; }
6604 else
6605 ac_cv_sizeof_long=0
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6611 $as_echo "$ac_cv_sizeof_long" >&6; }
6615 cat >>confdefs.h <<_ACEOF
6616 #define SIZEOF_LONG $ac_cv_sizeof_long
6617 _ACEOF
6620 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6621 if test "x$ac_cv_type_long_long" = xyes; then :
6623 cat >>confdefs.h <<_ACEOF
6624 #define HAVE_LONG_LONG 1
6625 _ACEOF
6627 # The cast to long int works around a bug in the HP C Compiler
6628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6630 # This bug is HP SR number 8606223364.
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6632 $as_echo_n "checking size of long long... " >&6; }
6633 if ${ac_cv_sizeof_long_long+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6638 else
6639 if test "$ac_cv_type_long_long" = yes; then
6640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6642 as_fn_error 77 "cannot compute sizeof (long long)
6643 See \`config.log' for more details" "$LINENO" 5; }
6644 else
6645 ac_cv_sizeof_long_long=0
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6651 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6655 cat >>confdefs.h <<_ACEOF
6656 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6657 _ACEOF
6662 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6663 case $ac_cv_c_int8_t in #(
6664 no|yes) ;; #(
6667 cat >>confdefs.h <<_ACEOF
6668 #define int8_t $ac_cv_c_int8_t
6669 _ACEOF
6671 esac
6673 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6674 case $ac_cv_c_int16_t in #(
6675 no|yes) ;; #(
6678 cat >>confdefs.h <<_ACEOF
6679 #define int16_t $ac_cv_c_int16_t
6680 _ACEOF
6682 esac
6684 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6685 case $ac_cv_c_int32_t in #(
6686 no|yes) ;; #(
6689 cat >>confdefs.h <<_ACEOF
6690 #define int32_t $ac_cv_c_int32_t
6691 _ACEOF
6693 esac
6695 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6696 case $ac_cv_c_int64_t in #(
6697 no|yes) ;; #(
6700 cat >>confdefs.h <<_ACEOF
6701 #define int64_t $ac_cv_c_int64_t
6702 _ACEOF
6704 esac
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6708 $as_echo_n "checking for unsigned long long int... " >&6; }
6709 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 ac_cv_type_unsigned_long_long_int=yes
6713 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6717 /* For now, do not test the preprocessor; as of 2007 there are too many
6718 implementations with broken preprocessors. Perhaps this can
6719 be revisited in 2012. In the meantime, code should not expect
6720 #if to work with literals wider than 32 bits. */
6721 /* Test literals. */
6722 long long int ll = 9223372036854775807ll;
6723 long long int nll = -9223372036854775807LL;
6724 unsigned long long int ull = 18446744073709551615ULL;
6725 /* Test constant expressions. */
6726 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6727 ? 1 : -1)];
6728 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6729 ? 1 : -1)];
6730 int i = 63;
6732 main ()
6734 /* Test availability of runtime routines for shift and division. */
6735 long long int llmax = 9223372036854775807ll;
6736 unsigned long long int ullmax = 18446744073709551615ull;
6737 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6738 | (llmax / ll) | (llmax % ll)
6739 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6740 | (ullmax / ull) | (ullmax % ull));
6742 return 0;
6745 _ACEOF
6746 if ac_fn_cxx_try_link "$LINENO"; then :
6748 else
6749 ac_cv_type_unsigned_long_long_int=no
6751 rm -f core conftest.err conftest.$ac_objext \
6752 conftest$ac_exeext conftest.$ac_ext
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6756 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6757 if test $ac_cv_type_unsigned_long_long_int = yes; then
6759 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6766 $as_echo_n "checking for long long int... " >&6; }
6767 if ${ac_cv_type_long_long_int+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 ac_cv_type_long_long_int=yes
6771 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6772 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6773 if test $ac_cv_type_long_long_int = yes; then
6774 if test "$cross_compiling" = yes; then :
6776 else
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #include <limits.h>
6780 #ifndef LLONG_MAX
6781 # define HALF \
6782 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6783 # define LLONG_MAX (HALF - 1 + HALF)
6784 #endif
6786 main ()
6788 long long int n = 1;
6789 int i;
6790 for (i = 0; ; i++)
6792 long long int m = n << i;
6793 if (m >> i != n)
6794 return 1;
6795 if (LLONG_MAX / 2 < m)
6796 break;
6798 return 0;
6800 return 0;
6802 _ACEOF
6803 if ac_fn_cxx_try_run "$LINENO"; then :
6805 else
6806 ac_cv_type_long_long_int=no
6808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6809 conftest.$ac_objext conftest.beam conftest.$ac_ext
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6816 $as_echo "$ac_cv_type_long_long_int" >&6; }
6817 if test $ac_cv_type_long_long_int = yes; then
6819 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6825 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6826 if test "x$ac_cv_type_intmax_t" = xyes; then :
6828 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6830 else
6831 test $ac_cv_type_long_long_int = yes \
6832 && ac_type='long long int' \
6833 || ac_type='long int'
6835 cat >>confdefs.h <<_ACEOF
6836 #define intmax_t $ac_type
6837 _ACEOF
6843 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6844 if test "x$ac_cv_type_intptr_t" = xyes; then :
6846 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6848 else
6849 for ac_type in 'int' 'long int' 'long long int'; do
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 $ac_includes_default
6854 main ()
6856 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6857 test_array [0] = 0;
6858 return test_array [0];
6861 return 0;
6863 _ACEOF
6864 if ac_fn_cxx_try_compile "$LINENO"; then :
6866 cat >>confdefs.h <<_ACEOF
6867 #define intptr_t $ac_type
6868 _ACEOF
6870 ac_type=
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 test -z "$ac_type" && break
6874 done
6878 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6879 case $ac_cv_c_uint8_t in #(
6880 no|yes) ;; #(
6883 $as_echo "#define _UINT8_T 1" >>confdefs.h
6886 cat >>confdefs.h <<_ACEOF
6887 #define uint8_t $ac_cv_c_uint8_t
6888 _ACEOF
6890 esac
6892 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6893 case $ac_cv_c_uint16_t in #(
6894 no|yes) ;; #(
6898 cat >>confdefs.h <<_ACEOF
6899 #define uint16_t $ac_cv_c_uint16_t
6900 _ACEOF
6902 esac
6904 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6905 case $ac_cv_c_uint32_t in #(
6906 no|yes) ;; #(
6909 $as_echo "#define _UINT32_T 1" >>confdefs.h
6912 cat >>confdefs.h <<_ACEOF
6913 #define uint32_t $ac_cv_c_uint32_t
6914 _ACEOF
6916 esac
6918 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6919 case $ac_cv_c_uint64_t in #(
6920 no|yes) ;; #(
6923 $as_echo "#define _UINT64_T 1" >>confdefs.h
6926 cat >>confdefs.h <<_ACEOF
6927 #define uint64_t $ac_cv_c_uint64_t
6928 _ACEOF
6930 esac
6934 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6935 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6937 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6939 else
6940 test $ac_cv_type_unsigned_long_long_int = yes \
6941 && ac_type='unsigned long long int' \
6942 || ac_type='unsigned long int'
6944 cat >>confdefs.h <<_ACEOF
6945 #define uintmax_t $ac_type
6946 _ACEOF
6952 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6953 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6955 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6957 else
6958 for ac_type in 'unsigned int' 'unsigned long int' \
6959 'unsigned long long int'; do
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 $ac_includes_default
6964 main ()
6966 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6967 test_array [0] = 0;
6968 return test_array [0];
6971 return 0;
6973 _ACEOF
6974 if ac_fn_cxx_try_compile "$LINENO"; then :
6976 cat >>confdefs.h <<_ACEOF
6977 #define uintptr_t $ac_type
6978 _ACEOF
6980 ac_type=
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 test -z "$ac_type" && break
6984 done
7000 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
7001 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
7004 # check what underlying integer type int64_t uses
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7006 $as_echo_n "checking for int64_t underlying type... " >&6; }
7007 if ${ac_cv_int64_t_type+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7014 #ifdef HAVE_STDINT_H
7015 #include <stdint.h>
7016 #endif
7017 template <typename T> struct X { };
7018 template <>
7019 struct X<long> { typedef long t; };
7022 main ()
7024 X<int64_t>::t x;
7026 return 0;
7028 _ACEOF
7029 if ac_fn_cxx_try_compile "$LINENO"; then :
7030 ac_cv_int64_t_type=long
7031 else
7032 ac_cv_int64_t_type="long long"
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7037 $as_echo "$ac_cv_int64_t_type" >&6; }
7038 if test "$ac_cv_int64_t_type" = "long"; then
7040 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7042 else
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7046 #ifdef HAVE_STDINT_H
7047 #include <stdint.h>
7048 #endif
7049 template <typename T> struct X { };
7050 template <>
7051 struct X<long long> { typedef long long t; };
7054 main ()
7056 X<int64_t>::t x;
7058 return 0;
7060 _ACEOF
7061 if ac_fn_cxx_try_compile "$LINENO"; then :
7063 else
7064 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7070 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7071 if ${ac_cv_std_swap_in_utility+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7078 #include <utility>
7081 main ()
7083 int a, b; std::swap(a,b);
7085 return 0;
7087 _ACEOF
7088 if ac_fn_cxx_try_compile "$LINENO"; then :
7089 ac_cv_std_swap_in_utility=yes
7090 else
7091 ac_cv_std_swap_in_utility=no
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7096 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7097 if test $ac_cv_std_swap_in_utility = yes; then
7099 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7103 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7104 # If the host compiler is affected by the bug, and we build with optimization
7105 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7106 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7107 # Since there is no reliable feature check for the presence of this bug,
7108 # we simply use a GCC version number check. (This should never trigger for
7109 # stages 2 or 3 of a native bootstrap.)
7110 aliasing_flags=
7111 if test "$GCC" = yes; then
7112 saved_CXXFLAGS="$CXXFLAGS"
7114 # The following test compilation will succeed if and only if $CXX accepts
7115 # -fno-strict-aliasing *and* is older than GCC 4.3.
7116 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7118 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7122 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7123 #error compiler not affected by placement new aliasing bug
7124 #endif
7126 _ACEOF
7127 if ac_fn_cxx_try_compile "$LINENO"; then :
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7129 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 CXXFLAGS="$saved_CXXFLAGS"
7142 # ---------------------
7143 # Warnings and checking
7144 # ---------------------
7146 # Check $CC warning features (if it's GCC).
7147 # We want to use -pedantic, but we don't want warnings about
7148 # * 'long long'
7149 # * variadic macros
7150 # * overlong strings
7151 # * C++11 narrowing conversions in { }
7152 # So, we only use -pedantic if we can disable those warnings.
7154 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7155 # Check whether --enable-build-format-warnings was given.
7156 if test "${enable_build_format_warnings+set}" = set; then :
7157 enableval=$enable_build_format_warnings;
7158 else
7159 enable_build_format_warnings=yes
7162 if test $enable_build_format_warnings = no; then :
7163 wf_opt=-Wno-format
7164 else
7165 wf_opt=
7167 ac_ext=cpp
7168 ac_cpp='$CXXCPP $CPPFLAGS'
7169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7173 loose_warn=
7174 save_CXXFLAGS="$CXXFLAGS"
7175 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7176 # Do the check with the no- prefix removed since gcc silently
7177 # accepts any -Wno-* option on purpose
7178 case $real_option in
7179 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7180 *) option=$real_option ;;
7181 esac
7182 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7185 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7186 if eval \${$as_acx_Woption+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 CXXFLAGS="$option"
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7194 main ()
7198 return 0;
7200 _ACEOF
7201 if ac_fn_cxx_try_compile "$LINENO"; then :
7202 eval "$as_acx_Woption=yes"
7203 else
7204 eval "$as_acx_Woption=no"
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 eval ac_res=\$$as_acx_Woption
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7211 $as_echo "$ac_res" >&6; }
7212 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7213 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7215 done
7216 CXXFLAGS="$save_CXXFLAGS"
7217 ac_ext=cpp
7218 ac_cpp='$CXXCPP $CPPFLAGS'
7219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7225 ac_ext=c
7226 ac_cpp='$CPP $CPPFLAGS'
7227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7231 c_loose_warn=
7232 save_CFLAGS="$CFLAGS"
7233 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7234 # Do the check with the no- prefix removed since gcc silently
7235 # accepts any -Wno-* option on purpose
7236 case $real_option in
7237 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7238 *) option=$real_option ;;
7239 esac
7240 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7243 $as_echo_n "checking whether $CC supports $option... " >&6; }
7244 if eval \${$as_acx_Woption+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 CFLAGS="$option"
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7252 main ()
7256 return 0;
7258 _ACEOF
7259 if ac_fn_c_try_compile "$LINENO"; then :
7260 eval "$as_acx_Woption=yes"
7261 else
7262 eval "$as_acx_Woption=no"
7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 eval ac_res=\$$as_acx_Woption
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7269 $as_echo "$ac_res" >&6; }
7270 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7271 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7273 done
7274 CFLAGS="$save_CFLAGS"
7275 ac_ext=cpp
7276 ac_cpp='$CXXCPP $CPPFLAGS'
7277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7282 ac_ext=cpp
7283 ac_cpp='$CXXCPP $CPPFLAGS'
7284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7288 strict_warn=
7289 save_CXXFLAGS="$CXXFLAGS"
7290 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7291 # Do the check with the no- prefix removed since gcc silently
7292 # accepts any -Wno-* option on purpose
7293 case $real_option in
7294 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7295 *) option=$real_option ;;
7296 esac
7297 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7300 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7301 if eval \${$as_acx_Woption+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 CXXFLAGS="$option"
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7309 main ()
7313 return 0;
7315 _ACEOF
7316 if ac_fn_cxx_try_compile "$LINENO"; then :
7317 eval "$as_acx_Woption=yes"
7318 else
7319 eval "$as_acx_Woption=no"
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324 eval ac_res=\$$as_acx_Woption
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7326 $as_echo "$ac_res" >&6; }
7327 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7328 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7330 done
7331 CXXFLAGS="$save_CXXFLAGS"
7332 ac_ext=cpp
7333 ac_cpp='$CXXCPP $CPPFLAGS'
7334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7339 ac_ext=c
7340 ac_cpp='$CPP $CPPFLAGS'
7341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7345 c_strict_warn=
7346 save_CFLAGS="$CFLAGS"
7347 for real_option in -Wold-style-definition -Wc++-compat; do
7348 # Do the check with the no- prefix removed since gcc silently
7349 # accepts any -Wno-* option on purpose
7350 case $real_option in
7351 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7352 *) option=$real_option ;;
7353 esac
7354 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7357 $as_echo_n "checking whether $CC supports $option... " >&6; }
7358 if eval \${$as_acx_Woption+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 CFLAGS="$option"
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7366 main ()
7370 return 0;
7372 _ACEOF
7373 if ac_fn_c_try_compile "$LINENO"; then :
7374 eval "$as_acx_Woption=yes"
7375 else
7376 eval "$as_acx_Woption=no"
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 eval ac_res=\$$as_acx_Woption
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7383 $as_echo "$ac_res" >&6; }
7384 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7385 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7387 done
7388 CFLAGS="$save_CFLAGS"
7389 ac_ext=cpp
7390 ac_cpp='$CXXCPP $CPPFLAGS'
7391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7396 ac_ext=cpp
7397 ac_cpp='$CXXCPP $CPPFLAGS'
7398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7402 # Do the check with the no- prefix removed from the warning options
7403 # since gcc silently accepts any -Wno-* option on purpose
7404 if test "$GXX" = yes; then :
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7406 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7407 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 save_CXXFLAGS="$CXXFLAGS"
7411 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7416 main ()
7420 return 0;
7422 _ACEOF
7423 if ac_fn_cxx_try_compile "$LINENO"; then :
7424 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7425 else
7426 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 CXXFLAGS="$save_CXXFLAGS"
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7432 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7433 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7434 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7438 ac_ext=cpp
7439 ac_cpp='$CXXCPP $CPPFLAGS'
7440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7445 ac_ext=cpp
7446 ac_cpp='$CXXCPP $CPPFLAGS'
7447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7451 # Check whether --enable-werror-always was given.
7452 if test "${enable_werror_always+set}" = set; then :
7453 enableval=$enable_werror_always;
7454 else
7455 enable_werror_always=no
7458 if test $enable_werror_always = yes; then :
7459 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7462 ac_ext=cpp
7463 ac_cpp='$CXXCPP $CPPFLAGS'
7464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7470 # The above macros do nothing if the compiler is not GCC. However, the
7471 # Makefile has more goo to add other flags, so these variables are used
7472 # to enable warnings only for GCC.
7473 warn_cflags=
7474 warn_cxxflags=
7475 if test "x$GCC" = "xyes"; then
7476 warn_cflags='$(GCC_WARN_CFLAGS)'
7477 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7482 # Disable exceptions and RTTI if building with g++
7483 ac_ext=c
7484 ac_cpp='$CPP $CPPFLAGS'
7485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489 noexception_flags=
7490 save_CFLAGS="$CFLAGS"
7491 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7492 # Do the check with the no- prefix removed since gcc silently
7493 # accepts any -Wno-* option on purpose
7494 case $real_option in
7495 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7496 *) option=$real_option ;;
7497 esac
7498 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7501 $as_echo_n "checking whether $CC supports $option... " >&6; }
7502 if eval \${$as_acx_Woption+:} false; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 CFLAGS="$option"
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7510 main ()
7514 return 0;
7516 _ACEOF
7517 if ac_fn_c_try_compile "$LINENO"; then :
7518 eval "$as_acx_Woption=yes"
7519 else
7520 eval "$as_acx_Woption=no"
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 eval ac_res=\$$as_acx_Woption
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7527 $as_echo "$ac_res" >&6; }
7528 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7529 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7531 done
7532 CFLAGS="$save_CFLAGS"
7533 ac_ext=cpp
7534 ac_cpp='$CXXCPP $CPPFLAGS'
7535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7541 # Enable expensive internal checks
7542 is_release=
7543 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7544 is_release=yes
7547 # Check whether --enable-checking was given.
7548 if test "${enable_checking+set}" = set; then :
7549 enableval=$enable_checking; ac_checking_flags="${enableval}"
7550 else
7552 # Determine the default checks.
7553 if test x$is_release = x ; then
7554 ac_checking_flags=yes,extra
7555 else
7556 ac_checking_flags=release
7560 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7561 for check in release $ac_checking_flags
7563 case $check in
7564 # these set all the flags to specific states
7565 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7566 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7567 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7568 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7569 ac_tree_checking=1 ; ac_valgrind_checking= ;
7570 ac_types_checking=1 ;;
7571 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7572 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7573 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7574 ac_rtlflag_checking= ; ac_runtime_checking= ;
7575 ac_tree_checking= ; ac_valgrind_checking= ;
7576 ac_types_checking= ;;
7577 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7578 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7579 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7580 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7581 ac_tree_checking=1 ; ac_valgrind_checking= ;
7582 ac_types_checking=1 ;;
7583 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7584 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7585 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7586 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7587 ac_tree_checking= ; ac_valgrind_checking= ;
7588 ac_types_checking= ;;
7589 # these enable particular checks
7590 assert) ac_assert_checking=1 ;;
7591 df) ac_df_checking=1 ;;
7592 extra) ac_extra_checking=1 ;;
7593 fold) ac_fold_checking=1 ;;
7594 gc) ac_gc_checking=1 ;;
7595 gcac) ac_gc_always_collect=1 ;;
7596 gimple) ac_gimple_checking=1 ;;
7597 misc) ac_checking=1 ;;
7598 rtl) ac_rtl_checking=1 ;;
7599 rtlflag) ac_rtlflag_checking=1 ;;
7600 runtime) ac_runtime_checking=1 ;;
7601 tree) ac_tree_checking=1 ;;
7602 types) ac_types_checking=1 ;;
7603 valgrind) ac_valgrind_checking=1 ;;
7604 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7605 esac
7606 done
7607 IFS="$ac_save_IFS"
7609 nocommon_flag=""
7610 if test x$ac_checking != x ; then
7612 $as_echo "#define CHECKING_P 1" >>confdefs.h
7614 nocommon_flag=-fno-common
7615 else
7616 $as_echo "#define CHECKING_P 0" >>confdefs.h
7620 if test x$ac_extra_checking != x ; then
7622 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7624 else
7625 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7628 if test x$ac_df_checking != x ; then
7630 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7633 if test x$ac_assert_checking != x ; then
7635 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7638 if test x$ac_gimple_checking != x ; then
7640 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7644 if test x$ac_runtime_checking != x ; then
7646 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7649 if test x$ac_tree_checking != x ; then
7651 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7653 TREECHECKING=yes
7655 if test x$ac_types_checking != x ; then
7657 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7661 if test x$ac_rtl_checking != x ; then
7663 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7666 if test x$ac_rtlflag_checking != x ; then
7668 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7671 if test x$ac_gc_checking != x ; then
7673 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7676 if test x$ac_gc_always_collect != x ; then
7678 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7681 if test x$ac_fold_checking != x ; then
7683 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7686 valgrind_path_defines=
7687 valgrind_command=
7689 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7690 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7691 have_valgrind_h=yes
7692 else
7693 have_valgrind_h=no
7698 # It is certainly possible that there's valgrind but no valgrind.h.
7699 # GCC relies on making annotations so we must have both.
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7701 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704 #include <valgrind/memcheck.h>
7705 #ifndef VALGRIND_DISCARD
7706 #error VALGRIND_DISCARD not defined
7707 #endif
7708 _ACEOF
7709 if ac_fn_cxx_try_cpp "$LINENO"; then :
7710 gcc_cv_header_valgrind_memcheck_h=yes
7711 else
7712 gcc_cv_header_valgrind_memcheck_h=no
7714 rm -f conftest.err conftest.i conftest.$ac_ext
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7716 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7718 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 #include <memcheck.h>
7722 #ifndef VALGRIND_DISCARD
7723 #error VALGRIND_DISCARD not defined
7724 #endif
7725 _ACEOF
7726 if ac_fn_cxx_try_cpp "$LINENO"; then :
7727 gcc_cv_header_memcheck_h=yes
7728 else
7729 gcc_cv_header_memcheck_h=no
7731 rm -f conftest.err conftest.i conftest.$ac_ext
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7733 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7734 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7736 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7739 if test $gcc_cv_header_memcheck_h = yes; then
7741 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7745 if test x$ac_valgrind_checking != x ; then
7747 # Prepare PATH_SEPARATOR.
7748 # The user is always right.
7749 if test "${PATH_SEPARATOR+set}" != set; then
7750 echo "#! /bin/sh" >conf$$.sh
7751 echo "exit 0" >>conf$$.sh
7752 chmod +x conf$$.sh
7753 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7754 PATH_SEPARATOR=';'
7755 else
7756 PATH_SEPARATOR=:
7758 rm -f conf$$.sh
7761 # Find out how to test for executable files. Don't use a zero-byte file,
7762 # as systems may use methods other than mode bits to determine executability.
7763 cat >conf$$.file <<_ASEOF
7764 #! /bin/sh
7765 exit 0
7766 _ASEOF
7767 chmod +x conf$$.file
7768 if test -x conf$$.file >/dev/null 2>&1; then
7769 ac_executable_p="test -x"
7770 else
7771 ac_executable_p="test -f"
7773 rm -f conf$$.file
7775 # Extract the first word of "valgrind", so it can be a program name with args.
7776 set dummy valgrind; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if ${ac_cv_path_valgrind_path+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 case "$valgrind_path" in
7783 [\\/]* | ?:[\\/]*)
7784 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7787 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7788 for ac_dir in $PATH; do
7789 IFS="$ac_save_IFS"
7790 test -z "$ac_dir" && ac_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7793 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7794 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7795 break 2
7798 done
7799 done
7800 IFS="$ac_save_IFS"
7802 esac
7804 valgrind_path="$ac_cv_path_valgrind_path"
7805 if test -n "$valgrind_path"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7807 $as_echo "$valgrind_path" >&6; }
7808 else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7813 if test "x$valgrind_path" = "x" \
7814 || (test $have_valgrind_h = no \
7815 && test $gcc_cv_header_memcheck_h = no \
7816 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7817 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7819 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7820 valgrind_command="$valgrind_path -q"
7822 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7828 # Enable code coverage collection
7829 # Check whether --enable-coverage was given.
7830 if test "${enable_coverage+set}" = set; then :
7831 enableval=$enable_coverage; case "${enableval}" in
7832 yes|noopt)
7833 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7835 opt)
7836 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7839 # a.k.a. --disable-coverage
7840 coverage_flags=""
7843 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7845 esac
7846 else
7847 coverage_flags=""
7852 # Check whether --enable-gather-detailed-mem-stats was given.
7853 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7854 enableval=$enable_gather_detailed_mem_stats;
7855 else
7856 enable_gather_detailed_mem_stats=no
7859 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7861 cat >>confdefs.h <<_ACEOF
7862 #define GATHER_STATISTICS $gather_stats
7863 _ACEOF
7866 # Check whether --enable-valgrind-annotations was given.
7867 if test "${enable_valgrind_annotations+set}" = set; then :
7868 enableval=$enable_valgrind_annotations;
7869 else
7870 enable_valgrind_annotations=no
7873 if test x$enable_valgrind_annotations != xno \
7874 || test x$ac_valgrind_checking != x; then
7875 if (test $have_valgrind_h = no \
7876 && test $gcc_cv_header_memcheck_h = no \
7877 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7878 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7881 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7885 # -------------------------------
7886 # Miscenalleous configure options
7887 # -------------------------------
7889 # Determine whether or not multilibs are enabled.
7890 # Check whether --enable-multilib was given.
7891 if test "${enable_multilib+set}" = set; then :
7892 enableval=$enable_multilib;
7893 else
7894 enable_multilib=yes
7899 # Determine whether or not multiarch is enabled.
7900 # Check whether --enable-multiarch was given.
7901 if test "${enable_multiarch+set}" = set; then :
7902 enableval=$enable_multiarch; case "${enableval}" in
7903 yes|no|auto) enable_multiarch=$enableval;;
7904 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7905 esac
7906 else
7907 enable_multiarch=auto
7910 if test x${enable_multiarch} = xauto; then
7911 if test x${with_native_system_header_dir} != x; then
7912 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7913 enable_multiarch=no
7915 if test x$host != x$target && test "x$with_sysroot" = x; then
7916 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7917 enable_multiarch=no
7920 if test x${enable_multiarch} = xyes; then
7922 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7926 $as_echo_n "checking for multiarch configuration... " >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7929 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7931 # needed for setting the multiarch name for soft-float/hard-float ABIs
7935 # default stack clash protection guard size as power of twos in bytes.
7936 # Please keep these in sync with params.def.
7937 stk_clash_min=12
7938 stk_clash_max=30
7940 # Keep the default value when the option is not used to 0, this allows us to
7941 # distinguish between the cases where the user specifially set a value via
7942 # configure and when the normal default value is used.
7944 # Check whether --with-stack-clash-protection-guard-size was given.
7945 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7946 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7947 else
7948 DEFAULT_STK_CLASH_GUARD_SIZE=0
7951 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7952 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7953 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7954 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
7958 cat >>confdefs.h <<_ACEOF
7959 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7960 _ACEOF
7963 # Specify the number of splits of match.pd to generate.
7965 # Check whether --with-matchpd-partitions was given.
7966 if test "${with_matchpd_partitions+set}" = set; then :
7967 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7968 else
7969 DEFAULT_MATCHPD_PARTITIONS=10
7972 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7973 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7978 # Specify the number of splits of insn-emit.cc to generate.
7980 # Check whether --with-insnemit-partitions was given.
7981 if test "${with_insnemit_partitions+set}" = set; then :
7982 withval=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS="$with_insnemit_partitions"
7983 else
7984 DEFAULT_INSNEMIT_PARTITIONS=10
7987 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7988 as_fn_error $? "Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7993 # Enable __cxa_atexit for C++.
7994 # Check whether --enable-__cxa_atexit was given.
7995 if test "${enable___cxa_atexit+set}" = set; then :
7996 enableval=$enable___cxa_atexit;
8000 # Enable C extension for decimal float if target supports it.
8002 # Check whether --enable-decimal-float was given.
8003 if test "${enable_decimal_float+set}" = set; then :
8004 enableval=$enable_decimal_float;
8005 case $enable_decimal_float in
8006 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
8007 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
8008 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
8009 esac
8011 else
8013 case $target in
8014 aarch64* | \
8015 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
8016 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
8017 i?86*-*-mingw* | x86_64*-*-mingw* | \
8018 i?86*-*-cygwin* | x86_64*-*-cygwin*)
8019 enable_decimal_float=yes
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
8023 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
8024 enable_decimal_float=no
8026 esac
8031 # x86's use BID format instead of DPD
8032 case x$enable_decimal_float in
8033 xyes)
8034 case $target in
8035 aarch64* | i?86*-*-* | x86_64*-*-*)
8036 enable_decimal_float=bid
8039 enable_decimal_float=dpd
8041 esac
8042 default_decimal_float=$enable_decimal_float
8044 xno)
8045 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8046 # dependency on libdecnumber.
8047 default_decimal_float=dpd
8049 esac
8054 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8056 cat >>confdefs.h <<_ACEOF
8057 #define ENABLE_DECIMAL_FLOAT $dfp
8058 _ACEOF
8061 # Use default_decimal_float for dependency.
8062 enable_decimal_float=$default_decimal_float
8064 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8066 cat >>confdefs.h <<_ACEOF
8067 #define ENABLE_DECIMAL_BID_FORMAT $bid
8068 _ACEOF
8071 # Enable C extension for fixed-point arithmetic.
8072 # Check whether --enable-fixed-point was given.
8073 if test "${enable_fixed_point+set}" = set; then :
8074 enableval=$enable_fixed_point;
8075 else
8077 case $target in
8078 arm*)
8079 enable_fixed_point=yes
8082 mips*-*-*)
8083 enable_fixed_point=yes
8085 loongarch*-*-*)
8086 enable_fixed_point=yes
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8090 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8091 enable_fixed_point=no
8093 esac
8099 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8101 cat >>confdefs.h <<_ACEOF
8102 #define ENABLE_FIXED_POINT $fixedpoint
8103 _ACEOF
8106 # Enable threads
8107 # Pass with no value to take the default
8108 # Pass with a value to specify a thread package
8109 # Check whether --enable-threads was given.
8110 if test "${enable_threads+set}" = set; then :
8111 enableval=$enable_threads;
8112 else
8113 enable_threads=''
8117 # Check whether --enable-tls was given.
8118 if test "${enable_tls+set}" = set; then :
8119 enableval=$enable_tls;
8120 case $enable_tls in
8121 yes | no) ;;
8122 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8123 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8124 esac
8126 else
8127 enable_tls=''
8131 # Check whether --enable-vtable-verify was given.
8132 if test "${enable_vtable_verify+set}" = set; then :
8133 enableval=$enable_vtable_verify;
8134 else
8135 enable_vtable_verify=no
8138 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8140 cat >>confdefs.h <<_ACEOF
8141 #define ENABLE_VTABLE_VERIFY $vtable_verify
8142 _ACEOF
8145 # Check whether --enable-analyzer was given.
8146 if test "${enable_analyzer+set}" = set; then :
8147 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8148 analyzer=0
8149 else
8150 analyzer=1
8152 else
8153 analyzer=1
8157 cat >>confdefs.h <<_ACEOF
8158 #define ENABLE_ANALYZER $analyzer
8159 _ACEOF
8162 # Check whether --enable-objc-gc was given.
8163 if test "${enable_objc_gc+set}" = set; then :
8164 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8165 objc_boehm_gc=''
8166 else
8167 objc_boehm_gc=1
8169 else
8170 objc_boehm_gc=''
8175 # Check whether --with-dwarf2 was given.
8176 if test "${with_dwarf2+set}" = set; then :
8177 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8178 else
8179 dwarf2=no
8183 # Check whether --enable-shared was given.
8184 if test "${enable_shared+set}" = set; then :
8185 enableval=$enable_shared;
8186 case $enable_shared in
8187 yes | no) ;;
8189 enable_shared=no
8190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8191 for pkg in $enableval; do
8192 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8193 enable_shared=yes
8195 done
8196 IFS="$ac_save_ifs"
8198 esac
8200 else
8201 enable_shared=yes
8206 # Check whether --enable-gcov was given.
8207 if test "${enable_gcov+set}" = set; then :
8208 enableval=$enable_gcov;
8209 else
8210 case $target in
8211 bpf-*-*)
8212 enable_gcov=no
8215 enable_gcov=yes
8217 esac
8224 # Check whether --with-specs was given.
8225 if test "${with_specs+set}" = set; then :
8226 withval=$with_specs; CONFIGURE_SPECS=$withval
8227 else
8228 CONFIGURE_SPECS=
8236 # Check whether --with-pkgversion was given.
8237 if test "${with_pkgversion+set}" = set; then :
8238 withval=$with_pkgversion; case "$withval" in
8239 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8240 no) PKGVERSION= ;;
8241 *) PKGVERSION="($withval) " ;;
8242 esac
8243 else
8244 PKGVERSION="(GCC) "
8252 # Check whether --with-bugurl was given.
8253 if test "${with_bugurl+set}" = set; then :
8254 withval=$with_bugurl; case "$withval" in
8255 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8256 no) BUGURL=
8258 *) BUGURL="$withval"
8260 esac
8261 else
8262 BUGURL="https://gcc.gnu.org/bugs/"
8266 case ${BUGURL} in
8268 REPORT_BUGS_TO=
8269 REPORT_BUGS_TEXI=
8272 REPORT_BUGS_TO="<$BUGURL>"
8273 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8275 esac;
8280 # Allow overriding the default URL for documentation
8282 # Check whether --with-documentation-root-url was given.
8283 if test "${with_documentation_root_url+set}" = set; then :
8284 withval=$with_documentation_root_url; case "$withval" in
8285 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8286 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8287 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8288 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8289 esac
8290 else
8291 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8296 cat >>confdefs.h <<_ACEOF
8297 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8298 _ACEOF
8301 # Allow overriding the default URL for GCC changes
8303 # Check whether --with-changes-root-url was given.
8304 if test "${with_changes_root_url+set}" = set; then :
8305 withval=$with_changes_root_url; case "$withval" in
8306 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8307 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8308 */) CHANGES_ROOT_URL="$withval" ;;
8309 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8310 esac
8311 else
8312 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8317 cat >>confdefs.h <<_ACEOF
8318 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8319 _ACEOF
8322 # Sanity check enable_languages in case someone does not run the toplevel
8323 # configure # script.
8324 # Check whether --enable-languages was given.
8325 if test "${enable_languages+set}" = set; then :
8326 enableval=$enable_languages; case ,${enable_languages}, in
8327 ,,|,yes,)
8328 # go safe -- we cannot be much sure without the toplevel
8329 # configure's
8330 # analysis of which target libs are present and usable
8331 enable_languages=c
8333 *,all,*)
8334 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8336 *,c,*)
8339 enable_languages=c,${enable_languages}
8341 esac
8342 else
8343 enable_languages=c
8347 # If top-level libada has been disabled, then wire in install-gnatlib
8348 # invocation with `make install', so that one can build and install
8349 # the library manually with `make -C gcc all gnatlib gnattools install'.
8350 if test x"$enable_libada" = xno; then
8351 gnat_install_lib=gnat-install-lib
8352 else
8353 gnat_install_lib=
8357 if test x"$enable_as_accelerator_for" != x; then
8359 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8361 enable_as_accelerator=yes
8362 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8363 program_transform_name=`echo $program_transform_name | sed $sedscript`
8364 accel_dir_suffix=/accel/${target_noncanonical}
8365 real_target_noncanonical=${enable_as_accelerator_for}
8371 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8372 tgt=`echo $tgt | sed 's/=.*//'`
8374 enable_offloading=1
8375 case "$tgt" in
8376 amdgcn*)
8377 omp_device_property=omp-device-properties-gcn
8378 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8380 nvptx*)
8381 omp_device_property=omp-device-properties-nvptx
8382 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8385 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8387 esac
8388 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8389 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8391 if test x"$offload_targets" = x; then
8392 offload_targets=$tgt
8393 else
8394 offload_targets="$offload_targets,$tgt"
8396 done
8401 cat >>confdefs.h <<_ACEOF
8402 #define OFFLOAD_TARGETS "$offload_targets"
8403 _ACEOF
8405 if test x"$enable_offloading" != x; then
8407 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8409 else
8411 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8415 if test "x$enable_offload_defaulted" = xyes; then
8417 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8422 # Check whether --with-multilib-list was given.
8423 if test "${with_multilib_list+set}" = set; then :
8424 withval=$with_multilib_list; :
8425 else
8426 with_multilib_list=default
8431 # Check whether --with-multilib-generator was given.
8432 if test "${with_multilib_generator+set}" = set; then :
8433 withval=$with_multilib_generator; :
8434 else
8435 with_multilib_generator=default
8439 # -------------------------
8440 # Checks for other programs
8441 # -------------------------
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8444 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8445 set x ${MAKE-make}
8446 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8447 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 cat >conftest.make <<\_ACEOF
8451 SHELL = /bin/sh
8452 all:
8453 @echo '@@@%%%=$(MAKE)=@@@%%%'
8454 _ACEOF
8455 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8456 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8457 *@@@%%%=?*=@@@%%%*)
8458 eval ac_cv_prog_make_${ac_make}_set=yes;;
8460 eval ac_cv_prog_make_${ac_make}_set=no;;
8461 esac
8462 rm -f conftest.make
8464 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8466 $as_echo "yes" >&6; }
8467 SET_MAKE=
8468 else
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 SET_MAKE="MAKE=${MAKE-make}"
8475 # Find some useful tools
8476 for ac_prog in gawk mawk nawk awk
8478 # Extract the first word of "$ac_prog", so it can be a program name with args.
8479 set dummy $ac_prog; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if ${ac_cv_prog_AWK+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 if test -n "$AWK"; then
8486 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8487 else
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8495 ac_cv_prog_AWK="$ac_prog"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 break 2
8499 done
8500 done
8501 IFS=$as_save_IFS
8505 AWK=$ac_cv_prog_AWK
8506 if test -n "$AWK"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8508 $as_echo "$AWK" >&6; }
8509 else
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8515 test -n "$AWK" && break
8516 done
8518 # We need awk to create options.cc and options.h.
8519 # Bail out if it's missing.
8520 case ${AWK} in
8521 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8522 esac
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8525 $as_echo_n "checking whether ln -s works... " >&6; }
8526 if ${gcc_cv_prog_LN_S+:} false; then :
8527 $as_echo_n "(cached) " >&6
8528 else
8529 rm -f conftestdata_t
8530 echo >conftestdata_f
8531 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8532 then
8533 gcc_cv_prog_LN_S="ln -s"
8534 else
8535 if ln conftestdata_f conftestdata_t 2>/dev/null
8536 then
8537 gcc_cv_prog_LN_S=ln
8538 else
8539 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8540 then
8541 gcc_cv_prog_LN_S="cp -p"
8542 else
8543 gcc_cv_prog_LN_S=cp
8547 rm -f conftestdata_f conftestdata_t
8550 LN_S="$gcc_cv_prog_LN_S"
8551 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8553 $as_echo "yes" >&6; }
8554 else
8555 if test "$gcc_cv_prog_LN_S" = "ln"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8557 $as_echo "no, using ln" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8560 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8565 $as_echo_n "checking whether ln works... " >&6; }
8566 if ${acx_cv_prog_LN+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 rm -f conftestdata_t
8570 echo >conftestdata_f
8571 if ln conftestdata_f conftestdata_t 2>/dev/null
8572 then
8573 acx_cv_prog_LN=ln
8574 else
8575 acx_cv_prog_LN=no
8577 rm -f conftestdata_f conftestdata_t
8580 if test $acx_cv_prog_LN = no; then
8581 LN="$LN_S"
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8583 $as_echo "no, using $LN" >&6; }
8584 else
8585 LN="$acx_cv_prog_LN"
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8587 $as_echo "yes" >&6; }
8590 if test -n "$ac_tool_prefix"; then
8591 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8592 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if ${ac_cv_prog_RANLIB+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 if test -n "$RANLIB"; then
8599 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8600 else
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8608 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8612 done
8613 done
8614 IFS=$as_save_IFS
8618 RANLIB=$ac_cv_prog_RANLIB
8619 if test -n "$RANLIB"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8621 $as_echo "$RANLIB" >&6; }
8622 else
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8629 if test -z "$ac_cv_prog_RANLIB"; then
8630 ac_ct_RANLIB=$RANLIB
8631 # Extract the first word of "ranlib", so it can be a program name with args.
8632 set dummy ranlib; ac_word=$2
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634 $as_echo_n "checking for $ac_word... " >&6; }
8635 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 if test -n "$ac_ct_RANLIB"; then
8639 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8640 else
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8648 ac_cv_prog_ac_ct_RANLIB="ranlib"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 break 2
8652 done
8653 done
8654 IFS=$as_save_IFS
8658 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8659 if test -n "$ac_ct_RANLIB"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8661 $as_echo "$ac_ct_RANLIB" >&6; }
8662 else
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8667 if test "x$ac_ct_RANLIB" = x; then
8668 RANLIB=":"
8669 else
8670 case $cross_compiling:$ac_tool_warned in
8671 yes:)
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8674 ac_tool_warned=yes ;;
8675 esac
8676 RANLIB=$ac_ct_RANLIB
8678 else
8679 RANLIB="$ac_cv_prog_RANLIB"
8682 ranlib_flags=""
8685 # Find a good install program. We prefer a C program (faster),
8686 # so one script is as good as another. But avoid the broken or
8687 # incompatible versions:
8688 # SysV /etc/install, /usr/sbin/install
8689 # SunOS /usr/etc/install
8690 # IRIX /sbin/install
8691 # AIX /bin/install
8692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8694 # ./install, which can be erroneously created by make from ./install.sh.
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8696 $as_echo_n "checking for a BSD compatible install... " >&6; }
8697 if test -z "$INSTALL"; then
8698 if ${ac_cv_path_install+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8702 for ac_dir in $PATH; do
8703 # Account for people who put trailing slashes in PATH elements.
8704 case "$ac_dir/" in
8705 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8707 # OSF1 and SCO ODT 3.0 have their own names for install.
8708 for ac_prog in ginstall scoinst install; do
8709 if test -f $ac_dir/$ac_prog; then
8710 if test $ac_prog = install &&
8711 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8712 # AIX install. It has an incompatible calling convention.
8713 # OSF/1 installbsd also uses dspmsg, but is usable.
8715 else
8716 ac_cv_path_install="$ac_dir/$ac_prog -c"
8717 break 2
8720 done
8722 esac
8723 done
8724 IFS="$ac_save_IFS"
8727 if test "${ac_cv_path_install+set}" = set; then
8728 INSTALL="$ac_cv_path_install"
8729 else
8730 # As a last resort, use the slow shell script. We don't cache a
8731 # path for INSTALL within a source directory, because that will
8732 # break other packages using the cache if that directory is
8733 # removed, or if the path is relative.
8734 INSTALL="$ac_install_sh"
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8738 $as_echo "$INSTALL" >&6; }
8740 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8741 # It thinks the first close brace ends the variable substitution.
8742 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8747 # See if cmp has --ignore-initial.
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8749 $as_echo_n "checking for cmp's capabilities... " >&6; }
8750 if ${gcc_cv_prog_cmp_skip+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 echo abfoo >t1
8754 echo cdfoo >t2
8755 gcc_cv_prog_cmp_skip=slowcompare
8756 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8757 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8759 else
8760 gcc_cv_prog_cmp_skip=gnucompare
8763 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8764 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8765 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8767 else
8768 gcc_cv_prog_cmp_skip=fastcompare
8772 rm t1 t2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8776 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8777 make_compare_target=$gcc_cv_prog_cmp_skip
8781 # See if we have the mktemp command.
8782 # Extract the first word of "mktemp", so it can be a program name with args.
8783 set dummy mktemp; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 if test -n "$have_mktemp_command"; then
8790 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799 ac_cv_prog_have_mktemp_command="yes"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8803 done
8804 done
8805 IFS=$as_save_IFS
8807 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8810 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8811 if test -n "$have_mktemp_command"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8813 $as_echo "$have_mktemp_command" >&6; }
8814 else
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8821 # See if makeinfo has been installed and is modern enough
8822 # that we can use it.
8824 # Extract the first word of "makeinfo", so it can be a program name with args.
8825 set dummy makeinfo; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if ${ac_cv_prog_MAKEINFO+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 if test -n "$MAKEINFO"; then
8832 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8833 else
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_MAKEINFO="makeinfo"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8845 done
8846 done
8847 IFS=$as_save_IFS
8851 MAKEINFO=$ac_cv_prog_MAKEINFO
8852 if test -n "$MAKEINFO"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8854 $as_echo "$MAKEINFO" >&6; }
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8861 if test -n "$MAKEINFO"; then
8862 # Found it, now check the version.
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8864 $as_echo_n "checking for modern makeinfo... " >&6; }
8865 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8869 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8871 case $ac_prog_version in
8872 '') gcc_cv_prog_makeinfo_modern=no;;
8873 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8874 *) gcc_cv_prog_makeinfo_modern=no;;
8875 esac
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8879 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8880 else
8881 gcc_cv_prog_makeinfo_modern=no
8883 if test $gcc_cv_prog_makeinfo_modern = no; then
8884 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8887 if test $gcc_cv_prog_makeinfo_modern = no; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8889 *** Makeinfo is missing or too old.
8890 *** Info documentation will not be built." >&5
8891 $as_echo "$as_me: WARNING:
8892 *** Makeinfo is missing or too old.
8893 *** Info documentation will not be built." >&2;}
8894 BUILD_INFO=
8895 else
8896 BUILD_INFO=info
8900 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8901 # If it does, we want to pass it to makeinfo in order to restore the old
8902 # behavior of @{summary,}contents placement.
8903 MAKEINFO_TOC_INLINE_FLAG=
8904 if test x"$MAKEINFO" != x; then :
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8907 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8908 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8912 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8913 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8914 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8915 gcc_cv_texi_add_toc_inline_flags=no
8916 else
8917 gcc_cv_texi_add_toc_inline_flags=yes
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8922 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8923 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8924 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8930 # Is pod2man recent enough to regenerate manpages?
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8932 $as_echo_n "checking for recent Pod::Man... " >&6; }
8933 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8935 $as_echo "yes" >&6; }
8936 GENERATED_MANPAGES=generated-manpages
8937 else
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8940 GENERATED_MANPAGES=
8944 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8946 # How about lex?
8947 for ac_prog in flex
8949 # Extract the first word of "$ac_prog", so it can be a program name with args.
8950 set dummy $ac_prog; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if ${ac_cv_prog_FLEX+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 if test -n "$FLEX"; then
8957 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8958 else
8959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960 for as_dir in $PATH
8962 IFS=$as_save_IFS
8963 test -z "$as_dir" && as_dir=.
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8966 ac_cv_prog_FLEX="$ac_prog"
8967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 break 2
8970 done
8971 done
8972 IFS=$as_save_IFS
8976 FLEX=$ac_cv_prog_FLEX
8977 if test -n "$FLEX"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8979 $as_echo "$FLEX" >&6; }
8980 else
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8986 test -n "$FLEX" && break
8987 done
8988 test -n "$FLEX" || FLEX="$MISSING flex"
8991 # Bison?
8992 for ac_prog in bison
8994 # Extract the first word of "$ac_prog", so it can be a program name with args.
8995 set dummy $ac_prog; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if ${ac_cv_prog_BISON+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 if test -n "$BISON"; then
9002 ac_cv_prog_BISON="$BISON" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011 ac_cv_prog_BISON="$ac_prog"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9015 done
9016 done
9017 IFS=$as_save_IFS
9021 BISON=$ac_cv_prog_BISON
9022 if test -n "$BISON"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9024 $as_echo "$BISON" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9031 test -n "$BISON" && break
9032 done
9033 test -n "$BISON" || BISON="$MISSING bison"
9036 # Python3?
9038 # Extract the first word of "python3", so it can be a program name with args.
9039 set dummy python3; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if ${ac_cv_prog_PYTHON+:} false; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 if test -n "$PYTHON"; then
9046 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_prog_PYTHON="python3"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9059 done
9060 done
9061 IFS=$as_save_IFS
9065 PYTHON=$ac_cv_prog_PYTHON
9066 if test -n "$PYTHON"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9068 $as_echo "$PYTHON" >&6; }
9069 else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9075 if test -n "$PYTHON"; then
9076 # Found it, now check the version.
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9078 $as_echo_n "checking for modern python3... " >&6; }
9079 if ${gcc_cv_prog_python3_modern+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 ac_prog_version=`eval $PYTHON --version 2>&1 |
9083 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9085 case $ac_prog_version in
9086 '') gcc_cv_prog_python3_modern=no;;
9087 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9088 *) gcc_cv_prog_python3_modern=no;;
9089 esac
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9093 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9094 else
9095 gcc_cv_prog_python3_modern=no
9097 if test $gcc_cv_prog_python3_modern = no; then
9098 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9101 if test $gcc_cv_prog_python3_modern = no; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9103 *** Python3 is missing.
9104 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9105 $as_echo "$as_me: WARNING:
9106 *** Python3 is missing.
9107 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9108 HAVE_PYTHON=no
9109 else
9110 HAVE_PYTHON=yes
9114 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9115 # check for build == host before using them.
9117 # NM
9118 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9119 && test -d ../binutils ; then
9120 NM='${objdir}/../binutils/nm-new'
9121 else
9122 # Extract the first word of "nm", so it can be a program name with args.
9123 set dummy nm; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if ${ac_cv_prog_NM+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 if test -n "$NM"; then
9130 ac_cv_prog_NM="$NM" # Let the user override the test.
9131 else
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9139 ac_cv_prog_NM="nm"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 break 2
9143 done
9144 done
9145 IFS=$as_save_IFS
9147 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9150 NM=$ac_cv_prog_NM
9151 if test -n "$NM"; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9153 $as_echo "$NM" >&6; }
9154 else
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 $as_echo "no" >&6; }
9162 # AR
9163 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9164 && test -d ../binutils ; then
9165 AR='${objdir}/../binutils/ar'
9166 else
9167 # Extract the first word of "ar", so it can be a program name with args.
9168 set dummy ar; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if ${ac_cv_prog_AR+:} false; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 if test -n "$AR"; then
9175 ac_cv_prog_AR="$AR" # Let the user override the test.
9176 else
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $PATH
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9184 ac_cv_prog_AR="ar"
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 break 2
9188 done
9189 done
9190 IFS=$as_save_IFS
9192 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9195 AR=$ac_cv_prog_AR
9196 if test -n "$AR"; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9198 $as_echo "$AR" >&6; }
9199 else
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9207 # The jit documentation looks better if built with sphinx, but can be
9208 # built with texinfo if sphinx is not available.
9209 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9210 # Extract the first word of "sphinx-build", so it can be a program name with args.
9211 set dummy sphinx-build; ac_word=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if ${ac_cv_prog_doc_build_sys+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 if test -n "$doc_build_sys"; then
9218 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9219 else
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_prog_doc_build_sys="sphinx"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9231 done
9232 done
9233 IFS=$as_save_IFS
9235 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9238 doc_build_sys=$ac_cv_prog_doc_build_sys
9239 if test -n "$doc_build_sys"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9241 $as_echo "$doc_build_sys" >&6; }
9242 else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9249 # --------------------
9250 # Checks for C headers
9251 # --------------------
9253 # Need to reject headers which give warnings, so that the -Werror bootstrap
9254 # works later. *sigh* This needs to come before all header checks.
9256 ac_c_preproc_warn_flag=yes
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9259 $as_echo_n "checking for ANSI C header files... " >&6; }
9260 if ${ac_cv_header_stdc+:} false; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 #include <stdlib.h>
9266 #include <stdarg.h>
9267 #include <string.h>
9268 #include <float.h>
9271 main ()
9275 return 0;
9277 _ACEOF
9278 if ac_fn_cxx_try_compile "$LINENO"; then :
9279 ac_cv_header_stdc=yes
9280 else
9281 ac_cv_header_stdc=no
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 if test $ac_cv_header_stdc = yes; then
9286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 #include <string.h>
9291 _ACEOF
9292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9293 $EGREP "memchr" >/dev/null 2>&1; then :
9295 else
9296 ac_cv_header_stdc=no
9298 rm -f conftest*
9302 if test $ac_cv_header_stdc = yes; then
9303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 #include <stdlib.h>
9308 _ACEOF
9309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9310 $EGREP "free" >/dev/null 2>&1; then :
9312 else
9313 ac_cv_header_stdc=no
9315 rm -f conftest*
9319 if test $ac_cv_header_stdc = yes; then
9320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9321 if test "$cross_compiling" = yes; then :
9323 else
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 #include <ctype.h>
9327 #include <stdlib.h>
9328 #if ((' ' & 0x0FF) == 0x020)
9329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9331 #else
9332 # define ISLOWER(c) \
9333 (('a' <= (c) && (c) <= 'i') \
9334 || ('j' <= (c) && (c) <= 'r') \
9335 || ('s' <= (c) && (c) <= 'z'))
9336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9337 #endif
9339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9341 main ()
9343 int i;
9344 for (i = 0; i < 256; i++)
9345 if (XOR (islower (i), ISLOWER (i))
9346 || toupper (i) != TOUPPER (i))
9347 return 2;
9348 return 0;
9350 _ACEOF
9351 if ac_fn_cxx_try_run "$LINENO"; then :
9353 else
9354 ac_cv_header_stdc=no
9356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9357 conftest.$ac_objext conftest.beam conftest.$ac_ext
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9363 $as_echo "$ac_cv_header_stdc" >&6; }
9364 if test $ac_cv_header_stdc = yes; then
9366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9371 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9372 if ${ac_cv_header_time+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9377 #include <sys/types.h>
9378 #include <sys/time.h>
9379 #include <time.h>
9382 main ()
9384 if ((struct tm *) 0)
9385 return 0;
9387 return 0;
9389 _ACEOF
9390 if ac_fn_cxx_try_compile "$LINENO"; then :
9391 ac_cv_header_time=yes
9392 else
9393 ac_cv_header_time=no
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9398 $as_echo "$ac_cv_header_time" >&6; }
9399 if test $ac_cv_header_time = yes; then
9401 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9406 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9407 if ${gcc_cv_header_string+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 #include <string.h>
9413 #include <strings.h>
9415 main ()
9419 return 0;
9421 _ACEOF
9422 if ac_fn_cxx_try_compile "$LINENO"; then :
9423 gcc_cv_header_string=yes
9424 else
9425 gcc_cv_header_string=no
9427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9430 $as_echo "$gcc_cv_header_string" >&6; }
9431 if test $gcc_cv_header_string = yes; then
9433 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9438 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9439 if ${ac_cv_header_sys_wait_h+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 #include <sys/types.h>
9445 #include <sys/wait.h>
9446 #ifndef WEXITSTATUS
9447 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9448 #endif
9449 #ifndef WIFEXITED
9450 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9451 #endif
9454 main ()
9456 int s;
9457 wait (&s);
9458 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9460 return 0;
9462 _ACEOF
9463 if ac_fn_cxx_try_compile "$LINENO"; then :
9464 ac_cv_header_sys_wait_h=yes
9465 else
9466 ac_cv_header_sys_wait_h=no
9468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9471 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9472 if test $ac_cv_header_sys_wait_h = yes; then
9474 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9479 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9480 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 #include <sys/types.h>
9486 #include <termios.h>
9487 #ifdef TIOCGWINSZ
9489 #endif
9491 _ACEOF
9492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9493 $EGREP "yes" >/dev/null 2>&1; then :
9494 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9495 else
9496 ac_cv_sys_tiocgwinsz_in_termios_h=no
9498 rm -f conftest*
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9502 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9504 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9506 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9507 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512 #include <sys/types.h>
9513 #include <sys/ioctl.h>
9514 #ifdef TIOCGWINSZ
9516 #endif
9518 _ACEOF
9519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9520 $EGREP "yes" >/dev/null 2>&1; then :
9521 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9522 else
9523 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9525 rm -f conftest*
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9529 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9531 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9533 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9538 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9539 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9540 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9541 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9542 do :
9543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9544 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9546 cat >>confdefs.h <<_ACEOF
9547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9548 _ACEOF
9551 done
9554 # Check for thread headers.
9555 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9556 if test "x$ac_cv_header_thread_h" = xyes; then :
9557 have_thread_h=yes
9558 else
9559 have_thread_h=
9562 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9563 if test "x$ac_cv_header_pthread_h" = xyes; then :
9564 have_pthread_h=yes
9565 else
9566 have_pthread_h=
9570 # These tests can't be done till we know if we have limits.h.
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9572 $as_echo_n "checking for CHAR_BIT... " >&6; }
9573 if ${gcc_cv_decl_char_bit+:} false; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9578 #ifdef HAVE_LIMITS_H
9579 #include <limits.h>
9580 #endif
9581 #ifdef CHAR_BIT
9582 found
9583 #endif
9584 _ACEOF
9585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9586 $EGREP "found" >/dev/null 2>&1; then :
9587 gcc_cv_decl_char_bit=yes
9588 else
9589 gcc_cv_decl_char_bit=no
9591 rm -f conftest*
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9596 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9597 if test $gcc_cv_decl_char_bit = no; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9599 $as_echo_n "checking number of bits in a byte... " >&6; }
9600 if ${gcc_cv_c_nbby+:} false; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9604 gcc_cv_c_nbby=
9605 while test $i -lt 65; do
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9610 main ()
9612 switch(0) {
9613 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9614 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9617 return 0;
9619 _ACEOF
9620 if ac_fn_cxx_try_compile "$LINENO"; then :
9621 gcc_cv_c_nbby=$i; break
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624 i=`expr $i + 1`
9625 done
9626 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9630 $as_echo "$gcc_cv_c_nbby" >&6; }
9631 if test $gcc_cv_c_nbby = failed; then
9632 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9633 else
9635 cat >>confdefs.h <<_ACEOF
9636 #define CHAR_BIT $gcc_cv_c_nbby
9637 _ACEOF
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9642 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9643 if ${ac_cv_c_bigendian+:} false; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 ac_cv_c_bigendian=unknown
9647 # See if we're dealing with a universal compiler.
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 #ifndef __APPLE_CC__
9651 not a universal capable compiler
9652 #endif
9653 typedef int dummy;
9655 _ACEOF
9656 if ac_fn_cxx_try_compile "$LINENO"; then :
9658 # Check for potential -arch flags. It is not universal unless
9659 # there are at least two -arch flags with different values.
9660 ac_arch=
9661 ac_prev=
9662 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9663 if test -n "$ac_prev"; then
9664 case $ac_word in
9665 i?86 | x86_64 | ppc | ppc64)
9666 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9667 ac_arch=$ac_word
9668 else
9669 ac_cv_c_bigendian=universal
9670 break
9673 esac
9674 ac_prev=
9675 elif test "x$ac_word" = "x-arch"; then
9676 ac_prev=arch
9678 done
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 if test $ac_cv_c_bigendian = unknown; then
9682 # See if sys/param.h defines the BYTE_ORDER macro.
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9685 #include <sys/types.h>
9686 #include <sys/param.h>
9689 main ()
9691 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9692 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9693 && LITTLE_ENDIAN)
9694 bogus endian macros
9695 #endif
9698 return 0;
9700 _ACEOF
9701 if ac_fn_cxx_try_compile "$LINENO"; then :
9702 # It does; now see whether it defined to BIG_ENDIAN or not.
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 #include <sys/types.h>
9706 #include <sys/param.h>
9709 main ()
9711 #if BYTE_ORDER != BIG_ENDIAN
9712 not big endian
9713 #endif
9716 return 0;
9718 _ACEOF
9719 if ac_fn_cxx_try_compile "$LINENO"; then :
9720 ac_cv_c_bigendian=yes
9721 else
9722 ac_cv_c_bigendian=no
9724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728 if test $ac_cv_c_bigendian = unknown; then
9729 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9732 #include <limits.h>
9735 main ()
9737 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9738 bogus endian macros
9739 #endif
9742 return 0;
9744 _ACEOF
9745 if ac_fn_cxx_try_compile "$LINENO"; then :
9746 # It does; now see whether it defined to _BIG_ENDIAN or not.
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 #include <limits.h>
9752 main ()
9754 #ifndef _BIG_ENDIAN
9755 not big endian
9756 #endif
9759 return 0;
9761 _ACEOF
9762 if ac_fn_cxx_try_compile "$LINENO"; then :
9763 ac_cv_c_bigendian=yes
9764 else
9765 ac_cv_c_bigendian=no
9767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9771 if test $ac_cv_c_bigendian = unknown; then
9772 # Compile a test program.
9773 if test "$cross_compiling" = yes; then :
9774 # Try to guess by grepping values from an object file.
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 short int ascii_mm[] =
9778 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9779 short int ascii_ii[] =
9780 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9781 int use_ascii (int i) {
9782 return ascii_mm[i] + ascii_ii[i];
9784 short int ebcdic_ii[] =
9785 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9786 short int ebcdic_mm[] =
9787 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9788 int use_ebcdic (int i) {
9789 return ebcdic_mm[i] + ebcdic_ii[i];
9791 extern int foo;
9794 main ()
9796 return use_ascii (foo) == use_ebcdic (foo);
9798 return 0;
9800 _ACEOF
9801 if ac_fn_cxx_try_compile "$LINENO"; then :
9802 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9803 ac_cv_c_bigendian=yes
9805 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9806 if test "$ac_cv_c_bigendian" = unknown; then
9807 ac_cv_c_bigendian=no
9808 else
9809 # finding both strings is unlikely to happen, but who knows?
9810 ac_cv_c_bigendian=unknown
9814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 else
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 $ac_includes_default
9820 main ()
9823 /* Are we little or big endian? From Harbison&Steele. */
9824 union
9826 long int l;
9827 char c[sizeof (long int)];
9828 } u;
9829 u.l = 1;
9830 return u.c[sizeof (long int) - 1] == 1;
9833 return 0;
9835 _ACEOF
9836 if ac_fn_cxx_try_run "$LINENO"; then :
9837 ac_cv_c_bigendian=no
9838 else
9839 ac_cv_c_bigendian=yes
9841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9842 conftest.$ac_objext conftest.beam conftest.$ac_ext
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9848 $as_echo "$ac_cv_c_bigendian" >&6; }
9849 case $ac_cv_c_bigendian in #(
9850 yes)
9851 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9852 ;; #(
9854 ;; #(
9855 universal)
9857 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9859 ;; #(
9861 as_fn_error $? "unknown endianness
9862 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9863 esac
9866 # ----------------------
9867 # Checks for C++ headers
9868 # ----------------------
9870 ac_ext=cpp
9871 ac_cpp='$CXXCPP $CPPFLAGS'
9872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9876 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9877 if test -z "$CXXCPP"; then
9878 if ${ac_cv_prog_CXXCPP+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 # Double quotes because CXXCPP needs to be expanded
9882 for CXXCPP in "$CXX -E" "/lib/cpp"
9884 ac_preproc_ok=false
9885 for ac_cxx_preproc_warn_flag in '' yes
9887 # Use a header file that comes with gcc, so configuring glibc
9888 # with a fresh cross-compiler works.
9889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9890 # <limits.h> exists even on freestanding compilers.
9891 # On the NeXT, cc -E runs the code through the compiler's parser,
9892 # not just through cpp. "Syntax error" is here to catch this case.
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895 #ifdef __STDC__
9896 # include <limits.h>
9897 #else
9898 # include <assert.h>
9899 #endif
9900 Syntax error
9901 _ACEOF
9902 if ac_fn_cxx_try_cpp "$LINENO"; then :
9904 else
9905 # Broken: fails on valid input.
9906 continue
9908 rm -f conftest.err conftest.i conftest.$ac_ext
9910 # OK, works on sane cases. Now check whether nonexistent headers
9911 # can be detected and how.
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 #include <ac_nonexistent.h>
9915 _ACEOF
9916 if ac_fn_cxx_try_cpp "$LINENO"; then :
9917 # Broken: success on invalid input.
9918 continue
9919 else
9920 # Passes both tests.
9921 ac_preproc_ok=:
9922 break
9924 rm -f conftest.err conftest.i conftest.$ac_ext
9926 done
9927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9928 rm -f conftest.i conftest.err conftest.$ac_ext
9929 if $ac_preproc_ok; then :
9930 break
9933 done
9934 ac_cv_prog_CXXCPP=$CXXCPP
9937 CXXCPP=$ac_cv_prog_CXXCPP
9938 else
9939 ac_cv_prog_CXXCPP=$CXXCPP
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9942 $as_echo "$CXXCPP" >&6; }
9943 ac_preproc_ok=false
9944 for ac_cxx_preproc_warn_flag in '' yes
9946 # Use a header file that comes with gcc, so configuring glibc
9947 # with a fresh cross-compiler works.
9948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9949 # <limits.h> exists even on freestanding compilers.
9950 # On the NeXT, cc -E runs the code through the compiler's parser,
9951 # not just through cpp. "Syntax error" is here to catch this case.
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9954 #ifdef __STDC__
9955 # include <limits.h>
9956 #else
9957 # include <assert.h>
9958 #endif
9959 Syntax error
9960 _ACEOF
9961 if ac_fn_cxx_try_cpp "$LINENO"; then :
9963 else
9964 # Broken: fails on valid input.
9965 continue
9967 rm -f conftest.err conftest.i conftest.$ac_ext
9969 # OK, works on sane cases. Now check whether nonexistent headers
9970 # can be detected and how.
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 #include <ac_nonexistent.h>
9974 _ACEOF
9975 if ac_fn_cxx_try_cpp "$LINENO"; then :
9976 # Broken: success on invalid input.
9977 continue
9978 else
9979 # Passes both tests.
9980 ac_preproc_ok=:
9981 break
9983 rm -f conftest.err conftest.i conftest.$ac_ext
9985 done
9986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9987 rm -f conftest.i conftest.err conftest.$ac_ext
9988 if $ac_preproc_ok; then :
9990 else
9991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9994 See \`config.log' for more details" >&5
9995 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9996 See \`config.log' for more details" >&2;}; }
9999 ac_ext=cpp
10000 ac_cpp='$CXXCPP $CPPFLAGS'
10001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10006 for ac_header in unordered_map
10007 do :
10008 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
10009 if test "x$ac_cv_header_unordered_map" = xyes; then :
10010 cat >>confdefs.h <<_ACEOF
10011 #define HAVE_UNORDERED_MAP 1
10012 _ACEOF
10015 done
10017 for ac_header in tr1/unordered_map
10018 do :
10019 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
10020 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
10021 cat >>confdefs.h <<_ACEOF
10022 #define HAVE_TR1_UNORDERED_MAP 1
10023 _ACEOF
10026 done
10028 for ac_header in ext/hash_map
10029 do :
10030 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
10031 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
10032 cat >>confdefs.h <<_ACEOF
10033 #define HAVE_EXT_HASH_MAP 1
10034 _ACEOF
10037 done
10040 # --------
10041 # Dependency checking.
10042 # --------
10044 rm -rf .tst 2>/dev/null
10045 mkdir .tst 2>/dev/null
10046 if test -d .tst; then
10047 am__leading_dot=.
10048 else
10049 am__leading_dot=_
10051 rmdir .tst 2>/dev/null
10053 DEPDIR="${am__leading_dot}deps"
10055 ac_config_commands="$ac_config_commands depdir"
10058 ac_config_commands="$ac_config_commands gccdepdir"
10061 depcc="$CXX" am_compiler_list=
10063 am_depcomp=$ac_aux_dir/depcomp
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10065 $as_echo_n "checking dependency style of $depcc... " >&6; }
10066 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 if test -f "$am_depcomp"; then
10070 # We make a subdir and do the tests there. Otherwise we can end up
10071 # making bogus files that we don't know about and never remove. For
10072 # instance it was reported that on HP-UX the gcc test will end up
10073 # making a dummy file named `D' -- because `-MD' means `put the output
10074 # in D'.
10075 mkdir conftest.dir
10076 # Copy depcomp to subdir because otherwise we won't find it if we're
10077 # using a relative directory.
10078 cp "$am_depcomp" conftest.dir
10079 cd conftest.dir
10080 # We will build objects and dependencies in a subdirectory because
10081 # it helps to detect inapplicable dependency modes. For instance
10082 # both Tru64's cc and ICC support -MD to output dependencies as a
10083 # side effect of compilation, but ICC will put the dependencies in
10084 # the current directory while Tru64 will put them in the object
10085 # directory.
10086 mkdir sub
10088 am_cv_CXX_dependencies_compiler_type=none
10089 if test "$am_compiler_list" = ""; then
10090 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10092 for depmode in $am_compiler_list; do
10093 if test $depmode = none; then break; fi
10095 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10096 # Setup a source with many dependencies, because some compilers
10097 # like to wrap large dependency lists on column 80 (with \), and
10098 # we should not choose a depcomp mode which is confused by this.
10100 # We need to recreate these files for each test, as the compiler may
10101 # overwrite some of them when testing with obscure command lines.
10102 # This happens at least with the AIX C compiler.
10103 : > sub/conftest.c
10104 for i in 1 2 3 4 5 6; do
10105 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10106 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10107 # Solaris 8's {/usr,}/bin/sh.
10108 touch sub/conftst$i.h
10109 done
10110 echo "include sub/conftest.Po" > confmf
10112 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10113 # mode. It turns out that the SunPro C++ compiler does not properly
10114 # handle `-M -o', and we need to detect this.
10115 depcmd="depmode=$depmode \
10116 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10117 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10118 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10119 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10120 if env $depcmd > conftest.err 2>&1 &&
10121 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10122 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10123 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10124 # icc doesn't choke on unknown options, it will just issue warnings
10125 # or remarks (even with -Werror). So we grep stderr for any message
10126 # that says an option was ignored or not supported.
10127 # When given -MP, icc 7.0 and 7.1 complain thusly:
10128 # icc: Command line warning: ignoring option '-M'; no argument required
10129 # The diagnosis changed in icc 8.0:
10130 # icc: Command line remark: option '-MP' not supported
10131 if (grep 'ignoring option' conftest.err ||
10132 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10133 am_cv_CXX_dependencies_compiler_type=$depmode
10134 $as_echo "$as_me:$LINENO: success" >&5
10135 break
10138 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10139 sed -e 's/^/| /' < conftest.err >&5
10140 done
10142 cd ..
10143 rm -rf conftest.dir
10144 else
10145 am_cv_CXX_dependencies_compiler_type=none
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10150 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10151 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10152 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10153 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10158 # --------
10159 # UNSORTED
10160 # --------
10163 # These libraries may be used by collect2.
10164 # We may need a special search path to get them linked.
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10166 $as_echo_n "checking for collect2 libraries... " >&6; }
10167 if ${gcc_cv_collect2_libs+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 save_LIBS="$LIBS"
10171 for libs in '' -lld -lmld \
10172 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10173 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10175 LIBS="$libs"
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10179 /* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10182 #ifdef __cplusplus
10183 extern "C"
10184 #endif
10185 char ldopen ();
10187 main ()
10189 return ldopen ();
10191 return 0;
10193 _ACEOF
10194 if ac_fn_cxx_try_link "$LINENO"; then :
10195 gcc_cv_collect2_libs="$libs"; break
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 done
10200 LIBS="$save_LIBS"
10201 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10204 $as_echo "$gcc_cv_collect2_libs" >&6; }
10205 case $gcc_cv_collect2_libs in
10206 "none required") ;;
10207 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10208 esac
10211 # When building Ada code on Alpha, we need exc_resume which is usually in
10212 # -lexc. So test for it.
10213 save_LIBS="$LIBS"
10214 LIBS=
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10216 $as_echo_n "checking for library containing exc_resume... " >&6; }
10217 if ${ac_cv_search_exc_resume+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 ac_func_search_save_LIBS=$LIBS
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10224 /* Override any GCC internal prototype to avoid an error.
10225 Use char because int might match the return type of a GCC
10226 builtin and then its argument prototype would still apply. */
10227 #ifdef __cplusplus
10228 extern "C"
10229 #endif
10230 char exc_resume ();
10232 main ()
10234 return exc_resume ();
10236 return 0;
10238 _ACEOF
10239 for ac_lib in '' exc; do
10240 if test -z "$ac_lib"; then
10241 ac_res="none required"
10242 else
10243 ac_res=-l$ac_lib
10244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10246 if ac_fn_cxx_try_link "$LINENO"; then :
10247 ac_cv_search_exc_resume=$ac_res
10249 rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext
10251 if ${ac_cv_search_exc_resume+:} false; then :
10252 break
10254 done
10255 if ${ac_cv_search_exc_resume+:} false; then :
10257 else
10258 ac_cv_search_exc_resume=no
10260 rm conftest.$ac_ext
10261 LIBS=$ac_func_search_save_LIBS
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10264 $as_echo "$ac_cv_search_exc_resume" >&6; }
10265 ac_res=$ac_cv_search_exc_resume
10266 if test "$ac_res" != no; then :
10267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10271 GNAT_LIBEXC="$LIBS"
10272 LIBS="$save_LIBS"
10275 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10276 save_LIBS="$LIBS"
10277 LIBS=
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10279 $as_echo_n "checking for library containing kstat_open... " >&6; }
10280 if ${ac_cv_search_kstat_open+:} false; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 ac_func_search_save_LIBS=$LIBS
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10287 /* Override any GCC internal prototype to avoid an error.
10288 Use char because int might match the return type of a GCC
10289 builtin and then its argument prototype would still apply. */
10290 #ifdef __cplusplus
10291 extern "C"
10292 #endif
10293 char kstat_open ();
10295 main ()
10297 return kstat_open ();
10299 return 0;
10301 _ACEOF
10302 for ac_lib in '' kstat; do
10303 if test -z "$ac_lib"; then
10304 ac_res="none required"
10305 else
10306 ac_res=-l$ac_lib
10307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10309 if ac_fn_cxx_try_link "$LINENO"; then :
10310 ac_cv_search_kstat_open=$ac_res
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext
10314 if ${ac_cv_search_kstat_open+:} false; then :
10315 break
10317 done
10318 if ${ac_cv_search_kstat_open+:} false; then :
10320 else
10321 ac_cv_search_kstat_open=no
10323 rm conftest.$ac_ext
10324 LIBS=$ac_func_search_save_LIBS
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10327 $as_echo "$ac_cv_search_kstat_open" >&6; }
10328 ac_res=$ac_cv_search_kstat_open
10329 if test "$ac_res" != no; then :
10330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10334 EXTRA_GCC_LIBS="$LIBS"
10335 LIBS="$save_LIBS"
10338 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10339 # C++ needs those for libcody.
10340 save_LIBS="$LIBS"
10341 LIBS=
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10344 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10345 if ${ac_cv_search_gethostbyname+:} false; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 ac_func_search_save_LIBS=$LIBS
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10352 /* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10355 #ifdef __cplusplus
10356 extern "C"
10357 #endif
10358 char gethostbyname ();
10360 main ()
10362 return gethostbyname ();
10364 return 0;
10366 _ACEOF
10367 for ac_lib in '' nsl; do
10368 if test -z "$ac_lib"; then
10369 ac_res="none required"
10370 else
10371 ac_res=-l$ac_lib
10372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10374 if ac_fn_cxx_try_link "$LINENO"; then :
10375 ac_cv_search_gethostbyname=$ac_res
10377 rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext
10379 if ${ac_cv_search_gethostbyname+:} false; then :
10380 break
10382 done
10383 if ${ac_cv_search_gethostbyname+:} false; then :
10385 else
10386 ac_cv_search_gethostbyname=no
10388 rm conftest.$ac_ext
10389 LIBS=$ac_func_search_save_LIBS
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10392 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10393 ac_res=$ac_cv_search_gethostbyname
10394 if test "$ac_res" != no; then :
10395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10400 $as_echo_n "checking for library containing socket... " >&6; }
10401 if ${ac_cv_search_socket+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 ac_func_search_save_LIBS=$LIBS
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10408 /* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10411 #ifdef __cplusplus
10412 extern "C"
10413 #endif
10414 char socket ();
10416 main ()
10418 return socket ();
10420 return 0;
10422 _ACEOF
10423 for ac_lib in '' socket; do
10424 if test -z "$ac_lib"; then
10425 ac_res="none required"
10426 else
10427 ac_res=-l$ac_lib
10428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10430 if ac_fn_cxx_try_link "$LINENO"; then :
10431 ac_cv_search_socket=$ac_res
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext
10435 if ${ac_cv_search_socket+:} false; then :
10436 break
10438 done
10439 if ${ac_cv_search_socket+:} false; then :
10441 else
10442 ac_cv_search_socket=no
10444 rm conftest.$ac_ext
10445 LIBS=$ac_func_search_save_LIBS
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10448 $as_echo "$ac_cv_search_socket" >&6; }
10449 ac_res=$ac_cv_search_socket
10450 if test "$ac_res" != no; then :
10451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10453 else
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10456 $as_echo_n "checking for socket in -lsocket... " >&6; }
10457 if ${ac_cv_lib_socket_socket+:} false; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 ac_check_lib_save_LIBS=$LIBS
10461 LIBS="-lsocket -lnsl $LIBS"
10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463 /* end confdefs.h. */
10465 /* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10468 #ifdef __cplusplus
10469 extern "C"
10470 #endif
10471 char socket ();
10473 main ()
10475 return socket ();
10477 return 0;
10479 _ACEOF
10480 if ac_fn_cxx_try_link "$LINENO"; then :
10481 ac_cv_lib_socket_socket=yes
10482 else
10483 ac_cv_lib_socket_socket=no
10485 rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10487 LIBS=$ac_check_lib_save_LIBS
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10490 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10491 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10492 LIBS="-lsocket -lnsl $LIBS"
10498 NETLIBS="$LIBS"
10499 LIBS="$save_LIBS"
10502 # Some systems put ldexp and frexp in libm instead of libc; assume
10503 # they're both in the same place. jcf-dump needs them.
10504 save_LIBS="$LIBS"
10505 LIBS=
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10507 $as_echo_n "checking for library containing ldexp... " >&6; }
10508 if ${ac_cv_search_ldexp+:} false; then :
10509 $as_echo_n "(cached) " >&6
10510 else
10511 ac_func_search_save_LIBS=$LIBS
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10515 /* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10518 #ifdef __cplusplus
10519 extern "C"
10520 #endif
10521 char ldexp ();
10523 main ()
10525 return ldexp ();
10527 return 0;
10529 _ACEOF
10530 for ac_lib in '' m; do
10531 if test -z "$ac_lib"; then
10532 ac_res="none required"
10533 else
10534 ac_res=-l$ac_lib
10535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10537 if ac_fn_cxx_try_link "$LINENO"; then :
10538 ac_cv_search_ldexp=$ac_res
10540 rm -f core conftest.err conftest.$ac_objext \
10541 conftest$ac_exeext
10542 if ${ac_cv_search_ldexp+:} false; then :
10543 break
10545 done
10546 if ${ac_cv_search_ldexp+:} false; then :
10548 else
10549 ac_cv_search_ldexp=no
10551 rm conftest.$ac_ext
10552 LIBS=$ac_func_search_save_LIBS
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10555 $as_echo "$ac_cv_search_ldexp" >&6; }
10556 ac_res=$ac_cv_search_ldexp
10557 if test "$ac_res" != no; then :
10558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10562 LDEXP_LIB="$LIBS"
10563 LIBS="$save_LIBS"
10566 # Some systems need dlopen
10567 save_LIBS="$LIBS"
10568 LIBS=
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10570 $as_echo_n "checking for library containing dlopen... " >&6; }
10571 if ${ac_cv_search_dlopen+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574 ac_func_search_save_LIBS=$LIBS
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10578 /* Override any GCC internal prototype to avoid an error.
10579 Use char because int might match the return type of a GCC
10580 builtin and then its argument prototype would still apply. */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 char dlopen ();
10586 main ()
10588 return dlopen ();
10590 return 0;
10592 _ACEOF
10593 for ac_lib in '' dl; do
10594 if test -z "$ac_lib"; then
10595 ac_res="none required"
10596 else
10597 ac_res=-l$ac_lib
10598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10600 if ac_fn_cxx_try_link "$LINENO"; then :
10601 ac_cv_search_dlopen=$ac_res
10603 rm -f core conftest.err conftest.$ac_objext \
10604 conftest$ac_exeext
10605 if ${ac_cv_search_dlopen+:} false; then :
10606 break
10608 done
10609 if ${ac_cv_search_dlopen+:} false; then :
10611 else
10612 ac_cv_search_dlopen=no
10614 rm conftest.$ac_ext
10615 LIBS=$ac_func_search_save_LIBS
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10618 $as_echo "$ac_cv_search_dlopen" >&6; }
10619 ac_res=$ac_cv_search_dlopen
10620 if test "$ac_res" != no; then :
10621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10625 DL_LIB="$LIBS"
10626 LIBS="$save_LIBS"
10629 # Use <inttypes.h> only if it exists,
10630 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10631 # PRId64
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10633 $as_echo_n "checking for inttypes.h... " >&6; }
10634 if ${gcc_cv_header_inttypes_h+:} false; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h. */
10639 #define __STDC_FORMAT_MACROS
10640 #include <sys/types.h>
10641 #include <inttypes.h>
10643 main ()
10645 intmax_t i = -1;
10646 #ifndef PRId64
10647 choke me
10648 #endif
10650 return 0;
10652 _ACEOF
10653 if ac_fn_cxx_try_compile "$LINENO"; then :
10654 gcc_cv_header_inttypes_h=yes
10655 else
10656 gcc_cv_header_inttypes_h=no
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10662 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10663 if test $gcc_cv_header_inttypes_h = yes; then
10665 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10669 # Look for the ZSTD package.
10670 ZSTD_INCLUDE=
10671 ZSTD_LIB=
10674 ZSTD_CPPFLAGS=
10675 ZSTD_LDFLAGS=
10679 # Check whether --with-zstd was given.
10680 if test "${with_zstd+set}" = set; then :
10681 withval=$with_zstd;
10685 # Check whether --with-zstd-include was given.
10686 if test "${with_zstd_include+set}" = set; then :
10687 withval=$with_zstd_include;
10691 # Check whether --with-zstd-lib was given.
10692 if test "${with_zstd_lib+set}" = set; then :
10693 withval=$with_zstd_lib;
10696 case "x$with_zstd" in
10697 x) ;;
10698 xno)
10699 ZSTD_INCLUDE=
10700 ZSTD_LIB=
10702 *) ZSTD_INCLUDE=$with_zstd/include
10703 ZSTD_LIB=$with_zstd/lib
10705 esac
10707 if test "x$with_zstd" != xno; then
10708 if test "x$with_zstd_include" != x; then
10709 ZSTD_INCLUDE=$with_zstd_include
10711 if test "x$with_zstd_lib" != x; then
10712 ZSTD_LIB=$with_zstd_lib
10714 if test "x$ZSTD_INCLUDE" != x \
10715 && test "x$ZSTD_INCLUDE" != xno; then
10716 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10718 if test "x$ZSTD_LIB" != x \
10719 && test "x$ZSTD_LIB" != xno; then
10720 ZSTD_LDFLAGS=-L$ZSTD_LIB
10723 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10724 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10726 # LTO can use zstd compression algorithm
10727 save_LIBS="$LIBS"
10728 LIBS=
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10730 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10731 if ${ac_cv_search_ZSTD_compress+:} false; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 ac_func_search_save_LIBS=$LIBS
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 char ZSTD_compress ();
10746 main ()
10748 return ZSTD_compress ();
10750 return 0;
10752 _ACEOF
10753 for ac_lib in '' zstd; do
10754 if test -z "$ac_lib"; then
10755 ac_res="none required"
10756 else
10757 ac_res=-l$ac_lib
10758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10760 if ac_fn_cxx_try_link "$LINENO"; then :
10761 ac_cv_search_ZSTD_compress=$ac_res
10763 rm -f core conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext
10765 if ${ac_cv_search_ZSTD_compress+:} false; then :
10766 break
10768 done
10769 if ${ac_cv_search_ZSTD_compress+:} false; then :
10771 else
10772 ac_cv_search_ZSTD_compress=no
10774 rm conftest.$ac_ext
10775 LIBS=$ac_func_search_save_LIBS
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10778 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10779 ac_res=$ac_cv_search_ZSTD_compress
10780 if test "$ac_res" != no; then :
10781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10783 else
10784 gcc_cv_header_zstd_h=no
10787 ZSTD_LIB="$LIBS"
10788 LIBS="$save_LIBS"
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10792 $as_echo_n "checking for zstd.h... " >&6; }
10793 if ${gcc_cv_header_zstd_h+:} false; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 # We require version 1.3.0 or later. This is the first version that has
10797 # ZSTD_getFrameContentSize.
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10800 #include <zstd.h>
10801 #if ZSTD_VERSION_NUMBER < 10300
10802 #error "need zstd 1.3.0 or better"
10803 #endif
10805 main ()
10809 return 0;
10811 _ACEOF
10812 if ac_fn_cxx_try_compile "$LINENO"; then :
10813 gcc_cv_header_zstd_h=yes
10814 else
10815 gcc_cv_header_zstd_h=no
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10821 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10822 if test $gcc_cv_header_zstd_h = yes; then
10824 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10826 elif test "x$with_zstd" != x; then
10827 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10833 for ac_func in times clock kill getrlimit setrlimit atoq \
10834 popen sysconf strsignal getrusage nl_langinfo \
10835 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10836 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise mallinfo mallinfo2 fstatat getauxval
10837 do :
10838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10839 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10840 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10841 cat >>confdefs.h <<_ACEOF
10842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10843 _ACEOF
10846 done
10849 if test x$ac_cv_func_mbstowcs = xyes; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10851 $as_echo_n "checking whether mbstowcs works... " >&6; }
10852 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 if test "$cross_compiling" = yes; then :
10856 gcc_cv_func_mbstowcs_works=yes
10857 else
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 #include <stdlib.h>
10861 int main()
10863 mbstowcs(0, "", 0);
10864 return 0;
10866 _ACEOF
10867 if ac_fn_cxx_try_run "$LINENO"; then :
10868 gcc_cv_func_mbstowcs_works=yes
10869 else
10870 gcc_cv_func_mbstowcs_works=no
10872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10873 conftest.$ac_objext conftest.beam conftest.$ac_ext
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10878 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10879 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10881 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10886 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10887 if test "x$ac_cv_type_ssize_t" = xyes; then :
10889 else
10891 cat >>confdefs.h <<_ACEOF
10892 #define ssize_t int
10893 _ACEOF
10897 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10898 if test "x$ac_cv_type_caddr_t" = xyes; then :
10900 else
10902 cat >>confdefs.h <<_ACEOF
10903 #define caddr_t char *
10904 _ACEOF
10908 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10910 if test "x$ac_cv_type_sighander_t" = xyes; then :
10912 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10918 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10919 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10920 gcc_header_sys_mman_h=yes
10921 else
10922 gcc_header_sys_mman_h=no
10925 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10926 if test "x$ac_cv_func_mmap" = xyes; then :
10927 gcc_func_mmap=yes
10928 else
10929 gcc_func_mmap=no
10932 if test "$gcc_header_sys_mman_h" != yes \
10933 || test "$gcc_func_mmap" != yes; then
10934 gcc_cv_func_mmap_file=no
10935 gcc_cv_func_mmap_dev_zero=no
10936 gcc_cv_func_mmap_anon=no
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10939 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10940 if ${gcc_cv_func_mmap_file+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 # Add a system to this blacklist if
10944 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10945 # memory area containing the same data that you'd get if you applied
10946 # read() to the same fd. The only system known to have a problem here
10947 # is VMS, where text files have record structure.
10948 case "$host_os" in
10949 *vms* | ultrix*)
10950 gcc_cv_func_mmap_file=no ;;
10952 gcc_cv_func_mmap_file=yes;;
10953 esac
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10956 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10958 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10959 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 # Add a system to this blacklist if it has mmap() but /dev/zero
10963 # does not exist, or if mmapping /dev/zero does not give anonymous
10964 # zeroed pages with both the following properties:
10965 # 1. If you map N consecutive pages in with one call, and then
10966 # unmap any subset of those pages, the pages that were not
10967 # explicitly unmapped remain accessible.
10968 # 2. If you map two adjacent blocks of memory and then unmap them
10969 # both at once, they must both go away.
10970 # Systems known to be in this category are Windows (all variants),
10971 # VMS, and Darwin.
10972 case "$host_os" in
10973 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10974 gcc_cv_func_mmap_dev_zero=no ;;
10976 gcc_cv_func_mmap_dev_zero=yes;;
10977 esac
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10980 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10982 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10984 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10985 if ${gcc_cv_decl_map_anon+:} false; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990 #include <sys/types.h>
10991 #include <sys/mman.h>
10992 #include <unistd.h>
10994 #ifndef MAP_ANONYMOUS
10995 #define MAP_ANONYMOUS MAP_ANON
10996 #endif
10999 main ()
11001 int n = MAP_ANONYMOUS;
11003 return 0;
11005 _ACEOF
11006 if ac_fn_cxx_try_compile "$LINENO"; then :
11007 gcc_cv_decl_map_anon=yes
11008 else
11009 gcc_cv_decl_map_anon=no
11011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
11014 $as_echo "$gcc_cv_decl_map_anon" >&6; }
11016 if test $gcc_cv_decl_map_anon = no; then
11017 gcc_cv_func_mmap_anon=no
11018 else
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11020 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11021 if ${gcc_cv_func_mmap_anon+:} false; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11025 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11026 # doesn't give anonymous zeroed pages with the same properties listed
11027 # above for use of /dev/zero.
11028 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11029 case "$host_os" in
11030 *vms* | cygwin* | pe | mingw* | sco* | udk* )
11031 gcc_cv_func_mmap_anon=no ;;
11033 gcc_cv_func_mmap_anon=yes;;
11034 esac
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
11037 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
11041 if test $gcc_cv_func_mmap_file = yes; then
11043 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11046 if test $gcc_cv_func_mmap_dev_zero = yes; then
11048 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11051 if test $gcc_cv_func_mmap_anon = yes; then
11053 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11058 case "${host}" in
11059 *-*-*vms*)
11060 # Under VMS, vfork works very differently than on Unix. The standard test
11061 # won't work, and it isn't easily adaptable. It makes more sense to
11062 # just force it.
11063 ac_cv_func_vfork_works=yes
11065 esac
11066 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11067 if test "x$ac_cv_type_pid_t" = xyes; then :
11069 else
11071 cat >>confdefs.h <<_ACEOF
11072 #define pid_t int
11073 _ACEOF
11077 for ac_header in vfork.h
11078 do :
11079 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11080 if test "x$ac_cv_header_vfork_h" = xyes; then :
11081 cat >>confdefs.h <<_ACEOF
11082 #define HAVE_VFORK_H 1
11083 _ACEOF
11086 done
11088 for ac_func in fork vfork
11089 do :
11090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11091 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11092 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11093 cat >>confdefs.h <<_ACEOF
11094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11095 _ACEOF
11098 done
11100 if test "x$ac_cv_func_fork" = xyes; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11102 $as_echo_n "checking for working fork... " >&6; }
11103 if ${ac_cv_func_fork_works+:} false; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 if test "$cross_compiling" = yes; then :
11107 ac_cv_func_fork_works=cross
11108 else
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11111 $ac_includes_default
11113 main ()
11116 /* By Ruediger Kuhlmann. */
11117 return fork () < 0;
11120 return 0;
11122 _ACEOF
11123 if ac_fn_cxx_try_run "$LINENO"; then :
11124 ac_cv_func_fork_works=yes
11125 else
11126 ac_cv_func_fork_works=no
11128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11129 conftest.$ac_objext conftest.beam conftest.$ac_ext
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11134 $as_echo "$ac_cv_func_fork_works" >&6; }
11136 else
11137 ac_cv_func_fork_works=$ac_cv_func_fork
11139 if test "x$ac_cv_func_fork_works" = xcross; then
11140 case $host in
11141 *-*-amigaos* | *-*-msdosdjgpp*)
11142 # Override, as these systems have only a dummy fork() stub
11143 ac_cv_func_fork_works=no
11146 ac_cv_func_fork_works=yes
11148 esac
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11150 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11152 ac_cv_func_vfork_works=$ac_cv_func_vfork
11153 if test "x$ac_cv_func_vfork" = xyes; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11155 $as_echo_n "checking for working vfork... " >&6; }
11156 if ${ac_cv_func_vfork_works+:} false; then :
11157 $as_echo_n "(cached) " >&6
11158 else
11159 if test "$cross_compiling" = yes; then :
11160 ac_cv_func_vfork_works=cross
11161 else
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11164 /* Thanks to Paul Eggert for this test. */
11165 $ac_includes_default
11166 #include <sys/wait.h>
11167 #ifdef HAVE_VFORK_H
11168 # include <vfork.h>
11169 #endif
11170 /* On some sparc systems, changes by the child to local and incoming
11171 argument registers are propagated back to the parent. The compiler
11172 is told about this with #include <vfork.h>, but some compilers
11173 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11174 static variable whose address is put into a register that is
11175 clobbered by the vfork. */
11176 static void
11177 #ifdef __cplusplus
11178 sparc_address_test (int arg)
11179 # else
11180 sparc_address_test (arg) int arg;
11181 #endif
11183 static pid_t child;
11184 if (!child) {
11185 child = vfork ();
11186 if (child < 0) {
11187 perror ("vfork");
11188 _exit(2);
11190 if (!child) {
11191 arg = getpid();
11192 write(-1, "", 0);
11193 _exit (arg);
11199 main ()
11201 pid_t parent = getpid ();
11202 pid_t child;
11204 sparc_address_test (0);
11206 child = vfork ();
11208 if (child == 0) {
11209 /* Here is another test for sparc vfork register problems. This
11210 test uses lots of local variables, at least as many local
11211 variables as main has allocated so far including compiler
11212 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11213 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11214 reuse the register of parent for one of the local variables,
11215 since it will think that parent can't possibly be used any more
11216 in this routine. Assigning to the local variable will thus
11217 munge parent in the parent process. */
11218 pid_t
11219 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11220 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11221 /* Convince the compiler that p..p7 are live; otherwise, it might
11222 use the same hardware register for all 8 local variables. */
11223 if (p != p1 || p != p2 || p != p3 || p != p4
11224 || p != p5 || p != p6 || p != p7)
11225 _exit(1);
11227 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11228 from child file descriptors. If the child closes a descriptor
11229 before it execs or exits, this munges the parent's descriptor
11230 as well. Test for this by closing stdout in the child. */
11231 _exit(close(fileno(stdout)) != 0);
11232 } else {
11233 int status;
11234 struct stat st;
11236 while (wait(&status) != child)
11238 return (
11239 /* Was there some problem with vforking? */
11240 child < 0
11242 /* Did the child fail? (This shouldn't happen.) */
11243 || status
11245 /* Did the vfork/compiler bug occur? */
11246 || parent != getpid()
11248 /* Did the file descriptor bug occur? */
11249 || fstat(fileno(stdout), &st) != 0
11253 _ACEOF
11254 if ac_fn_cxx_try_run "$LINENO"; then :
11255 ac_cv_func_vfork_works=yes
11256 else
11257 ac_cv_func_vfork_works=no
11259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11260 conftest.$ac_objext conftest.beam conftest.$ac_ext
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11265 $as_echo "$ac_cv_func_vfork_works" >&6; }
11268 if test "x$ac_cv_func_fork_works" = xcross; then
11269 ac_cv_func_vfork_works=$ac_cv_func_vfork
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11271 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11274 if test "x$ac_cv_func_vfork_works" = xyes; then
11276 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11278 else
11280 $as_echo "#define vfork fork" >>confdefs.h
11283 if test "x$ac_cv_func_fork_works" = xyes; then
11285 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11291 if test "X$prefix" = "XNONE"; then
11292 acl_final_prefix="$ac_default_prefix"
11293 else
11294 acl_final_prefix="$prefix"
11296 if test "X$exec_prefix" = "XNONE"; then
11297 acl_final_exec_prefix='${prefix}'
11298 else
11299 acl_final_exec_prefix="$exec_prefix"
11301 acl_save_prefix="$prefix"
11302 prefix="$acl_final_prefix"
11303 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11304 prefix="$acl_save_prefix"
11307 # Check whether --with-gnu-ld was given.
11308 if test "${with_gnu_ld+set}" = set; then :
11309 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11310 else
11311 with_gnu_ld=no
11314 # Prepare PATH_SEPARATOR.
11315 # The user is always right.
11316 if test "${PATH_SEPARATOR+set}" != set; then
11317 echo "#! /bin/sh" >conf$$.sh
11318 echo "exit 0" >>conf$$.sh
11319 chmod +x conf$$.sh
11320 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11321 PATH_SEPARATOR=';'
11322 else
11323 PATH_SEPARATOR=:
11325 rm -f conf$$.sh
11327 ac_prog=ld
11328 if test "$GCC" = yes; then
11329 # Check if gcc -print-prog-name=ld gives a path.
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11331 $as_echo_n "checking for ld used by GCC... " >&6; }
11332 case $host in
11333 *-*-mingw*)
11334 # gcc leaves a trailing carriage return which upsets mingw
11335 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11337 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11338 esac
11339 case $ac_prog in
11340 # Accept absolute paths.
11341 [\\/]* | [A-Za-z]:[\\/]*)
11342 re_direlt='/[^/][^/]*/\.\./'
11343 # Canonicalize the path of ld
11344 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11345 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11346 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11347 done
11348 test -z "$LD" && LD="$ac_prog"
11351 # If it fails, then pretend we aren't using GCC.
11352 ac_prog=ld
11355 # If it is relative, then search for the first ld in PATH.
11356 with_gnu_ld=unknown
11358 esac
11359 elif test "$with_gnu_ld" = yes; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11361 $as_echo_n "checking for GNU ld... " >&6; }
11362 else
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11364 $as_echo_n "checking for non-GNU ld... " >&6; }
11366 if ${acl_cv_path_LD+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 if test -z "$LD"; then
11370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11371 for ac_dir in $PATH; do
11372 test -z "$ac_dir" && ac_dir=.
11373 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11374 acl_cv_path_LD="$ac_dir/$ac_prog"
11375 # Check to see if the program is GNU ld. I'd rather use --version,
11376 # but apparently some GNU ld's only accept -v.
11377 # Break only if it was the GNU/non-GNU ld that we prefer.
11378 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11379 test "$with_gnu_ld" != no && break
11380 else
11381 test "$with_gnu_ld" != yes && break
11384 done
11385 IFS="$ac_save_ifs"
11386 else
11387 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11391 LD="$acl_cv_path_LD"
11392 if test -n "$LD"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11394 $as_echo "$LD" >&6; }
11395 else
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11399 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11401 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11402 if ${acl_cv_prog_gnu_ld+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11406 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11407 acl_cv_prog_gnu_ld=yes
11408 else
11409 acl_cv_prog_gnu_ld=no
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11413 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11414 with_gnu_ld=$acl_cv_prog_gnu_ld
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11419 $as_echo_n "checking for shared library run path origin... " >&6; }
11420 if ${acl_cv_rpath+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11424 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11425 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11426 . ./conftest.sh
11427 rm -f ./conftest.sh
11428 acl_cv_rpath=done
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11432 $as_echo "$acl_cv_rpath" >&6; }
11433 wl="$acl_cv_wl"
11434 libext="$acl_cv_libext"
11435 shlibext="$acl_cv_shlibext"
11436 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11437 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11438 hardcode_direct="$acl_cv_hardcode_direct"
11439 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11440 # Check whether --enable-rpath was given.
11441 if test "${enable_rpath+set}" = set; then :
11442 enableval=$enable_rpath; :
11443 else
11444 enable_rpath=yes
11454 use_additional=yes
11456 acl_save_prefix="$prefix"
11457 prefix="$acl_final_prefix"
11458 acl_save_exec_prefix="$exec_prefix"
11459 exec_prefix="$acl_final_exec_prefix"
11461 eval additional_includedir=\"$includedir\"
11462 eval additional_libdir=\"$libdir\"
11464 exec_prefix="$acl_save_exec_prefix"
11465 prefix="$acl_save_prefix"
11468 # Check whether --with-libiconv-prefix was given.
11469 if test "${with_libiconv_prefix+set}" = set; then :
11470 withval=$with_libiconv_prefix;
11471 if test "X$withval" = "Xno"; then
11472 use_additional=no
11473 else
11474 if test "X$withval" = "X"; then
11476 acl_save_prefix="$prefix"
11477 prefix="$acl_final_prefix"
11478 acl_save_exec_prefix="$exec_prefix"
11479 exec_prefix="$acl_final_exec_prefix"
11481 eval additional_includedir=\"$includedir\"
11482 eval additional_libdir=\"$libdir\"
11484 exec_prefix="$acl_save_exec_prefix"
11485 prefix="$acl_save_prefix"
11487 else
11488 additional_includedir="$withval/include"
11489 additional_libdir="$withval/lib"
11496 # Check whether --with-libiconv-type was given.
11497 if test "${with_libiconv_type+set}" = set; then :
11498 withval=$with_libiconv_type; with_libiconv_type=$withval
11499 else
11500 with_libiconv_type=auto
11503 lib_type=`eval echo \$with_libiconv_type`
11505 LIBICONV=
11506 LTLIBICONV=
11507 INCICONV=
11508 rpathdirs=
11509 ltrpathdirs=
11510 names_already_handled=
11511 names_next_round='iconv '
11512 while test -n "$names_next_round"; do
11513 names_this_round="$names_next_round"
11514 names_next_round=
11515 for name in $names_this_round; do
11516 already_handled=
11517 for n in $names_already_handled; do
11518 if test "$n" = "$name"; then
11519 already_handled=yes
11520 break
11522 done
11523 if test -z "$already_handled"; then
11524 names_already_handled="$names_already_handled $name"
11525 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11526 eval value=\"\$HAVE_LIB$uppername\"
11527 if test -n "$value"; then
11528 if test "$value" = yes; then
11529 eval value=\"\$LIB$uppername\"
11530 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11531 eval value=\"\$LTLIB$uppername\"
11532 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11533 else
11536 else
11537 found_dir=
11538 found_la=
11539 found_so=
11540 found_a=
11541 if test $use_additional = yes; then
11542 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11543 found_dir="$additional_libdir"
11544 found_so="$additional_libdir/lib$name.$shlibext"
11545 if test -f "$additional_libdir/lib$name.la"; then
11546 found_la="$additional_libdir/lib$name.la"
11548 elif test x$lib_type != xshared; then
11549 if test -f "$additional_libdir/lib$name.$libext"; then
11550 found_dir="$additional_libdir"
11551 found_a="$additional_libdir/lib$name.$libext"
11552 if test -f "$additional_libdir/lib$name.la"; then
11553 found_la="$additional_libdir/lib$name.la"
11558 if test "X$found_dir" = "X"; then
11559 for x in $LDFLAGS $LTLIBICONV; do
11561 acl_save_prefix="$prefix"
11562 prefix="$acl_final_prefix"
11563 acl_save_exec_prefix="$exec_prefix"
11564 exec_prefix="$acl_final_exec_prefix"
11565 eval x=\"$x\"
11566 exec_prefix="$acl_save_exec_prefix"
11567 prefix="$acl_save_prefix"
11569 case "$x" in
11570 -L*)
11571 dir=`echo "X$x" | sed -e 's/^X-L//'`
11572 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11573 found_dir="$dir"
11574 found_so="$dir/lib$name.$shlibext"
11575 if test -f "$dir/lib$name.la"; then
11576 found_la="$dir/lib$name.la"
11578 elif test x$lib_type != xshared; then
11579 if test -f "$dir/lib$name.$libext"; then
11580 found_dir="$dir"
11581 found_a="$dir/lib$name.$libext"
11582 if test -f "$dir/lib$name.la"; then
11583 found_la="$dir/lib$name.la"
11588 esac
11589 if test "X$found_dir" != "X"; then
11590 break
11592 done
11594 if test "X$found_dir" != "X"; then
11595 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11596 if test "X$found_so" != "X"; then
11597 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11598 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11599 else
11600 haveit=
11601 for x in $ltrpathdirs; do
11602 if test "X$x" = "X$found_dir"; then
11603 haveit=yes
11604 break
11606 done
11607 if test -z "$haveit"; then
11608 ltrpathdirs="$ltrpathdirs $found_dir"
11610 if test "$hardcode_direct" = yes; then
11611 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11612 else
11613 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11614 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11615 haveit=
11616 for x in $rpathdirs; do
11617 if test "X$x" = "X$found_dir"; then
11618 haveit=yes
11619 break
11621 done
11622 if test -z "$haveit"; then
11623 rpathdirs="$rpathdirs $found_dir"
11625 else
11626 haveit=
11627 for x in $LDFLAGS $LIBICONV; do
11629 acl_save_prefix="$prefix"
11630 prefix="$acl_final_prefix"
11631 acl_save_exec_prefix="$exec_prefix"
11632 exec_prefix="$acl_final_exec_prefix"
11633 eval x=\"$x\"
11634 exec_prefix="$acl_save_exec_prefix"
11635 prefix="$acl_save_prefix"
11637 if test "X$x" = "X-L$found_dir"; then
11638 haveit=yes
11639 break
11641 done
11642 if test -z "$haveit"; then
11643 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11645 if test "$hardcode_minus_L" != no; then
11646 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11647 else
11648 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11653 else
11654 if test "X$found_a" != "X"; then
11655 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11656 else
11657 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11660 additional_includedir=
11661 case "$found_dir" in
11662 */lib | */lib/)
11663 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11664 additional_includedir="$basedir/include"
11666 esac
11667 if test "X$additional_includedir" != "X"; then
11668 if test "X$additional_includedir" != "X/usr/include"; then
11669 haveit=
11670 if test "X$additional_includedir" = "X/usr/local/include"; then
11671 if test -n "$GCC"; then
11672 case $host_os in
11673 linux*) haveit=yes;;
11674 esac
11677 if test -z "$haveit"; then
11678 for x in $CPPFLAGS $INCICONV; do
11680 acl_save_prefix="$prefix"
11681 prefix="$acl_final_prefix"
11682 acl_save_exec_prefix="$exec_prefix"
11683 exec_prefix="$acl_final_exec_prefix"
11684 eval x=\"$x\"
11685 exec_prefix="$acl_save_exec_prefix"
11686 prefix="$acl_save_prefix"
11688 if test "X$x" = "X-I$additional_includedir"; then
11689 haveit=yes
11690 break
11692 done
11693 if test -z "$haveit"; then
11694 if test -d "$additional_includedir"; then
11695 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11701 if test -n "$found_la"; then
11702 save_libdir="$libdir"
11703 case "$found_la" in
11704 */* | *\\*) . "$found_la" ;;
11705 *) . "./$found_la" ;;
11706 esac
11707 libdir="$save_libdir"
11708 for dep in $dependency_libs; do
11709 case "$dep" in
11710 -L*)
11711 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11712 if test "X$additional_libdir" != "X/usr/lib"; then
11713 haveit=
11714 if test "X$additional_libdir" = "X/usr/local/lib"; then
11715 if test -n "$GCC"; then
11716 case $host_os in
11717 linux*) haveit=yes;;
11718 esac
11721 if test -z "$haveit"; then
11722 haveit=
11723 for x in $LDFLAGS $LIBICONV; do
11725 acl_save_prefix="$prefix"
11726 prefix="$acl_final_prefix"
11727 acl_save_exec_prefix="$exec_prefix"
11728 exec_prefix="$acl_final_exec_prefix"
11729 eval x=\"$x\"
11730 exec_prefix="$acl_save_exec_prefix"
11731 prefix="$acl_save_prefix"
11733 if test "X$x" = "X-L$additional_libdir"; then
11734 haveit=yes
11735 break
11737 done
11738 if test -z "$haveit"; then
11739 if test -d "$additional_libdir"; then
11740 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11743 haveit=
11744 for x in $LDFLAGS $LTLIBICONV; do
11746 acl_save_prefix="$prefix"
11747 prefix="$acl_final_prefix"
11748 acl_save_exec_prefix="$exec_prefix"
11749 exec_prefix="$acl_final_exec_prefix"
11750 eval x=\"$x\"
11751 exec_prefix="$acl_save_exec_prefix"
11752 prefix="$acl_save_prefix"
11754 if test "X$x" = "X-L$additional_libdir"; then
11755 haveit=yes
11756 break
11758 done
11759 if test -z "$haveit"; then
11760 if test -d "$additional_libdir"; then
11761 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11767 -R*)
11768 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11769 if test "$enable_rpath" != no; then
11770 haveit=
11771 for x in $rpathdirs; do
11772 if test "X$x" = "X$dir"; then
11773 haveit=yes
11774 break
11776 done
11777 if test -z "$haveit"; then
11778 rpathdirs="$rpathdirs $dir"
11780 haveit=
11781 for x in $ltrpathdirs; do
11782 if test "X$x" = "X$dir"; then
11783 haveit=yes
11784 break
11786 done
11787 if test -z "$haveit"; then
11788 ltrpathdirs="$ltrpathdirs $dir"
11792 -l*)
11793 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11795 *.la)
11796 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11799 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11800 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11802 esac
11803 done
11805 else
11806 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11807 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11808 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11809 else
11810 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11811 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11816 done
11817 done
11818 if test "X$rpathdirs" != "X"; then
11819 if test -n "$hardcode_libdir_separator"; then
11820 alldirs=
11821 for found_dir in $rpathdirs; do
11822 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11823 done
11824 acl_save_libdir="$libdir"
11825 libdir="$alldirs"
11826 eval flag=\"$hardcode_libdir_flag_spec\"
11827 libdir="$acl_save_libdir"
11828 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11829 else
11830 for found_dir in $rpathdirs; do
11831 acl_save_libdir="$libdir"
11832 libdir="$found_dir"
11833 eval flag=\"$hardcode_libdir_flag_spec\"
11834 libdir="$acl_save_libdir"
11835 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11836 done
11839 if test "X$ltrpathdirs" != "X"; then
11840 for found_dir in $ltrpathdirs; do
11841 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11842 done
11851 am_save_CPPFLAGS="$CPPFLAGS"
11853 for element in $INCICONV; do
11854 haveit=
11855 for x in $CPPFLAGS; do
11857 acl_save_prefix="$prefix"
11858 prefix="$acl_final_prefix"
11859 acl_save_exec_prefix="$exec_prefix"
11860 exec_prefix="$acl_final_exec_prefix"
11861 eval x=\"$x\"
11862 exec_prefix="$acl_save_exec_prefix"
11863 prefix="$acl_save_prefix"
11865 if test "X$x" = "X$element"; then
11866 haveit=yes
11867 break
11869 done
11870 if test -z "$haveit"; then
11871 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11873 done
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11877 $as_echo_n "checking for iconv... " >&6; }
11878 if ${am_cv_func_iconv+:} false; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11882 am_cv_func_iconv="no, consider installing GNU libiconv"
11883 am_cv_lib_iconv=no
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11887 #include <stdlib.h>
11888 #include <iconv.h>
11891 main ()
11893 iconv_t cd = iconv_open("","");
11894 iconv(cd,NULL,NULL,NULL,NULL);
11895 iconv_close(cd);
11897 return 0;
11899 _ACEOF
11900 if ac_fn_cxx_try_link "$LINENO"; then :
11901 am_cv_func_iconv=yes
11903 rm -f core conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
11905 if test "$am_cv_func_iconv" != yes; then
11906 am_save_LIBS="$LIBS"
11907 LIBS="$LIBS $LIBICONV"
11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h. */
11911 #include <stdlib.h>
11912 #include <iconv.h>
11915 main ()
11917 iconv_t cd = iconv_open("","");
11918 iconv(cd,NULL,NULL,NULL,NULL);
11919 iconv_close(cd);
11921 return 0;
11923 _ACEOF
11924 if ac_fn_cxx_try_link "$LINENO"; then :
11925 am_cv_lib_iconv=yes
11926 am_cv_func_iconv=yes
11928 rm -f core conftest.err conftest.$ac_objext \
11929 conftest$ac_exeext conftest.$ac_ext
11930 LIBS="$am_save_LIBS"
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11935 $as_echo "$am_cv_func_iconv" >&6; }
11936 if test "$am_cv_func_iconv" = yes; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11938 $as_echo_n "checking for working iconv... " >&6; }
11939 if ${am_cv_func_iconv_works+:} false; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11943 am_save_LIBS="$LIBS"
11944 if test $am_cv_lib_iconv = yes; then
11945 LIBS="$LIBS $LIBICONV"
11947 am_cv_func_iconv_works=no
11948 for ac_iconv_const in '' 'const'; do
11949 if test "$cross_compiling" = yes; then :
11950 case "$host_os" in
11951 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11952 *) am_cv_func_iconv_works="guessing yes" ;;
11953 esac
11954 else
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11958 #include <iconv.h>
11959 #include <string.h>
11961 #ifndef ICONV_CONST
11962 # define ICONV_CONST $ac_iconv_const
11963 #endif
11966 main ()
11968 int result = 0;
11969 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11970 successful returns. This is even documented in
11971 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11973 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11974 if (cd_utf8_to_88591 != (iconv_t)(-1))
11976 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11977 char buf[10];
11978 ICONV_CONST char *inptr = input;
11979 size_t inbytesleft = strlen (input);
11980 char *outptr = buf;
11981 size_t outbytesleft = sizeof (buf);
11982 size_t res = iconv (cd_utf8_to_88591,
11983 &inptr, &inbytesleft,
11984 &outptr, &outbytesleft);
11985 if (res == 0)
11986 result |= 1;
11987 iconv_close (cd_utf8_to_88591);
11990 /* Test against Solaris 10 bug: Failures are not distinguishable from
11991 successful returns. */
11993 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11994 if (cd_ascii_to_88591 != (iconv_t)(-1))
11996 static ICONV_CONST char input[] = "\263";
11997 char buf[10];
11998 ICONV_CONST char *inptr = input;
11999 size_t inbytesleft = strlen (input);
12000 char *outptr = buf;
12001 size_t outbytesleft = sizeof (buf);
12002 size_t res = iconv (cd_ascii_to_88591,
12003 &inptr, &inbytesleft,
12004 &outptr, &outbytesleft);
12005 if (res == 0)
12006 result |= 2;
12007 iconv_close (cd_ascii_to_88591);
12010 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12012 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12013 if (cd_88591_to_utf8 != (iconv_t)(-1))
12015 static ICONV_CONST char input[] = "\304";
12016 static char buf[2] = { (char)0xDE, (char)0xAD };
12017 ICONV_CONST char *inptr = input;
12018 size_t inbytesleft = 1;
12019 char *outptr = buf;
12020 size_t outbytesleft = 1;
12021 size_t res = iconv (cd_88591_to_utf8,
12022 &inptr, &inbytesleft,
12023 &outptr, &outbytesleft);
12024 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12025 result |= 4;
12026 iconv_close (cd_88591_to_utf8);
12029 #if 0 /* This bug could be worked around by the caller. */
12030 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12032 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12033 if (cd_88591_to_utf8 != (iconv_t)(-1))
12035 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12036 char buf[50];
12037 ICONV_CONST char *inptr = input;
12038 size_t inbytesleft = strlen (input);
12039 char *outptr = buf;
12040 size_t outbytesleft = sizeof (buf);
12041 size_t res = iconv (cd_88591_to_utf8,
12042 &inptr, &inbytesleft,
12043 &outptr, &outbytesleft);
12044 if ((int)res > 0)
12045 result |= 8;
12046 iconv_close (cd_88591_to_utf8);
12049 #endif
12050 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12051 provided. */
12053 /* Try standardized names. */
12054 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12055 /* Try IRIX, OSF/1 names. */
12056 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12057 /* Try AIX names. */
12058 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12059 /* Try HP-UX names. */
12060 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12061 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12062 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12063 result |= 16;
12064 if (cd1 != (iconv_t)(-1))
12065 iconv_close (cd1);
12066 if (cd2 != (iconv_t)(-1))
12067 iconv_close (cd2);
12068 if (cd3 != (iconv_t)(-1))
12069 iconv_close (cd3);
12070 if (cd4 != (iconv_t)(-1))
12071 iconv_close (cd4);
12073 return result;
12076 return 0;
12078 _ACEOF
12079 if ac_fn_cxx_try_run "$LINENO"; then :
12080 am_cv_func_iconv_works=yes
12082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12083 conftest.$ac_objext conftest.beam conftest.$ac_ext
12086 test "$am_cv_func_iconv_works" = no || break
12087 done
12088 LIBS="$am_save_LIBS"
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12092 $as_echo "$am_cv_func_iconv_works" >&6; }
12093 case "$am_cv_func_iconv_works" in
12094 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12095 *) am_func_iconv=yes ;;
12096 esac
12097 else
12098 am_func_iconv=no am_cv_lib_iconv=no
12100 if test "$am_func_iconv" = yes; then
12102 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12105 if test "$am_cv_lib_iconv" = yes; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12107 $as_echo_n "checking how to link with libiconv... " >&6; }
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12109 $as_echo "$LIBICONV" >&6; }
12110 else
12111 CPPFLAGS="$am_save_CPPFLAGS"
12112 LIBICONV=
12113 LTLIBICONV=
12118 if test "$am_cv_func_iconv" = yes; then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
12120 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
12121 if ${gl_cv_iconv_nonconst+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12127 #include <stdlib.h>
12128 #include <iconv.h>
12129 extern
12130 #ifdef __cplusplus
12132 #endif
12133 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12136 main ()
12140 return 0;
12142 _ACEOF
12143 if ac_fn_cxx_try_compile "$LINENO"; then :
12144 gl_cv_iconv_nonconst=yes
12145 else
12146 gl_cv_iconv_nonconst=no
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
12152 $as_echo "$gl_cv_iconv_nonconst" >&6; }
12153 else
12154 gl_cv_iconv_nonconst=yes
12156 if test $gl_cv_iconv_nonconst = yes; then
12157 iconv_arg1=""
12158 else
12159 iconv_arg1="const"
12162 cat >>confdefs.h <<_ACEOF
12163 #define ICONV_CONST $iconv_arg1
12164 _ACEOF
12168 if test "$am_func_iconv" = yes; then
12169 if test -n "$LIBICONV"; then
12170 am_cv_func_iconv_summary='yes, in libiconv'
12171 else
12172 am_cv_func_iconv_summary='yes, in libc'
12174 else
12175 if test "$am_cv_func_iconv" = yes; then
12176 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
12177 else
12178 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
12183 # Until we have in-tree GNU iconv:
12184 LIBICONV_DEP=
12185 if test -f "$LTLIBICONV"; then
12186 LIBICONV_DEP=$LTLIBICONV
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12192 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12193 if ${am_cv_val_LC_MESSAGES+:} false; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12198 #include <locale.h>
12200 main ()
12202 return LC_MESSAGES
12204 return 0;
12206 _ACEOF
12207 if ac_fn_cxx_try_link "$LINENO"; then :
12208 am_cv_val_LC_MESSAGES=yes
12209 else
12210 am_cv_val_LC_MESSAGES=no
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12216 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12217 if test $am_cv_val_LC_MESSAGES = yes; then
12219 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12226 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12227 if ${am_cv_langinfo_codeset+:} false; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232 #include <langinfo.h>
12234 main ()
12236 char* cs = nl_langinfo(CODESET);
12238 return 0;
12240 _ACEOF
12241 if ac_fn_cxx_try_link "$LINENO"; then :
12242 am_cv_langinfo_codeset=yes
12243 else
12244 am_cv_langinfo_codeset=no
12246 rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12251 $as_echo "$am_cv_langinfo_codeset" >&6; }
12252 if test $am_cv_langinfo_codeset = yes; then
12254 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12259 # We will need to find libiberty.h and ansidecl.h
12260 saved_CFLAGS="$CFLAGS"
12261 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12262 saved_CXXFLAGS="$CXXFLAGS"
12263 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12265 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12266 # normal autoconf function for these. But force definition of
12267 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12268 # basename handling in libiberty.h.
12269 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12270 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12271 #undef HAVE_DECL_BASENAME
12272 #define HAVE_DECL_BASENAME 1
12273 #include \"ansidecl.h\"
12274 #include \"system.h\"
12276 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12277 ac_have_decl=1
12278 else
12279 ac_have_decl=0
12282 cat >>confdefs.h <<_ACEOF
12283 #define HAVE_DECL_BASENAME $ac_have_decl
12284 _ACEOF
12285 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12286 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12287 #undef HAVE_DECL_BASENAME
12288 #define HAVE_DECL_BASENAME 1
12289 #include \"ansidecl.h\"
12290 #include \"system.h\"
12292 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12293 ac_have_decl=1
12294 else
12295 ac_have_decl=0
12298 cat >>confdefs.h <<_ACEOF
12299 #define HAVE_DECL_STRSTR $ac_have_decl
12300 _ACEOF
12303 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12304 madvise stpcpy strnlen strsignal strverscmp \
12305 strtol strtoul strtoll strtoull setenv unsetenv \
12306 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12307 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
12309 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12311 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12312 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 #undef $ac_tr_decl
12318 #define $ac_tr_decl 1
12320 #include "ansidecl.h"
12321 #include "system.h"
12324 main ()
12326 #ifndef $ac_func
12327 char *(*pfn) = (char *(*)) $ac_func ;
12328 #endif
12330 return 0;
12332 _ACEOF
12333 if ac_fn_cxx_try_compile "$LINENO"; then :
12334 eval "gcc_cv_have_decl_$ac_func=yes"
12335 else
12336 eval "gcc_cv_have_decl_$ac_func=no"
12338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12341 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12343 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12344 #define $ac_tr_decl 1
12345 _ACEOF
12347 else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12350 #define $ac_tr_decl 0
12351 _ACEOF
12355 done
12358 for ac_func in getrlimit setrlimit getrusage
12360 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12362 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12363 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368 #undef $ac_tr_decl
12369 #define $ac_tr_decl 1
12371 #include "ansidecl.h"
12372 #include "system.h"
12373 #ifdef HAVE_SYS_RESOURCE_H
12374 #include <sys/resource.h>
12375 #endif
12379 main ()
12381 #ifndef $ac_func
12382 char *(*pfn) = (char *(*)) $ac_func ;
12383 #endif
12385 return 0;
12387 _ACEOF
12388 if ac_fn_cxx_try_compile "$LINENO"; then :
12389 eval "gcc_cv_have_decl_$ac_func=yes"
12390 else
12391 eval "gcc_cv_have_decl_$ac_func=no"
12393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12396 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12399 #define $ac_tr_decl 1
12400 _ACEOF
12402 else
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12405 #define $ac_tr_decl 0
12406 _ACEOF
12410 done
12413 for ac_func in mallinfo mallinfo2
12415 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12417 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12418 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12419 $as_echo_n "(cached) " >&6
12420 else
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12423 #undef $ac_tr_decl
12424 #define $ac_tr_decl 1
12426 #include "ansidecl.h"
12427 #include "system.h"
12428 #ifdef HAVE_MALLOC_H
12429 #include <malloc.h>
12430 #endif
12434 main ()
12436 #ifndef $ac_func
12437 char *(*pfn) = (char *(*)) $ac_func ;
12438 #endif
12440 return 0;
12442 _ACEOF
12443 if ac_fn_cxx_try_compile "$LINENO"; then :
12444 eval "gcc_cv_have_decl_$ac_func=yes"
12445 else
12446 eval "gcc_cv_have_decl_$ac_func=no"
12448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12453 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12454 #define $ac_tr_decl 1
12455 _ACEOF
12457 else
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12460 #define $ac_tr_decl 0
12461 _ACEOF
12465 done
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12471 #include "ansidecl.h"
12472 #include "system.h"
12473 #ifdef HAVE_SYS_RESOURCE_H
12474 #include <sys/resource.h>
12475 #endif
12478 main ()
12480 rlim_t l = 0;
12482 return 0;
12484 _ACEOF
12485 if ac_fn_cxx_try_compile "$LINENO"; then :
12487 else
12489 $as_echo "#define rlim_t long" >>confdefs.h
12492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12494 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12495 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12496 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12497 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12498 for ac_func in ldgetname
12500 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12502 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12503 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12504 $as_echo_n "(cached) " >&6
12505 else
12506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h. */
12508 #undef $ac_tr_decl
12509 #define $ac_tr_decl 1
12511 #include "ansidecl.h"
12512 #include "system.h"
12513 #ifdef HAVE_LDFCN_H
12514 #undef FREAD
12515 #undef FWRITE
12516 #include <ldfcn.h>
12517 #endif
12521 main ()
12523 #ifndef $ac_func
12524 char *(*pfn) = (char *(*)) $ac_func ;
12525 #endif
12527 return 0;
12529 _ACEOF
12530 if ac_fn_cxx_try_compile "$LINENO"; then :
12531 eval "gcc_cv_have_decl_$ac_func=yes"
12532 else
12533 eval "gcc_cv_have_decl_$ac_func=no"
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12540 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12541 #define $ac_tr_decl 1
12542 _ACEOF
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12547 #define $ac_tr_decl 0
12548 _ACEOF
12552 done
12555 for ac_func in times
12557 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12559 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12560 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12565 #undef $ac_tr_decl
12566 #define $ac_tr_decl 1
12568 #include "ansidecl.h"
12569 #include "system.h"
12570 #ifdef HAVE_SYS_TIMES_H
12571 #include <sys/times.h>
12572 #endif
12576 main ()
12578 #ifndef $ac_func
12579 char *(*pfn) = (char *(*)) $ac_func ;
12580 #endif
12582 return 0;
12584 _ACEOF
12585 if ac_fn_cxx_try_compile "$LINENO"; then :
12586 eval "gcc_cv_have_decl_$ac_func=yes"
12587 else
12588 eval "gcc_cv_have_decl_$ac_func=no"
12590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12593 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12595 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12596 #define $ac_tr_decl 1
12597 _ACEOF
12599 else
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12602 #define $ac_tr_decl 0
12603 _ACEOF
12607 done
12610 for ac_func in sigaltstack
12612 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12614 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12615 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12620 #undef $ac_tr_decl
12621 #define $ac_tr_decl 1
12623 #include "ansidecl.h"
12624 #include "system.h"
12625 #include <signal.h>
12629 main ()
12631 #ifndef $ac_func
12632 char *(*pfn) = (char *(*)) $ac_func ;
12633 #endif
12635 return 0;
12637 _ACEOF
12638 if ac_fn_cxx_try_compile "$LINENO"; then :
12639 eval "gcc_cv_have_decl_$ac_func=yes"
12640 else
12641 eval "gcc_cv_have_decl_$ac_func=no"
12643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12648 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12649 #define $ac_tr_decl 1
12650 _ACEOF
12652 else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12655 #define $ac_tr_decl 0
12656 _ACEOF
12660 done
12663 # More time-related stuff.
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12665 $as_echo_n "checking for struct tms... " >&6; }
12666 if ${ac_cv_struct_tms+:} false; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12673 #include "ansidecl.h"
12674 #include "system.h"
12675 #ifdef HAVE_SYS_TIMES_H
12676 #include <sys/times.h>
12677 #endif
12680 main ()
12682 struct tms tms;
12684 return 0;
12686 _ACEOF
12687 if ac_fn_cxx_try_compile "$LINENO"; then :
12688 ac_cv_struct_tms=yes
12689 else
12690 ac_cv_struct_tms=no
12692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12695 $as_echo "$ac_cv_struct_tms" >&6; }
12696 if test $ac_cv_struct_tms = yes; then
12698 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12702 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12703 # revisit after autoconf 2.50.
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12705 $as_echo_n "checking for clock_t... " >&6; }
12706 if ${gcc_cv_type_clock_t+:} false; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12713 #include "ansidecl.h"
12714 #include "system.h"
12717 main ()
12719 clock_t x;
12721 return 0;
12723 _ACEOF
12724 if ac_fn_cxx_try_compile "$LINENO"; then :
12725 gcc_cv_type_clock_t=yes
12726 else
12727 gcc_cv_type_clock_t=no
12729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12732 $as_echo "$gcc_cv_type_clock_t" >&6; }
12733 if test $gcc_cv_type_clock_t = yes; then
12735 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12739 # Check if F_SETLKW is supported by fcntl.
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12741 $as_echo_n "checking for F_SETLKW... " >&6; }
12742 if ${ac_cv_f_setlkw+:} false; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12749 #include <fcntl.h>
12751 main ()
12754 struct flock fl;
12755 fl.l_whence = 0;
12756 fl.l_start = 0;
12757 fl.l_len = 0;
12758 fl.l_pid = 0;
12759 return fcntl (1, F_SETLKW, &fl);
12761 return 0;
12763 _ACEOF
12764 if ac_fn_cxx_try_compile "$LINENO"; then :
12765 ac_cv_f_setlkw=yes
12766 else
12767 ac_cv_f_setlkw=no
12769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12772 $as_echo "$ac_cv_f_setlkw" >&6; }
12773 if test $ac_cv_f_setlkw = yes; then
12775 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12779 # Check if O_CLOEXEC is defined by fcntl
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12781 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12782 if ${ac_cv_o_cloexec+:} false; then :
12783 $as_echo_n "(cached) " >&6
12784 else
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12789 #include <fcntl.h>
12791 main ()
12794 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12796 return 0;
12798 _ACEOF
12799 if ac_fn_cxx_try_compile "$LINENO"; then :
12800 ac_cv_o_cloexec=yes
12801 else
12802 ac_cv_o_cloexec=no
12804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12807 $as_echo "$ac_cv_o_cloexec" >&6; }
12808 if test $ac_cv_o_cloexec = yes; then
12810 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12814 # Check if O_NONBLOCK is defined by fcntl
12815 for ac_header in fcntl.h
12816 do :
12817 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12818 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12819 cat >>confdefs.h <<_ACEOF
12820 #define HAVE_FCNTL_H 1
12821 _ACEOF
12824 done
12826 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12828 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12832 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12834 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12839 # C++ Modules would like some networking features to provide the mapping
12840 # server. You can still use modules without them though.
12841 # The following network-related checks could probably do with some
12842 # Windows and other non-linux defenses and checking.
12844 # Local socket connectivity wants AF_UNIX networking
12845 # Check for AF_UNIX networking
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12847 $as_echo_n "checking for AF_UNIX... " >&6; }
12848 if ${ac_cv_af_unix+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12855 #include <sys/types.h>
12856 #include <sys/socket.h>
12857 #include <sys/un.h>
12858 #include <netinet/in.h>
12860 main ()
12863 sockaddr_un un;
12864 un.sun_family = AF_UNSPEC;
12865 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12866 connect (fd, (sockaddr *)&un, sizeof (un));
12868 return 0;
12870 _ACEOF
12871 if ac_fn_cxx_try_compile "$LINENO"; then :
12872 ac_cv_af_unix=yes
12873 else
12874 ac_cv_af_unix=no
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12879 $as_echo "$ac_cv_af_unix" >&6; }
12880 if test $ac_cv_af_unix = yes; then
12882 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12886 # Remote socket connectivity wants AF_INET6 networking
12887 # Check for AF_INET6 networking
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12889 $as_echo_n "checking for AF_INET6... " >&6; }
12890 if ${ac_cv_af_inet6+:} false; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12897 #include <sys/types.h>
12898 #include <sys/socket.h>
12899 #include <netinet/in.h>
12900 #include <netdb.h>
12902 main ()
12905 sockaddr_in6 in6;
12906 in6.sin6_family = AF_UNSPEC;
12907 struct addrinfo *addrs = 0;
12908 struct addrinfo hints;
12909 hints.ai_flags = 0;
12910 hints.ai_family = AF_INET6;
12911 hints.ai_socktype = SOCK_STREAM;
12912 hints.ai_protocol = 0;
12913 hints.ai_canonname = 0;
12914 hints.ai_addr = 0;
12915 hints.ai_next = 0;
12916 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12917 const char *str = gai_strerror (e);
12918 freeaddrinfo (addrs);
12919 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12920 connect (fd, (sockaddr *)&in6, sizeof (in6));
12922 return 0;
12924 _ACEOF
12925 if ac_fn_cxx_try_compile "$LINENO"; then :
12926 ac_cv_af_inet6=yes
12927 else
12928 ac_cv_af_inet6=no
12930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12933 $as_echo "$ac_cv_af_inet6" >&6; }
12934 if test $ac_cv_af_inet6 = yes; then
12936 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12940 # Check if _LK_LOCK is supported by _locking
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12942 $as_echo_n "checking for _LK_LOCK... " >&6; }
12943 if ${ac_cv_lk_lock+:} false; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h. */
12950 #include <io.h>
12951 #include <sys/locking.h>
12953 main ()
12956 int fd;
12957 return _locking (fd, _LK_LOCK, 0);
12959 return 0;
12961 _ACEOF
12962 if ac_fn_cxx_try_compile "$LINENO"; then :
12963 ac_cv_lk_lock=yes
12964 else
12965 ac_cv_lk_lock=no
12967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12970 $as_echo "$ac_cv_lk_lock" >&6; }
12971 if test $ac_cv_lk_lock = yes; then
12973 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12977 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12978 CFLAGS="$saved_CFLAGS"
12979 CXXFLAGS="$saved_CXXFLAGS"
12981 # mkdir takes a single argument on some systems.
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12983 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12984 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12985 $as_echo_n "(cached) " >&6
12986 else
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12990 #include <sys/types.h>
12991 #ifdef HAVE_SYS_STAT_H
12992 # include <sys/stat.h>
12993 #endif
12994 #ifdef HAVE_UNISTD_H
12995 # include <unistd.h>
12996 #endif
12997 #ifdef HAVE_DIRECT_H
12998 # include <direct.h>
12999 #endif
13001 main ()
13003 mkdir ("foo", 0);
13005 return 0;
13007 _ACEOF
13008 if ac_fn_cxx_try_compile "$LINENO"; then :
13009 gcc_cv_mkdir_takes_one_arg=no
13010 else
13011 gcc_cv_mkdir_takes_one_arg=yes
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
13016 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
13017 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13019 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
13024 # File extensions
13025 manext='.1'
13026 objext='.o'
13030 # With Setjmp/Longjmp based exception handling.
13031 # Check whether --enable-sjlj-exceptions was given.
13032 if test "${enable_sjlj_exceptions+set}" = set; then :
13033 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
13034 else
13035 case $target in
13036 lm32*-*-*)
13037 force_sjlj_exceptions=yes
13038 enableval=yes
13041 force_sjlj_exceptions=no
13043 esac
13046 if test $force_sjlj_exceptions = yes; then
13047 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
13049 cat >>confdefs.h <<_ACEOF
13050 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13051 _ACEOF
13055 # Windows32 UTF-8 manifest support for running the driver and compiler
13056 # executables with the UTF-8 active code page on mingw hosts.
13057 # Non-mingw hosts ignore this option.
13058 # The shell variables this sets are picked up from the mingw branches
13059 # of config.host so they have to be set before it gets sourced.
13060 # Check whether --enable-win32-utf8-manifest was given.
13061 if test "${enable_win32_utf8_manifest+set}" = set; then :
13062 enableval=$enable_win32_utf8_manifest;
13066 if test "x$enable_win32_utf8_manifest" != xno; then
13067 host_xmake_mingw=i386/x-mingw32-utf8
13068 host_extra_gcc_objs_mingw=utf8rc-mingw32.o
13069 host_extra_objs_mingw=utf8-mingw32.o
13072 # --------------------------------------------------------
13073 # Build, host, and target specific configuration fragments
13074 # --------------------------------------------------------
13076 # Collect build-machine-specific information.
13077 . ${srcdir}/config.build || exit 1
13079 # Collect host-machine-specific information.
13080 . ${srcdir}/config.host || exit 1
13082 target_gtfiles=
13084 # Collect target-machine-specific information.
13085 . ${srcdir}/config.gcc || exit 1
13087 extra_objs="${host_extra_objs} ${extra_objs}"
13088 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13090 # Default the target-machine variables that were not explicitly set.
13091 if test x"$tm_file" = x
13092 then tm_file=$cpu_type/$cpu_type.h; fi
13094 if test x"$extra_headers" = x
13095 then extra_headers=; fi
13097 if test x$md_file = x
13098 then md_file=$cpu_type/$cpu_type.md; fi
13100 if test x$out_file = x
13101 then out_file=$cpu_type/$cpu_type.cc; fi
13103 if test x"$tmake_file" = x
13104 then tmake_file=$cpu_type/t-$cpu_type
13107 # Support --enable-initfini-array.
13108 if test x$enable_initfini_array != xno; then
13109 tm_file="${tm_file} initfini-array.h"
13112 if test x"$dwarf2" = xyes
13113 then tm_file="$tm_file tm-dwarf2.h"
13116 # Say what files are being used for the output code and MD file.
13117 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13118 echo "Using \`$srcdir/config/$md_file' as machine description file."
13120 # If any of the xm_file variables contain nonexistent files, warn
13121 # about them and drop them.
13124 for x in $build_xm_file; do
13125 if test -f $srcdir/config/$x
13126 then bx="$bx $x"
13127 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13128 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13130 done
13131 build_xm_file="$bx"
13134 for x in $host_xm_file; do
13135 if test -f $srcdir/config/$x
13136 then hx="$hx $x"
13137 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13138 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13140 done
13141 host_xm_file="$hx"
13144 for x in $xm_file; do
13145 if test -f $srcdir/config/$x
13146 then tx="$tx $x"
13147 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13148 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13150 done
13151 xm_file="$tx"
13153 count=a
13154 for f in $tm_file; do
13155 count=${count}x
13156 done
13157 if test $count = ax; then
13158 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13159 else
13160 echo "Using the following target machine macro files:"
13161 for f in $tm_file; do
13162 echo " $srcdir/config/$f"
13163 done
13166 if test x$use_long_long_for_widest_fast_int = xyes; then
13168 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
13172 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
13174 cat >>confdefs.h <<_ACEOF
13175 #define HAVE_GNU_LD $gnu_ld_bool
13176 _ACEOF
13179 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13181 cat >>confdefs.h <<_ACEOF
13182 #define HAVE_GNU_AS $gnu_as_bool
13183 _ACEOF
13186 count=a
13187 for f in $host_xm_file; do
13188 count=${count}x
13189 done
13190 if test $count = a; then
13192 elif test $count = ax; then
13193 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13194 else
13195 echo "Using the following host machine macro files:"
13196 for f in $host_xm_file; do
13197 echo " $srcdir/config/$f"
13198 done
13200 echo "Using ${out_host_hook_obj} for host machine hooks."
13202 if test "$host_xm_file" != "$build_xm_file"; then
13203 count=a
13204 for f in $build_xm_file; do
13205 count=${count}x
13206 done
13207 if test $count = a; then
13209 elif test $count = ax; then
13210 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13211 else
13212 echo "Using the following build machine macro files:"
13213 for f in $build_xm_file; do
13214 echo " $srcdir/config/$f"
13215 done
13219 if test -n "$configured_native_system_header_dir"; then
13220 native_system_header_dir=$configured_native_system_header_dir
13222 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13225 case ${host} in
13226 powerpc*-*-darwin*)
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13228 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13229 if ${gcc_cv_mcontext_underscores+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231 else
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13235 #include <sys/cdefs.h>
13236 #include <sys/signal.h>
13237 #include <ucontext.h>
13238 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13240 _ACEOF
13241 if ac_fn_cxx_try_compile "$LINENO"; then :
13242 gcc_cv_mcontext_underscores=no
13243 else
13244 gcc_cv_mcontext_underscores=yes
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13249 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13250 if test $gcc_cv_mcontext_underscores = yes; then
13252 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13256 esac
13258 # ---------
13259 # Threading
13260 # ---------
13262 # Check if a valid thread package
13263 case ${enable_threads} in
13264 "" | no)
13265 # No threads
13266 target_thread_file='single'
13268 yes)
13269 # default
13270 target_thread_file='single'
13272 aix | dce | lynx | mipssde | posix | rtems | \
13273 single | tpf | vxworks | win32 | mcf)
13274 target_thread_file=${enable_threads}
13277 echo "${enable_threads} is an unknown thread package" 1>&2
13278 exit 1
13280 esac
13282 if test x${thread_file} = x; then
13283 # No thread file set by target-specific clauses in config.gcc,
13284 # so use file chosen by default logic above
13285 thread_file=${target_thread_file}
13288 # --------
13289 # UNSORTED
13290 # --------
13292 use_cxa_atexit=no
13293 if test x$enable___cxa_atexit = xyes || \
13294 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13295 if test x$host = x$target; then
13296 case $host in
13297 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13298 # keyed to flag_use_cxa_atexit
13299 *-*-mingw32*)
13300 use_cxa_atexit=yes
13302 powerpc-ibm-aix*)
13303 use_cxa_atexit=yes
13306 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13307 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13308 use_cxa_atexit=yes
13309 else
13310 echo "__cxa_atexit can't be enabled on this target"
13314 esac
13315 else
13316 # We can't check for __cxa_atexit when building a cross, so assume
13317 # it is available
13318 use_cxa_atexit=yes
13320 if test x$use_cxa_atexit = xyes; then
13322 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13327 # Look for a file containing extra machine modes.
13328 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13329 extra_modes_file='$(srcdir)'/config/${extra_modes}
13332 cat >>confdefs.h <<_ACEOF
13333 #define EXTRA_MODES_FILE "config/$extra_modes"
13334 _ACEOF
13338 # Convert extra_options into a form suitable for Makefile use.
13339 extra_opt_files=
13340 all_opt_files=
13341 for f in $extra_options; do
13342 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13343 all_opt_files="$all_opt_files $srcdir/config/$f"
13344 done
13347 # auto-host.h is the file containing items generated by autoconf and is
13348 # the first file included by config.h.
13349 # If host=build, it is correct to have bconfig include auto-host.h
13350 # as well. If host!=build, we are in error and need to do more
13351 # work to find out the build config parameters.
13352 if test x$host = x$build
13353 then
13354 build_auto=auto-host.h
13355 HAVE_AUTO_BUILD='# '
13356 else
13357 # We create a subdir, then run autoconf in the subdir.
13358 # To prevent recursion we set host and build for the new
13359 # invocation of configure to the build for this invocation
13360 # of configure.
13361 tempdir=build.$$
13362 rm -rf $tempdir
13363 mkdir $tempdir
13364 cd $tempdir
13365 case ${srcdir} in
13366 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13367 *) realsrcdir=../${srcdir};;
13368 esac
13369 # Clearing GMPINC is necessary to prevent host headers being
13370 # used by the build compiler. Defining GENERATOR_FILE stops
13371 # system.h from including gmp.h.
13372 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13373 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13374 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13375 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13376 ${realsrcdir}/configure \
13377 --enable-languages=${enable_languages-all} \
13378 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13379 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13380 --target=$target_alias --host=$build_alias \
13381 --build=$build_alias || exit # retaining $tempdir
13383 # We just finished tests for the build machine, so rename
13384 # the file auto-build.h in the gcc directory.
13385 mv auto-host.h ../auto-build.h
13386 cd ..
13387 rm -rf $tempdir
13388 build_auto=auto-build.h
13389 HAVE_AUTO_BUILD=
13394 tm_file="${tm_file} defaults.h"
13395 tm_p_file="${tm_p_file} tm-preds.h"
13396 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13397 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13398 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13399 # put this back in temporarily.
13400 xm_file="auto-host.h ansidecl.h ${xm_file}"
13402 # --------
13403 # UNSORTED
13404 # --------
13406 # Compile in configure arguments.
13407 if test -f configargs.h ; then
13408 # Being re-configured.
13409 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13410 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13411 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13412 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13414 else
13415 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13418 # Double all backslashes and backslash all quotes to turn
13419 # gcc_config_arguments into a C string.
13420 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13421 $gcc_config_arguments
13423 gcc_config_arguments_str=`cat conftest.out`
13424 rm -f conftest.out
13426 cat > configargs.h <<EOF
13427 /* Generated automatically. */
13428 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13429 static const char thread_model[] = "$thread_file";
13431 static const struct {
13432 const char *name, *value;
13433 } configure_default_options[] = $configure_default_options;
13436 gcc_BASEVER=`cat $srcdir/BASE-VER`
13437 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13438 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13439 if test -f $srcdir/REVISION ; then
13440 gcc_REVISION=`cat $srcdir/REVISION`
13441 else
13442 gcc_REVISION=""
13444 cat > plugin-version.h <<EOF
13445 #include "configargs.h"
13447 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13448 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13449 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13450 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13452 static char basever[] = "$gcc_BASEVER";
13453 static char datestamp[] = "$gcc_DATESTAMP";
13454 static char devphase[] = "$gcc_DEVPHASE";
13455 static char revision[] = "$gcc_REVISION";
13457 /* FIXME plugins: We should make the version information more precise.
13458 One way to do is to add a checksum. */
13460 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13461 devphase, revision,
13462 configuration_arguments};
13465 # Determine what GCC version number to use in filesystem paths.
13467 get_gcc_base_ver="cat"
13469 # Check whether --with-gcc-major-version-only was given.
13470 if test "${with_gcc_major_version_only+set}" = set; then :
13471 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13472 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13480 # Internationalization
13481 # Find a good install program. We prefer a C program (faster),
13482 # so one script is as good as another. But avoid the broken or
13483 # incompatible versions:
13484 # SysV /etc/install, /usr/sbin/install
13485 # SunOS /usr/etc/install
13486 # IRIX /sbin/install
13487 # AIX /bin/install
13488 # AmigaOS /C/install, which installs bootblocks on floppy discs
13489 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13492 # OS/2's system install, which has a completely different semantic
13493 # ./install, which can be erroneously created by make from ./install.sh.
13494 # Reject install programs that cannot install multiple files.
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13496 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13497 if test -z "$INSTALL"; then
13498 if ${ac_cv_path_install+:} false; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
13506 # Account for people who put trailing slashes in PATH elements.
13507 case $as_dir/ in #((
13508 ./ | .// | /[cC]/* | \
13509 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13510 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13511 /usr/ucb/* ) ;;
13513 # OSF1 and SCO ODT 3.0 have their own names for install.
13514 # Don't use installbsd from OSF since it installs stuff as root
13515 # by default.
13516 for ac_prog in ginstall scoinst install; do
13517 for ac_exec_ext in '' $ac_executable_extensions; do
13518 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13519 if test $ac_prog = install &&
13520 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13521 # AIX install. It has an incompatible calling convention.
13523 elif test $ac_prog = install &&
13524 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13525 # program-specific install script used by HP pwplus--don't use.
13527 else
13528 rm -rf conftest.one conftest.two conftest.dir
13529 echo one > conftest.one
13530 echo two > conftest.two
13531 mkdir conftest.dir
13532 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13533 test -s conftest.one && test -s conftest.two &&
13534 test -s conftest.dir/conftest.one &&
13535 test -s conftest.dir/conftest.two
13536 then
13537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13538 break 3
13542 done
13543 done
13545 esac
13547 done
13548 IFS=$as_save_IFS
13550 rm -rf conftest.one conftest.two conftest.dir
13553 if test "${ac_cv_path_install+set}" = set; then
13554 INSTALL=$ac_cv_path_install
13555 else
13556 # As a last resort, use the slow shell script. Don't cache a
13557 # value for INSTALL within a source directory, because that will
13558 # break other packages using the cache if that directory is
13559 # removed, or if the value is a relative name.
13560 INSTALL=$ac_install_sh
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13564 $as_echo "$INSTALL" >&6; }
13566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13567 # It thinks the first close brace ends the variable substitution.
13568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13575 MKINSTALLDIRS=
13576 if test -n "$ac_aux_dir"; then
13577 case "$ac_aux_dir" in
13578 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13579 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13580 esac
13582 if test -z "$MKINSTALLDIRS"; then
13583 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13589 $as_echo_n "checking whether NLS is requested... " >&6; }
13590 # Check whether --enable-nls was given.
13591 if test "${enable_nls+set}" = set; then :
13592 enableval=$enable_nls; USE_NLS=$enableval
13593 else
13594 USE_NLS=yes
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13598 $as_echo "$USE_NLS" >&6; }
13605 # Prepare PATH_SEPARATOR.
13606 # The user is always right.
13607 if test "${PATH_SEPARATOR+set}" != set; then
13608 echo "#! /bin/sh" >conf$$.sh
13609 echo "exit 0" >>conf$$.sh
13610 chmod +x conf$$.sh
13611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13612 PATH_SEPARATOR=';'
13613 else
13614 PATH_SEPARATOR=:
13616 rm -f conf$$.sh
13619 # Find out how to test for executable files. Don't use a zero-byte file,
13620 # as systems may use methods other than mode bits to determine executability.
13621 cat >conf$$.file <<_ASEOF
13622 #! /bin/sh
13623 exit 0
13624 _ASEOF
13625 chmod +x conf$$.file
13626 if test -x conf$$.file >/dev/null 2>&1; then
13627 ac_executable_p="test -x"
13628 else
13629 ac_executable_p="test -f"
13631 rm -f conf$$.file
13633 # Extract the first word of "msgfmt", so it can be a program name with args.
13634 set dummy msgfmt; ac_word=$2
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13636 $as_echo_n "checking for $ac_word... " >&6; }
13637 if ${ac_cv_path_MSGFMT+:} false; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 case "$MSGFMT" in
13641 [\\/]* | ?:[\\/]*)
13642 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13645 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13646 for ac_dir in $PATH; do
13647 IFS="$ac_save_IFS"
13648 test -z "$ac_dir" && ac_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
13650 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13651 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13652 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13653 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13654 break 2
13657 done
13658 done
13659 IFS="$ac_save_IFS"
13660 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13662 esac
13664 MSGFMT="$ac_cv_path_MSGFMT"
13665 if test "$MSGFMT" != ":"; then
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13667 $as_echo "$MSGFMT" >&6; }
13668 else
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670 $as_echo "no" >&6; }
13673 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13674 set dummy gmsgfmt; ac_word=$2
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13676 $as_echo_n "checking for $ac_word... " >&6; }
13677 if ${ac_cv_path_GMSGFMT+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 case $GMSGFMT in
13681 [\\/]* | ?:[\\/]*)
13682 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13686 for as_dir in $PATH
13688 IFS=$as_save_IFS
13689 test -z "$as_dir" && as_dir=.
13690 for ac_exec_ext in '' $ac_executable_extensions; do
13691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13692 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13694 break 2
13696 done
13697 done
13698 IFS=$as_save_IFS
13700 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13702 esac
13704 GMSGFMT=$ac_cv_path_GMSGFMT
13705 if test -n "$GMSGFMT"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13707 $as_echo "$GMSGFMT" >&6; }
13708 else
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710 $as_echo "no" >&6; }
13716 # Prepare PATH_SEPARATOR.
13717 # The user is always right.
13718 if test "${PATH_SEPARATOR+set}" != set; then
13719 echo "#! /bin/sh" >conf$$.sh
13720 echo "exit 0" >>conf$$.sh
13721 chmod +x conf$$.sh
13722 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13723 PATH_SEPARATOR=';'
13724 else
13725 PATH_SEPARATOR=:
13727 rm -f conf$$.sh
13730 # Find out how to test for executable files. Don't use a zero-byte file,
13731 # as systems may use methods other than mode bits to determine executability.
13732 cat >conf$$.file <<_ASEOF
13733 #! /bin/sh
13734 exit 0
13735 _ASEOF
13736 chmod +x conf$$.file
13737 if test -x conf$$.file >/dev/null 2>&1; then
13738 ac_executable_p="test -x"
13739 else
13740 ac_executable_p="test -f"
13742 rm -f conf$$.file
13744 # Extract the first word of "xgettext", so it can be a program name with args.
13745 set dummy xgettext; ac_word=$2
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13747 $as_echo_n "checking for $ac_word... " >&6; }
13748 if ${ac_cv_path_XGETTEXT+:} false; then :
13749 $as_echo_n "(cached) " >&6
13750 else
13751 case "$XGETTEXT" in
13752 [\\/]* | ?:[\\/]*)
13753 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13756 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13757 for ac_dir in $PATH; do
13758 IFS="$ac_save_IFS"
13759 test -z "$ac_dir" && ac_dir=.
13760 for ac_exec_ext in '' $ac_executable_extensions; do
13761 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13762 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13763 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13764 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13765 break 2
13768 done
13769 done
13770 IFS="$ac_save_IFS"
13771 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13773 esac
13775 XGETTEXT="$ac_cv_path_XGETTEXT"
13776 if test "$XGETTEXT" != ":"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13778 $as_echo "$XGETTEXT" >&6; }
13779 else
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13784 rm -f messages.po
13787 # Prepare PATH_SEPARATOR.
13788 # The user is always right.
13789 if test "${PATH_SEPARATOR+set}" != set; then
13790 echo "#! /bin/sh" >conf$$.sh
13791 echo "exit 0" >>conf$$.sh
13792 chmod +x conf$$.sh
13793 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13794 PATH_SEPARATOR=';'
13795 else
13796 PATH_SEPARATOR=:
13798 rm -f conf$$.sh
13801 # Find out how to test for executable files. Don't use a zero-byte file,
13802 # as systems may use methods other than mode bits to determine executability.
13803 cat >conf$$.file <<_ASEOF
13804 #! /bin/sh
13805 exit 0
13806 _ASEOF
13807 chmod +x conf$$.file
13808 if test -x conf$$.file >/dev/null 2>&1; then
13809 ac_executable_p="test -x"
13810 else
13811 ac_executable_p="test -f"
13813 rm -f conf$$.file
13815 # Extract the first word of "msgmerge", so it can be a program name with args.
13816 set dummy msgmerge; ac_word=$2
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13818 $as_echo_n "checking for $ac_word... " >&6; }
13819 if ${ac_cv_path_MSGMERGE+:} false; then :
13820 $as_echo_n "(cached) " >&6
13821 else
13822 case "$MSGMERGE" in
13823 [\\/]* | ?:[\\/]*)
13824 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13827 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13828 for ac_dir in $PATH; do
13829 IFS="$ac_save_IFS"
13830 test -z "$ac_dir" && ac_dir=.
13831 for ac_exec_ext in '' $ac_executable_extensions; do
13832 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13833 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13834 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13835 break 2
13838 done
13839 done
13840 IFS="$ac_save_IFS"
13841 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13843 esac
13845 MSGMERGE="$ac_cv_path_MSGMERGE"
13846 if test "$MSGMERGE" != ":"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13848 $as_echo "$MSGMERGE" >&6; }
13849 else
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13855 if test "$GMSGFMT" != ":"; then
13856 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13857 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13859 else
13860 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13862 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13863 GMSGFMT=":"
13867 if test "$XGETTEXT" != ":"; then
13868 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13869 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13871 else
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13873 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13874 XGETTEXT=":"
13876 rm -f messages.po
13879 ac_config_commands="$ac_config_commands default-1"
13885 if test -f ../gettext/uninstalled-config.sh; then
13886 relative_builddir='$(top_builddir)/../gettext'
13887 . ../gettext/uninstalled-config.sh
13888 else
13889 # The sister gettext directory doesn't exist and won't collect information on
13890 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13915 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13916 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13917 $as_echo_n "(cached) " >&6
13918 else
13919 gt_save_LIBS="$LIBS"
13920 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h. */
13923 #include <CoreFoundation/CFPreferences.h>
13925 main ()
13927 CFPreferencesCopyAppValue(NULL, NULL)
13929 return 0;
13931 _ACEOF
13932 if ac_fn_cxx_try_link "$LINENO"; then :
13933 gt_cv_func_CFPreferencesCopyAppValue=yes
13934 else
13935 gt_cv_func_CFPreferencesCopyAppValue=no
13937 rm -f core conftest.err conftest.$ac_objext \
13938 conftest$ac_exeext conftest.$ac_ext
13939 LIBS="$gt_save_LIBS"
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13942 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13943 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13945 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13949 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13950 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 gt_save_LIBS="$LIBS"
13954 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957 #include <CoreFoundation/CFLocale.h>
13959 main ()
13961 CFLocaleCopyPreferredLanguages();
13963 return 0;
13965 _ACEOF
13966 if ac_fn_cxx_try_link "$LINENO"; then :
13967 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13968 else
13969 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13971 rm -f core conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13973 LIBS="$gt_save_LIBS"
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13976 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13977 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13979 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13982 INTL_MACOSX_LIBS=
13983 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13984 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13985 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13993 LIBINTL=
13994 LTLIBINTL=
13995 POSUB=
13997 case " $gt_needs " in
13998 *" need-formatstring-macros "*) gt_api_version=3 ;;
13999 *" need-ngettext "*) gt_api_version=2 ;;
14000 *) gt_api_version=1 ;;
14001 esac
14002 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14003 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14005 if test "$USE_NLS" = "yes"; then
14006 gt_use_preinstalled_gnugettext=no
14009 if test $gt_api_version -ge 3; then
14010 gt_revision_test_code='
14011 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14012 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14013 #endif
14014 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14016 else
14017 gt_revision_test_code=
14019 if test $gt_api_version -ge 2; then
14020 gt_expression_test_code=' + * ngettext ("", "", 0)'
14021 else
14022 gt_expression_test_code=
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14026 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14027 if eval \${$gt_func_gnugettext_libc+:} false; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14033 #include <libintl.h>
14034 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14035 extern int _nl_msg_cat_cntr;
14036 extern int *_nl_domain_bindings;
14037 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
14038 #else
14039 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14040 #endif
14041 $gt_revision_test_code
14044 main ()
14047 bindtextdomain ("", "");
14048 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14051 return 0;
14053 _ACEOF
14054 if ac_fn_cxx_try_link "$LINENO"; then :
14055 eval "$gt_func_gnugettext_libc=yes"
14056 else
14057 eval "$gt_func_gnugettext_libc=no"
14059 rm -f core conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
14062 eval ac_res=\$$gt_func_gnugettext_libc
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14064 $as_echo "$ac_res" >&6; }
14066 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14072 am_save_CPPFLAGS="$CPPFLAGS"
14074 for element in $INCICONV; do
14075 haveit=
14076 for x in $CPPFLAGS; do
14078 acl_save_prefix="$prefix"
14079 prefix="$acl_final_prefix"
14080 acl_save_exec_prefix="$exec_prefix"
14081 exec_prefix="$acl_final_exec_prefix"
14082 eval x=\"$x\"
14083 exec_prefix="$acl_save_exec_prefix"
14084 prefix="$acl_save_prefix"
14086 if test "X$x" = "X$element"; then
14087 haveit=yes
14088 break
14090 done
14091 if test -z "$haveit"; then
14092 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14094 done
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14098 $as_echo_n "checking for iconv... " >&6; }
14099 if ${am_cv_func_iconv+:} false; then :
14100 $as_echo_n "(cached) " >&6
14101 else
14103 am_cv_func_iconv="no, consider installing GNU libiconv"
14104 am_cv_lib_iconv=no
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14108 #include <stdlib.h>
14109 #include <iconv.h>
14112 main ()
14114 iconv_t cd = iconv_open("","");
14115 iconv(cd,NULL,NULL,NULL,NULL);
14116 iconv_close(cd);
14118 return 0;
14120 _ACEOF
14121 if ac_fn_cxx_try_link "$LINENO"; then :
14122 am_cv_func_iconv=yes
14124 rm -f core conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14126 if test "$am_cv_func_iconv" != yes; then
14127 am_save_LIBS="$LIBS"
14128 LIBS="$LIBS $LIBICONV"
14129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14132 #include <stdlib.h>
14133 #include <iconv.h>
14136 main ()
14138 iconv_t cd = iconv_open("","");
14139 iconv(cd,NULL,NULL,NULL,NULL);
14140 iconv_close(cd);
14142 return 0;
14144 _ACEOF
14145 if ac_fn_cxx_try_link "$LINENO"; then :
14146 am_cv_lib_iconv=yes
14147 am_cv_func_iconv=yes
14149 rm -f core conftest.err conftest.$ac_objext \
14150 conftest$ac_exeext conftest.$ac_ext
14151 LIBS="$am_save_LIBS"
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14156 $as_echo "$am_cv_func_iconv" >&6; }
14157 if test "$am_cv_func_iconv" = yes; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14159 $as_echo_n "checking for working iconv... " >&6; }
14160 if ${am_cv_func_iconv_works+:} false; then :
14161 $as_echo_n "(cached) " >&6
14162 else
14164 am_save_LIBS="$LIBS"
14165 if test $am_cv_lib_iconv = yes; then
14166 LIBS="$LIBS $LIBICONV"
14168 am_cv_func_iconv_works=no
14169 for ac_iconv_const in '' 'const'; do
14170 if test "$cross_compiling" = yes; then :
14171 case "$host_os" in
14172 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14173 *) am_cv_func_iconv_works="guessing yes" ;;
14174 esac
14175 else
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14179 #include <iconv.h>
14180 #include <string.h>
14182 #ifndef ICONV_CONST
14183 # define ICONV_CONST $ac_iconv_const
14184 #endif
14187 main ()
14189 int result = 0;
14190 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14191 successful returns. This is even documented in
14192 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14194 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14195 if (cd_utf8_to_88591 != (iconv_t)(-1))
14197 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14198 char buf[10];
14199 ICONV_CONST char *inptr = input;
14200 size_t inbytesleft = strlen (input);
14201 char *outptr = buf;
14202 size_t outbytesleft = sizeof (buf);
14203 size_t res = iconv (cd_utf8_to_88591,
14204 &inptr, &inbytesleft,
14205 &outptr, &outbytesleft);
14206 if (res == 0)
14207 result |= 1;
14208 iconv_close (cd_utf8_to_88591);
14211 /* Test against Solaris 10 bug: Failures are not distinguishable from
14212 successful returns. */
14214 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14215 if (cd_ascii_to_88591 != (iconv_t)(-1))
14217 static ICONV_CONST char input[] = "\263";
14218 char buf[10];
14219 ICONV_CONST char *inptr = input;
14220 size_t inbytesleft = strlen (input);
14221 char *outptr = buf;
14222 size_t outbytesleft = sizeof (buf);
14223 size_t res = iconv (cd_ascii_to_88591,
14224 &inptr, &inbytesleft,
14225 &outptr, &outbytesleft);
14226 if (res == 0)
14227 result |= 2;
14228 iconv_close (cd_ascii_to_88591);
14231 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14233 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14234 if (cd_88591_to_utf8 != (iconv_t)(-1))
14236 static ICONV_CONST char input[] = "\304";
14237 static char buf[2] = { (char)0xDE, (char)0xAD };
14238 ICONV_CONST char *inptr = input;
14239 size_t inbytesleft = 1;
14240 char *outptr = buf;
14241 size_t outbytesleft = 1;
14242 size_t res = iconv (cd_88591_to_utf8,
14243 &inptr, &inbytesleft,
14244 &outptr, &outbytesleft);
14245 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14246 result |= 4;
14247 iconv_close (cd_88591_to_utf8);
14250 #if 0 /* This bug could be worked around by the caller. */
14251 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14253 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14254 if (cd_88591_to_utf8 != (iconv_t)(-1))
14256 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14257 char buf[50];
14258 ICONV_CONST char *inptr = input;
14259 size_t inbytesleft = strlen (input);
14260 char *outptr = buf;
14261 size_t outbytesleft = sizeof (buf);
14262 size_t res = iconv (cd_88591_to_utf8,
14263 &inptr, &inbytesleft,
14264 &outptr, &outbytesleft);
14265 if ((int)res > 0)
14266 result |= 8;
14267 iconv_close (cd_88591_to_utf8);
14270 #endif
14271 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14272 provided. */
14274 /* Try standardized names. */
14275 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14276 /* Try IRIX, OSF/1 names. */
14277 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14278 /* Try AIX names. */
14279 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14280 /* Try HP-UX names. */
14281 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14282 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14283 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14284 result |= 16;
14285 if (cd1 != (iconv_t)(-1))
14286 iconv_close (cd1);
14287 if (cd2 != (iconv_t)(-1))
14288 iconv_close (cd2);
14289 if (cd3 != (iconv_t)(-1))
14290 iconv_close (cd3);
14291 if (cd4 != (iconv_t)(-1))
14292 iconv_close (cd4);
14294 return result;
14297 return 0;
14299 _ACEOF
14300 if ac_fn_cxx_try_run "$LINENO"; then :
14301 am_cv_func_iconv_works=yes
14303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14304 conftest.$ac_objext conftest.beam conftest.$ac_ext
14307 test "$am_cv_func_iconv_works" = no || break
14308 done
14309 LIBS="$am_save_LIBS"
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14313 $as_echo "$am_cv_func_iconv_works" >&6; }
14314 case "$am_cv_func_iconv_works" in
14315 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14316 *) am_func_iconv=yes ;;
14317 esac
14318 else
14319 am_func_iconv=no am_cv_lib_iconv=no
14321 if test "$am_func_iconv" = yes; then
14323 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14326 if test "$am_cv_lib_iconv" = yes; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14328 $as_echo_n "checking how to link with libiconv... " >&6; }
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14330 $as_echo "$LIBICONV" >&6; }
14331 else
14332 CPPFLAGS="$am_save_CPPFLAGS"
14333 LIBICONV=
14334 LTLIBICONV=
14342 use_additional=yes
14344 acl_save_prefix="$prefix"
14345 prefix="$acl_final_prefix"
14346 acl_save_exec_prefix="$exec_prefix"
14347 exec_prefix="$acl_final_exec_prefix"
14349 eval additional_includedir=\"$includedir\"
14350 eval additional_libdir=\"$libdir\"
14352 exec_prefix="$acl_save_exec_prefix"
14353 prefix="$acl_save_prefix"
14356 # Check whether --with-libintl-prefix was given.
14357 if test "${with_libintl_prefix+set}" = set; then :
14358 withval=$with_libintl_prefix;
14359 if test "X$withval" = "Xno"; then
14360 use_additional=no
14361 else
14362 if test "X$withval" = "X"; then
14364 acl_save_prefix="$prefix"
14365 prefix="$acl_final_prefix"
14366 acl_save_exec_prefix="$exec_prefix"
14367 exec_prefix="$acl_final_exec_prefix"
14369 eval additional_includedir=\"$includedir\"
14370 eval additional_libdir=\"$libdir\"
14372 exec_prefix="$acl_save_exec_prefix"
14373 prefix="$acl_save_prefix"
14375 else
14376 additional_includedir="$withval/include"
14377 additional_libdir="$withval/lib"
14384 # Check whether --with-libintl-type was given.
14385 if test "${with_libintl_type+set}" = set; then :
14386 withval=$with_libintl_type; with_libintl_type=$withval
14387 else
14388 with_libintl_type=auto
14391 lib_type=`eval echo \$with_libintl_type`
14393 LIBINTL=
14394 LTLIBINTL=
14395 INCINTL=
14396 rpathdirs=
14397 ltrpathdirs=
14398 names_already_handled=
14399 names_next_round='intl '
14400 while test -n "$names_next_round"; do
14401 names_this_round="$names_next_round"
14402 names_next_round=
14403 for name in $names_this_round; do
14404 already_handled=
14405 for n in $names_already_handled; do
14406 if test "$n" = "$name"; then
14407 already_handled=yes
14408 break
14410 done
14411 if test -z "$already_handled"; then
14412 names_already_handled="$names_already_handled $name"
14413 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14414 eval value=\"\$HAVE_LIB$uppername\"
14415 if test -n "$value"; then
14416 if test "$value" = yes; then
14417 eval value=\"\$LIB$uppername\"
14418 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14419 eval value=\"\$LTLIB$uppername\"
14420 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14421 else
14424 else
14425 found_dir=
14426 found_la=
14427 found_so=
14428 found_a=
14429 if test $use_additional = yes; then
14430 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14431 found_dir="$additional_libdir"
14432 found_so="$additional_libdir/lib$name.$shlibext"
14433 if test -f "$additional_libdir/lib$name.la"; then
14434 found_la="$additional_libdir/lib$name.la"
14436 elif test x$lib_type != xshared; then
14437 if test -f "$additional_libdir/lib$name.$libext"; then
14438 found_dir="$additional_libdir"
14439 found_a="$additional_libdir/lib$name.$libext"
14440 if test -f "$additional_libdir/lib$name.la"; then
14441 found_la="$additional_libdir/lib$name.la"
14446 if test "X$found_dir" = "X"; then
14447 for x in $LDFLAGS $LTLIBINTL; do
14449 acl_save_prefix="$prefix"
14450 prefix="$acl_final_prefix"
14451 acl_save_exec_prefix="$exec_prefix"
14452 exec_prefix="$acl_final_exec_prefix"
14453 eval x=\"$x\"
14454 exec_prefix="$acl_save_exec_prefix"
14455 prefix="$acl_save_prefix"
14457 case "$x" in
14458 -L*)
14459 dir=`echo "X$x" | sed -e 's/^X-L//'`
14460 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14461 found_dir="$dir"
14462 found_so="$dir/lib$name.$shlibext"
14463 if test -f "$dir/lib$name.la"; then
14464 found_la="$dir/lib$name.la"
14466 elif test x$lib_type != xshared; then
14467 if test -f "$dir/lib$name.$libext"; then
14468 found_dir="$dir"
14469 found_a="$dir/lib$name.$libext"
14470 if test -f "$dir/lib$name.la"; then
14471 found_la="$dir/lib$name.la"
14476 esac
14477 if test "X$found_dir" != "X"; then
14478 break
14480 done
14482 if test "X$found_dir" != "X"; then
14483 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14484 if test "X$found_so" != "X"; then
14485 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14486 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14487 else
14488 haveit=
14489 for x in $ltrpathdirs; do
14490 if test "X$x" = "X$found_dir"; then
14491 haveit=yes
14492 break
14494 done
14495 if test -z "$haveit"; then
14496 ltrpathdirs="$ltrpathdirs $found_dir"
14498 if test "$hardcode_direct" = yes; then
14499 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14500 else
14501 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14502 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14503 haveit=
14504 for x in $rpathdirs; do
14505 if test "X$x" = "X$found_dir"; then
14506 haveit=yes
14507 break
14509 done
14510 if test -z "$haveit"; then
14511 rpathdirs="$rpathdirs $found_dir"
14513 else
14514 haveit=
14515 for x in $LDFLAGS $LIBINTL; do
14517 acl_save_prefix="$prefix"
14518 prefix="$acl_final_prefix"
14519 acl_save_exec_prefix="$exec_prefix"
14520 exec_prefix="$acl_final_exec_prefix"
14521 eval x=\"$x\"
14522 exec_prefix="$acl_save_exec_prefix"
14523 prefix="$acl_save_prefix"
14525 if test "X$x" = "X-L$found_dir"; then
14526 haveit=yes
14527 break
14529 done
14530 if test -z "$haveit"; then
14531 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14533 if test "$hardcode_minus_L" != no; then
14534 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14535 else
14536 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14541 else
14542 if test "X$found_a" != "X"; then
14543 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14544 else
14545 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14548 additional_includedir=
14549 case "$found_dir" in
14550 */lib | */lib/)
14551 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14552 additional_includedir="$basedir/include"
14554 esac
14555 if test "X$additional_includedir" != "X"; then
14556 if test "X$additional_includedir" != "X/usr/include"; then
14557 haveit=
14558 if test "X$additional_includedir" = "X/usr/local/include"; then
14559 if test -n "$GCC"; then
14560 case $host_os in
14561 linux*) haveit=yes;;
14562 esac
14565 if test -z "$haveit"; then
14566 for x in $CPPFLAGS $INCINTL; do
14568 acl_save_prefix="$prefix"
14569 prefix="$acl_final_prefix"
14570 acl_save_exec_prefix="$exec_prefix"
14571 exec_prefix="$acl_final_exec_prefix"
14572 eval x=\"$x\"
14573 exec_prefix="$acl_save_exec_prefix"
14574 prefix="$acl_save_prefix"
14576 if test "X$x" = "X-I$additional_includedir"; then
14577 haveit=yes
14578 break
14580 done
14581 if test -z "$haveit"; then
14582 if test -d "$additional_includedir"; then
14583 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14589 if test -n "$found_la"; then
14590 save_libdir="$libdir"
14591 case "$found_la" in
14592 */* | *\\*) . "$found_la" ;;
14593 *) . "./$found_la" ;;
14594 esac
14595 libdir="$save_libdir"
14596 for dep in $dependency_libs; do
14597 case "$dep" in
14598 -L*)
14599 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14600 if test "X$additional_libdir" != "X/usr/lib"; then
14601 haveit=
14602 if test "X$additional_libdir" = "X/usr/local/lib"; then
14603 if test -n "$GCC"; then
14604 case $host_os in
14605 linux*) haveit=yes;;
14606 esac
14609 if test -z "$haveit"; then
14610 haveit=
14611 for x in $LDFLAGS $LIBINTL; do
14613 acl_save_prefix="$prefix"
14614 prefix="$acl_final_prefix"
14615 acl_save_exec_prefix="$exec_prefix"
14616 exec_prefix="$acl_final_exec_prefix"
14617 eval x=\"$x\"
14618 exec_prefix="$acl_save_exec_prefix"
14619 prefix="$acl_save_prefix"
14621 if test "X$x" = "X-L$additional_libdir"; then
14622 haveit=yes
14623 break
14625 done
14626 if test -z "$haveit"; then
14627 if test -d "$additional_libdir"; then
14628 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14631 haveit=
14632 for x in $LDFLAGS $LTLIBINTL; do
14634 acl_save_prefix="$prefix"
14635 prefix="$acl_final_prefix"
14636 acl_save_exec_prefix="$exec_prefix"
14637 exec_prefix="$acl_final_exec_prefix"
14638 eval x=\"$x\"
14639 exec_prefix="$acl_save_exec_prefix"
14640 prefix="$acl_save_prefix"
14642 if test "X$x" = "X-L$additional_libdir"; then
14643 haveit=yes
14644 break
14646 done
14647 if test -z "$haveit"; then
14648 if test -d "$additional_libdir"; then
14649 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14655 -R*)
14656 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14657 if test "$enable_rpath" != no; then
14658 haveit=
14659 for x in $rpathdirs; do
14660 if test "X$x" = "X$dir"; then
14661 haveit=yes
14662 break
14664 done
14665 if test -z "$haveit"; then
14666 rpathdirs="$rpathdirs $dir"
14668 haveit=
14669 for x in $ltrpathdirs; do
14670 if test "X$x" = "X$dir"; then
14671 haveit=yes
14672 break
14674 done
14675 if test -z "$haveit"; then
14676 ltrpathdirs="$ltrpathdirs $dir"
14680 -l*)
14681 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14683 *.la)
14684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14687 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14688 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14690 esac
14691 done
14693 else
14694 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14695 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14696 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14697 else
14698 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14699 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14704 done
14705 done
14706 if test "X$rpathdirs" != "X"; then
14707 if test -n "$hardcode_libdir_separator"; then
14708 alldirs=
14709 for found_dir in $rpathdirs; do
14710 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14711 done
14712 acl_save_libdir="$libdir"
14713 libdir="$alldirs"
14714 eval flag=\"$hardcode_libdir_flag_spec\"
14715 libdir="$acl_save_libdir"
14716 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14717 else
14718 for found_dir in $rpathdirs; do
14719 acl_save_libdir="$libdir"
14720 libdir="$found_dir"
14721 eval flag=\"$hardcode_libdir_flag_spec\"
14722 libdir="$acl_save_libdir"
14723 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14724 done
14727 if test "X$ltrpathdirs" != "X"; then
14728 for found_dir in $ltrpathdirs; do
14729 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14730 done
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14734 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14735 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14736 $as_echo_n "(cached) " >&6
14737 else
14738 gt_save_CPPFLAGS="$CPPFLAGS"
14739 CPPFLAGS="$CPPFLAGS $INCINTL"
14740 gt_save_LIBS="$LIBS"
14741 LIBS="$LIBS $LIBINTL"
14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14745 #include <libintl.h>
14746 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14747 extern int _nl_msg_cat_cntr;
14748 extern
14749 #ifdef __cplusplus
14751 #endif
14752 const char *_nl_expand_alias (const char *);
14753 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14754 #else
14755 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14756 #endif
14757 $gt_revision_test_code
14760 main ()
14763 bindtextdomain ("", "");
14764 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14767 return 0;
14769 _ACEOF
14770 if ac_fn_cxx_try_link "$LINENO"; then :
14771 eval "$gt_func_gnugettext_libintl=yes"
14772 else
14773 eval "$gt_func_gnugettext_libintl=no"
14775 rm -f core conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14777 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14778 LIBS="$LIBS $LIBICONV"
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14782 #include <libintl.h>
14783 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14784 extern int _nl_msg_cat_cntr;
14785 extern
14786 #ifdef __cplusplus
14788 #endif
14789 const char *_nl_expand_alias (const char *);
14790 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14791 #else
14792 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14793 #endif
14794 $gt_revision_test_code
14797 main ()
14800 bindtextdomain ("", "");
14801 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14804 return 0;
14806 _ACEOF
14807 if ac_fn_cxx_try_link "$LINENO"; then :
14808 LIBINTL="$LIBINTL $LIBICONV"
14809 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14810 eval "$gt_func_gnugettext_libintl=yes"
14813 rm -f core conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
14816 CPPFLAGS="$gt_save_CPPFLAGS"
14817 LIBS="$gt_save_LIBS"
14819 eval ac_res=\$$gt_func_gnugettext_libintl
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14821 $as_echo "$ac_res" >&6; }
14824 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14825 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14826 && test "$PACKAGE" != gettext-runtime \
14827 && test "$PACKAGE" != gettext-tools; }; then
14828 gt_use_preinstalled_gnugettext=yes
14829 else
14830 LIBINTL=
14831 LTLIBINTL=
14832 INCINTL=
14837 if test -n "$INTL_MACOSX_LIBS"; then
14838 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14839 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14840 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14841 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14845 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14846 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14848 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14850 else
14851 USE_NLS=no
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14856 $as_echo_n "checking whether to use NLS... " >&6; }
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14858 $as_echo "$USE_NLS" >&6; }
14859 if test "$USE_NLS" = "yes"; then
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14861 $as_echo_n "checking where the gettext function comes from... " >&6; }
14862 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14863 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14864 gt_source="external libintl"
14865 else
14866 gt_source="libc"
14868 else
14869 gt_source="included intl directory"
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14872 $as_echo "$gt_source" >&6; }
14875 if test "$USE_NLS" = "yes"; then
14877 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14878 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14880 $as_echo_n "checking how to link with libintl... " >&6; }
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14882 $as_echo "$LIBINTL" >&6; }
14884 for element in $INCINTL; do
14885 haveit=
14886 for x in $CPPFLAGS; do
14888 acl_save_prefix="$prefix"
14889 prefix="$acl_final_prefix"
14890 acl_save_exec_prefix="$exec_prefix"
14891 exec_prefix="$acl_final_exec_prefix"
14892 eval x=\"$x\"
14893 exec_prefix="$acl_save_exec_prefix"
14894 prefix="$acl_save_prefix"
14896 if test "X$x" = "X$element"; then
14897 haveit=yes
14898 break
14900 done
14901 if test -z "$haveit"; then
14902 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14904 done
14909 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14912 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14916 POSUB=po
14921 INTLLIBS="$LIBINTL"
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14941 $as_echo_n "checking whether NLS is requested... " >&6; }
14942 if test x"$USE_NLS" != xyes; then
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944 $as_echo "no" >&6; }
14945 else
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14947 $as_echo "yes" >&6; }
14949 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14953 $as_echo_n "checking for catalogs to be installed... " >&6; }
14954 # Look for .po and .gmo files in the source directory.
14955 CATALOGS=
14956 XLINGUAS=
14957 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14958 # If there aren't any .gmo files the shell will give us the
14959 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14960 # weeded out.
14961 case "$cat" in *\**)
14962 continue;;
14963 esac
14964 # The quadruple backslash is collapsed to a double backslash
14965 # by the backticks, then collapsed again by the double quotes,
14966 # leaving us with one backslash in the sed expression (right
14967 # before the dot that mustn't act as a wildcard).
14968 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14969 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14970 # The user is allowed to set LINGUAS to a list of languages to
14971 # install catalogs for. If it's empty that means "all of them."
14972 if test "x$LINGUAS" = x; then
14973 CATALOGS="$CATALOGS $cat"
14974 XLINGUAS="$XLINGUAS $lang"
14975 else
14976 case "$LINGUAS" in *$lang*)
14977 CATALOGS="$CATALOGS $cat"
14978 XLINGUAS="$XLINGUAS $lang"
14980 esac
14982 done
14983 LINGUAS="$XLINGUAS"
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14985 $as_echo "$LINGUAS" >&6; }
14988 DATADIRNAME=share
14990 INSTOBJEXT=.mo
14992 GENCAT=gencat
14994 CATOBJEXT=.gmo
14998 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14999 # -liconv on the link line twice.
15000 case "$LIBINTL" in *$LIBICONV*)
15001 LIBICONV= ;;
15002 esac
15004 # Check whether --enable-secureplt was given.
15005 if test "${enable_secureplt+set}" = set; then :
15006 enableval=$enable_secureplt;
15010 # Check whether --enable-mingw-wildcard was given.
15011 if test "${enable_mingw_wildcard+set}" = set; then :
15012 enableval=$enable_mingw_wildcard;
15013 else
15014 enable_mingw_wildcard=platform
15017 if test x"$enable_mingw_wildcard" != xplatform ; then :
15019 cat >>confdefs.h <<_ACEOF
15020 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
15021 _ACEOF
15025 # Check whether --enable-large-address-aware was given.
15026 if test "${enable_large_address_aware+set}" = set; then :
15027 enableval=$enable_large_address_aware;
15030 if test x"$enable_large_address_aware" = xyes; then :
15032 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
15036 # Check whether --enable-leading-mingw64-underscores was given.
15037 if test "${enable_leading_mingw64_underscores+set}" = set; then :
15038 enableval=$enable_leading_mingw64_underscores;
15041 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
15043 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
15047 # Check whether --enable-cld was given.
15048 if test "${enable_cld+set}" = set; then :
15049 enableval=$enable_cld;
15050 else
15051 enable_cld=no
15055 # Check whether --enable-frame-pointer was given.
15056 if test "${enable_frame_pointer+set}" = set; then :
15057 enableval=$enable_frame_pointer;
15058 else
15060 case $target_os in
15061 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
15062 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
15063 enable_frame_pointer=no
15066 enable_frame_pointer=yes
15068 esac
15073 case $target in
15074 i[34567]86-*-* | x86_64-*-*)
15075 if test "x$enable_cld" = xyes; then
15076 tm_defines="${tm_defines} USE_IX86_CLD=1"
15078 if test "x$enable_frame_pointer" = xyes; then
15079 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
15082 esac
15084 # Windows32 Registry support for specifying GCC installation paths.
15085 # Check whether --enable-win32-registry was given.
15086 if test "${enable_win32_registry+set}" = set; then :
15087 enableval=$enable_win32_registry;
15091 case $host_os in
15092 win32 | pe | cygwin* | mingw32*)
15093 if test "x$enable_win32_registry" != xno; then
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
15095 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
15096 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15097 $as_echo_n "(cached) " >&6
15098 else
15099 ac_func_search_save_LIBS=$LIBS
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15103 /* Override any GCC internal prototype to avoid an error.
15104 Use char because int might match the return type of a GCC
15105 builtin and then its argument prototype would still apply. */
15106 #ifdef __cplusplus
15107 extern "C"
15108 #endif
15109 char RegOpenKeyExA ();
15111 main ()
15113 return RegOpenKeyExA ();
15115 return 0;
15117 _ACEOF
15118 for ac_lib in '' advapi32; do
15119 if test -z "$ac_lib"; then
15120 ac_res="none required"
15121 else
15122 ac_res=-l$ac_lib
15123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15125 if ac_fn_cxx_try_link "$LINENO"; then :
15126 ac_cv_search_RegOpenKeyExA=$ac_res
15128 rm -f core conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext
15130 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15131 break
15133 done
15134 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15136 else
15137 ac_cv_search_RegOpenKeyExA=no
15139 rm conftest.$ac_ext
15140 LIBS=$ac_func_search_save_LIBS
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
15143 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
15144 ac_res=$ac_cv_search_RegOpenKeyExA
15145 if test "$ac_res" != no; then :
15146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15148 else
15149 enable_win32_registry=no
15154 if test "x$enable_win32_registry" != xno; then
15156 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
15159 if test "x$enable_win32_registry" != xyes \
15160 && test "x$enable_win32_registry" != x; then
15162 cat >>confdefs.h <<_ACEOF
15163 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
15164 _ACEOF
15169 esac
15171 # Get an absolute path to the GCC top-level source directory
15172 holddir=`${PWDCMD-pwd}`
15173 cd $srcdir
15174 topdir=`${PWDCMD-pwd}`
15175 cd $holddir
15177 # Conditionalize the makefile for this host machine.
15178 xmake_file=
15179 for f in ${host_xmake_file}
15181 if test -f ${srcdir}/config/$f
15182 then
15183 xmake_file="${xmake_file} \$(srcdir)/config/$f"
15185 done
15187 # Conditionalize the makefile for this target machine.
15188 tmake_file_=
15189 for f in ${tmake_file}
15191 if test -f ${srcdir}/config/$f
15192 then
15193 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15195 done
15196 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
15198 out_object_file=`basename $out_file .cc`.o
15199 common_out_object_file=`basename $common_out_file .cc`.o
15201 tm_file_list="options.h"
15202 tm_include_list="options.h insn-constants.h"
15203 for f in $tm_file; do
15204 case $f in
15205 ./* )
15206 f=`echo $f | sed 's/^..//'`
15207 tm_file_list="${tm_file_list} $f"
15208 tm_include_list="${tm_include_list} $f"
15210 defaults.h )
15211 tm_file_list="${tm_file_list} \$(srcdir)/$f"
15212 tm_include_list="${tm_include_list} $f"
15215 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
15216 tm_include_list="${tm_include_list} config/$f"
15218 esac
15219 done
15221 tm_p_file_list=
15222 tm_p_include_list=
15223 for f in $tm_p_file; do
15224 case $f in
15225 tm-preds.h )
15226 tm_p_file_list="${tm_p_file_list} $f"
15227 tm_p_include_list="${tm_p_include_list} $f"
15230 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
15231 tm_p_include_list="${tm_p_include_list} config/$f"
15232 esac
15233 done
15235 tm_d_file_list=
15236 tm_d_include_list=
15237 for f in $tm_d_file; do
15238 case $f in
15240 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
15241 tm_d_include_list="${tm_d_include_list} config/$f"
15243 esac
15244 done
15246 tm_rust_file_list=
15247 tm_rust_include_list=
15248 for f in $tm_rust_file; do
15249 case $f in
15251 tm_rust_file_list="${tm_rust_file_list} \$(srcdir)/config/$f"
15252 tm_rust_include_list="${tm_rust_include_list} config/$f"
15254 esac
15255 done
15257 xm_file_list=
15258 xm_include_list=
15259 for f in $xm_file; do
15260 case $f in
15261 ansidecl.h )
15262 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
15263 xm_include_list="${xm_include_list} $f"
15265 auto-host.h )
15266 xm_file_list="${xm_file_list} $f"
15267 xm_include_list="${xm_include_list} $f"
15270 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
15271 xm_include_list="${xm_include_list} config/$f"
15273 esac
15274 done
15276 host_xm_file_list=
15277 host_xm_include_list=
15278 for f in $host_xm_file; do
15279 case $f in
15280 ansidecl.h )
15281 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
15282 host_xm_include_list="${host_xm_include_list} $f"
15284 auto-host.h )
15285 host_xm_file_list="${host_xm_file_list} $f"
15286 host_xm_include_list="${host_xm_include_list} $f"
15289 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
15290 host_xm_include_list="${host_xm_include_list} config/$f"
15292 esac
15293 done
15295 build_xm_file_list=
15296 for f in $build_xm_file; do
15297 case $f in
15298 ansidecl.h )
15299 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
15300 build_xm_include_list="${build_xm_include_list} $f"
15302 auto-build.h | auto-host.h )
15303 build_xm_file_list="${build_xm_file_list} $f"
15304 build_xm_include_list="${build_xm_include_list} $f"
15307 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
15308 build_xm_include_list="${build_xm_include_list} config/$f"
15310 esac
15311 done
15313 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15314 # cross-compiler which does not use the native headers and libraries.
15315 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15316 CROSS=
15317 ALL=all.internal
15318 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
15319 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
15321 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
15322 test x$build != x$host || test "x$with_build_sysroot" != x; then
15323 if test "x$with_build_sysroot" != x; then
15324 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15325 else
15326 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15329 if test x$host != x$target
15330 then
15331 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
15332 ALL=all.cross
15333 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
15334 elif test "x$TARGET_SYSTEM_ROOT" != x; then
15335 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15338 if test "x$with_build_sysroot" != "x"; then
15339 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
15340 elif test "x$with_sysroot" = x; then
15341 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
15342 elif test "x$with_sysroot" = xyes; then
15343 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15344 else
15345 target_header_dir="${with_sysroot}${native_system_header_dir}"
15347 else
15348 target_header_dir=${native_system_header_dir}
15351 # If this is a cross-compiler that does not
15352 # have its own set of headers then define
15353 # inhibit_libc
15355 # If this is using newlib, without having the headers available now,
15356 # then define inhibit_libc in LIBGCC2_CFLAGS.
15357 # This prevents libgcc2 from containing any code which requires libc
15358 # support.
15359 : ${inhibit_libc=false}
15360 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
15361 test x$with_newlib = xyes ; } &&
15362 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
15363 inhibit_libc=true
15367 # When building gcc with a cross-compiler, we need to adjust things so
15368 # that the generator programs are still built with the native compiler.
15369 # Also, we cannot run fixincludes.
15371 # These are the normal (build=host) settings:
15372 CC_FOR_BUILD='$(CC)'
15373 CXX_FOR_BUILD='$(CXX)'
15374 BUILD_CFLAGS='$(ALL_CFLAGS)'
15375 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
15376 BUILD_LDFLAGS='$(LDFLAGS)'
15377 STMP_FIXINC=stmp-fixinc
15379 # And these apply if build != host, or we are generating coverage data
15380 if test x$build != x$host || test "x$coverage_flags" != x
15381 then
15382 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15383 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15384 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
15388 if test x$enable_fixincludes = xno;
15389 then
15390 STMP_FIXINC=''
15393 # Expand extra_headers to include complete path.
15394 # This substitutes for lots of t-* files.
15395 extra_headers_list=
15396 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15397 for file in ${extra_headers} ; do
15398 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15399 done
15401 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15402 if test x"$use_gcc_tgmath" = xyes
15403 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15406 # Define collect2 in Makefile.
15407 case $host_can_use_collect2 in
15408 no) collect2= ;;
15409 *) collect2='collect2$(exeext)' ;;
15410 esac
15413 # Add a definition of USE_COLLECT2 if system wants one.
15414 case $use_collect2 in
15415 no) use_collect2= ;;
15416 "") ;;
15418 host_xm_defines="${host_xm_defines} USE_COLLECT2"
15419 xm_defines="${xm_defines} USE_COLLECT2"
15420 case $host_can_use_collect2 in
15422 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
15424 esac
15426 esac
15429 cat >>confdefs.h <<_ACEOF
15430 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15431 _ACEOF
15434 # ---------------------------
15435 # Assembler & linker features
15436 # ---------------------------
15438 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15439 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15440 # However when ld-new is first executed from the build tree, libtool will
15441 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15442 # to the build tree. While doing this we need to use the previous-stage
15443 # linker, or we have an infinite loop. The presence of a shell script as
15444 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15445 # the gcc/collect-ld script. So we need to know how libtool works, or
15446 # exec-tool will fail.
15449 case `pwd` in
15450 *\ * | *\ *)
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15452 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15453 esac
15457 macro_version='2.2.7a'
15458 macro_revision='1.3134'
15472 ltmain="$ac_aux_dir/ltmain.sh"
15474 # Backslashify metacharacters that are still active within
15475 # double-quoted strings.
15476 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15478 # Same as above, but do not quote variable references.
15479 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15481 # Sed substitution to delay expansion of an escaped shell variable in a
15482 # double_quote_subst'ed string.
15483 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15485 # Sed substitution to delay expansion of an escaped single quote.
15486 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15488 # Sed substitution to avoid accidental globbing in evaled expressions
15489 no_glob_subst='s/\*/\\\*/g'
15491 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15493 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15496 $as_echo_n "checking how to print strings... " >&6; }
15497 # Test print first, because it will be a builtin if present.
15498 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15499 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15500 ECHO='print -r --'
15501 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15502 ECHO='printf %s\n'
15503 else
15504 # Use this function as a fallback that always works.
15505 func_fallback_echo ()
15507 eval 'cat <<_LTECHO_EOF
15509 _LTECHO_EOF'
15511 ECHO='func_fallback_echo'
15514 # func_echo_all arg...
15515 # Invoke $ECHO with all args, space-separated.
15516 func_echo_all ()
15518 $ECHO ""
15521 case "$ECHO" in
15522 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15523 $as_echo "printf" >&6; } ;;
15524 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15525 $as_echo "print -r" >&6; } ;;
15526 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15527 $as_echo "cat" >&6; } ;;
15528 esac
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15544 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15545 if ${ac_cv_path_SED+:} false; then :
15546 $as_echo_n "(cached) " >&6
15547 else
15548 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15549 for ac_i in 1 2 3 4 5 6 7; do
15550 ac_script="$ac_script$as_nl$ac_script"
15551 done
15552 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15553 { ac_script=; unset ac_script;}
15554 if test -z "$SED"; then
15555 ac_path_SED_found=false
15556 # Loop through the user's path and test for each of PROGNAME-LIST
15557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15558 for as_dir in $PATH
15560 IFS=$as_save_IFS
15561 test -z "$as_dir" && as_dir=.
15562 for ac_prog in sed gsed; do
15563 for ac_exec_ext in '' $ac_executable_extensions; do
15564 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15565 as_fn_executable_p "$ac_path_SED" || continue
15566 # Check for GNU ac_path_SED and select it if it is found.
15567 # Check for GNU $ac_path_SED
15568 case `"$ac_path_SED" --version 2>&1` in
15569 *GNU*)
15570 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15572 ac_count=0
15573 $as_echo_n 0123456789 >"conftest.in"
15574 while :
15576 cat "conftest.in" "conftest.in" >"conftest.tmp"
15577 mv "conftest.tmp" "conftest.in"
15578 cp "conftest.in" "conftest.nl"
15579 $as_echo '' >> "conftest.nl"
15580 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15582 as_fn_arith $ac_count + 1 && ac_count=$as_val
15583 if test $ac_count -gt ${ac_path_SED_max-0}; then
15584 # Best one so far, save it but keep looking for a better one
15585 ac_cv_path_SED="$ac_path_SED"
15586 ac_path_SED_max=$ac_count
15588 # 10*(2^10) chars as input seems more than enough
15589 test $ac_count -gt 10 && break
15590 done
15591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15592 esac
15594 $ac_path_SED_found && break 3
15595 done
15596 done
15597 done
15598 IFS=$as_save_IFS
15599 if test -z "$ac_cv_path_SED"; then
15600 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15602 else
15603 ac_cv_path_SED=$SED
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15608 $as_echo "$ac_cv_path_SED" >&6; }
15609 SED="$ac_cv_path_SED"
15610 rm -f conftest.sed
15612 test -z "$SED" && SED=sed
15613 Xsed="$SED -e 1s/^X//"
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15626 $as_echo_n "checking for fgrep... " >&6; }
15627 if ${ac_cv_path_FGREP+:} false; then :
15628 $as_echo_n "(cached) " >&6
15629 else
15630 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
15631 then ac_cv_path_FGREP="$GREP -F"
15632 else
15633 if test -z "$FGREP"; then
15634 ac_path_FGREP_found=false
15635 # Loop through the user's path and test for each of PROGNAME-LIST
15636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15639 IFS=$as_save_IFS
15640 test -z "$as_dir" && as_dir=.
15641 for ac_prog in fgrep; do
15642 for ac_exec_ext in '' $ac_executable_extensions; do
15643 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
15644 as_fn_executable_p "$ac_path_FGREP" || continue
15645 # Check for GNU ac_path_FGREP and select it if it is found.
15646 # Check for GNU $ac_path_FGREP
15647 case `"$ac_path_FGREP" --version 2>&1` in
15648 *GNU*)
15649 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
15651 ac_count=0
15652 $as_echo_n 0123456789 >"conftest.in"
15653 while :
15655 cat "conftest.in" "conftest.in" >"conftest.tmp"
15656 mv "conftest.tmp" "conftest.in"
15657 cp "conftest.in" "conftest.nl"
15658 $as_echo 'FGREP' >> "conftest.nl"
15659 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
15660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15661 as_fn_arith $ac_count + 1 && ac_count=$as_val
15662 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15663 # Best one so far, save it but keep looking for a better one
15664 ac_cv_path_FGREP="$ac_path_FGREP"
15665 ac_path_FGREP_max=$ac_count
15667 # 10*(2^10) chars as input seems more than enough
15668 test $ac_count -gt 10 && break
15669 done
15670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15671 esac
15673 $ac_path_FGREP_found && break 3
15674 done
15675 done
15676 done
15677 IFS=$as_save_IFS
15678 if test -z "$ac_cv_path_FGREP"; then
15679 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15681 else
15682 ac_cv_path_FGREP=$FGREP
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15688 $as_echo "$ac_cv_path_FGREP" >&6; }
15689 FGREP="$ac_cv_path_FGREP"
15692 test -z "$GREP" && GREP=grep
15712 # Check whether --with-gnu-ld was given.
15713 if test "${with_gnu_ld+set}" = set; then :
15714 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15715 else
15716 with_gnu_ld=no
15719 ac_prog=ld
15720 if test "$GCC" = yes; then
15721 # Check if gcc -print-prog-name=ld gives a path.
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15723 $as_echo_n "checking for ld used by $CC... " >&6; }
15724 case $host in
15725 *-*-mingw*)
15726 # gcc leaves a trailing carriage return which upsets mingw
15727 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15729 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15730 esac
15731 case $ac_prog in
15732 # Accept absolute paths.
15733 [\\/]* | ?:[\\/]*)
15734 re_direlt='/[^/][^/]*/\.\./'
15735 # Canonicalize the pathname of ld
15736 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15737 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15738 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15739 done
15740 test -z "$LD" && LD="$ac_prog"
15743 # If it fails, then pretend we aren't using GCC.
15744 ac_prog=ld
15747 # If it is relative, then search for the first ld in PATH.
15748 with_gnu_ld=unknown
15750 esac
15751 elif test "$with_gnu_ld" = yes; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15753 $as_echo_n "checking for GNU ld... " >&6; }
15754 else
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15756 $as_echo_n "checking for non-GNU ld... " >&6; }
15758 if ${lt_cv_path_LD+:} false; then :
15759 $as_echo_n "(cached) " >&6
15760 else
15761 if test -z "$LD"; then
15762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15763 for ac_dir in $PATH; do
15764 IFS="$lt_save_ifs"
15765 test -z "$ac_dir" && ac_dir=.
15766 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15767 lt_cv_path_LD="$ac_dir/$ac_prog"
15768 # Check to see if the program is GNU ld. I'd rather use --version,
15769 # but apparently some variants of GNU ld only accept -v.
15770 # Break only if it was the GNU/non-GNU ld that we prefer.
15771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15772 *GNU* | *'with BFD'*)
15773 test "$with_gnu_ld" != no && break
15776 test "$with_gnu_ld" != yes && break
15778 esac
15780 done
15781 IFS="$lt_save_ifs"
15782 else
15783 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15787 LD="$lt_cv_path_LD"
15788 if test -n "$LD"; then
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15790 $as_echo "$LD" >&6; }
15791 else
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15793 $as_echo "no" >&6; }
15795 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15797 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15798 if ${lt_cv_prog_gnu_ld+:} false; then :
15799 $as_echo_n "(cached) " >&6
15800 else
15801 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15802 case `$LD -v 2>&1 </dev/null` in
15803 *GNU* | *'with BFD'*)
15804 lt_cv_prog_gnu_ld=yes
15807 lt_cv_prog_gnu_ld=no
15809 esac
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15812 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15813 with_gnu_ld=$lt_cv_prog_gnu_ld
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15824 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15825 if ${lt_cv_path_NM+:} false; then :
15826 $as_echo_n "(cached) " >&6
15827 else
15828 if test -n "$NM"; then
15829 # Let the user override the nm to test.
15830 lt_nm_to_check="$NM"
15831 else
15832 lt_nm_to_check="${ac_tool_prefix}nm"
15833 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15834 lt_nm_to_check="$lt_nm_to_check nm"
15837 for lt_tmp_nm in "$lt_nm_to_check"; do
15838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15839 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15840 IFS="$lt_save_ifs"
15841 test -z "$ac_dir" && ac_dir=.
15842 # Strip out any user-provided options from the nm to test twice,
15843 # the first time to test to see if nm (rather than its options) has
15844 # an explicit path, the second time to yield a file which can be
15845 # nm'ed itself.
15846 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15847 case "$tmp_nm_path" in
15848 */*|*\\*) tmp_nm="$lt_tmp_nm";;
15849 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
15850 esac
15851 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15852 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
15853 # Check to see if the nm accepts a BSD-compat flag.
15854 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15855 # nm: unknown option "B" ignored
15856 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15857 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
15858 break
15861 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15862 *$tmp_nm*)
15863 lt_cv_path_NM="$tmp_nm -p"
15864 break
15867 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15868 continue # so that we can try to find one that supports BSD flags
15870 esac
15872 esac
15874 done
15875 IFS="$lt_save_ifs"
15876 done
15877 : ${lt_cv_path_NM=no}
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15880 $as_echo "$lt_cv_path_NM" >&6; }
15881 if test "$lt_cv_path_NM" != "no"; then
15882 NM="$lt_cv_path_NM"
15883 else
15884 # Didn't find any BSD compatible name lister, look for dumpbin.
15885 if test -n "$DUMPBIN"; then :
15886 # Let the user override the test.
15887 else
15888 if test -n "$ac_tool_prefix"; then
15889 for ac_prog in dumpbin "link -dump"
15891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15894 $as_echo_n "checking for $ac_word... " >&6; }
15895 if ${ac_cv_prog_DUMPBIN+:} false; then :
15896 $as_echo_n "(cached) " >&6
15897 else
15898 if test -n "$DUMPBIN"; then
15899 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15900 else
15901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15902 for as_dir in $PATH
15904 IFS=$as_save_IFS
15905 test -z "$as_dir" && as_dir=.
15906 for ac_exec_ext in '' $ac_executable_extensions; do
15907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15908 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15910 break 2
15912 done
15913 done
15914 IFS=$as_save_IFS
15918 DUMPBIN=$ac_cv_prog_DUMPBIN
15919 if test -n "$DUMPBIN"; then
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15921 $as_echo "$DUMPBIN" >&6; }
15922 else
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 $as_echo "no" >&6; }
15928 test -n "$DUMPBIN" && break
15929 done
15931 if test -z "$DUMPBIN"; then
15932 ac_ct_DUMPBIN=$DUMPBIN
15933 for ac_prog in dumpbin "link -dump"
15935 # Extract the first word of "$ac_prog", so it can be a program name with args.
15936 set dummy $ac_prog; ac_word=$2
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15938 $as_echo_n "checking for $ac_word... " >&6; }
15939 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15940 $as_echo_n "(cached) " >&6
15941 else
15942 if test -n "$ac_ct_DUMPBIN"; then
15943 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15944 else
15945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15946 for as_dir in $PATH
15948 IFS=$as_save_IFS
15949 test -z "$as_dir" && as_dir=.
15950 for ac_exec_ext in '' $ac_executable_extensions; do
15951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15952 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15954 break 2
15956 done
15957 done
15958 IFS=$as_save_IFS
15962 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15963 if test -n "$ac_ct_DUMPBIN"; then
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15965 $as_echo "$ac_ct_DUMPBIN" >&6; }
15966 else
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968 $as_echo "no" >&6; }
15972 test -n "$ac_ct_DUMPBIN" && break
15973 done
15975 if test "x$ac_ct_DUMPBIN" = x; then
15976 DUMPBIN=":"
15977 else
15978 case $cross_compiling:$ac_tool_warned in
15979 yes:)
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15982 ac_tool_warned=yes ;;
15983 esac
15984 DUMPBIN=$ac_ct_DUMPBIN
15988 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15989 *COFF*)
15990 DUMPBIN="$DUMPBIN -symbols"
15993 DUMPBIN=:
15995 esac
15998 if test "$DUMPBIN" != ":"; then
15999 NM="$DUMPBIN"
16002 test -z "$NM" && NM=nm
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
16010 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
16011 if ${lt_cv_nm_interface+:} false; then :
16012 $as_echo_n "(cached) " >&6
16013 else
16014 lt_cv_nm_interface="BSD nm"
16015 echo "int some_variable = 0;" > conftest.$ac_ext
16016 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
16017 (eval "$ac_compile" 2>conftest.err)
16018 cat conftest.err >&5
16019 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
16020 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
16021 cat conftest.err >&5
16022 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
16023 cat conftest.out >&5
16024 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
16025 lt_cv_nm_interface="MS dumpbin"
16027 rm -f conftest*
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
16030 $as_echo "$lt_cv_nm_interface" >&6; }
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16033 $as_echo_n "checking whether ln -s works... " >&6; }
16034 LN_S=$as_ln_s
16035 if test "$LN_S" = "ln -s"; then
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16037 $as_echo "yes" >&6; }
16038 else
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16040 $as_echo "no, using $LN_S" >&6; }
16043 # find the maximum length of command line arguments
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
16045 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
16046 if ${lt_cv_sys_max_cmd_len+:} false; then :
16047 $as_echo_n "(cached) " >&6
16048 else
16050 teststring="ABCD"
16052 case $build_os in
16053 msdosdjgpp*)
16054 # On DJGPP, this test can blow up pretty badly due to problems in libc
16055 # (any single argument exceeding 2000 bytes causes a buffer overrun
16056 # during glob expansion). Even if it were fixed, the result of this
16057 # check would be larger than it should be.
16058 lt_cv_sys_max_cmd_len=12288; # 12K is about right
16061 gnu*)
16062 # Under GNU Hurd, this test is not required because there is
16063 # no limit to the length of command line arguments.
16064 # Libtool will interpret -1 as no limit whatsoever
16065 lt_cv_sys_max_cmd_len=-1;
16068 cygwin* | mingw* | cegcc*)
16069 # On Win9x/ME, this test blows up -- it succeeds, but takes
16070 # about 5 minutes as the teststring grows exponentially.
16071 # Worse, since 9x/ME are not pre-emptively multitasking,
16072 # you end up with a "frozen" computer, even though with patience
16073 # the test eventually succeeds (with a max line length of 256k).
16074 # Instead, let's just punt: use the minimum linelength reported by
16075 # all of the supported platforms: 8192 (on NT/2K/XP).
16076 lt_cv_sys_max_cmd_len=8192;
16079 mint*)
16080 # On MiNT this can take a long time and run out of memory.
16081 lt_cv_sys_max_cmd_len=8192;
16084 amigaos*)
16085 # On AmigaOS with pdksh, this test takes hours, literally.
16086 # So we just punt and use a minimum line length of 8192.
16087 lt_cv_sys_max_cmd_len=8192;
16090 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16091 # This has been around since 386BSD, at least. Likely further.
16092 if test -x /sbin/sysctl; then
16093 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16094 elif test -x /usr/sbin/sysctl; then
16095 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16096 else
16097 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16099 # And add a safety zone
16100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16104 interix*)
16105 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16106 lt_cv_sys_max_cmd_len=196608
16109 osf*)
16110 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16111 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16112 # nice to cause kernel panics so lets avoid the loop below.
16113 # First set a reasonable default.
16114 lt_cv_sys_max_cmd_len=16384
16116 if test -x /sbin/sysconfig; then
16117 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16118 *1*) lt_cv_sys_max_cmd_len=-1 ;;
16119 esac
16122 sco3.2v5*)
16123 lt_cv_sys_max_cmd_len=102400
16125 sysv5* | sco5v6* | sysv4.2uw2*)
16126 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16127 if test -n "$kargmax"; then
16128 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
16129 else
16130 lt_cv_sys_max_cmd_len=32768
16134 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16135 if test -n "$lt_cv_sys_max_cmd_len"; then
16136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16138 else
16139 # Make teststring a little bigger before we do anything with it.
16140 # a 1K string should be a reasonable start.
16141 for i in 1 2 3 4 5 6 7 8 ; do
16142 teststring=$teststring$teststring
16143 done
16144 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16145 # If test is not a shell built-in, we'll probably end up computing a
16146 # maximum length that is only half of the actual maximum length, but
16147 # we can't tell.
16148 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16149 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16150 test $i != 17 # 1/2 MB should be enough
16152 i=`expr $i + 1`
16153 teststring=$teststring$teststring
16154 done
16155 # Only check the string length outside the loop.
16156 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16157 teststring=
16158 # Add a significant safety factor because C++ compilers can tack on
16159 # massive amounts of additional arguments before passing them to the
16160 # linker. It appears as though 1/2 is a usable value.
16161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16164 esac
16168 if test -n $lt_cv_sys_max_cmd_len ; then
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16170 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16171 else
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16173 $as_echo "none" >&6; }
16175 max_cmd_len=$lt_cv_sys_max_cmd_len
16182 : ${CP="cp -f"}
16183 : ${MV="mv -f"}
16184 : ${RM="rm -f"}
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16187 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16188 # Try some XSI features
16189 xsi_shell=no
16190 ( _lt_dummy="a/b/c"
16191 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
16192 = c,a/b,, \
16193 && eval 'test $(( 1 + 1 )) -eq 2 \
16194 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16195 && xsi_shell=yes
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
16197 $as_echo "$xsi_shell" >&6; }
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
16201 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
16202 lt_shell_append=no
16203 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
16204 >/dev/null 2>&1 \
16205 && lt_shell_append=yes
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
16207 $as_echo "$lt_shell_append" >&6; }
16210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16211 lt_unset=unset
16212 else
16213 lt_unset=false
16220 # test EBCDIC or ASCII
16221 case `echo X|tr X '\101'` in
16222 A) # ASCII based system
16223 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16224 lt_SP2NL='tr \040 \012'
16225 lt_NL2SP='tr \015\012 \040\040'
16227 *) # EBCDIC based system
16228 lt_SP2NL='tr \100 \n'
16229 lt_NL2SP='tr \r\n \100\100'
16231 esac
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16242 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16243 if ${lt_cv_ld_reload_flag+:} false; then :
16244 $as_echo_n "(cached) " >&6
16245 else
16246 lt_cv_ld_reload_flag='-r'
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16249 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16250 reload_flag=$lt_cv_ld_reload_flag
16251 case $reload_flag in
16252 "" | " "*) ;;
16253 *) reload_flag=" $reload_flag" ;;
16254 esac
16255 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16256 case $host_os in
16257 darwin*)
16258 if test "$GCC" = yes; then
16259 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16260 else
16261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16264 esac
16274 if test -n "$ac_tool_prefix"; then
16275 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16276 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16278 $as_echo_n "checking for $ac_word... " >&6; }
16279 if ${ac_cv_prog_OBJDUMP+:} false; then :
16280 $as_echo_n "(cached) " >&6
16281 else
16282 if test -n "$OBJDUMP"; then
16283 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16284 else
16285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286 for as_dir in $PATH
16288 IFS=$as_save_IFS
16289 test -z "$as_dir" && as_dir=.
16290 for ac_exec_ext in '' $ac_executable_extensions; do
16291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16292 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16294 break 2
16296 done
16297 done
16298 IFS=$as_save_IFS
16302 OBJDUMP=$ac_cv_prog_OBJDUMP
16303 if test -n "$OBJDUMP"; then
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16305 $as_echo "$OBJDUMP" >&6; }
16306 else
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308 $as_echo "no" >&6; }
16313 if test -z "$ac_cv_prog_OBJDUMP"; then
16314 ac_ct_OBJDUMP=$OBJDUMP
16315 # Extract the first word of "objdump", so it can be a program name with args.
16316 set dummy objdump; ac_word=$2
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16318 $as_echo_n "checking for $ac_word... " >&6; }
16319 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16320 $as_echo_n "(cached) " >&6
16321 else
16322 if test -n "$ac_ct_OBJDUMP"; then
16323 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16324 else
16325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16326 for as_dir in $PATH
16328 IFS=$as_save_IFS
16329 test -z "$as_dir" && as_dir=.
16330 for ac_exec_ext in '' $ac_executable_extensions; do
16331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16332 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16334 break 2
16336 done
16337 done
16338 IFS=$as_save_IFS
16342 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16343 if test -n "$ac_ct_OBJDUMP"; then
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16345 $as_echo "$ac_ct_OBJDUMP" >&6; }
16346 else
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348 $as_echo "no" >&6; }
16351 if test "x$ac_ct_OBJDUMP" = x; then
16352 OBJDUMP="false"
16353 else
16354 case $cross_compiling:$ac_tool_warned in
16355 yes:)
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16358 ac_tool_warned=yes ;;
16359 esac
16360 OBJDUMP=$ac_ct_OBJDUMP
16362 else
16363 OBJDUMP="$ac_cv_prog_OBJDUMP"
16366 test -z "$OBJDUMP" && OBJDUMP=objdump
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16377 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16378 if ${lt_cv_deplibs_check_method+:} false; then :
16379 $as_echo_n "(cached) " >&6
16380 else
16381 lt_cv_file_magic_cmd='$MAGIC_CMD'
16382 lt_cv_file_magic_test_file=
16383 lt_cv_deplibs_check_method='unknown'
16384 # Need to set the preceding variable on all platforms that support
16385 # interlibrary dependencies.
16386 # 'none' -- dependencies not supported.
16387 # `unknown' -- same as none, but documents that we really don't know.
16388 # 'pass_all' -- all dependencies passed with no checks.
16389 # 'test_compile' -- check by making test program.
16390 # 'file_magic [[regex]]' -- check by looking for files in library path
16391 # which responds to the $file_magic_cmd with a given extended regex.
16392 # If you have `file' or equivalent on your system and you're not sure
16393 # whether `pass_all' will *always* work, you probably want this one.
16395 case $host_os in
16396 aix[4-9]*)
16397 lt_cv_deplibs_check_method=pass_all
16400 beos*)
16401 lt_cv_deplibs_check_method=pass_all
16404 bsdi[45]*)
16405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16406 lt_cv_file_magic_cmd='/usr/bin/file -L'
16407 lt_cv_file_magic_test_file=/shlib/libc.so
16410 cygwin*)
16411 # func_win32_libid is a shell function defined in ltmain.sh
16412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16413 lt_cv_file_magic_cmd='func_win32_libid'
16416 mingw* | pw32*)
16417 # Base MSYS/MinGW do not provide the 'file' command needed by
16418 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16419 # unless we find 'file', for example because we are cross-compiling.
16420 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16421 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
16422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16423 lt_cv_file_magic_cmd='func_win32_libid'
16424 else
16425 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16426 lt_cv_file_magic_cmd='$OBJDUMP -f'
16430 cegcc*)
16431 # use the weaker test based on 'objdump'. See mingw*.
16432 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16433 lt_cv_file_magic_cmd='$OBJDUMP -f'
16436 darwin* | rhapsody*)
16437 lt_cv_deplibs_check_method=pass_all
16440 freebsd* | dragonfly*)
16441 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16442 case $host_cpu in
16443 i*86 )
16444 # Not sure whether the presence of OpenBSD here was a mistake.
16445 # Let's accept both of them until this is cleared up.
16446 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16447 lt_cv_file_magic_cmd=/usr/bin/file
16448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16450 esac
16451 else
16452 lt_cv_deplibs_check_method=pass_all
16456 gnu*)
16457 lt_cv_deplibs_check_method=pass_all
16460 haiku*)
16461 lt_cv_deplibs_check_method=pass_all
16464 hpux10.20* | hpux11*)
16465 lt_cv_file_magic_cmd=/usr/bin/file
16466 case $host_cpu in
16467 ia64*)
16468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16471 hppa*64*)
16472 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]'
16473 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16477 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16479 esac
16482 interix[3-9]*)
16483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16487 irix5* | irix6* | nonstopux*)
16488 case $LD in
16489 *-32|*"-32 ") libmagic=32-bit;;
16490 *-n32|*"-n32 ") libmagic=N32;;
16491 *-64|*"-64 ") libmagic=64-bit;;
16492 *) libmagic=never-match;;
16493 esac
16494 lt_cv_deplibs_check_method=pass_all
16497 # This must be Linux ELF.
16498 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16499 lt_cv_deplibs_check_method=pass_all
16502 netbsd*)
16503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16505 else
16506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16510 newos6*)
16511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16512 lt_cv_file_magic_cmd=/usr/bin/file
16513 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16516 *nto* | *qnx*)
16517 lt_cv_deplibs_check_method=pass_all
16520 openbsd*)
16521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16523 else
16524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16528 osf3* | osf4* | osf5*)
16529 lt_cv_deplibs_check_method=pass_all
16532 rdos*)
16533 lt_cv_deplibs_check_method=pass_all
16536 solaris*)
16537 lt_cv_deplibs_check_method=pass_all
16540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16541 lt_cv_deplibs_check_method=pass_all
16544 sysv4 | sysv4.3*)
16545 case $host_vendor in
16546 motorola)
16547 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]'
16548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16550 ncr)
16551 lt_cv_deplibs_check_method=pass_all
16553 sequent)
16554 lt_cv_file_magic_cmd='/bin/file'
16555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16557 sni)
16558 lt_cv_file_magic_cmd='/bin/file'
16559 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16560 lt_cv_file_magic_test_file=/lib/libc.so
16562 siemens)
16563 lt_cv_deplibs_check_method=pass_all
16566 lt_cv_deplibs_check_method=pass_all
16568 esac
16571 tpf*)
16572 lt_cv_deplibs_check_method=pass_all
16574 vxworks*)
16575 # Assume VxWorks cross toolchains are built on Linux, possibly
16576 # as canadian for Windows hosts.
16577 lt_cv_deplibs_check_method=pass_all
16579 esac
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16583 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16584 file_magic_cmd=$lt_cv_file_magic_cmd
16585 deplibs_check_method=$lt_cv_deplibs_check_method
16586 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16599 plugin_option=
16600 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
16601 for plugin in $plugin_names; do
16602 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16603 if test x$plugin_so = x$plugin; then
16604 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16606 if test x$plugin_so != x$plugin; then
16607 plugin_option="--plugin $plugin_so"
16608 break
16610 done
16612 if test -n "$ac_tool_prefix"; then
16613 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16614 set dummy ${ac_tool_prefix}ar; ac_word=$2
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16616 $as_echo_n "checking for $ac_word... " >&6; }
16617 if ${ac_cv_prog_AR+:} false; then :
16618 $as_echo_n "(cached) " >&6
16619 else
16620 if test -n "$AR"; then
16621 ac_cv_prog_AR="$AR" # Let the user override the test.
16622 else
16623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16624 for as_dir in $PATH
16626 IFS=$as_save_IFS
16627 test -z "$as_dir" && as_dir=.
16628 for ac_exec_ext in '' $ac_executable_extensions; do
16629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16630 ac_cv_prog_AR="${ac_tool_prefix}ar"
16631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16632 break 2
16634 done
16635 done
16636 IFS=$as_save_IFS
16640 AR=$ac_cv_prog_AR
16641 if test -n "$AR"; then
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16643 $as_echo "$AR" >&6; }
16644 else
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16646 $as_echo "no" >&6; }
16651 if test -z "$ac_cv_prog_AR"; then
16652 ac_ct_AR=$AR
16653 # Extract the first word of "ar", so it can be a program name with args.
16654 set dummy ar; ac_word=$2
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16656 $as_echo_n "checking for $ac_word... " >&6; }
16657 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16658 $as_echo_n "(cached) " >&6
16659 else
16660 if test -n "$ac_ct_AR"; then
16661 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16662 else
16663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16664 for as_dir in $PATH
16666 IFS=$as_save_IFS
16667 test -z "$as_dir" && as_dir=.
16668 for ac_exec_ext in '' $ac_executable_extensions; do
16669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16670 ac_cv_prog_ac_ct_AR="ar"
16671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16672 break 2
16674 done
16675 done
16676 IFS=$as_save_IFS
16680 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16681 if test -n "$ac_ct_AR"; then
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16683 $as_echo "$ac_ct_AR" >&6; }
16684 else
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16686 $as_echo "no" >&6; }
16689 if test "x$ac_ct_AR" = x; then
16690 AR="false"
16691 else
16692 case $cross_compiling:$ac_tool_warned in
16693 yes:)
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16696 ac_tool_warned=yes ;;
16697 esac
16698 AR=$ac_ct_AR
16700 else
16701 AR="$ac_cv_prog_AR"
16704 test -z "$AR" && AR=ar
16705 if test -n "$plugin_option"; then
16706 if $AR --help 2>&1 | grep -q "\--plugin"; then
16707 touch conftest.c
16708 $AR $plugin_option rc conftest.a conftest.c
16709 if test "$?" != 0; then
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16711 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
16712 else
16713 AR="$AR $plugin_option"
16715 rm -f conftest.*
16718 test -z "$AR_FLAGS" && AR_FLAGS=cru
16730 if test -n "$ac_tool_prefix"; then
16731 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16732 set dummy ${ac_tool_prefix}strip; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if ${ac_cv_prog_STRIP+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 if test -n "$STRIP"; then
16739 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16740 else
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16744 IFS=$as_save_IFS
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16750 break 2
16752 done
16753 done
16754 IFS=$as_save_IFS
16758 STRIP=$ac_cv_prog_STRIP
16759 if test -n "$STRIP"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16761 $as_echo "$STRIP" >&6; }
16762 else
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16769 if test -z "$ac_cv_prog_STRIP"; then
16770 ac_ct_STRIP=$STRIP
16771 # Extract the first word of "strip", so it can be a program name with args.
16772 set dummy strip; ac_word=$2
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16774 $as_echo_n "checking for $ac_word... " >&6; }
16775 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16776 $as_echo_n "(cached) " >&6
16777 else
16778 if test -n "$ac_ct_STRIP"; then
16779 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16780 else
16781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16782 for as_dir in $PATH
16784 IFS=$as_save_IFS
16785 test -z "$as_dir" && as_dir=.
16786 for ac_exec_ext in '' $ac_executable_extensions; do
16787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16788 ac_cv_prog_ac_ct_STRIP="strip"
16789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16790 break 2
16792 done
16793 done
16794 IFS=$as_save_IFS
16798 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16799 if test -n "$ac_ct_STRIP"; then
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16801 $as_echo "$ac_ct_STRIP" >&6; }
16802 else
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16804 $as_echo "no" >&6; }
16807 if test "x$ac_ct_STRIP" = x; then
16808 STRIP=":"
16809 else
16810 case $cross_compiling:$ac_tool_warned in
16811 yes:)
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16814 ac_tool_warned=yes ;;
16815 esac
16816 STRIP=$ac_ct_STRIP
16818 else
16819 STRIP="$ac_cv_prog_STRIP"
16822 test -z "$STRIP" && STRIP=:
16829 if test -n "$ac_tool_prefix"; then
16830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16833 $as_echo_n "checking for $ac_word... " >&6; }
16834 if ${ac_cv_prog_RANLIB+:} false; then :
16835 $as_echo_n "(cached) " >&6
16836 else
16837 if test -n "$RANLIB"; then
16838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16839 else
16840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16841 for as_dir in $PATH
16843 IFS=$as_save_IFS
16844 test -z "$as_dir" && as_dir=.
16845 for ac_exec_ext in '' $ac_executable_extensions; do
16846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16849 break 2
16851 done
16852 done
16853 IFS=$as_save_IFS
16857 RANLIB=$ac_cv_prog_RANLIB
16858 if test -n "$RANLIB"; then
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16860 $as_echo "$RANLIB" >&6; }
16861 else
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16863 $as_echo "no" >&6; }
16868 if test -z "$ac_cv_prog_RANLIB"; then
16869 ac_ct_RANLIB=$RANLIB
16870 # Extract the first word of "ranlib", so it can be a program name with args.
16871 set dummy ranlib; ac_word=$2
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16873 $as_echo_n "checking for $ac_word... " >&6; }
16874 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16875 $as_echo_n "(cached) " >&6
16876 else
16877 if test -n "$ac_ct_RANLIB"; then
16878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16879 else
16880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16881 for as_dir in $PATH
16883 IFS=$as_save_IFS
16884 test -z "$as_dir" && as_dir=.
16885 for ac_exec_ext in '' $ac_executable_extensions; do
16886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16887 ac_cv_prog_ac_ct_RANLIB="ranlib"
16888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16889 break 2
16891 done
16892 done
16893 IFS=$as_save_IFS
16897 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16898 if test -n "$ac_ct_RANLIB"; then
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16900 $as_echo "$ac_ct_RANLIB" >&6; }
16901 else
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16903 $as_echo "no" >&6; }
16906 if test "x$ac_ct_RANLIB" = x; then
16907 RANLIB=":"
16908 else
16909 case $cross_compiling:$ac_tool_warned in
16910 yes:)
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16913 ac_tool_warned=yes ;;
16914 esac
16915 RANLIB=$ac_ct_RANLIB
16917 else
16918 RANLIB="$ac_cv_prog_RANLIB"
16921 test -z "$RANLIB" && RANLIB=:
16922 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16923 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
16924 RANLIB="$RANLIB $plugin_option"
16933 # Determine commands to create old-style static archives.
16934 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16935 old_postinstall_cmds='chmod 644 $oldlib'
16936 old_postuninstall_cmds=
16938 if test -n "$RANLIB"; then
16939 case $host_os in
16940 openbsd*)
16941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16944 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16946 esac
16947 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16950 case $host_os in
16951 darwin*)
16952 lock_old_archive_extraction=yes ;;
16954 lock_old_archive_extraction=no ;;
16955 esac
16995 # If no C compiler was specified, use CC.
16996 LTCC=${LTCC-"$CC"}
16998 # If no C compiler flags were specified, use CFLAGS.
16999 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17001 # Allow CC to be a program name with arguments.
17002 compiler=$CC
17005 # Check for command to grab the raw symbol name followed by C symbol from nm.
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
17007 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
17008 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
17009 $as_echo_n "(cached) " >&6
17010 else
17012 # These are sane defaults that work on at least a few old systems.
17013 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
17015 # Character class describing NM global symbol codes.
17016 symcode='[BCDEGRST]'
17018 # Regexp to match symbols that can be accessed directly from C.
17019 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
17021 # Define system-specific variables.
17022 case $host_os in
17023 aix*)
17024 symcode='[BCDT]'
17026 cygwin* | mingw* | pw32* | cegcc*)
17027 symcode='[ABCDGISTW]'
17029 hpux*)
17030 if test "$host_cpu" = ia64; then
17031 symcode='[ABCDEGRST]'
17034 irix* | nonstopux*)
17035 symcode='[BCDEGRST]'
17037 osf*)
17038 symcode='[BCDEGQRST]'
17040 solaris*)
17041 symcode='[BCDRT]'
17043 sco3.2v5*)
17044 symcode='[DT]'
17046 sysv4.2uw2*)
17047 symcode='[DT]'
17049 sysv5* | sco5v6* | unixware* | OpenUNIX*)
17050 symcode='[ABDT]'
17052 sysv4)
17053 symcode='[DFNSTU]'
17055 esac
17057 # If we're using GNU nm, then use its standard symbol codes.
17058 case `$NM -V 2>&1` in
17059 *GNU* | *'with BFD'*)
17060 symcode='[ABCDGIRSTW]' ;;
17061 esac
17063 # Transform an extracted symbol line into a proper C declaration.
17064 # Some systems (esp. on ia64) link data and code symbols differently,
17065 # so use this general approach.
17066 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
17068 # Transform an extracted symbol line into symbol name and symbol address
17069 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
17070 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'"
17072 # Handle CRLF in mingw tool chain
17073 opt_cr=
17074 case $build_os in
17075 mingw*)
17076 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17078 esac
17080 # Try without a prefix underscore, then with it.
17081 for ac_symprfx in "" "_"; do
17083 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17084 symxfrm="\\1 $ac_symprfx\\2 \\2"
17086 # Write the raw and C identifiers.
17087 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17088 # Fake it for dumpbin and say T for any non-static function
17089 # and D for any global variable.
17090 # Also find C++ and __fastcall symbols from MSVC++,
17091 # which start with @ or ?.
17092 lt_cv_sys_global_symbol_pipe="$AWK '"\
17093 " {last_section=section; section=\$ 3};"\
17094 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17095 " \$ 0!~/External *\|/{next};"\
17096 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17097 " {if(hide[section]) next};"\
17098 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
17099 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
17100 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
17101 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
17102 " ' prfx=^$ac_symprfx"
17103 else
17104 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17107 # Check to see that the pipe works correctly.
17108 pipe_works=no
17110 rm -f conftest*
17111 cat > conftest.$ac_ext <<_LT_EOF
17112 #ifdef __cplusplus
17113 extern "C" {
17114 #endif
17115 char nm_test_var;
17116 void nm_test_func(void);
17117 void nm_test_func(void){}
17118 #ifdef __cplusplus
17120 #endif
17121 int main(){nm_test_var='a';nm_test_func();return(0);}
17122 _LT_EOF
17124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17125 (eval $ac_compile) 2>&5
17126 ac_status=$?
17127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17128 test $ac_status = 0; }; then
17129 # Now try to grab the symbols.
17130 nlist=conftest.nm
17131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
17132 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17133 ac_status=$?
17134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17135 test $ac_status = 0; } && test -s "$nlist"; then
17136 # Try sorting and uniquifying the output.
17137 if sort "$nlist" | uniq > "$nlist"T; then
17138 mv -f "$nlist"T "$nlist"
17139 else
17140 rm -f "$nlist"T
17143 # Make sure that we snagged all the symbols we need.
17144 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17145 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17146 cat <<_LT_EOF > conftest.$ac_ext
17147 #ifdef __cplusplus
17148 extern "C" {
17149 #endif
17151 _LT_EOF
17152 # Now generate the symbol file.
17153 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17155 cat <<_LT_EOF >> conftest.$ac_ext
17157 /* The mapping between symbol names and symbols. */
17158 const struct {
17159 const char *name;
17160 void *address;
17162 lt__PROGRAM__LTX_preloaded_symbols[] =
17164 { "@PROGRAM@", (void *) 0 },
17165 _LT_EOF
17166 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17167 cat <<\_LT_EOF >> conftest.$ac_ext
17168 {0, (void *) 0}
17171 /* This works around a problem in FreeBSD linker */
17172 #ifdef FREEBSD_WORKAROUND
17173 static const void *lt_preloaded_setup() {
17174 return lt__PROGRAM__LTX_preloaded_symbols;
17176 #endif
17178 #ifdef __cplusplus
17180 #endif
17181 _LT_EOF
17182 # Now try linking the two files.
17183 mv conftest.$ac_objext conftstm.$ac_objext
17184 lt_save_LIBS="$LIBS"
17185 lt_save_CFLAGS="$CFLAGS"
17186 LIBS="conftstm.$ac_objext"
17187 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17189 (eval $ac_link) 2>&5
17190 ac_status=$?
17191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17192 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
17193 pipe_works=yes
17195 LIBS="$lt_save_LIBS"
17196 CFLAGS="$lt_save_CFLAGS"
17197 else
17198 echo "cannot find nm_test_func in $nlist" >&5
17200 else
17201 echo "cannot find nm_test_var in $nlist" >&5
17203 else
17204 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
17206 else
17207 echo "$progname: failed program was:" >&5
17208 cat conftest.$ac_ext >&5
17210 rm -rf conftest* conftst*
17212 # Do not use the global_symbol_pipe unless it works.
17213 if test "$pipe_works" = yes; then
17214 break
17215 else
17216 lt_cv_sys_global_symbol_pipe=
17218 done
17222 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17223 lt_cv_sys_global_symbol_to_cdecl=
17225 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17227 $as_echo "failed" >&6; }
17228 else
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17230 $as_echo "ok" >&6; }
17254 # Check whether --enable-libtool-lock was given.
17255 if test "${enable_libtool_lock+set}" = set; then :
17256 enableval=$enable_libtool_lock;
17259 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17261 # Some flags need to be propagated to the compiler or linker for good
17262 # libtool support.
17263 case $host in
17264 ia64-*-hpux*)
17265 # Find out which ABI we are using.
17266 echo 'int i;' > conftest.$ac_ext
17267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17268 (eval $ac_compile) 2>&5
17269 ac_status=$?
17270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17271 test $ac_status = 0; }; then
17272 case `/usr/bin/file conftest.$ac_objext` in
17273 *ELF-32*)
17274 HPUX_IA64_MODE="32"
17276 *ELF-64*)
17277 HPUX_IA64_MODE="64"
17279 esac
17281 rm -rf conftest*
17283 *-*-irix6*)
17284 # Find out which ABI we are using.
17285 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17287 (eval $ac_compile) 2>&5
17288 ac_status=$?
17289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17290 test $ac_status = 0; }; then
17291 if test "$lt_cv_prog_gnu_ld" = yes; then
17292 case `/usr/bin/file conftest.$ac_objext` in
17293 *32-bit*)
17294 LD="${LD-ld} -melf32bsmip"
17296 *N32*)
17297 LD="${LD-ld} -melf32bmipn32"
17299 *64-bit*)
17300 LD="${LD-ld} -melf64bmip"
17302 esac
17303 else
17304 case `/usr/bin/file conftest.$ac_objext` in
17305 *32-bit*)
17306 LD="${LD-ld} -32"
17308 *N32*)
17309 LD="${LD-ld} -n32"
17311 *64-bit*)
17312 LD="${LD-ld} -64"
17314 esac
17317 rm -rf conftest*
17320 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17321 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17322 # Find out which ABI we are using.
17323 echo 'int i;' > conftest.$ac_ext
17324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17325 (eval $ac_compile) 2>&5
17326 ac_status=$?
17327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17328 test $ac_status = 0; }; then
17329 case `/usr/bin/file conftest.o` in
17330 *32-bit*)
17331 case $host in
17332 x86_64-*kfreebsd*-gnu)
17333 LD="${LD-ld} -m elf_i386_fbsd"
17335 x86_64-*linux*)
17336 case `/usr/bin/file conftest.o` in
17337 *x86-64*)
17338 LD="${LD-ld} -m elf32_x86_64"
17341 LD="${LD-ld} -m elf_i386"
17343 esac
17345 powerpc64le-*linux*)
17346 LD="${LD-ld} -m elf32lppclinux"
17348 powerpc64-*linux*)
17349 LD="${LD-ld} -m elf32ppclinux"
17351 s390x-*linux*)
17352 LD="${LD-ld} -m elf_s390"
17354 sparc64-*linux*)
17355 LD="${LD-ld} -m elf32_sparc"
17357 esac
17359 *64-bit*)
17360 case $host in
17361 x86_64-*kfreebsd*-gnu)
17362 LD="${LD-ld} -m elf_x86_64_fbsd"
17364 x86_64-*linux*)
17365 LD="${LD-ld} -m elf_x86_64"
17367 powerpcle-*linux*)
17368 LD="${LD-ld} -m elf64lppc"
17370 powerpc-*linux*)
17371 LD="${LD-ld} -m elf64ppc"
17373 s390*-*linux*|s390*-*tpf*)
17374 LD="${LD-ld} -m elf64_s390"
17376 sparc*-*linux*)
17377 LD="${LD-ld} -m elf64_sparc"
17379 esac
17381 esac
17383 rm -rf conftest*
17386 *-*-sco3.2v5*)
17387 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17388 SAVE_CFLAGS="$CFLAGS"
17389 CFLAGS="$CFLAGS -belf"
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17391 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17392 if ${lt_cv_cc_needs_belf+:} false; then :
17393 $as_echo_n "(cached) " >&6
17394 else
17395 ac_ext=c
17396 ac_cpp='$CPP $CPPFLAGS'
17397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17402 /* end confdefs.h. */
17405 main ()
17409 return 0;
17411 _ACEOF
17412 if ac_fn_c_try_link "$LINENO"; then :
17413 lt_cv_cc_needs_belf=yes
17414 else
17415 lt_cv_cc_needs_belf=no
17417 rm -f core conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17419 ac_ext=c
17420 ac_cpp='$CPP $CPPFLAGS'
17421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17427 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17428 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17429 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17430 CFLAGS="$SAVE_CFLAGS"
17433 sparc*-*solaris*)
17434 # Find out which ABI we are using.
17435 echo 'int i;' > conftest.$ac_ext
17436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17437 (eval $ac_compile) 2>&5
17438 ac_status=$?
17439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17440 test $ac_status = 0; }; then
17441 case `/usr/bin/file conftest.o` in
17442 *64-bit*)
17443 case $lt_cv_prog_gnu_ld in
17444 yes*) LD="${LD-ld} -m elf64_sparc" ;;
17446 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17447 LD="${LD-ld} -64"
17450 esac
17452 esac
17454 rm -rf conftest*
17456 esac
17458 need_locks="$enable_libtool_lock"
17461 case $host_os in
17462 rhapsody* | darwin*)
17463 if test -n "$ac_tool_prefix"; then
17464 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17465 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17467 $as_echo_n "checking for $ac_word... " >&6; }
17468 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17469 $as_echo_n "(cached) " >&6
17470 else
17471 if test -n "$DSYMUTIL"; then
17472 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17473 else
17474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17475 for as_dir in $PATH
17477 IFS=$as_save_IFS
17478 test -z "$as_dir" && as_dir=.
17479 for ac_exec_ext in '' $ac_executable_extensions; do
17480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17481 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17483 break 2
17485 done
17486 done
17487 IFS=$as_save_IFS
17491 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17492 if test -n "$DSYMUTIL"; then
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17494 $as_echo "$DSYMUTIL" >&6; }
17495 else
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17497 $as_echo "no" >&6; }
17502 if test -z "$ac_cv_prog_DSYMUTIL"; then
17503 ac_ct_DSYMUTIL=$DSYMUTIL
17504 # Extract the first word of "dsymutil", so it can be a program name with args.
17505 set dummy dsymutil; ac_word=$2
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17507 $as_echo_n "checking for $ac_word... " >&6; }
17508 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17509 $as_echo_n "(cached) " >&6
17510 else
17511 if test -n "$ac_ct_DSYMUTIL"; then
17512 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17513 else
17514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17515 for as_dir in $PATH
17517 IFS=$as_save_IFS
17518 test -z "$as_dir" && as_dir=.
17519 for ac_exec_ext in '' $ac_executable_extensions; do
17520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17521 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17523 break 2
17525 done
17526 done
17527 IFS=$as_save_IFS
17531 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17532 if test -n "$ac_ct_DSYMUTIL"; then
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17534 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17535 else
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17537 $as_echo "no" >&6; }
17540 if test "x$ac_ct_DSYMUTIL" = x; then
17541 DSYMUTIL=":"
17542 else
17543 case $cross_compiling:$ac_tool_warned in
17544 yes:)
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17547 ac_tool_warned=yes ;;
17548 esac
17549 DSYMUTIL=$ac_ct_DSYMUTIL
17551 else
17552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17555 if test -n "$ac_tool_prefix"; then
17556 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17557 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17559 $as_echo_n "checking for $ac_word... " >&6; }
17560 if ${ac_cv_prog_NMEDIT+:} false; then :
17561 $as_echo_n "(cached) " >&6
17562 else
17563 if test -n "$NMEDIT"; then
17564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17565 else
17566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17567 for as_dir in $PATH
17569 IFS=$as_save_IFS
17570 test -z "$as_dir" && as_dir=.
17571 for ac_exec_ext in '' $ac_executable_extensions; do
17572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17573 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17575 break 2
17577 done
17578 done
17579 IFS=$as_save_IFS
17583 NMEDIT=$ac_cv_prog_NMEDIT
17584 if test -n "$NMEDIT"; then
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17586 $as_echo "$NMEDIT" >&6; }
17587 else
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17589 $as_echo "no" >&6; }
17594 if test -z "$ac_cv_prog_NMEDIT"; then
17595 ac_ct_NMEDIT=$NMEDIT
17596 # Extract the first word of "nmedit", so it can be a program name with args.
17597 set dummy nmedit; ac_word=$2
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17599 $as_echo_n "checking for $ac_word... " >&6; }
17600 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17601 $as_echo_n "(cached) " >&6
17602 else
17603 if test -n "$ac_ct_NMEDIT"; then
17604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17605 else
17606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17607 for as_dir in $PATH
17609 IFS=$as_save_IFS
17610 test -z "$as_dir" && as_dir=.
17611 for ac_exec_ext in '' $ac_executable_extensions; do
17612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17613 ac_cv_prog_ac_ct_NMEDIT="nmedit"
17614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17615 break 2
17617 done
17618 done
17619 IFS=$as_save_IFS
17623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17624 if test -n "$ac_ct_NMEDIT"; then
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17626 $as_echo "$ac_ct_NMEDIT" >&6; }
17627 else
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17629 $as_echo "no" >&6; }
17632 if test "x$ac_ct_NMEDIT" = x; then
17633 NMEDIT=":"
17634 else
17635 case $cross_compiling:$ac_tool_warned in
17636 yes:)
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17639 ac_tool_warned=yes ;;
17640 esac
17641 NMEDIT=$ac_ct_NMEDIT
17643 else
17644 NMEDIT="$ac_cv_prog_NMEDIT"
17647 if test -n "$ac_tool_prefix"; then
17648 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17649 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17651 $as_echo_n "checking for $ac_word... " >&6; }
17652 if ${ac_cv_prog_LIPO+:} false; then :
17653 $as_echo_n "(cached) " >&6
17654 else
17655 if test -n "$LIPO"; then
17656 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17657 else
17658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17659 for as_dir in $PATH
17661 IFS=$as_save_IFS
17662 test -z "$as_dir" && as_dir=.
17663 for ac_exec_ext in '' $ac_executable_extensions; do
17664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17665 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17667 break 2
17669 done
17670 done
17671 IFS=$as_save_IFS
17675 LIPO=$ac_cv_prog_LIPO
17676 if test -n "$LIPO"; then
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17678 $as_echo "$LIPO" >&6; }
17679 else
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681 $as_echo "no" >&6; }
17686 if test -z "$ac_cv_prog_LIPO"; then
17687 ac_ct_LIPO=$LIPO
17688 # Extract the first word of "lipo", so it can be a program name with args.
17689 set dummy lipo; ac_word=$2
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17691 $as_echo_n "checking for $ac_word... " >&6; }
17692 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17693 $as_echo_n "(cached) " >&6
17694 else
17695 if test -n "$ac_ct_LIPO"; then
17696 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17697 else
17698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17699 for as_dir in $PATH
17701 IFS=$as_save_IFS
17702 test -z "$as_dir" && as_dir=.
17703 for ac_exec_ext in '' $ac_executable_extensions; do
17704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17705 ac_cv_prog_ac_ct_LIPO="lipo"
17706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17707 break 2
17709 done
17710 done
17711 IFS=$as_save_IFS
17715 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17716 if test -n "$ac_ct_LIPO"; then
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17718 $as_echo "$ac_ct_LIPO" >&6; }
17719 else
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17721 $as_echo "no" >&6; }
17724 if test "x$ac_ct_LIPO" = x; then
17725 LIPO=":"
17726 else
17727 case $cross_compiling:$ac_tool_warned in
17728 yes:)
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17731 ac_tool_warned=yes ;;
17732 esac
17733 LIPO=$ac_ct_LIPO
17735 else
17736 LIPO="$ac_cv_prog_LIPO"
17739 if test -n "$ac_tool_prefix"; then
17740 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17741 set dummy ${ac_tool_prefix}otool; ac_word=$2
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17743 $as_echo_n "checking for $ac_word... " >&6; }
17744 if ${ac_cv_prog_OTOOL+:} false; then :
17745 $as_echo_n "(cached) " >&6
17746 else
17747 if test -n "$OTOOL"; then
17748 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17749 else
17750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17751 for as_dir in $PATH
17753 IFS=$as_save_IFS
17754 test -z "$as_dir" && as_dir=.
17755 for ac_exec_ext in '' $ac_executable_extensions; do
17756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17757 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17759 break 2
17761 done
17762 done
17763 IFS=$as_save_IFS
17767 OTOOL=$ac_cv_prog_OTOOL
17768 if test -n "$OTOOL"; then
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17770 $as_echo "$OTOOL" >&6; }
17771 else
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17773 $as_echo "no" >&6; }
17778 if test -z "$ac_cv_prog_OTOOL"; then
17779 ac_ct_OTOOL=$OTOOL
17780 # Extract the first word of "otool", so it can be a program name with args.
17781 set dummy otool; ac_word=$2
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17783 $as_echo_n "checking for $ac_word... " >&6; }
17784 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17785 $as_echo_n "(cached) " >&6
17786 else
17787 if test -n "$ac_ct_OTOOL"; then
17788 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17789 else
17790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17791 for as_dir in $PATH
17793 IFS=$as_save_IFS
17794 test -z "$as_dir" && as_dir=.
17795 for ac_exec_ext in '' $ac_executable_extensions; do
17796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17797 ac_cv_prog_ac_ct_OTOOL="otool"
17798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17799 break 2
17801 done
17802 done
17803 IFS=$as_save_IFS
17807 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17808 if test -n "$ac_ct_OTOOL"; then
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17810 $as_echo "$ac_ct_OTOOL" >&6; }
17811 else
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17813 $as_echo "no" >&6; }
17816 if test "x$ac_ct_OTOOL" = x; then
17817 OTOOL=":"
17818 else
17819 case $cross_compiling:$ac_tool_warned in
17820 yes:)
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17823 ac_tool_warned=yes ;;
17824 esac
17825 OTOOL=$ac_ct_OTOOL
17827 else
17828 OTOOL="$ac_cv_prog_OTOOL"
17831 if test -n "$ac_tool_prefix"; then
17832 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17833 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17835 $as_echo_n "checking for $ac_word... " >&6; }
17836 if ${ac_cv_prog_OTOOL64+:} false; then :
17837 $as_echo_n "(cached) " >&6
17838 else
17839 if test -n "$OTOOL64"; then
17840 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17841 else
17842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17843 for as_dir in $PATH
17845 IFS=$as_save_IFS
17846 test -z "$as_dir" && as_dir=.
17847 for ac_exec_ext in '' $ac_executable_extensions; do
17848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17849 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17851 break 2
17853 done
17854 done
17855 IFS=$as_save_IFS
17859 OTOOL64=$ac_cv_prog_OTOOL64
17860 if test -n "$OTOOL64"; then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17862 $as_echo "$OTOOL64" >&6; }
17863 else
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865 $as_echo "no" >&6; }
17870 if test -z "$ac_cv_prog_OTOOL64"; then
17871 ac_ct_OTOOL64=$OTOOL64
17872 # Extract the first word of "otool64", so it can be a program name with args.
17873 set dummy otool64; ac_word=$2
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17875 $as_echo_n "checking for $ac_word... " >&6; }
17876 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17877 $as_echo_n "(cached) " >&6
17878 else
17879 if test -n "$ac_ct_OTOOL64"; then
17880 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17881 else
17882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17883 for as_dir in $PATH
17885 IFS=$as_save_IFS
17886 test -z "$as_dir" && as_dir=.
17887 for ac_exec_ext in '' $ac_executable_extensions; do
17888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17889 ac_cv_prog_ac_ct_OTOOL64="otool64"
17890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17891 break 2
17893 done
17894 done
17895 IFS=$as_save_IFS
17899 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17900 if test -n "$ac_ct_OTOOL64"; then
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17902 $as_echo "$ac_ct_OTOOL64" >&6; }
17903 else
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17905 $as_echo "no" >&6; }
17908 if test "x$ac_ct_OTOOL64" = x; then
17909 OTOOL64=":"
17910 else
17911 case $cross_compiling:$ac_tool_warned in
17912 yes:)
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17915 ac_tool_warned=yes ;;
17916 esac
17917 OTOOL64=$ac_ct_OTOOL64
17919 else
17920 OTOOL64="$ac_cv_prog_OTOOL64"
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17950 $as_echo_n "checking for -single_module linker flag... " >&6; }
17951 if ${lt_cv_apple_cc_single_mod+:} false; then :
17952 $as_echo_n "(cached) " >&6
17953 else
17954 lt_cv_apple_cc_single_mod=no
17955 if test -z "${LT_MULTI_MODULE}"; then
17956 # By default we will add the -single_module flag. You can override
17957 # by either setting the environment variable LT_MULTI_MODULE
17958 # non-empty at configure time, or by adding -multi_module to the
17959 # link flags.
17960 rm -rf libconftest.dylib*
17961 echo "int foo(void){return 1;}" > conftest.c
17962 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17963 -dynamiclib -Wl,-single_module conftest.c" >&5
17964 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17965 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17966 _lt_result=$?
17967 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17968 lt_cv_apple_cc_single_mod=yes
17969 else
17970 cat conftest.err >&5
17972 rm -rf libconftest.dylib*
17973 rm -f conftest.*
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17977 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17979 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17980 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17981 $as_echo_n "(cached) " >&6
17982 else
17983 lt_cv_ld_exported_symbols_list=no
17984 save_LDFLAGS=$LDFLAGS
17985 echo "_main" > conftest.sym
17986 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h. */
17991 main ()
17995 return 0;
17997 _ACEOF
17998 if ac_fn_c_try_link "$LINENO"; then :
17999 lt_cv_ld_exported_symbols_list=yes
18000 else
18001 lt_cv_ld_exported_symbols_list=no
18003 rm -f core conftest.err conftest.$ac_objext \
18004 conftest$ac_exeext conftest.$ac_ext
18005 LDFLAGS="$save_LDFLAGS"
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
18009 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
18011 $as_echo_n "checking for -force_load linker flag... " >&6; }
18012 if ${lt_cv_ld_force_load+:} false; then :
18013 $as_echo_n "(cached) " >&6
18014 else
18015 lt_cv_ld_force_load=no
18016 cat > conftest.c << _LT_EOF
18017 int forced_loaded() { return 2;}
18018 _LT_EOF
18019 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
18020 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
18021 echo "$AR cru libconftest.a conftest.o" >&5
18022 $AR cru libconftest.a conftest.o 2>&5
18023 cat > conftest.c << _LT_EOF
18024 int main() { return 0;}
18025 _LT_EOF
18026 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
18027 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
18028 _lt_result=$?
18029 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
18030 lt_cv_ld_force_load=yes
18031 else
18032 cat conftest.err >&5
18034 rm -f conftest.err libconftest.a conftest conftest.c
18035 rm -rf conftest.dSYM
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
18039 $as_echo "$lt_cv_ld_force_load" >&6; }
18040 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
18041 # build without first building modern cctools / linker.
18042 case $host_cpu-$host_os in
18043 *-rhapsody* | *-darwin1.[012])
18044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
18045 *-darwin1.*)
18046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
18047 *-darwin*)
18048 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
18049 # deployment target is forced to an earlier version.
18050 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
18051 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
18053 10.[012][,.]*)
18054 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18058 esac
18060 esac
18061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
18062 _lt_dar_single_mod='$single_module'
18064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
18065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
18066 else
18067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
18069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
18070 _lt_dsymutil='~$DSYMUTIL $lib || :'
18071 else
18072 _lt_dsymutil=
18075 esac
18078 for ac_header in dlfcn.h
18079 do :
18080 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
18081 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18082 cat >>confdefs.h <<_ACEOF
18083 #define HAVE_DLFCN_H 1
18084 _ACEOF
18087 done
18093 # Set options
18097 enable_dlopen=no
18100 enable_win32_dll=no
18103 # Check whether --enable-shared was given.
18104 if test "${enable_shared+set}" = set; then :
18105 enableval=$enable_shared; p=${PACKAGE-default}
18106 case $enableval in
18107 yes) enable_shared=yes ;;
18108 no) enable_shared=no ;;
18110 enable_shared=no
18111 # Look at the argument we got. We use all the common list separators.
18112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18113 for pkg in $enableval; do
18114 IFS="$lt_save_ifs"
18115 if test "X$pkg" = "X$p"; then
18116 enable_shared=yes
18118 done
18119 IFS="$lt_save_ifs"
18121 esac
18122 else
18123 enable_shared=yes
18134 # Check whether --enable-static was given.
18135 if test "${enable_static+set}" = set; then :
18136 enableval=$enable_static; p=${PACKAGE-default}
18137 case $enableval in
18138 yes) enable_static=yes ;;
18139 no) enable_static=no ;;
18141 enable_static=no
18142 # Look at the argument we got. We use all the common list separators.
18143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18144 for pkg in $enableval; do
18145 IFS="$lt_save_ifs"
18146 if test "X$pkg" = "X$p"; then
18147 enable_static=yes
18149 done
18150 IFS="$lt_save_ifs"
18152 esac
18153 else
18154 enable_static=yes
18166 # Check whether --with-pic was given.
18167 if test "${with_pic+set}" = set; then :
18168 withval=$with_pic; pic_mode="$withval"
18169 else
18170 pic_mode=default
18174 test -z "$pic_mode" && pic_mode=default
18182 # Check whether --enable-fast-install was given.
18183 if test "${enable_fast_install+set}" = set; then :
18184 enableval=$enable_fast_install; p=${PACKAGE-default}
18185 case $enableval in
18186 yes) enable_fast_install=yes ;;
18187 no) enable_fast_install=no ;;
18189 enable_fast_install=no
18190 # Look at the argument we got. We use all the common list separators.
18191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18192 for pkg in $enableval; do
18193 IFS="$lt_save_ifs"
18194 if test "X$pkg" = "X$p"; then
18195 enable_fast_install=yes
18197 done
18198 IFS="$lt_save_ifs"
18200 esac
18201 else
18202 enable_fast_install=yes
18215 # This can be used to rebuild libtool when needed
18216 LIBTOOL_DEPS="$ltmain"
18218 # Always use our own libtool.
18219 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18246 test -z "$LN_S" && LN_S="ln -s"
18261 if test -n "${ZSH_VERSION+set}" ; then
18262 setopt NO_GLOB_SUBST
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18266 $as_echo_n "checking for objdir... " >&6; }
18267 if ${lt_cv_objdir+:} false; then :
18268 $as_echo_n "(cached) " >&6
18269 else
18270 rm -f .libs 2>/dev/null
18271 mkdir .libs 2>/dev/null
18272 if test -d .libs; then
18273 lt_cv_objdir=.libs
18274 else
18275 # MS-DOS does not allow filenames that begin with a dot.
18276 lt_cv_objdir=_libs
18278 rmdir .libs 2>/dev/null
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18281 $as_echo "$lt_cv_objdir" >&6; }
18282 objdir=$lt_cv_objdir
18288 cat >>confdefs.h <<_ACEOF
18289 #define LT_OBJDIR "$lt_cv_objdir/"
18290 _ACEOF
18295 case $host_os in
18296 aix3*)
18297 # AIX sometimes has problems with the GCC collect2 program. For some
18298 # reason, if we set the COLLECT_NAMES environment variable, the problems
18299 # vanish in a puff of smoke.
18300 if test "X${COLLECT_NAMES+set}" != Xset; then
18301 COLLECT_NAMES=
18302 export COLLECT_NAMES
18305 esac
18307 # Global variables:
18308 ofile=libtool
18309 can_build_shared=yes
18311 # All known linkers require a `.a' archive for static linking (except MSVC,
18312 # which needs '.lib').
18313 libext=a
18315 with_gnu_ld="$lt_cv_prog_gnu_ld"
18317 old_CC="$CC"
18318 old_CFLAGS="$CFLAGS"
18320 # Set sane defaults for various variables
18321 test -z "$CC" && CC=cc
18322 test -z "$LTCC" && LTCC=$CC
18323 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18324 test -z "$LD" && LD=ld
18325 test -z "$ac_objext" && ac_objext=o
18327 for cc_temp in $compiler""; do
18328 case $cc_temp in
18329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18331 \-*) ;;
18332 *) break;;
18333 esac
18334 done
18335 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18338 # Only perform the check for file, if the check method requires it
18339 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18340 case $deplibs_check_method in
18341 file_magic*)
18342 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18344 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18345 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18346 $as_echo_n "(cached) " >&6
18347 else
18348 case $MAGIC_CMD in
18349 [\\/*] | ?:[\\/]*)
18350 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18353 lt_save_MAGIC_CMD="$MAGIC_CMD"
18354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18355 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18356 for ac_dir in $ac_dummy; do
18357 IFS="$lt_save_ifs"
18358 test -z "$ac_dir" && ac_dir=.
18359 if test -f $ac_dir/${ac_tool_prefix}file; then
18360 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18361 if test -n "$file_magic_test_file"; then
18362 case $deplibs_check_method in
18363 "file_magic "*)
18364 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18366 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18367 $EGREP "$file_magic_regex" > /dev/null; then
18369 else
18370 cat <<_LT_EOF 1>&2
18372 *** Warning: the command libtool uses to detect shared libraries,
18373 *** $file_magic_cmd, produces output that libtool cannot recognize.
18374 *** The result is that libtool may fail to recognize shared libraries
18375 *** as such. This will affect the creation of libtool libraries that
18376 *** depend on shared libraries, but programs linked with such libtool
18377 *** libraries will work regardless of this problem. Nevertheless, you
18378 *** may want to report the problem to your system manager and/or to
18379 *** bug-libtool@gnu.org
18381 _LT_EOF
18382 fi ;;
18383 esac
18385 break
18387 done
18388 IFS="$lt_save_ifs"
18389 MAGIC_CMD="$lt_save_MAGIC_CMD"
18391 esac
18394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18395 if test -n "$MAGIC_CMD"; then
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18397 $as_echo "$MAGIC_CMD" >&6; }
18398 else
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18400 $as_echo "no" >&6; }
18407 if test -z "$lt_cv_path_MAGIC_CMD"; then
18408 if test -n "$ac_tool_prefix"; then
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18410 $as_echo_n "checking for file... " >&6; }
18411 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18412 $as_echo_n "(cached) " >&6
18413 else
18414 case $MAGIC_CMD in
18415 [\\/*] | ?:[\\/]*)
18416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18419 lt_save_MAGIC_CMD="$MAGIC_CMD"
18420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18421 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18422 for ac_dir in $ac_dummy; do
18423 IFS="$lt_save_ifs"
18424 test -z "$ac_dir" && ac_dir=.
18425 if test -f $ac_dir/file; then
18426 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18427 if test -n "$file_magic_test_file"; then
18428 case $deplibs_check_method in
18429 "file_magic "*)
18430 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18432 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18433 $EGREP "$file_magic_regex" > /dev/null; then
18435 else
18436 cat <<_LT_EOF 1>&2
18438 *** Warning: the command libtool uses to detect shared libraries,
18439 *** $file_magic_cmd, produces output that libtool cannot recognize.
18440 *** The result is that libtool may fail to recognize shared libraries
18441 *** as such. This will affect the creation of libtool libraries that
18442 *** depend on shared libraries, but programs linked with such libtool
18443 *** libraries will work regardless of this problem. Nevertheless, you
18444 *** may want to report the problem to your system manager and/or to
18445 *** bug-libtool@gnu.org
18447 _LT_EOF
18448 fi ;;
18449 esac
18451 break
18453 done
18454 IFS="$lt_save_ifs"
18455 MAGIC_CMD="$lt_save_MAGIC_CMD"
18457 esac
18460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18461 if test -n "$MAGIC_CMD"; then
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18463 $as_echo "$MAGIC_CMD" >&6; }
18464 else
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18466 $as_echo "no" >&6; }
18470 else
18471 MAGIC_CMD=:
18477 esac
18479 # Use C for the default configuration in the libtool script
18481 lt_save_CC="$CC"
18482 ac_ext=c
18483 ac_cpp='$CPP $CPPFLAGS'
18484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489 # Source file extension for C test sources.
18490 ac_ext=c
18492 # Object file extension for compiled C test sources.
18493 objext=o
18494 objext=$objext
18496 # Code to be used in simple compile tests
18497 lt_simple_compile_test_code="int some_variable = 0;"
18499 # Code to be used in simple link tests
18500 lt_simple_link_test_code='int main(){return(0);}'
18508 # If no C compiler was specified, use CC.
18509 LTCC=${LTCC-"$CC"}
18511 # If no C compiler flags were specified, use CFLAGS.
18512 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18514 # Allow CC to be a program name with arguments.
18515 compiler=$CC
18517 # Save the default compiler, since it gets overwritten when the other
18518 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18519 compiler_DEFAULT=$CC
18521 # save warnings/boilerplate of simple test code
18522 ac_outfile=conftest.$ac_objext
18523 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18524 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18525 _lt_compiler_boilerplate=`cat conftest.err`
18526 $RM conftest*
18528 ac_outfile=conftest.$ac_objext
18529 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18530 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18531 _lt_linker_boilerplate=`cat conftest.err`
18532 $RM -r conftest*
18535 ## CAVEAT EMPTOR:
18536 ## There is no encapsulation within the following macros, do not change
18537 ## the running order or otherwise move them around unless you know exactly
18538 ## what you are doing...
18539 if test -n "$compiler"; then
18541 lt_prog_compiler_no_builtin_flag=
18543 if test "$GCC" = yes; then
18544 case $cc_basename in
18545 nvcc*)
18546 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18548 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18549 esac
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18552 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18553 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18554 $as_echo_n "(cached) " >&6
18555 else
18556 lt_cv_prog_compiler_rtti_exceptions=no
18557 ac_outfile=conftest.$ac_objext
18558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18559 lt_compiler_flag="-fno-rtti -fno-exceptions"
18560 # Insert the option either (1) after the last *FLAGS variable, or
18561 # (2) before a word containing "conftest.", or (3) at the end.
18562 # Note that $ac_compile itself does not contain backslashes and begins
18563 # with a dollar sign (not a hyphen), so the echo should work correctly.
18564 # The option is referenced via a variable to avoid confusing sed.
18565 lt_compile=`echo "$ac_compile" | $SED \
18566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18568 -e 's:$: $lt_compiler_flag:'`
18569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18570 (eval "$lt_compile" 2>conftest.err)
18571 ac_status=$?
18572 cat conftest.err >&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 if (exit $ac_status) && test -s "$ac_outfile"; then
18575 # The compiler can only warn and ignore the option if not recognized
18576 # So say no if there are warnings other than the usual output.
18577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18579 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18580 lt_cv_prog_compiler_rtti_exceptions=yes
18583 $RM conftest*
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18587 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18589 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18590 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18591 else
18602 lt_prog_compiler_wl=
18603 lt_prog_compiler_pic=
18604 lt_prog_compiler_static=
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18607 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18609 if test "$GCC" = yes; then
18610 lt_prog_compiler_wl='-Wl,'
18611 lt_prog_compiler_static='-static'
18613 case $host_os in
18614 aix*)
18615 # All AIX code is PIC.
18616 if test "$host_cpu" = ia64; then
18617 # AIX 5 now supports IA64 processor
18618 lt_prog_compiler_static='-Bstatic'
18620 lt_prog_compiler_pic='-fPIC'
18623 amigaos*)
18624 case $host_cpu in
18625 powerpc)
18626 # see comment about AmigaOS4 .so support
18627 lt_prog_compiler_pic='-fPIC'
18629 m68k)
18630 # FIXME: we need at least 68020 code to build shared libraries, but
18631 # adding the `-m68020' flag to GCC prevents building anything better,
18632 # like `-m68040'.
18633 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18635 esac
18638 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18639 # PIC is the default for these OSes.
18642 mingw* | cygwin* | pw32* | os2* | cegcc*)
18643 # This hack is so that the source file can tell whether it is being
18644 # built for inclusion in a dll (and should export symbols for example).
18645 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18646 # (--disable-auto-import) libraries
18647 lt_prog_compiler_pic='-DDLL_EXPORT'
18650 darwin* | rhapsody*)
18651 # PIC is the default on this platform
18652 # Common symbols not allowed in MH_DYLIB files
18653 lt_prog_compiler_pic='-fno-common'
18656 haiku*)
18657 # PIC is the default for Haiku.
18658 # The "-static" flag exists, but is broken.
18659 lt_prog_compiler_static=
18662 hpux*)
18663 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18664 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18665 # sets the default TLS model and affects inlining.
18666 case $host_cpu in
18667 hppa*64*)
18668 # +Z the default
18671 lt_prog_compiler_pic='-fPIC'
18673 esac
18676 interix[3-9]*)
18677 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18678 # Instead, we relocate shared libraries at runtime.
18681 msdosdjgpp*)
18682 # Just because we use GCC doesn't mean we suddenly get shared libraries
18683 # on systems that don't support them.
18684 lt_prog_compiler_can_build_shared=no
18685 enable_shared=no
18688 *nto* | *qnx*)
18689 # QNX uses GNU C++, but need to define -shared option too, otherwise
18690 # it will coredump.
18691 lt_prog_compiler_pic='-fPIC -shared'
18694 sysv4*MP*)
18695 if test -d /usr/nec; then
18696 lt_prog_compiler_pic=-Kconform_pic
18701 lt_prog_compiler_pic='-fPIC'
18703 esac
18705 case $cc_basename in
18706 nvcc*) # Cuda Compiler Driver 2.2
18707 lt_prog_compiler_wl='-Xlinker '
18708 lt_prog_compiler_pic='-Xcompiler -fPIC'
18710 esac
18711 else
18712 # PORTME Check for flag to pass linker flags through the system compiler.
18713 case $host_os in
18714 aix*)
18715 lt_prog_compiler_wl='-Wl,'
18716 if test "$host_cpu" = ia64; then
18717 # AIX 5 now supports IA64 processor
18718 lt_prog_compiler_static='-Bstatic'
18719 else
18720 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18724 mingw* | cygwin* | pw32* | os2* | cegcc*)
18725 # This hack is so that the source file can tell whether it is being
18726 # built for inclusion in a dll (and should export symbols for example).
18727 lt_prog_compiler_pic='-DDLL_EXPORT'
18730 hpux9* | hpux10* | hpux11*)
18731 lt_prog_compiler_wl='-Wl,'
18732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18733 # not for PA HP-UX.
18734 case $host_cpu in
18735 hppa*64*|ia64*)
18736 # +Z the default
18739 lt_prog_compiler_pic='+Z'
18741 esac
18742 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18743 lt_prog_compiler_static='${wl}-a ${wl}archive'
18746 irix5* | irix6* | nonstopux*)
18747 lt_prog_compiler_wl='-Wl,'
18748 # PIC (with -KPIC) is the default.
18749 lt_prog_compiler_static='-non_shared'
18752 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18753 case $cc_basename in
18754 # old Intel for x86_64 which still supported -KPIC.
18755 ecc*)
18756 lt_prog_compiler_wl='-Wl,'
18757 lt_prog_compiler_pic='-KPIC'
18758 lt_prog_compiler_static='-static'
18760 # icc used to be incompatible with GCC.
18761 # ICC 10 doesn't accept -KPIC any more.
18762 icc* | ifort*)
18763 lt_prog_compiler_wl='-Wl,'
18764 lt_prog_compiler_pic='-fPIC'
18765 lt_prog_compiler_static='-static'
18767 # Lahey Fortran 8.1.
18768 lf95*)
18769 lt_prog_compiler_wl='-Wl,'
18770 lt_prog_compiler_pic='--shared'
18771 lt_prog_compiler_static='--static'
18773 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18774 # Portland Group compilers (*not* the Pentium gcc compiler,
18775 # which looks to be a dead project)
18776 lt_prog_compiler_wl='-Wl,'
18777 lt_prog_compiler_pic='-fpic'
18778 lt_prog_compiler_static='-Bstatic'
18780 ccc*)
18781 lt_prog_compiler_wl='-Wl,'
18782 # All Alpha code is PIC.
18783 lt_prog_compiler_static='-non_shared'
18785 xl* | bgxl* | bgf* | mpixl*)
18786 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18787 lt_prog_compiler_wl='-Wl,'
18788 lt_prog_compiler_pic='-qpic'
18789 lt_prog_compiler_static='-qstaticlink'
18792 case `$CC -V 2>&1 | sed 5q` in
18793 *Sun\ F* | *Sun*Fortran*)
18794 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18795 lt_prog_compiler_pic='-KPIC'
18796 lt_prog_compiler_static='-Bstatic'
18797 lt_prog_compiler_wl=''
18799 *Sun\ C*)
18800 # Sun C 5.9
18801 lt_prog_compiler_pic='-KPIC'
18802 lt_prog_compiler_static='-Bstatic'
18803 lt_prog_compiler_wl='-Wl,'
18805 esac
18807 esac
18810 newsos6)
18811 lt_prog_compiler_pic='-KPIC'
18812 lt_prog_compiler_static='-Bstatic'
18815 *nto* | *qnx*)
18816 # QNX uses GNU C++, but need to define -shared option too, otherwise
18817 # it will coredump.
18818 lt_prog_compiler_pic='-fPIC -shared'
18821 osf3* | osf4* | osf5*)
18822 lt_prog_compiler_wl='-Wl,'
18823 # All OSF/1 code is PIC.
18824 lt_prog_compiler_static='-non_shared'
18827 rdos*)
18828 lt_prog_compiler_static='-non_shared'
18831 solaris*)
18832 lt_prog_compiler_pic='-KPIC'
18833 lt_prog_compiler_static='-Bstatic'
18834 case $cc_basename in
18835 f77* | f90* | f95*)
18836 lt_prog_compiler_wl='-Qoption ld ';;
18838 lt_prog_compiler_wl='-Wl,';;
18839 esac
18842 sunos4*)
18843 lt_prog_compiler_wl='-Qoption ld '
18844 lt_prog_compiler_pic='-PIC'
18845 lt_prog_compiler_static='-Bstatic'
18848 sysv4 | sysv4.2uw2* | sysv4.3*)
18849 lt_prog_compiler_wl='-Wl,'
18850 lt_prog_compiler_pic='-KPIC'
18851 lt_prog_compiler_static='-Bstatic'
18854 sysv4*MP*)
18855 if test -d /usr/nec ;then
18856 lt_prog_compiler_pic='-Kconform_pic'
18857 lt_prog_compiler_static='-Bstatic'
18861 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18862 lt_prog_compiler_wl='-Wl,'
18863 lt_prog_compiler_pic='-KPIC'
18864 lt_prog_compiler_static='-Bstatic'
18867 unicos*)
18868 lt_prog_compiler_wl='-Wl,'
18869 lt_prog_compiler_can_build_shared=no
18872 uts4*)
18873 lt_prog_compiler_pic='-pic'
18874 lt_prog_compiler_static='-Bstatic'
18878 lt_prog_compiler_can_build_shared=no
18880 esac
18883 case $host_os in
18884 # For platforms which do not support PIC, -DPIC is meaningless:
18885 *djgpp*)
18886 lt_prog_compiler_pic=
18889 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18891 esac
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
18893 $as_echo "$lt_prog_compiler_pic" >&6; }
18901 # Check to make sure the PIC flag actually works.
18903 if test -n "$lt_prog_compiler_pic"; then
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18905 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18906 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18907 $as_echo_n "(cached) " >&6
18908 else
18909 lt_cv_prog_compiler_pic_works=no
18910 ac_outfile=conftest.$ac_objext
18911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18912 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18913 # Insert the option either (1) after the last *FLAGS variable, or
18914 # (2) before a word containing "conftest.", or (3) at the end.
18915 # Note that $ac_compile itself does not contain backslashes and begins
18916 # with a dollar sign (not a hyphen), so the echo should work correctly.
18917 # The option is referenced via a variable to avoid confusing sed.
18918 lt_compile=`echo "$ac_compile" | $SED \
18919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18921 -e 's:$: $lt_compiler_flag:'`
18922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18923 (eval "$lt_compile" 2>conftest.err)
18924 ac_status=$?
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 if (exit $ac_status) && test -s "$ac_outfile"; then
18928 # The compiler can only warn and ignore the option if not recognized
18929 # So say no if there are warnings other than the usual output.
18930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18933 lt_cv_prog_compiler_pic_works=yes
18936 $RM conftest*
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18940 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18942 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18943 case $lt_prog_compiler_pic in
18944 "" | " "*) ;;
18945 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18946 esac
18947 else
18948 lt_prog_compiler_pic=
18949 lt_prog_compiler_can_build_shared=no
18960 # Check to make sure the static flag actually works.
18962 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18964 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18965 if ${lt_cv_prog_compiler_static_works+:} false; then :
18966 $as_echo_n "(cached) " >&6
18967 else
18968 lt_cv_prog_compiler_static_works=no
18969 save_LDFLAGS="$LDFLAGS"
18970 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18971 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18972 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18973 # The linker can only warn and ignore the option if not recognized
18974 # So say no if there are warnings
18975 if test -s conftest.err; then
18976 # Append any errors to the config.log.
18977 cat conftest.err 1>&5
18978 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18980 if diff conftest.exp conftest.er2 >/dev/null; then
18981 lt_cv_prog_compiler_static_works=yes
18983 else
18984 lt_cv_prog_compiler_static_works=yes
18987 $RM -r conftest*
18988 LDFLAGS="$save_LDFLAGS"
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18992 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18994 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18996 else
18997 lt_prog_compiler_static=
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19007 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19008 if ${lt_cv_prog_compiler_c_o+:} false; then :
19009 $as_echo_n "(cached) " >&6
19010 else
19011 lt_cv_prog_compiler_c_o=no
19012 $RM -r conftest 2>/dev/null
19013 mkdir conftest
19014 cd conftest
19015 mkdir out
19016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19018 lt_compiler_flag="-o out/conftest2.$ac_objext"
19019 # Insert the option either (1) after the last *FLAGS variable, or
19020 # (2) before a word containing "conftest.", or (3) at the end.
19021 # Note that $ac_compile itself does not contain backslashes and begins
19022 # with a dollar sign (not a hyphen), so the echo should work correctly.
19023 lt_compile=`echo "$ac_compile" | $SED \
19024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19026 -e 's:$: $lt_compiler_flag:'`
19027 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19028 (eval "$lt_compile" 2>out/conftest.err)
19029 ac_status=$?
19030 cat out/conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19033 then
19034 # The compiler can only warn and ignore the option if not recognized
19035 # So say no if there are warnings
19036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19039 lt_cv_prog_compiler_c_o=yes
19042 chmod u+w . 2>&5
19043 $RM conftest*
19044 # SGI C++ compiler will create directory out/ii_files/ for
19045 # template instantiation
19046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19047 $RM out/* && rmdir out
19048 cd ..
19049 $RM -r conftest
19050 $RM conftest*
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19054 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19062 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19063 if ${lt_cv_prog_compiler_c_o+:} false; then :
19064 $as_echo_n "(cached) " >&6
19065 else
19066 lt_cv_prog_compiler_c_o=no
19067 $RM -r conftest 2>/dev/null
19068 mkdir conftest
19069 cd conftest
19070 mkdir out
19071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19073 lt_compiler_flag="-o out/conftest2.$ac_objext"
19074 # Insert the option either (1) after the last *FLAGS variable, or
19075 # (2) before a word containing "conftest.", or (3) at the end.
19076 # Note that $ac_compile itself does not contain backslashes and begins
19077 # with a dollar sign (not a hyphen), so the echo should work correctly.
19078 lt_compile=`echo "$ac_compile" | $SED \
19079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19081 -e 's:$: $lt_compiler_flag:'`
19082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19083 (eval "$lt_compile" 2>out/conftest.err)
19084 ac_status=$?
19085 cat out/conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19088 then
19089 # The compiler can only warn and ignore the option if not recognized
19090 # So say no if there are warnings
19091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19094 lt_cv_prog_compiler_c_o=yes
19097 chmod u+w . 2>&5
19098 $RM conftest*
19099 # SGI C++ compiler will create directory out/ii_files/ for
19100 # template instantiation
19101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19102 $RM out/* && rmdir out
19103 cd ..
19104 $RM -r conftest
19105 $RM conftest*
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19109 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19114 hard_links="nottested"
19115 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
19116 # do not overwrite the value of need_locks provided by the user
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19118 $as_echo_n "checking if we can lock with hard links... " >&6; }
19119 hard_links=yes
19120 $RM conftest*
19121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19122 touch conftest.a
19123 ln conftest.a conftest.b 2>&5 || hard_links=no
19124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19126 $as_echo "$hard_links" >&6; }
19127 if test "$hard_links" = no; then
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19129 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19130 need_locks=warn
19132 else
19133 need_locks=no
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19142 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19144 runpath_var=
19145 allow_undefined_flag=
19146 always_export_symbols=no
19147 archive_cmds=
19148 archive_expsym_cmds=
19149 compiler_needs_object=no
19150 enable_shared_with_static_runtimes=no
19151 export_dynamic_flag_spec=
19152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19153 hardcode_automatic=no
19154 hardcode_direct=no
19155 hardcode_direct_absolute=no
19156 hardcode_libdir_flag_spec=
19157 hardcode_libdir_flag_spec_ld=
19158 hardcode_libdir_separator=
19159 hardcode_minus_L=no
19160 hardcode_shlibpath_var=unsupported
19161 inherit_rpath=no
19162 link_all_deplibs=unknown
19163 module_cmds=
19164 module_expsym_cmds=
19165 old_archive_from_new_cmds=
19166 old_archive_from_expsyms_cmds=
19167 thread_safe_flag_spec=
19168 whole_archive_flag_spec=
19169 # include_expsyms should be a list of space-separated symbols to be *always*
19170 # included in the symbol list
19171 include_expsyms=
19172 # exclude_expsyms can be an extended regexp of symbols to exclude
19173 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19174 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19175 # as well as any symbol that contains `d'.
19176 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19177 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19178 # platforms (ab)use it in PIC code, but their linkers get confused if
19179 # the symbol is explicitly referenced. Since portable code cannot
19180 # rely on this symbol name, it's probably fine to never include it in
19181 # preloaded symbol tables.
19182 # Exclude shared library initialization/finalization symbols.
19183 extract_expsyms_cmds=
19185 case $host_os in
19186 cygwin* | mingw* | pw32* | cegcc*)
19187 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19188 # When not using gcc, we currently assume that we are using
19189 # Microsoft Visual C++.
19190 if test "$GCC" != yes; then
19191 with_gnu_ld=no
19194 interix*)
19195 # we just hope/assume this is gcc and not c89 (= MSVC++)
19196 with_gnu_ld=yes
19198 openbsd*)
19199 with_gnu_ld=no
19201 esac
19203 ld_shlibs=yes
19205 # On some targets, GNU ld is compatible enough with the native linker
19206 # that we're better off using the native interface for both.
19207 lt_use_gnu_ld_interface=no
19208 if test "$with_gnu_ld" = yes; then
19209 case $host_os in
19210 aix*)
19211 # The AIX port of GNU ld has always aspired to compatibility
19212 # with the native linker. However, as the warning in the GNU ld
19213 # block says, versions before 2.19.5* couldn't really create working
19214 # shared libraries, regardless of the interface used.
19215 case `$LD -v 2>&1` in
19216 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19217 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19218 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19220 lt_use_gnu_ld_interface=yes
19222 esac
19225 lt_use_gnu_ld_interface=yes
19227 esac
19230 if test "$lt_use_gnu_ld_interface" = yes; then
19231 # If archive_cmds runs LD, not CC, wlarc should be empty
19232 wlarc='${wl}'
19234 # Set some defaults for GNU ld with shared library support. These
19235 # are reset later if shared libraries are not supported. Putting them
19236 # here allows them to be overridden if necessary.
19237 runpath_var=LD_RUN_PATH
19238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19239 export_dynamic_flag_spec='${wl}--export-dynamic'
19240 # ancient GNU ld didn't support --whole-archive et. al.
19241 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19242 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19243 else
19244 whole_archive_flag_spec=
19246 supports_anon_versioning=no
19247 case `$LD -v 2>&1` in
19248 *GNU\ gold*) supports_anon_versioning=yes ;;
19249 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19250 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19251 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19252 *\ 2.11.*) ;; # other 2.11 versions
19253 *) supports_anon_versioning=yes ;;
19254 esac
19256 # See if GNU ld supports shared libraries.
19257 case $host_os in
19258 aix[3-9]*)
19259 # On AIX/PPC, the GNU linker is very broken
19260 if test "$host_cpu" != ia64; then
19261 ld_shlibs=no
19262 cat <<_LT_EOF 1>&2
19264 *** Warning: the GNU linker, at least up to release 2.19, is reported
19265 *** to be unable to reliably create shared libraries on AIX.
19266 *** Therefore, libtool is disabling shared libraries support. If you
19267 *** really care for shared libraries, you may want to install binutils
19268 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19269 *** You will then need to restart the configuration process.
19271 _LT_EOF
19275 amigaos*)
19276 case $host_cpu in
19277 powerpc)
19278 # see comment about AmigaOS4 .so support
19279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19280 archive_expsym_cmds=''
19282 m68k)
19283 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)'
19284 hardcode_libdir_flag_spec='-L$libdir'
19285 hardcode_minus_L=yes
19287 esac
19290 beos*)
19291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19292 allow_undefined_flag=unsupported
19293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19294 # support --undefined. This deserves some investigation. FIXME
19295 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19296 else
19297 ld_shlibs=no
19301 cygwin* | mingw* | pw32* | cegcc*)
19302 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19303 # as there is no search path for DLLs.
19304 hardcode_libdir_flag_spec='-L$libdir'
19305 export_dynamic_flag_spec='${wl}--export-all-symbols'
19306 allow_undefined_flag=unsupported
19307 always_export_symbols=no
19308 enable_shared_with_static_runtimes=yes
19309 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19311 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19313 # If the export-symbols file already is a .def file (1st line
19314 # is EXPORTS), use it as is; otherwise, prepend...
19315 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19316 cp $export_symbols $output_objdir/$soname.def;
19317 else
19318 echo EXPORTS > $output_objdir/$soname.def;
19319 cat $export_symbols >> $output_objdir/$soname.def;
19321 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19322 else
19323 ld_shlibs=no
19327 haiku*)
19328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19329 link_all_deplibs=yes
19332 interix[3-9]*)
19333 hardcode_direct=no
19334 hardcode_shlibpath_var=no
19335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19336 export_dynamic_flag_spec='${wl}-E'
19337 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19338 # Instead, shared libraries are loaded at an image base (0x10000000 by
19339 # default) and relocated if they conflict, which is a slow very memory
19340 # consuming and fragmenting process. To avoid this, we pick a random,
19341 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19342 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19343 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19344 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'
19347 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
19348 tmp_diet=no
19349 if test "$host_os" = linux-dietlibc; then
19350 case $cc_basename in
19351 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19352 esac
19354 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19355 && test "$tmp_diet" = no
19356 then
19357 tmp_addflag=' $pic_flag'
19358 tmp_sharedflag='-shared'
19359 case $cc_basename,$host_cpu in
19360 pgcc*) # Portland Group C compiler
19361 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'
19362 tmp_addflag=' $pic_flag'
19364 pgf77* | pgf90* | pgf95* | pgfortran*)
19365 # Portland Group f77 and f90 compilers
19366 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'
19367 tmp_addflag=' $pic_flag -Mnomain' ;;
19368 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19369 tmp_addflag=' -i_dynamic' ;;
19370 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19371 tmp_addflag=' -i_dynamic -nofor_main' ;;
19372 ifc* | ifort*) # Intel Fortran compiler
19373 tmp_addflag=' -nofor_main' ;;
19374 lf95*) # Lahey Fortran 8.1
19375 whole_archive_flag_spec=
19376 tmp_sharedflag='--shared' ;;
19377 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19378 tmp_sharedflag='-qmkshrobj'
19379 tmp_addflag= ;;
19380 nvcc*) # Cuda Compiler Driver 2.2
19381 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'
19382 compiler_needs_object=yes
19384 esac
19385 case `$CC -V 2>&1 | sed 5q` in
19386 *Sun\ C*) # Sun C 5.9
19387 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'
19388 compiler_needs_object=yes
19389 tmp_sharedflag='-G' ;;
19390 *Sun\ F*) # Sun Fortran 8.3
19391 tmp_sharedflag='-G' ;;
19392 esac
19393 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19395 if test "x$supports_anon_versioning" = xyes; then
19396 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19398 echo "local: *; };" >> $output_objdir/$libname.ver~
19399 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19402 case $cc_basename in
19403 xlf* | bgf* | bgxlf* | mpixlf*)
19404 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19405 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19406 hardcode_libdir_flag_spec=
19407 hardcode_libdir_flag_spec_ld='-rpath $libdir'
19408 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19409 if test "x$supports_anon_versioning" = xyes; then
19410 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19412 echo "local: *; };" >> $output_objdir/$libname.ver~
19413 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19416 esac
19417 else
19418 ld_shlibs=no
19422 netbsd*)
19423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19424 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19425 wlarc=
19426 else
19427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19432 solaris*)
19433 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19434 ld_shlibs=no
19435 cat <<_LT_EOF 1>&2
19437 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19438 *** create shared libraries on Solaris systems. Therefore, libtool
19439 *** is disabling shared libraries support. We urge you to upgrade GNU
19440 *** binutils to release 2.9.1 or newer. Another option is to modify
19441 *** your PATH or compiler configuration so that the native linker is
19442 *** used, and then restart.
19444 _LT_EOF
19445 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19448 else
19449 ld_shlibs=no
19453 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19454 case `$LD -v 2>&1` in
19455 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19456 ld_shlibs=no
19457 cat <<_LT_EOF 1>&2
19459 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19460 *** reliably create shared libraries on SCO systems. Therefore, libtool
19461 *** is disabling shared libraries support. We urge you to upgrade GNU
19462 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19463 *** your PATH or compiler configuration so that the native linker is
19464 *** used, and then restart.
19466 _LT_EOF
19469 # For security reasons, it is highly recommended that you always
19470 # use absolute paths for naming shared libraries, and exclude the
19471 # DT_RUNPATH tag from executables and libraries. But doing so
19472 # requires that you compile everything twice, which is a pain.
19473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19474 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19476 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19477 else
19478 ld_shlibs=no
19481 esac
19484 sunos4*)
19485 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19486 wlarc=
19487 hardcode_direct=yes
19488 hardcode_shlibpath_var=no
19492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19495 else
19496 ld_shlibs=no
19499 esac
19501 if test "$ld_shlibs" = no; then
19502 runpath_var=
19503 hardcode_libdir_flag_spec=
19504 export_dynamic_flag_spec=
19505 whole_archive_flag_spec=
19507 else
19508 # PORTME fill in a description of your system's linker (not GNU ld)
19509 case $host_os in
19510 aix3*)
19511 allow_undefined_flag=unsupported
19512 always_export_symbols=yes
19513 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'
19514 # Note: this linker hardcodes the directories in LIBPATH if there
19515 # are no directories specified by -L.
19516 hardcode_minus_L=yes
19517 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19518 # Neither direct hardcoding nor static linking is supported with a
19519 # broken collect2.
19520 hardcode_direct=unsupported
19524 aix[4-9]*)
19525 if test "$host_cpu" = ia64; then
19526 # On IA64, the linker does run time linking by default, so we don't
19527 # have to do anything special.
19528 aix_use_runtimelinking=no
19529 exp_sym_flag='-Bexport'
19530 no_entry_flag=""
19531 else
19532 # If we're using GNU nm, then we don't want the "-C" option.
19533 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19534 # Also, AIX nm treats weak defined symbols like other global
19535 # defined symbols, whereas GNU nm marks them as "W".
19536 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19537 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'
19538 else
19539 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'
19541 aix_use_runtimelinking=no
19543 # Test if we are trying to use run time linking or normal
19544 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19545 # need to do runtime linking.
19546 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19547 for ld_flag in $LDFLAGS; do
19548 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19549 aix_use_runtimelinking=yes
19550 break
19552 done
19554 esac
19556 exp_sym_flag='-bexport'
19557 no_entry_flag='-bnoentry'
19560 # When large executables or shared objects are built, AIX ld can
19561 # have problems creating the table of contents. If linking a library
19562 # or program results in "error TOC overflow" add -mminimal-toc to
19563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19566 archive_cmds=''
19567 hardcode_direct=yes
19568 hardcode_direct_absolute=yes
19569 hardcode_libdir_separator=':'
19570 link_all_deplibs=yes
19571 file_list_spec='${wl}-f,'
19573 if test "$GCC" = yes; then
19574 case $host_os in aix4.[012]|aix4.[012].*)
19575 # We only want to do this on AIX 4.2 and lower, the check
19576 # below for broken collect2 doesn't work under 4.3+
19577 collect2name=`${CC} -print-prog-name=collect2`
19578 if test -f "$collect2name" &&
19579 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19580 then
19581 # We have reworked collect2
19583 else
19584 # We have old collect2
19585 hardcode_direct=unsupported
19586 # It fails to find uninstalled libraries when the uninstalled
19587 # path is not listed in the libpath. Setting hardcode_minus_L
19588 # to unsupported forces relinking
19589 hardcode_minus_L=yes
19590 hardcode_libdir_flag_spec='-L$libdir'
19591 hardcode_libdir_separator=
19594 esac
19595 shared_flag='-shared'
19596 if test "$aix_use_runtimelinking" = yes; then
19597 shared_flag="$shared_flag "'${wl}-G'
19599 else
19600 # not using gcc
19601 if test "$host_cpu" = ia64; then
19602 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19603 # chokes on -Wl,-G. The following line is correct:
19604 shared_flag='-G'
19605 else
19606 if test "$aix_use_runtimelinking" = yes; then
19607 shared_flag='${wl}-G'
19608 else
19609 shared_flag='${wl}-bM:SRE'
19614 export_dynamic_flag_spec='${wl}-bexpall'
19615 # It seems that -bexpall does not export symbols beginning with
19616 # underscore (_), so it is better to generate a list of symbols to export.
19617 always_export_symbols=yes
19618 if test "$aix_use_runtimelinking" = yes; then
19619 # Warning - without using the other runtime loading flags (-brtl),
19620 # -berok will link without error, but may produce a broken library.
19621 allow_undefined_flag='-berok'
19622 # Determine the default libpath from the value encoded in an
19623 # empty executable.
19624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h. */
19628 main ()
19632 return 0;
19634 _ACEOF
19635 if ac_fn_c_try_link "$LINENO"; then :
19637 lt_aix_libpath_sed='
19638 /Import File Strings/,/^$/ {
19639 /^0/ {
19640 s/^0 *\(.*\)$/\1/
19644 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19645 # Check for a 64-bit object if we didn't find anything.
19646 if test -z "$aix_libpath"; then
19647 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19650 rm -f core conftest.err conftest.$ac_objext \
19651 conftest$ac_exeext conftest.$ac_ext
19652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19654 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19655 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"
19656 else
19657 if test "$host_cpu" = ia64; then
19658 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19659 allow_undefined_flag="-z nodefs"
19660 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"
19661 else
19662 # Determine the default libpath from the value encoded in an
19663 # empty executable.
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19668 main ()
19672 return 0;
19674 _ACEOF
19675 if ac_fn_c_try_link "$LINENO"; then :
19677 lt_aix_libpath_sed='
19678 /Import File Strings/,/^$/ {
19679 /^0/ {
19680 s/^0 *\(.*\)$/\1/
19684 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19685 # Check for a 64-bit object if we didn't find anything.
19686 if test -z "$aix_libpath"; then
19687 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19690 rm -f core conftest.err conftest.$ac_objext \
19691 conftest$ac_exeext conftest.$ac_ext
19692 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19694 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19695 # Warning - without using the other run time loading flags,
19696 # -berok will link without error, but may produce a broken library.
19697 no_undefined_flag=' ${wl}-bernotok'
19698 allow_undefined_flag=' ${wl}-berok'
19699 if test "$with_gnu_ld" = yes; then
19700 # We only use this code for GNU lds that support --whole-archive.
19701 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19702 else
19703 # Exported symbols can be pulled into shared objects from archives
19704 whole_archive_flag_spec='$convenience'
19706 archive_cmds_need_lc=yes
19707 # This is similar to how AIX traditionally builds its shared libraries.
19708 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'
19713 amigaos*)
19714 case $host_cpu in
19715 powerpc)
19716 # see comment about AmigaOS4 .so support
19717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19718 archive_expsym_cmds=''
19720 m68k)
19721 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)'
19722 hardcode_libdir_flag_spec='-L$libdir'
19723 hardcode_minus_L=yes
19725 esac
19728 bsdi[45]*)
19729 export_dynamic_flag_spec=-rdynamic
19732 cygwin* | mingw* | pw32* | cegcc*)
19733 # When not using gcc, we currently assume that we are using
19734 # Microsoft Visual C++.
19735 # hardcode_libdir_flag_spec is actually meaningless, as there is
19736 # no search path for DLLs.
19737 hardcode_libdir_flag_spec=' '
19738 allow_undefined_flag=unsupported
19739 # Tell ltmain to make .lib files, not .a files.
19740 libext=lib
19741 # Tell ltmain to make .dll files, not .so files.
19742 shrext_cmds=".dll"
19743 # FIXME: Setting linknames here is a bad hack.
19744 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19745 # The linker will automatically build a .lib file if we build a DLL.
19746 old_archive_from_new_cmds='true'
19747 # FIXME: Should let the user specify the lib program.
19748 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19749 fix_srcfile_path='`cygpath -w "$srcfile"`'
19750 enable_shared_with_static_runtimes=yes
19753 darwin* | rhapsody*)
19757 # Publish an arg to allow the user to select that Darwin host (and target)
19758 # libraries should be given install-names like @rpath/libfoo.dylib. This
19759 # requires that the user of the library then adds an 'rpath' to the DSO that
19760 # needs access.
19761 # NOTE: there are defaults below, for systems that support rpaths. The person
19762 # configuring can override the defaults for any system version that supports
19763 # them - they are, however, forced off for system versions without support.
19764 # Check whether --enable-darwin-at-rpath was given.
19765 if test "${enable_darwin_at_rpath+set}" = set; then :
19766 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19767 # This is not supported before macOS 10.5 / Darwin9.
19768 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19769 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19771 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19772 enable_darwin_at_rpath=no
19774 esac
19776 else
19777 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19778 # As above, before 10.5 / Darwin9 this does not work.
19779 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19780 enable_darwin_at_rpath=no
19783 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19784 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19785 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19786 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19788 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19789 enable_darwin_at_rpath=yes
19791 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19792 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19794 esac
19799 archive_cmds_need_lc=no
19800 hardcode_direct=no
19801 hardcode_automatic=yes
19802 hardcode_shlibpath_var=unsupported
19803 if test "$lt_cv_ld_force_load" = "yes"; then
19804 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\"`'
19805 else
19806 whole_archive_flag_spec=''
19808 link_all_deplibs=yes
19809 allow_undefined_flag="$_lt_dar_allow_undefined"
19810 case $cc_basename in
19811 ifort*) _lt_dar_can_shared=yes ;;
19812 *) _lt_dar_can_shared=$GCC ;;
19813 esac
19814 if test "$_lt_dar_can_shared" = "yes"; then
19815 output_verbose_link_cmd=func_echo_all
19816 _lt_install_name='\$rpath/\$soname'
19817 if test "x$enable_darwin_at_rpath" = "xyes"; then
19818 _lt_install_name='@rpath/\$soname'
19820 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19821 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19822 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
19823 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}"
19825 else
19826 ld_shlibs=no
19831 dgux*)
19832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19833 hardcode_libdir_flag_spec='-L$libdir'
19834 hardcode_shlibpath_var=no
19837 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19838 # support. Future versions do this automatically, but an explicit c++rt0.o
19839 # does not break anything, and helps significantly (at the cost of a little
19840 # extra space).
19841 freebsd2.2*)
19842 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19843 hardcode_libdir_flag_spec='-R$libdir'
19844 hardcode_direct=yes
19845 hardcode_shlibpath_var=no
19848 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19849 freebsd2.*)
19850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19851 hardcode_direct=yes
19852 hardcode_minus_L=yes
19853 hardcode_shlibpath_var=no
19856 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19857 freebsd* | dragonfly*)
19858 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19859 hardcode_libdir_flag_spec='-R$libdir'
19860 hardcode_direct=yes
19861 hardcode_shlibpath_var=no
19864 hpux9*)
19865 if test "$GCC" = yes; then
19866 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'
19867 else
19868 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'
19870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19871 hardcode_libdir_separator=:
19872 hardcode_direct=yes
19874 # hardcode_minus_L: Not really in the search PATH,
19875 # but as the default location of the library.
19876 hardcode_minus_L=yes
19877 export_dynamic_flag_spec='${wl}-E'
19880 hpux10*)
19881 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19882 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19883 else
19884 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19886 if test "$with_gnu_ld" = no; then
19887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19888 hardcode_libdir_flag_spec_ld='+b $libdir'
19889 hardcode_libdir_separator=:
19890 hardcode_direct=yes
19891 hardcode_direct_absolute=yes
19892 export_dynamic_flag_spec='${wl}-E'
19893 # hardcode_minus_L: Not really in the search PATH,
19894 # but as the default location of the library.
19895 hardcode_minus_L=yes
19899 hpux11*)
19900 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19901 case $host_cpu in
19902 hppa*64*)
19903 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19905 ia64*)
19906 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19909 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19911 esac
19912 else
19913 case $host_cpu in
19914 hppa*64*)
19915 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19917 ia64*)
19918 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19922 # Older versions of the 11.00 compiler do not understand -b yet
19923 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19925 $as_echo_n "checking if $CC understands -b... " >&6; }
19926 if ${lt_cv_prog_compiler__b+:} false; then :
19927 $as_echo_n "(cached) " >&6
19928 else
19929 lt_cv_prog_compiler__b=no
19930 save_LDFLAGS="$LDFLAGS"
19931 LDFLAGS="$LDFLAGS -b"
19932 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19933 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19934 # The linker can only warn and ignore the option if not recognized
19935 # So say no if there are warnings
19936 if test -s conftest.err; then
19937 # Append any errors to the config.log.
19938 cat conftest.err 1>&5
19939 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19941 if diff conftest.exp conftest.er2 >/dev/null; then
19942 lt_cv_prog_compiler__b=yes
19944 else
19945 lt_cv_prog_compiler__b=yes
19948 $RM -r conftest*
19949 LDFLAGS="$save_LDFLAGS"
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19953 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19955 if test x"$lt_cv_prog_compiler__b" = xyes; then
19956 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19957 else
19958 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19962 esac
19964 if test "$with_gnu_ld" = no; then
19965 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19966 hardcode_libdir_separator=:
19968 case $host_cpu in
19969 hppa*64*|ia64*)
19970 hardcode_direct=no
19971 hardcode_shlibpath_var=no
19974 hardcode_direct=yes
19975 hardcode_direct_absolute=yes
19976 export_dynamic_flag_spec='${wl}-E'
19978 # hardcode_minus_L: Not really in the search PATH,
19979 # but as the default location of the library.
19980 hardcode_minus_L=yes
19982 esac
19986 irix5* | irix6* | nonstopux*)
19987 if test "$GCC" = yes; then
19988 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'
19989 # Try to use the -exported_symbol ld option, if it does not
19990 # work, assume that -exports_file does not work either and
19991 # implicitly export all symbols.
19992 save_LDFLAGS="$LDFLAGS"
19993 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19995 /* end confdefs.h. */
19996 int foo(void) {}
19997 _ACEOF
19998 if ac_fn_c_try_link "$LINENO"; then :
19999 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'
20002 rm -f core conftest.err conftest.$ac_objext \
20003 conftest$ac_exeext conftest.$ac_ext
20004 LDFLAGS="$save_LDFLAGS"
20005 else
20006 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'
20007 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'
20009 archive_cmds_need_lc='no'
20010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20011 hardcode_libdir_separator=:
20012 inherit_rpath=yes
20013 link_all_deplibs=yes
20016 netbsd*)
20017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20019 else
20020 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20022 hardcode_libdir_flag_spec='-R$libdir'
20023 hardcode_direct=yes
20024 hardcode_shlibpath_var=no
20027 newsos6)
20028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20029 hardcode_direct=yes
20030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20031 hardcode_libdir_separator=:
20032 hardcode_shlibpath_var=no
20035 *nto* | *qnx*)
20038 openbsd*)
20039 if test -f /usr/libexec/ld.so; then
20040 hardcode_direct=yes
20041 hardcode_shlibpath_var=no
20042 hardcode_direct_absolute=yes
20043 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20045 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20046 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
20047 export_dynamic_flag_spec='${wl}-E'
20048 else
20049 case $host_os in
20050 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20052 hardcode_libdir_flag_spec='-R$libdir'
20055 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20056 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
20058 esac
20060 else
20061 ld_shlibs=no
20065 os2*)
20066 hardcode_libdir_flag_spec='-L$libdir'
20067 hardcode_minus_L=yes
20068 allow_undefined_flag=unsupported
20069 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'
20070 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20073 osf3*)
20074 if test "$GCC" = yes; then
20075 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
20076 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'
20077 else
20078 allow_undefined_flag=' -expect_unresolved \*'
20079 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'
20081 archive_cmds_need_lc='no'
20082 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20083 hardcode_libdir_separator=:
20086 osf4* | osf5*) # as osf3* with the addition of -msym flag
20087 if test "$GCC" = yes; then
20088 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
20089 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'
20090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20091 else
20092 allow_undefined_flag=' -expect_unresolved \*'
20093 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'
20094 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~
20095 $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'
20097 # Both c and cxx compiler support -rpath directly
20098 hardcode_libdir_flag_spec='-rpath $libdir'
20100 archive_cmds_need_lc='no'
20101 hardcode_libdir_separator=:
20104 solaris*)
20105 no_undefined_flag=' -z defs'
20106 if test "$GCC" = yes; then
20107 wlarc='${wl}'
20108 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20110 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20111 else
20112 case `$CC -V 2>&1` in
20113 *"Compilers 5.0"*)
20114 wlarc=''
20115 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20116 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20117 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20120 wlarc='${wl}'
20121 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20122 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20123 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20125 esac
20127 hardcode_libdir_flag_spec='-R$libdir'
20128 hardcode_shlibpath_var=no
20129 case $host_os in
20130 solaris2.[0-5] | solaris2.[0-5].*) ;;
20132 # The compiler driver will combine and reorder linker options,
20133 # but understands `-z linker_flag'. GCC discards it without `$wl',
20134 # but is careful enough not to reorder.
20135 # Supported since Solaris 2.6 (maybe 2.5.1?)
20136 if test "$GCC" = yes; then
20137 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20138 else
20139 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20142 esac
20143 link_all_deplibs=yes
20146 sunos4*)
20147 if test "x$host_vendor" = xsequent; then
20148 # Use $CC to link under sequent, because it throws in some extra .o
20149 # files that make .init and .fini sections work.
20150 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20151 else
20152 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20154 hardcode_libdir_flag_spec='-L$libdir'
20155 hardcode_direct=yes
20156 hardcode_minus_L=yes
20157 hardcode_shlibpath_var=no
20160 sysv4)
20161 case $host_vendor in
20162 sni)
20163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20164 hardcode_direct=yes # is this really true???
20166 siemens)
20167 ## LD is ld it makes a PLAMLIB
20168 ## CC just makes a GrossModule.
20169 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20170 reload_cmds='$CC -r -o $output$reload_objs'
20171 hardcode_direct=no
20173 motorola)
20174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20175 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20177 esac
20178 runpath_var='LD_RUN_PATH'
20179 hardcode_shlibpath_var=no
20182 sysv4.3*)
20183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20184 hardcode_shlibpath_var=no
20185 export_dynamic_flag_spec='-Bexport'
20188 sysv4*MP*)
20189 if test -d /usr/nec; then
20190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20191 hardcode_shlibpath_var=no
20192 runpath_var=LD_RUN_PATH
20193 hardcode_runpath_var=yes
20194 ld_shlibs=yes
20198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20199 no_undefined_flag='${wl}-z,text'
20200 archive_cmds_need_lc=no
20201 hardcode_shlibpath_var=no
20202 runpath_var='LD_RUN_PATH'
20204 if test "$GCC" = yes; then
20205 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20206 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20207 else
20208 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20209 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20213 sysv5* | sco3.2v5* | sco5v6*)
20214 # Note: We can NOT use -z defs as we might desire, because we do not
20215 # link with -lc, and that would cause any symbols used from libc to
20216 # always be unresolved, which means just about no library would
20217 # ever link correctly. If we're not using GNU ld we use -z text
20218 # though, which does catch some bad symbols but isn't as heavy-handed
20219 # as -z defs.
20220 no_undefined_flag='${wl}-z,text'
20221 allow_undefined_flag='${wl}-z,nodefs'
20222 archive_cmds_need_lc=no
20223 hardcode_shlibpath_var=no
20224 hardcode_libdir_flag_spec='${wl}-R,$libdir'
20225 hardcode_libdir_separator=':'
20226 link_all_deplibs=yes
20227 export_dynamic_flag_spec='${wl}-Bexport'
20228 runpath_var='LD_RUN_PATH'
20230 if test "$GCC" = yes; then
20231 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20232 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20233 else
20234 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20235 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20239 uts4*)
20240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20241 hardcode_libdir_flag_spec='-L$libdir'
20242 hardcode_shlibpath_var=no
20246 ld_shlibs=no
20248 esac
20250 if test x$host_vendor = xsni; then
20251 case $host in
20252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20253 export_dynamic_flag_spec='${wl}-Blargedynsym'
20255 esac
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20260 $as_echo "$ld_shlibs" >&6; }
20261 test "$ld_shlibs" = no && can_build_shared=no
20263 with_gnu_ld=$with_gnu_ld
20280 # Do we need to explicitly link libc?
20282 case "x$archive_cmds_need_lc" in
20283 x|xyes)
20284 # Assume -lc should be added
20285 archive_cmds_need_lc=yes
20287 if test "$enable_shared" = yes && test "$GCC" = yes; then
20288 case $archive_cmds in
20289 *'~'*)
20290 # FIXME: we may have to deal with multi-command sequences.
20292 '$CC '*)
20293 # Test whether the compiler implicitly links with -lc since on some
20294 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20295 # to ld, don't add -lc before -lgcc.
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20297 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20298 if ${lt_cv_archive_cmds_need_lc+:} false; then :
20299 $as_echo_n "(cached) " >&6
20300 else
20301 $RM conftest*
20302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20305 (eval $ac_compile) 2>&5
20306 ac_status=$?
20307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20308 test $ac_status = 0; } 2>conftest.err; then
20309 soname=conftest
20310 lib=conftest
20311 libobjs=conftest.$ac_objext
20312 deplibs=
20313 wl=$lt_prog_compiler_wl
20314 pic_flag=$lt_prog_compiler_pic
20315 compiler_flags=-v
20316 linker_flags=-v
20317 verstring=
20318 output_objdir=.
20319 libname=conftest
20320 lt_save_allow_undefined_flag=$allow_undefined_flag
20321 allow_undefined_flag=
20322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20323 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20324 ac_status=$?
20325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20326 test $ac_status = 0; }
20327 then
20328 lt_cv_archive_cmds_need_lc=no
20329 else
20330 lt_cv_archive_cmds_need_lc=yes
20332 allow_undefined_flag=$lt_save_allow_undefined_flag
20333 else
20334 cat conftest.err 1>&5
20336 $RM conftest*
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20340 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20341 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20343 esac
20346 esac
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20505 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20507 if test "$GCC" = yes; then
20508 case $host_os in
20509 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20510 *) lt_awk_arg="/^libraries:/" ;;
20511 esac
20512 case $host_os in
20513 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20514 *) lt_sed_strip_eq="s,=/,/,g" ;;
20515 esac
20516 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20517 case $lt_search_path_spec in
20518 *\;*)
20519 # if the path contains ";" then we assume it to be the separator
20520 # otherwise default to the standard path separator (i.e. ":") - it is
20521 # assumed that no part of a normal pathname contains ";" but that should
20522 # okay in the real world where ";" in dirpaths is itself problematic.
20523 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20526 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20528 esac
20529 # Ok, now we have the path, separated by spaces, we can step through it
20530 # and add multilib dir if necessary.
20531 lt_tmp_lt_search_path_spec=
20532 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20533 for lt_sys_path in $lt_search_path_spec; do
20534 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20535 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20536 else
20537 test -d "$lt_sys_path" && \
20538 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20540 done
20541 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20542 BEGIN {RS=" "; FS="/|\n";} {
20543 lt_foo="";
20544 lt_count=0;
20545 for (lt_i = NF; lt_i > 0; lt_i--) {
20546 if ($lt_i != "" && $lt_i != ".") {
20547 if ($lt_i == "..") {
20548 lt_count++;
20549 } else {
20550 if (lt_count == 0) {
20551 lt_foo="/" $lt_i lt_foo;
20552 } else {
20553 lt_count--;
20558 if (lt_foo != "") { lt_freq[lt_foo]++; }
20559 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20561 # AWK program above erroneously prepends '/' to C:/dos/paths
20562 # for these hosts.
20563 case $host_os in
20564 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20565 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20566 esac
20567 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20568 else
20569 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20571 library_names_spec=
20572 libname_spec='lib$name'
20573 soname_spec=
20574 shrext_cmds=".so"
20575 postinstall_cmds=
20576 postuninstall_cmds=
20577 finish_cmds=
20578 finish_eval=
20579 shlibpath_var=
20580 shlibpath_overrides_runpath=unknown
20581 version_type=none
20582 dynamic_linker="$host_os ld.so"
20583 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20584 need_lib_prefix=unknown
20585 hardcode_into_libs=no
20587 # when you set need_version to no, make sure it does not cause -set_version
20588 # flags to be left without arguments
20589 need_version=unknown
20591 case $host_os in
20592 aix3*)
20593 version_type=linux
20594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20595 shlibpath_var=LIBPATH
20597 # AIX 3 has no versioning support, so we append a major version to the name.
20598 soname_spec='${libname}${release}${shared_ext}$major'
20601 aix[4-9]*)
20602 version_type=linux
20603 need_lib_prefix=no
20604 need_version=no
20605 hardcode_into_libs=yes
20606 if test "$host_cpu" = ia64; then
20607 # AIX 5 supports IA64
20608 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20609 shlibpath_var=LD_LIBRARY_PATH
20610 else
20611 # With GCC up to 2.95.x, collect2 would create an import file
20612 # for dependence libraries. The import file would start with
20613 # the line `#! .'. This would cause the generated library to
20614 # depend on `.', always an invalid library. This was fixed in
20615 # development snapshots of GCC prior to 3.0.
20616 case $host_os in
20617 aix4 | aix4.[01] | aix4.[01].*)
20618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20619 echo ' yes '
20620 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20622 else
20623 can_build_shared=no
20626 esac
20627 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20628 # soname into executable. Probably we can add versioning support to
20629 # collect2, so additional links can be useful in future.
20630 if test "$aix_use_runtimelinking" = yes; then
20631 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20632 # instead of lib<name>.a to let people know that these are not
20633 # typical AIX shared libraries.
20634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20635 else
20636 # We preserve .a as extension for shared libraries through AIX4.2
20637 # and later when we are not doing run time linking.
20638 library_names_spec='${libname}${release}.a $libname.a'
20639 soname_spec='${libname}${release}${shared_ext}$major'
20641 shlibpath_var=LIBPATH
20645 amigaos*)
20646 case $host_cpu in
20647 powerpc)
20648 # Since July 2007 AmigaOS4 officially supports .so libraries.
20649 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20652 m68k)
20653 library_names_spec='$libname.ixlibrary $libname.a'
20654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20655 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'
20657 esac
20660 beos*)
20661 library_names_spec='${libname}${shared_ext}'
20662 dynamic_linker="$host_os ld.so"
20663 shlibpath_var=LIBRARY_PATH
20666 bsdi[45]*)
20667 version_type=linux
20668 need_version=no
20669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670 soname_spec='${libname}${release}${shared_ext}$major'
20671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20672 shlibpath_var=LD_LIBRARY_PATH
20673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20675 # the default ld.so.conf also contains /usr/contrib/lib and
20676 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20677 # libtool to hard-code these into programs
20680 cygwin* | mingw* | pw32* | cegcc*)
20681 version_type=windows
20682 shrext_cmds=".dll"
20683 need_version=no
20684 need_lib_prefix=no
20686 case $GCC,$host_os in
20687 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20688 library_names_spec='$libname.dll.a'
20689 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20690 postinstall_cmds='base_file=`basename \${file}`~
20691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20692 dldir=$destdir/`dirname \$dlpath`~
20693 test -d \$dldir || mkdir -p \$dldir~
20694 $install_prog $dir/$dlname \$dldir/$dlname~
20695 chmod a+x \$dldir/$dlname~
20696 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20697 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20699 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20700 dlpath=$dir/\$dldll~
20701 $RM \$dlpath'
20702 shlibpath_overrides_runpath=yes
20704 case $host_os in
20705 cygwin*)
20706 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20707 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20709 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20711 mingw* | cegcc*)
20712 # MinGW DLLs use traditional 'lib' prefix
20713 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20715 pw32*)
20716 # pw32 DLLs use 'pw' prefix rather than 'lib'
20717 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20719 esac
20723 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20725 esac
20726 dynamic_linker='Win32 ld.exe'
20727 # FIXME: first we should search . and the directory the executable is in
20728 shlibpath_var=PATH
20731 darwin* | rhapsody*)
20732 dynamic_linker="$host_os dyld"
20733 version_type=darwin
20734 need_lib_prefix=no
20735 need_version=no
20736 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20737 soname_spec='${libname}${release}${major}$shared_ext'
20738 shlibpath_overrides_runpath=yes
20739 shlibpath_var=DYLD_LIBRARY_PATH
20740 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20742 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20743 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20746 dgux*)
20747 version_type=linux
20748 need_lib_prefix=no
20749 need_version=no
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20751 soname_spec='${libname}${release}${shared_ext}$major'
20752 shlibpath_var=LD_LIBRARY_PATH
20755 freebsd* | dragonfly*)
20756 # DragonFly does not have aout. When/if they implement a new
20757 # versioning mechanism, adjust this.
20758 if test -x /usr/bin/objformat; then
20759 objformat=`/usr/bin/objformat`
20760 else
20761 case $host_os in
20762 freebsd[23].*) objformat=aout ;;
20763 *) objformat=elf ;;
20764 esac
20766 version_type=freebsd-$objformat
20767 case $version_type in
20768 freebsd-elf*)
20769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20770 need_version=no
20771 need_lib_prefix=no
20773 freebsd-*)
20774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20775 need_version=yes
20777 esac
20778 shlibpath_var=LD_LIBRARY_PATH
20779 case $host_os in
20780 freebsd2.*)
20781 shlibpath_overrides_runpath=yes
20783 freebsd3.[01]* | freebsdelf3.[01]*)
20784 shlibpath_overrides_runpath=yes
20785 hardcode_into_libs=yes
20787 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20788 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20789 shlibpath_overrides_runpath=no
20790 hardcode_into_libs=yes
20792 *) # from 4.6 on, and DragonFly
20793 shlibpath_overrides_runpath=yes
20794 hardcode_into_libs=yes
20796 esac
20799 haiku*)
20800 version_type=linux
20801 need_lib_prefix=no
20802 need_version=no
20803 dynamic_linker="$host_os runtime_loader"
20804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20805 soname_spec='${libname}${release}${shared_ext}$major'
20806 shlibpath_var=LIBRARY_PATH
20807 shlibpath_overrides_runpath=yes
20808 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20809 hardcode_into_libs=yes
20812 hpux9* | hpux10* | hpux11*)
20813 # Give a soname corresponding to the major version so that dld.sl refuses to
20814 # link against other versions.
20815 version_type=sunos
20816 need_lib_prefix=no
20817 need_version=no
20818 case $host_cpu in
20819 ia64*)
20820 shrext_cmds='.so'
20821 hardcode_into_libs=yes
20822 dynamic_linker="$host_os dld.so"
20823 shlibpath_var=LD_LIBRARY_PATH
20824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20826 soname_spec='${libname}${release}${shared_ext}$major'
20827 if test "X$HPUX_IA64_MODE" = X32; then
20828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20829 else
20830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20834 hppa*64*)
20835 shrext_cmds='.sl'
20836 hardcode_into_libs=yes
20837 dynamic_linker="$host_os dld.sl"
20838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20841 soname_spec='${libname}${release}${shared_ext}$major'
20842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20846 shrext_cmds='.sl'
20847 dynamic_linker="$host_os dld.sl"
20848 shlibpath_var=SHLIB_PATH
20849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 soname_spec='${libname}${release}${shared_ext}$major'
20853 esac
20854 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20855 postinstall_cmds='chmod 555 $lib'
20856 # or fails outright, so override atomically:
20857 install_override_mode=555
20860 interix[3-9]*)
20861 version_type=linux
20862 need_lib_prefix=no
20863 need_version=no
20864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20865 soname_spec='${libname}${release}${shared_ext}$major'
20866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20867 shlibpath_var=LD_LIBRARY_PATH
20868 shlibpath_overrides_runpath=no
20869 hardcode_into_libs=yes
20872 irix5* | irix6* | nonstopux*)
20873 case $host_os in
20874 nonstopux*) version_type=nonstopux ;;
20876 if test "$lt_cv_prog_gnu_ld" = yes; then
20877 version_type=linux
20878 else
20879 version_type=irix
20880 fi ;;
20881 esac
20882 need_lib_prefix=no
20883 need_version=no
20884 soname_spec='${libname}${release}${shared_ext}$major'
20885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20886 case $host_os in
20887 irix5* | nonstopux*)
20888 libsuff= shlibsuff=
20891 case $LD in # libtool.m4 will add one of these switches to LD
20892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20893 libsuff= shlibsuff= libmagic=32-bit;;
20894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20895 libsuff=32 shlibsuff=N32 libmagic=N32;;
20896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20897 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20898 *) libsuff= shlibsuff= libmagic=never-match;;
20899 esac
20901 esac
20902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20903 shlibpath_overrides_runpath=no
20904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20906 hardcode_into_libs=yes
20909 # No shared lib support for Linux oldld, aout, or coff.
20910 linux*oldld* | linux*aout* | linux*coff*)
20911 dynamic_linker=no
20914 # This must be Linux ELF.
20916 # uclinux* changes (here and below) have been submitted to the libtool
20917 # project, but have not yet been accepted: they are GCC-local changes
20918 # for the time being. (See
20919 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20920 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
20921 version_type=linux
20922 need_lib_prefix=no
20923 need_version=no
20924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20925 soname_spec='${libname}${release}${shared_ext}$major'
20926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20927 shlibpath_var=LD_LIBRARY_PATH
20928 shlibpath_overrides_runpath=no
20930 # Some binutils ld are patched to set DT_RUNPATH
20931 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20932 $as_echo_n "(cached) " >&6
20933 else
20934 lt_cv_shlibpath_overrides_runpath=no
20935 save_LDFLAGS=$LDFLAGS
20936 save_libdir=$libdir
20937 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20938 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h. */
20943 main ()
20947 return 0;
20949 _ACEOF
20950 if ac_fn_c_try_link "$LINENO"; then :
20951 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20952 lt_cv_shlibpath_overrides_runpath=yes
20955 rm -f core conftest.err conftest.$ac_objext \
20956 conftest$ac_exeext conftest.$ac_ext
20957 LDFLAGS=$save_LDFLAGS
20958 libdir=$save_libdir
20962 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20964 # This implies no fast_install, which is unacceptable.
20965 # Some rework will be needed to allow for fast_install
20966 # before this can be enabled.
20967 hardcode_into_libs=yes
20969 # Append ld.so.conf contents to the search path
20970 if test -f /etc/ld.so.conf; then
20971 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' ' '`
20972 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20975 # We used to test for /lib/ld.so.1 and disable shared libraries on
20976 # powerpc, because MkLinux only supported shared libraries with the
20977 # GNU dynamic linker. Since this was broken with cross compilers,
20978 # most powerpc-linux boxes support dynamic linking these days and
20979 # people can always --disable-shared, the test was removed, and we
20980 # assume the GNU/Linux dynamic linker is in use.
20981 dynamic_linker='GNU/Linux ld.so'
20984 netbsd*)
20985 version_type=sunos
20986 need_lib_prefix=no
20987 need_version=no
20988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20991 dynamic_linker='NetBSD (a.out) ld.so'
20992 else
20993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20994 soname_spec='${libname}${release}${shared_ext}$major'
20995 dynamic_linker='NetBSD ld.elf_so'
20997 shlibpath_var=LD_LIBRARY_PATH
20998 shlibpath_overrides_runpath=yes
20999 hardcode_into_libs=yes
21002 newsos6)
21003 version_type=linux
21004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21005 shlibpath_var=LD_LIBRARY_PATH
21006 shlibpath_overrides_runpath=yes
21009 *nto* | *qnx*)
21010 version_type=qnx
21011 need_lib_prefix=no
21012 need_version=no
21013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21014 soname_spec='${libname}${release}${shared_ext}$major'
21015 shlibpath_var=LD_LIBRARY_PATH
21016 shlibpath_overrides_runpath=no
21017 hardcode_into_libs=yes
21018 dynamic_linker='ldqnx.so'
21021 openbsd*)
21022 version_type=sunos
21023 sys_lib_dlsearch_path_spec="/usr/lib"
21024 need_lib_prefix=no
21025 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21026 case $host_os in
21027 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21028 *) need_version=no ;;
21029 esac
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21032 shlibpath_var=LD_LIBRARY_PATH
21033 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21034 case $host_os in
21035 openbsd2.[89] | openbsd2.[89].*)
21036 shlibpath_overrides_runpath=no
21039 shlibpath_overrides_runpath=yes
21041 esac
21042 else
21043 shlibpath_overrides_runpath=yes
21047 os2*)
21048 libname_spec='$name'
21049 shrext_cmds=".dll"
21050 need_lib_prefix=no
21051 library_names_spec='$libname${shared_ext} $libname.a'
21052 dynamic_linker='OS/2 ld.exe'
21053 shlibpath_var=LIBPATH
21056 osf3* | osf4* | osf5*)
21057 version_type=osf
21058 need_lib_prefix=no
21059 need_version=no
21060 soname_spec='${libname}${release}${shared_ext}$major'
21061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21062 shlibpath_var=LD_LIBRARY_PATH
21063 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21064 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21067 rdos*)
21068 dynamic_linker=no
21071 solaris*)
21072 version_type=linux
21073 need_lib_prefix=no
21074 need_version=no
21075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21076 soname_spec='${libname}${release}${shared_ext}$major'
21077 shlibpath_var=LD_LIBRARY_PATH
21078 shlibpath_overrides_runpath=yes
21079 hardcode_into_libs=yes
21080 # ldd complains unless libraries are executable
21081 postinstall_cmds='chmod +x $lib'
21084 sunos4*)
21085 version_type=sunos
21086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21087 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21088 shlibpath_var=LD_LIBRARY_PATH
21089 shlibpath_overrides_runpath=yes
21090 if test "$with_gnu_ld" = yes; then
21091 need_lib_prefix=no
21093 need_version=yes
21096 sysv4 | sysv4.3*)
21097 version_type=linux
21098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21099 soname_spec='${libname}${release}${shared_ext}$major'
21100 shlibpath_var=LD_LIBRARY_PATH
21101 case $host_vendor in
21102 sni)
21103 shlibpath_overrides_runpath=no
21104 need_lib_prefix=no
21105 runpath_var=LD_RUN_PATH
21107 siemens)
21108 need_lib_prefix=no
21110 motorola)
21111 need_lib_prefix=no
21112 need_version=no
21113 shlibpath_overrides_runpath=no
21114 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21116 esac
21119 sysv4*MP*)
21120 if test -d /usr/nec ;then
21121 version_type=linux
21122 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21123 soname_spec='$libname${shared_ext}.$major'
21124 shlibpath_var=LD_LIBRARY_PATH
21128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21129 version_type=freebsd-elf
21130 need_lib_prefix=no
21131 need_version=no
21132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21133 soname_spec='${libname}${release}${shared_ext}$major'
21134 shlibpath_var=LD_LIBRARY_PATH
21135 shlibpath_overrides_runpath=yes
21136 hardcode_into_libs=yes
21137 if test "$with_gnu_ld" = yes; then
21138 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21139 else
21140 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21141 case $host_os in
21142 sco3.2v5*)
21143 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21145 esac
21147 sys_lib_dlsearch_path_spec='/usr/lib'
21150 tpf*)
21151 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21152 version_type=linux
21153 need_lib_prefix=no
21154 need_version=no
21155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21156 shlibpath_var=LD_LIBRARY_PATH
21157 shlibpath_overrides_runpath=no
21158 hardcode_into_libs=yes
21161 uts4*)
21162 version_type=linux
21163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21164 soname_spec='${libname}${release}${shared_ext}$major'
21165 shlibpath_var=LD_LIBRARY_PATH
21168 # Shared libraries for VwWorks, >= 7 only at this stage
21169 # and (fpic) still incompatible with "large" code models
21170 # in a few configurations. Only for RTP mode in any case,
21171 # and upon explicit request at configure time.
21172 vxworks7*)
21173 dynamic_linker=no
21174 case ${with_multisubdir}-${enable_shared} in
21175 *large*)
21177 *mrtp*-yes)
21178 version_type=linux
21179 need_lib_prefix=no
21180 need_version=no
21181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21182 soname_spec='${libname}${release}${shared_ext}$major'
21183 dynamic_linker="$host_os module_loader"
21185 esac
21188 dynamic_linker=no
21190 esac
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21192 $as_echo "$dynamic_linker" >&6; }
21193 test "$dynamic_linker" = no && can_build_shared=no
21195 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21196 if test "$GCC" = yes; then
21197 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21200 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21201 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21203 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21204 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21299 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21300 hardcode_action=
21301 if test -n "$hardcode_libdir_flag_spec" ||
21302 test -n "$runpath_var" ||
21303 test "X$hardcode_automatic" = "Xyes" ; then
21305 # We can hardcode non-existent directories.
21306 if test "$hardcode_direct" != no &&
21307 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21308 # have to relink, otherwise we might link with an installed library
21309 # when we should be linking with a yet-to-be-installed one
21310 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21311 test "$hardcode_minus_L" != no; then
21312 # Linking always hardcodes the temporary library directory.
21313 hardcode_action=relink
21314 else
21315 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21316 hardcode_action=immediate
21318 else
21319 # We cannot hardcode anything, or else we can only hardcode existing
21320 # directories.
21321 hardcode_action=unsupported
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21324 $as_echo "$hardcode_action" >&6; }
21326 if test "$hardcode_action" = relink ||
21327 test "$inherit_rpath" = yes; then
21328 # Fast installation is not supported
21329 enable_fast_install=no
21330 elif test "$shlibpath_overrides_runpath" = yes ||
21331 test "$enable_shared" = no; then
21332 # Fast installation is not necessary
21333 enable_fast_install=needless
21341 if test "x$enable_dlopen" != xyes; then
21342 enable_dlopen=unknown
21343 enable_dlopen_self=unknown
21344 enable_dlopen_self_static=unknown
21345 else
21346 lt_cv_dlopen=no
21347 lt_cv_dlopen_libs=
21349 case $host_os in
21350 beos*)
21351 lt_cv_dlopen="load_add_on"
21352 lt_cv_dlopen_libs=
21353 lt_cv_dlopen_self=yes
21356 mingw* | pw32* | cegcc*)
21357 lt_cv_dlopen="LoadLibrary"
21358 lt_cv_dlopen_libs=
21361 cygwin*)
21362 lt_cv_dlopen="dlopen"
21363 lt_cv_dlopen_libs=
21366 darwin*)
21367 # if libdl is installed we need to link against it
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21369 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21370 if ${ac_cv_lib_dl_dlopen+:} false; then :
21371 $as_echo_n "(cached) " >&6
21372 else
21373 ac_check_lib_save_LIBS=$LIBS
21374 LIBS="-ldl $LIBS"
21375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h. */
21378 /* Override any GCC internal prototype to avoid an error.
21379 Use char because int might match the return type of a GCC
21380 builtin and then its argument prototype would still apply. */
21381 #ifdef __cplusplus
21382 extern "C"
21383 #endif
21384 char dlopen ();
21386 main ()
21388 return dlopen ();
21390 return 0;
21392 _ACEOF
21393 if ac_fn_c_try_link "$LINENO"; then :
21394 ac_cv_lib_dl_dlopen=yes
21395 else
21396 ac_cv_lib_dl_dlopen=no
21398 rm -f core conftest.err conftest.$ac_objext \
21399 conftest$ac_exeext conftest.$ac_ext
21400 LIBS=$ac_check_lib_save_LIBS
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21403 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21404 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21406 else
21408 lt_cv_dlopen="dyld"
21409 lt_cv_dlopen_libs=
21410 lt_cv_dlopen_self=yes
21417 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21418 if test "x$ac_cv_func_shl_load" = xyes; then :
21419 lt_cv_dlopen="shl_load"
21420 else
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21422 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21423 if ${ac_cv_lib_dld_shl_load+:} false; then :
21424 $as_echo_n "(cached) " >&6
21425 else
21426 ac_check_lib_save_LIBS=$LIBS
21427 LIBS="-ldld $LIBS"
21428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21429 /* end confdefs.h. */
21431 /* Override any GCC internal prototype to avoid an error.
21432 Use char because int might match the return type of a GCC
21433 builtin and then its argument prototype would still apply. */
21434 #ifdef __cplusplus
21435 extern "C"
21436 #endif
21437 char shl_load ();
21439 main ()
21441 return shl_load ();
21443 return 0;
21445 _ACEOF
21446 if ac_fn_c_try_link "$LINENO"; then :
21447 ac_cv_lib_dld_shl_load=yes
21448 else
21449 ac_cv_lib_dld_shl_load=no
21451 rm -f core conftest.err conftest.$ac_objext \
21452 conftest$ac_exeext conftest.$ac_ext
21453 LIBS=$ac_check_lib_save_LIBS
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21456 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21457 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21458 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21459 else
21460 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21461 if test "x$ac_cv_func_dlopen" = xyes; then :
21462 lt_cv_dlopen="dlopen"
21463 else
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21465 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21466 if ${ac_cv_lib_dl_dlopen+:} false; then :
21467 $as_echo_n "(cached) " >&6
21468 else
21469 ac_check_lib_save_LIBS=$LIBS
21470 LIBS="-ldl $LIBS"
21471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21472 /* end confdefs.h. */
21474 /* Override any GCC internal prototype to avoid an error.
21475 Use char because int might match the return type of a GCC
21476 builtin and then its argument prototype would still apply. */
21477 #ifdef __cplusplus
21478 extern "C"
21479 #endif
21480 char dlopen ();
21482 main ()
21484 return dlopen ();
21486 return 0;
21488 _ACEOF
21489 if ac_fn_c_try_link "$LINENO"; then :
21490 ac_cv_lib_dl_dlopen=yes
21491 else
21492 ac_cv_lib_dl_dlopen=no
21494 rm -f core conftest.err conftest.$ac_objext \
21495 conftest$ac_exeext conftest.$ac_ext
21496 LIBS=$ac_check_lib_save_LIBS
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21499 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21500 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21501 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21502 else
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21504 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21505 if ${ac_cv_lib_svld_dlopen+:} false; then :
21506 $as_echo_n "(cached) " >&6
21507 else
21508 ac_check_lib_save_LIBS=$LIBS
21509 LIBS="-lsvld $LIBS"
21510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21511 /* end confdefs.h. */
21513 /* Override any GCC internal prototype to avoid an error.
21514 Use char because int might match the return type of a GCC
21515 builtin and then its argument prototype would still apply. */
21516 #ifdef __cplusplus
21517 extern "C"
21518 #endif
21519 char dlopen ();
21521 main ()
21523 return dlopen ();
21525 return 0;
21527 _ACEOF
21528 if ac_fn_c_try_link "$LINENO"; then :
21529 ac_cv_lib_svld_dlopen=yes
21530 else
21531 ac_cv_lib_svld_dlopen=no
21533 rm -f core conftest.err conftest.$ac_objext \
21534 conftest$ac_exeext conftest.$ac_ext
21535 LIBS=$ac_check_lib_save_LIBS
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21538 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21539 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
21540 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21541 else
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21543 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21544 if ${ac_cv_lib_dld_dld_link+:} false; then :
21545 $as_echo_n "(cached) " >&6
21546 else
21547 ac_check_lib_save_LIBS=$LIBS
21548 LIBS="-ldld $LIBS"
21549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21550 /* end confdefs.h. */
21552 /* Override any GCC internal prototype to avoid an error.
21553 Use char because int might match the return type of a GCC
21554 builtin and then its argument prototype would still apply. */
21555 #ifdef __cplusplus
21556 extern "C"
21557 #endif
21558 char dld_link ();
21560 main ()
21562 return dld_link ();
21564 return 0;
21566 _ACEOF
21567 if ac_fn_c_try_link "$LINENO"; then :
21568 ac_cv_lib_dld_dld_link=yes
21569 else
21570 ac_cv_lib_dld_dld_link=no
21572 rm -f core conftest.err conftest.$ac_objext \
21573 conftest$ac_exeext conftest.$ac_ext
21574 LIBS=$ac_check_lib_save_LIBS
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21577 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21578 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21579 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21598 esac
21600 if test "x$lt_cv_dlopen" != xno; then
21601 enable_dlopen=yes
21602 else
21603 enable_dlopen=no
21606 case $lt_cv_dlopen in
21607 dlopen)
21608 save_CPPFLAGS="$CPPFLAGS"
21609 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21611 save_LDFLAGS="$LDFLAGS"
21612 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21614 save_LIBS="$LIBS"
21615 LIBS="$lt_cv_dlopen_libs $LIBS"
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21618 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21619 if ${lt_cv_dlopen_self+:} false; then :
21620 $as_echo_n "(cached) " >&6
21621 else
21622 if test "$cross_compiling" = yes; then :
21623 lt_cv_dlopen_self=cross
21624 else
21625 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21626 lt_status=$lt_dlunknown
21627 cat > conftest.$ac_ext <<_LT_EOF
21628 #line 21628 "configure"
21629 #include "confdefs.h"
21631 #if HAVE_DLFCN_H
21632 #include <dlfcn.h>
21633 #endif
21635 #include <stdio.h>
21637 #ifdef RTLD_GLOBAL
21638 # define LT_DLGLOBAL RTLD_GLOBAL
21639 #else
21640 # ifdef DL_GLOBAL
21641 # define LT_DLGLOBAL DL_GLOBAL
21642 # else
21643 # define LT_DLGLOBAL 0
21644 # endif
21645 #endif
21647 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21648 find out it does not work in some platform. */
21649 #ifndef LT_DLLAZY_OR_NOW
21650 # ifdef RTLD_LAZY
21651 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21652 # else
21653 # ifdef DL_LAZY
21654 # define LT_DLLAZY_OR_NOW DL_LAZY
21655 # else
21656 # ifdef RTLD_NOW
21657 # define LT_DLLAZY_OR_NOW RTLD_NOW
21658 # else
21659 # ifdef DL_NOW
21660 # define LT_DLLAZY_OR_NOW DL_NOW
21661 # else
21662 # define LT_DLLAZY_OR_NOW 0
21663 # endif
21664 # endif
21665 # endif
21666 # endif
21667 #endif
21669 /* When -fvisbility=hidden is used, assume the code has been annotated
21670 correspondingly for the symbols needed. */
21671 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21672 void fnord () __attribute__((visibility("default")));
21673 #endif
21675 void fnord () { int i=42; }
21676 int main ()
21678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21679 int status = $lt_dlunknown;
21681 if (self)
21683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21684 else
21686 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21687 else puts (dlerror ());
21689 /* dlclose (self); */
21691 else
21692 puts (dlerror ());
21694 return status;
21696 _LT_EOF
21697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21698 (eval $ac_link) 2>&5
21699 ac_status=$?
21700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21701 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21702 (./conftest; exit; ) >&5 2>/dev/null
21703 lt_status=$?
21704 case x$lt_status in
21705 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21706 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21707 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21708 esac
21709 else :
21710 # compilation failed
21711 lt_cv_dlopen_self=no
21714 rm -fr conftest*
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21719 $as_echo "$lt_cv_dlopen_self" >&6; }
21721 if test "x$lt_cv_dlopen_self" = xyes; then
21722 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21724 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21725 if ${lt_cv_dlopen_self_static+:} false; then :
21726 $as_echo_n "(cached) " >&6
21727 else
21728 if test "$cross_compiling" = yes; then :
21729 lt_cv_dlopen_self_static=cross
21730 else
21731 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21732 lt_status=$lt_dlunknown
21733 cat > conftest.$ac_ext <<_LT_EOF
21734 #line 21734 "configure"
21735 #include "confdefs.h"
21737 #if HAVE_DLFCN_H
21738 #include <dlfcn.h>
21739 #endif
21741 #include <stdio.h>
21743 #ifdef RTLD_GLOBAL
21744 # define LT_DLGLOBAL RTLD_GLOBAL
21745 #else
21746 # ifdef DL_GLOBAL
21747 # define LT_DLGLOBAL DL_GLOBAL
21748 # else
21749 # define LT_DLGLOBAL 0
21750 # endif
21751 #endif
21753 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21754 find out it does not work in some platform. */
21755 #ifndef LT_DLLAZY_OR_NOW
21756 # ifdef RTLD_LAZY
21757 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21758 # else
21759 # ifdef DL_LAZY
21760 # define LT_DLLAZY_OR_NOW DL_LAZY
21761 # else
21762 # ifdef RTLD_NOW
21763 # define LT_DLLAZY_OR_NOW RTLD_NOW
21764 # else
21765 # ifdef DL_NOW
21766 # define LT_DLLAZY_OR_NOW DL_NOW
21767 # else
21768 # define LT_DLLAZY_OR_NOW 0
21769 # endif
21770 # endif
21771 # endif
21772 # endif
21773 #endif
21775 /* When -fvisbility=hidden is used, assume the code has been annotated
21776 correspondingly for the symbols needed. */
21777 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21778 void fnord () __attribute__((visibility("default")));
21779 #endif
21781 void fnord () { int i=42; }
21782 int main ()
21784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21785 int status = $lt_dlunknown;
21787 if (self)
21789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21790 else
21792 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21793 else puts (dlerror ());
21795 /* dlclose (self); */
21797 else
21798 puts (dlerror ());
21800 return status;
21802 _LT_EOF
21803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21804 (eval $ac_link) 2>&5
21805 ac_status=$?
21806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21807 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21808 (./conftest; exit; ) >&5 2>/dev/null
21809 lt_status=$?
21810 case x$lt_status in
21811 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21812 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21813 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21814 esac
21815 else :
21816 # compilation failed
21817 lt_cv_dlopen_self_static=no
21820 rm -fr conftest*
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21825 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21828 CPPFLAGS="$save_CPPFLAGS"
21829 LDFLAGS="$save_LDFLAGS"
21830 LIBS="$save_LIBS"
21832 esac
21834 case $lt_cv_dlopen_self in
21835 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21836 *) enable_dlopen_self=unknown ;;
21837 esac
21839 case $lt_cv_dlopen_self_static in
21840 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21841 *) enable_dlopen_self_static=unknown ;;
21842 esac
21861 striplib=
21862 old_striplib=
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21864 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21865 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21866 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21867 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21869 $as_echo "yes" >&6; }
21870 else
21871 # FIXME - insert some real tests, host_os isn't really good enough
21872 case $host_os in
21873 darwin*)
21874 if test -n "$STRIP" ; then
21875 striplib="$STRIP -x"
21876 old_striplib="$STRIP -S"
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21878 $as_echo "yes" >&6; }
21879 else
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21881 $as_echo "no" >&6; }
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886 $as_echo "no" >&6; }
21888 esac
21902 # Report which library types will actually be built
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21904 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21906 $as_echo "$can_build_shared" >&6; }
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21909 $as_echo_n "checking whether to build shared libraries... " >&6; }
21910 test "$can_build_shared" = "no" && enable_shared=no
21912 # On AIX, shared libraries and static libraries use the same namespace, and
21913 # are all built from PIC.
21914 case $host_os in
21915 aix3*)
21916 test "$enable_shared" = yes && enable_static=no
21917 if test -n "$RANLIB"; then
21918 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21919 postinstall_cmds='$RANLIB $lib'
21923 aix[4-9]*)
21924 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21925 test "$enable_shared" = yes && enable_static=no
21928 esac
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21930 $as_echo "$enable_shared" >&6; }
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21933 $as_echo_n "checking whether to build static libraries... " >&6; }
21934 # Make sure either enable_shared or enable_static is yes.
21935 test "$enable_shared" = yes || enable_static=yes
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21937 $as_echo "$enable_static" >&6; }
21943 ac_ext=cpp
21944 ac_cpp='$CXXCPP $CPPFLAGS'
21945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21949 CC="$lt_save_CC"
21951 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21952 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21953 (test "X$CXX" != "Xg++"))) ; then
21954 ac_ext=cpp
21955 ac_cpp='$CXXCPP $CPPFLAGS'
21956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21960 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21961 if test -z "$CXXCPP"; then
21962 if ${ac_cv_prog_CXXCPP+:} false; then :
21963 $as_echo_n "(cached) " >&6
21964 else
21965 # Double quotes because CXXCPP needs to be expanded
21966 for CXXCPP in "$CXX -E" "/lib/cpp"
21968 ac_preproc_ok=false
21969 for ac_cxx_preproc_warn_flag in '' yes
21971 # Use a header file that comes with gcc, so configuring glibc
21972 # with a fresh cross-compiler works.
21973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21974 # <limits.h> exists even on freestanding compilers.
21975 # On the NeXT, cc -E runs the code through the compiler's parser,
21976 # not just through cpp. "Syntax error" is here to catch this case.
21977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21978 /* end confdefs.h. */
21979 #ifdef __STDC__
21980 # include <limits.h>
21981 #else
21982 # include <assert.h>
21983 #endif
21984 Syntax error
21985 _ACEOF
21986 if ac_fn_cxx_try_cpp "$LINENO"; then :
21988 else
21989 # Broken: fails on valid input.
21990 continue
21992 rm -f conftest.err conftest.i conftest.$ac_ext
21994 # OK, works on sane cases. Now check whether nonexistent headers
21995 # can be detected and how.
21996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21997 /* end confdefs.h. */
21998 #include <ac_nonexistent.h>
21999 _ACEOF
22000 if ac_fn_cxx_try_cpp "$LINENO"; then :
22001 # Broken: success on invalid input.
22002 continue
22003 else
22004 # Passes both tests.
22005 ac_preproc_ok=:
22006 break
22008 rm -f conftest.err conftest.i conftest.$ac_ext
22010 done
22011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22012 rm -f conftest.i conftest.err conftest.$ac_ext
22013 if $ac_preproc_ok; then :
22014 break
22017 done
22018 ac_cv_prog_CXXCPP=$CXXCPP
22021 CXXCPP=$ac_cv_prog_CXXCPP
22022 else
22023 ac_cv_prog_CXXCPP=$CXXCPP
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
22026 $as_echo "$CXXCPP" >&6; }
22027 ac_preproc_ok=false
22028 for ac_cxx_preproc_warn_flag in '' yes
22030 # Use a header file that comes with gcc, so configuring glibc
22031 # with a fresh cross-compiler works.
22032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22033 # <limits.h> exists even on freestanding compilers.
22034 # On the NeXT, cc -E runs the code through the compiler's parser,
22035 # not just through cpp. "Syntax error" is here to catch this case.
22036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22037 /* end confdefs.h. */
22038 #ifdef __STDC__
22039 # include <limits.h>
22040 #else
22041 # include <assert.h>
22042 #endif
22043 Syntax error
22044 _ACEOF
22045 if ac_fn_cxx_try_cpp "$LINENO"; then :
22047 else
22048 # Broken: fails on valid input.
22049 continue
22051 rm -f conftest.err conftest.i conftest.$ac_ext
22053 # OK, works on sane cases. Now check whether nonexistent headers
22054 # can be detected and how.
22055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22056 /* end confdefs.h. */
22057 #include <ac_nonexistent.h>
22058 _ACEOF
22059 if ac_fn_cxx_try_cpp "$LINENO"; then :
22060 # Broken: success on invalid input.
22061 continue
22062 else
22063 # Passes both tests.
22064 ac_preproc_ok=:
22065 break
22067 rm -f conftest.err conftest.i conftest.$ac_ext
22069 done
22070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22071 rm -f conftest.i conftest.err conftest.$ac_ext
22072 if $ac_preproc_ok; then :
22074 else
22075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22077 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
22078 See \`config.log' for more details" "$LINENO" 5; }
22081 ac_ext=cpp
22082 ac_cpp='$CXXCPP $CPPFLAGS'
22083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22087 else
22088 _lt_caught_CXX_error=yes
22091 ac_ext=cpp
22092 ac_cpp='$CXXCPP $CPPFLAGS'
22093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22097 archive_cmds_need_lc_CXX=no
22098 allow_undefined_flag_CXX=
22099 always_export_symbols_CXX=no
22100 archive_expsym_cmds_CXX=
22101 compiler_needs_object_CXX=no
22102 export_dynamic_flag_spec_CXX=
22103 hardcode_direct_CXX=no
22104 hardcode_direct_absolute_CXX=no
22105 hardcode_libdir_flag_spec_CXX=
22106 hardcode_libdir_flag_spec_ld_CXX=
22107 hardcode_libdir_separator_CXX=
22108 hardcode_minus_L_CXX=no
22109 hardcode_shlibpath_var_CXX=unsupported
22110 hardcode_automatic_CXX=no
22111 inherit_rpath_CXX=no
22112 module_cmds_CXX=
22113 module_expsym_cmds_CXX=
22114 link_all_deplibs_CXX=unknown
22115 old_archive_cmds_CXX=$old_archive_cmds
22116 reload_flag_CXX=$reload_flag
22117 reload_cmds_CXX=$reload_cmds
22118 no_undefined_flag_CXX=
22119 whole_archive_flag_spec_CXX=
22120 enable_shared_with_static_runtimes_CXX=no
22122 # Source file extension for C++ test sources.
22123 ac_ext=cpp
22125 # Object file extension for compiled C++ test sources.
22126 objext=o
22127 objext_CXX=$objext
22129 # No sense in running all these tests if we already determined that
22130 # the CXX compiler isn't working. Some variables (like enable_shared)
22131 # are currently assumed to apply to all compilers on this platform,
22132 # and will be corrupted by setting them based on a non-working compiler.
22133 if test "$_lt_caught_CXX_error" != yes; then
22134 # Code to be used in simple compile tests
22135 lt_simple_compile_test_code="int some_variable = 0;"
22137 # Code to be used in simple link tests
22138 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
22140 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22147 # If no C compiler was specified, use CC.
22148 LTCC=${LTCC-"$CC"}
22150 # If no C compiler flags were specified, use CFLAGS.
22151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22153 # Allow CC to be a program name with arguments.
22154 compiler=$CC
22157 # save warnings/boilerplate of simple test code
22158 ac_outfile=conftest.$ac_objext
22159 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22160 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22161 _lt_compiler_boilerplate=`cat conftest.err`
22162 $RM conftest*
22164 ac_outfile=conftest.$ac_objext
22165 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22166 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22167 _lt_linker_boilerplate=`cat conftest.err`
22168 $RM -r conftest*
22171 # Allow CC to be a program name with arguments.
22172 lt_save_CC=$CC
22173 lt_save_LD=$LD
22174 lt_save_GCC=$GCC
22175 GCC=$GXX
22176 lt_save_with_gnu_ld=$with_gnu_ld
22177 lt_save_path_LD=$lt_cv_path_LD
22178 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22179 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
22180 else
22181 $as_unset lt_cv_prog_gnu_ld
22183 if test -n "${lt_cv_path_LDCXX+set}"; then
22184 lt_cv_path_LD=$lt_cv_path_LDCXX
22185 else
22186 $as_unset lt_cv_path_LD
22188 test -z "${LDCXX+set}" || LD=$LDCXX
22189 CC=${CXX-"c++"}
22190 compiler=$CC
22191 compiler_CXX=$CC
22192 for cc_temp in $compiler""; do
22193 case $cc_temp in
22194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22196 \-*) ;;
22197 *) break;;
22198 esac
22199 done
22200 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22203 if test -n "$compiler"; then
22204 # We don't want -fno-exception when compiling C++ code, so set the
22205 # no_builtin_flag separately
22206 if test "$GXX" = yes; then
22207 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
22208 else
22209 lt_prog_compiler_no_builtin_flag_CXX=
22212 if test "$GXX" = yes; then
22213 # Set up default GNU C++ configuration
22217 # Check whether --with-gnu-ld was given.
22218 if test "${with_gnu_ld+set}" = set; then :
22219 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22220 else
22221 with_gnu_ld=no
22224 ac_prog=ld
22225 if test "$GCC" = yes; then
22226 # Check if gcc -print-prog-name=ld gives a path.
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22228 $as_echo_n "checking for ld used by $CC... " >&6; }
22229 case $host in
22230 *-*-mingw*)
22231 # gcc leaves a trailing carriage return which upsets mingw
22232 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22234 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22235 esac
22236 case $ac_prog in
22237 # Accept absolute paths.
22238 [\\/]* | ?:[\\/]*)
22239 re_direlt='/[^/][^/]*/\.\./'
22240 # Canonicalize the pathname of ld
22241 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22242 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22243 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22244 done
22245 test -z "$LD" && LD="$ac_prog"
22248 # If it fails, then pretend we aren't using GCC.
22249 ac_prog=ld
22252 # If it is relative, then search for the first ld in PATH.
22253 with_gnu_ld=unknown
22255 esac
22256 elif test "$with_gnu_ld" = yes; then
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22258 $as_echo_n "checking for GNU ld... " >&6; }
22259 else
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22261 $as_echo_n "checking for non-GNU ld... " >&6; }
22263 if ${lt_cv_path_LD+:} false; then :
22264 $as_echo_n "(cached) " >&6
22265 else
22266 if test -z "$LD"; then
22267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22268 for ac_dir in $PATH; do
22269 IFS="$lt_save_ifs"
22270 test -z "$ac_dir" && ac_dir=.
22271 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22272 lt_cv_path_LD="$ac_dir/$ac_prog"
22273 # Check to see if the program is GNU ld. I'd rather use --version,
22274 # but apparently some variants of GNU ld only accept -v.
22275 # Break only if it was the GNU/non-GNU ld that we prefer.
22276 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22277 *GNU* | *'with BFD'*)
22278 test "$with_gnu_ld" != no && break
22281 test "$with_gnu_ld" != yes && break
22283 esac
22285 done
22286 IFS="$lt_save_ifs"
22287 else
22288 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22292 LD="$lt_cv_path_LD"
22293 if test -n "$LD"; then
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22295 $as_echo "$LD" >&6; }
22296 else
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22298 $as_echo "no" >&6; }
22300 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22302 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22303 if ${lt_cv_prog_gnu_ld+:} false; then :
22304 $as_echo_n "(cached) " >&6
22305 else
22306 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22307 case `$LD -v 2>&1 </dev/null` in
22308 *GNU* | *'with BFD'*)
22309 lt_cv_prog_gnu_ld=yes
22312 lt_cv_prog_gnu_ld=no
22314 esac
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22317 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22318 with_gnu_ld=$lt_cv_prog_gnu_ld
22326 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22327 # archiving commands below assume that GNU ld is being used.
22328 if test "$with_gnu_ld" = yes; then
22329 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22330 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'
22332 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22333 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22335 # If archive_cmds runs LD, not CC, wlarc should be empty
22336 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22337 # investigate it a little bit more. (MM)
22338 wlarc='${wl}'
22340 # ancient GNU ld didn't support --whole-archive et. al.
22341 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22342 $GREP 'no-whole-archive' > /dev/null; then
22343 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22344 else
22345 whole_archive_flag_spec_CXX=
22347 else
22348 with_gnu_ld=no
22349 wlarc=
22351 # A generic and very simple default shared library creation
22352 # command for GNU C++ for the case where it uses the native
22353 # linker, instead of GNU ld. If possible, this setting should
22354 # overridden to take advantage of the native linker features on
22355 # the platform it is being used on.
22356 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22359 # Commands to make compiler produce verbose output that lists
22360 # what "hidden" libraries, object files and flags are used when
22361 # linking a shared library.
22362 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22364 else
22365 GXX=no
22366 with_gnu_ld=no
22367 wlarc=
22370 # PORTME: fill in a description of your system's C++ link characteristics
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22372 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22373 ld_shlibs_CXX=yes
22374 case $host_os in
22375 aix3*)
22376 # FIXME: insert proper C++ library support
22377 ld_shlibs_CXX=no
22379 aix[4-9]*)
22380 if test "$host_cpu" = ia64; then
22381 # On IA64, the linker does run time linking by default, so we don't
22382 # have to do anything special.
22383 aix_use_runtimelinking=no
22384 exp_sym_flag='-Bexport'
22385 no_entry_flag=""
22386 else
22387 aix_use_runtimelinking=no
22389 # Test if we are trying to use run time linking or normal
22390 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22391 # need to do runtime linking.
22392 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22393 for ld_flag in $LDFLAGS; do
22394 case $ld_flag in
22395 *-brtl*)
22396 aix_use_runtimelinking=yes
22397 break
22399 esac
22400 done
22402 esac
22404 exp_sym_flag='-bexport'
22405 no_entry_flag='-bnoentry'
22408 # When large executables or shared objects are built, AIX ld can
22409 # have problems creating the table of contents. If linking a library
22410 # or program results in "error TOC overflow" add -mminimal-toc to
22411 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22412 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22414 archive_cmds_CXX=''
22415 hardcode_direct_CXX=yes
22416 hardcode_direct_absolute_CXX=yes
22417 hardcode_libdir_separator_CXX=':'
22418 link_all_deplibs_CXX=yes
22419 file_list_spec_CXX='${wl}-f,'
22421 if test "$GXX" = yes; then
22422 case $host_os in aix4.[012]|aix4.[012].*)
22423 # We only want to do this on AIX 4.2 and lower, the check
22424 # below for broken collect2 doesn't work under 4.3+
22425 collect2name=`${CC} -print-prog-name=collect2`
22426 if test -f "$collect2name" &&
22427 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22428 then
22429 # We have reworked collect2
22431 else
22432 # We have old collect2
22433 hardcode_direct_CXX=unsupported
22434 # It fails to find uninstalled libraries when the uninstalled
22435 # path is not listed in the libpath. Setting hardcode_minus_L
22436 # to unsupported forces relinking
22437 hardcode_minus_L_CXX=yes
22438 hardcode_libdir_flag_spec_CXX='-L$libdir'
22439 hardcode_libdir_separator_CXX=
22441 esac
22442 shared_flag='-shared'
22443 if test "$aix_use_runtimelinking" = yes; then
22444 shared_flag="$shared_flag "'${wl}-G'
22446 else
22447 # not using gcc
22448 if test "$host_cpu" = ia64; then
22449 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22450 # chokes on -Wl,-G. The following line is correct:
22451 shared_flag='-G'
22452 else
22453 if test "$aix_use_runtimelinking" = yes; then
22454 shared_flag='${wl}-G'
22455 else
22456 shared_flag='${wl}-bM:SRE'
22461 export_dynamic_flag_spec_CXX='${wl}-bexpall'
22462 # It seems that -bexpall does not export symbols beginning with
22463 # underscore (_), so it is better to generate a list of symbols to
22464 # export.
22465 always_export_symbols_CXX=yes
22466 if test "$aix_use_runtimelinking" = yes; then
22467 # Warning - without using the other runtime loading flags (-brtl),
22468 # -berok will link without error, but may produce a broken library.
22469 allow_undefined_flag_CXX='-berok'
22470 # Determine the default libpath from the value encoded in an empty
22471 # executable.
22472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h. */
22476 main ()
22480 return 0;
22482 _ACEOF
22483 if ac_fn_cxx_try_link "$LINENO"; then :
22485 lt_aix_libpath_sed='
22486 /Import File Strings/,/^$/ {
22487 /^0/ {
22488 s/^0 *\(.*\)$/\1/
22492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22493 # Check for a 64-bit object if we didn't find anything.
22494 if test -z "$aix_libpath"; then
22495 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22498 rm -f core conftest.err conftest.$ac_objext \
22499 conftest$ac_exeext conftest.$ac_ext
22500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22502 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22504 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"
22505 else
22506 if test "$host_cpu" = ia64; then
22507 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22508 allow_undefined_flag_CXX="-z nodefs"
22509 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"
22510 else
22511 # Determine the default libpath from the value encoded in an
22512 # empty executable.
22513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514 /* end confdefs.h. */
22517 main ()
22521 return 0;
22523 _ACEOF
22524 if ac_fn_cxx_try_link "$LINENO"; then :
22526 lt_aix_libpath_sed='
22527 /Import File Strings/,/^$/ {
22528 /^0/ {
22529 s/^0 *\(.*\)$/\1/
22533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22534 # Check for a 64-bit object if we didn't find anything.
22535 if test -z "$aix_libpath"; then
22536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22539 rm -f core conftest.err conftest.$ac_objext \
22540 conftest$ac_exeext conftest.$ac_ext
22541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22543 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22544 # Warning - without using the other run time loading flags,
22545 # -berok will link without error, but may produce a broken library.
22546 no_undefined_flag_CXX=' ${wl}-bernotok'
22547 allow_undefined_flag_CXX=' ${wl}-berok'
22548 if test "$with_gnu_ld" = yes; then
22549 # We only use this code for GNU lds that support --whole-archive.
22550 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22551 else
22552 # Exported symbols can be pulled into shared objects from archives
22553 whole_archive_flag_spec_CXX='$convenience'
22555 archive_cmds_need_lc_CXX=yes
22556 # This is similar to how AIX traditionally builds its shared
22557 # libraries.
22558 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'
22563 beos*)
22564 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22565 allow_undefined_flag_CXX=unsupported
22566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22567 # support --undefined. This deserves some investigation. FIXME
22568 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22569 else
22570 ld_shlibs_CXX=no
22574 chorus*)
22575 case $cc_basename in
22577 # FIXME: insert proper C++ library support
22578 ld_shlibs_CXX=no
22580 esac
22583 cygwin* | mingw* | pw32* | cegcc*)
22584 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22585 # as there is no search path for DLLs.
22586 hardcode_libdir_flag_spec_CXX='-L$libdir'
22587 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
22588 allow_undefined_flag_CXX=unsupported
22589 always_export_symbols_CXX=no
22590 enable_shared_with_static_runtimes_CXX=yes
22592 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22593 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'
22594 # If the export-symbols file already is a .def file (1st line
22595 # is EXPORTS), use it as is; otherwise, prepend...
22596 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22597 cp $export_symbols $output_objdir/$soname.def;
22598 else
22599 echo EXPORTS > $output_objdir/$soname.def;
22600 cat $export_symbols >> $output_objdir/$soname.def;
22602 $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'
22603 else
22604 ld_shlibs_CXX=no
22607 darwin* | rhapsody*)
22611 # Publish an arg to allow the user to select that Darwin host (and target)
22612 # libraries should be given install-names like @rpath/libfoo.dylib. This
22613 # requires that the user of the library then adds an 'rpath' to the DSO that
22614 # needs access.
22615 # NOTE: there are defaults below, for systems that support rpaths. The person
22616 # configuring can override the defaults for any system version that supports
22617 # them - they are, however, forced off for system versions without support.
22618 # Check whether --enable-darwin-at-rpath was given.
22619 if test "${enable_darwin_at_rpath+set}" = set; then :
22620 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22621 # This is not supported before macOS 10.5 / Darwin9.
22622 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22623 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22625 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22626 enable_darwin_at_rpath=no
22628 esac
22630 else
22631 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22632 # As above, before 10.5 / Darwin9 this does not work.
22633 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22634 enable_darwin_at_rpath=no
22637 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22638 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22639 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22640 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22642 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22643 enable_darwin_at_rpath=yes
22645 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22646 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22648 esac
22653 archive_cmds_need_lc_CXX=no
22654 hardcode_direct_CXX=no
22655 hardcode_automatic_CXX=yes
22656 hardcode_shlibpath_var_CXX=unsupported
22657 if test "$lt_cv_ld_force_load" = "yes"; then
22658 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\"`'
22659 else
22660 whole_archive_flag_spec_CXX=''
22662 link_all_deplibs_CXX=yes
22663 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22664 case $cc_basename in
22665 ifort*) _lt_dar_can_shared=yes ;;
22666 *) _lt_dar_can_shared=$GCC ;;
22667 esac
22668 if test "$_lt_dar_can_shared" = "yes"; then
22669 output_verbose_link_cmd=func_echo_all
22670 _lt_install_name='\$rpath/\$soname'
22671 if test "x$enable_darwin_at_rpath" = "xyes"; then
22672 _lt_install_name='@rpath/\$soname'
22674 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22675 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22676 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
22677 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}"
22678 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22679 _lt_install_name='\$rpath/\$soname'
22680 if test "x$enable_darwin_at_rpath" = "xyes"; then
22681 _lt_install_name='@rpath/\$soname'
22683 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
22684 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}"
22687 else
22688 ld_shlibs_CXX=no
22693 dgux*)
22694 case $cc_basename in
22695 ec++*)
22696 # FIXME: insert proper C++ library support
22697 ld_shlibs_CXX=no
22699 ghcx*)
22700 # Green Hills C++ Compiler
22701 # FIXME: insert proper C++ library support
22702 ld_shlibs_CXX=no
22705 # FIXME: insert proper C++ library support
22706 ld_shlibs_CXX=no
22708 esac
22711 freebsd2.*)
22712 # C++ shared libraries reported to be fairly broken before
22713 # switch to ELF
22714 ld_shlibs_CXX=no
22717 freebsd-elf*)
22718 archive_cmds_need_lc_CXX=no
22721 freebsd* | dragonfly*)
22722 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22723 # conventions
22724 ld_shlibs_CXX=yes
22727 gnu*)
22730 haiku*)
22731 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22732 link_all_deplibs_CXX=yes
22735 hpux9*)
22736 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22737 hardcode_libdir_separator_CXX=:
22738 export_dynamic_flag_spec_CXX='${wl}-E'
22739 hardcode_direct_CXX=yes
22740 hardcode_minus_L_CXX=yes # Not in the search PATH,
22741 # but as the default
22742 # location of the library.
22744 case $cc_basename in
22745 CC*)
22746 # FIXME: insert proper C++ library support
22747 ld_shlibs_CXX=no
22749 aCC*)
22750 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'
22751 # Commands to make compiler produce verbose output that lists
22752 # what "hidden" libraries, object files and flags are used when
22753 # linking a shared library.
22755 # There doesn't appear to be a way to prevent this compiler from
22756 # explicitly linking system object files so we need to strip them
22757 # from the output so that they don't get included in the library
22758 # dependencies.
22759 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"'
22762 if test "$GXX" = yes; then
22763 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'
22764 else
22765 # FIXME: insert proper C++ library support
22766 ld_shlibs_CXX=no
22769 esac
22772 hpux10*|hpux11*)
22773 if test $with_gnu_ld = no; then
22774 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22775 hardcode_libdir_separator_CXX=:
22777 case $host_cpu in
22778 hppa*64*|ia64*)
22781 export_dynamic_flag_spec_CXX='${wl}-E'
22783 esac
22785 case $host_cpu in
22786 hppa*64*|ia64*)
22787 hardcode_direct_CXX=no
22788 hardcode_shlibpath_var_CXX=no
22791 hardcode_direct_CXX=yes
22792 hardcode_direct_absolute_CXX=yes
22793 hardcode_minus_L_CXX=yes # Not in the search PATH,
22794 # but as the default
22795 # location of the library.
22797 esac
22799 case $cc_basename in
22800 CC*)
22801 # FIXME: insert proper C++ library support
22802 ld_shlibs_CXX=no
22804 aCC*)
22805 case $host_cpu in
22806 hppa*64*)
22807 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22809 ia64*)
22810 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22813 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22815 esac
22816 # Commands to make compiler produce verbose output that lists
22817 # what "hidden" libraries, object files and flags are used when
22818 # linking a shared library.
22820 # There doesn't appear to be a way to prevent this compiler from
22821 # explicitly linking system object files so we need to strip them
22822 # from the output so that they don't get included in the library
22823 # dependencies.
22824 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"'
22827 if test "$GXX" = yes; then
22828 if test $with_gnu_ld = no; then
22829 case $host_cpu in
22830 hppa*64*)
22831 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22833 ia64*)
22834 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22837 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'
22839 esac
22841 else
22842 # FIXME: insert proper C++ library support
22843 ld_shlibs_CXX=no
22846 esac
22849 interix[3-9]*)
22850 hardcode_direct_CXX=no
22851 hardcode_shlibpath_var_CXX=no
22852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22853 export_dynamic_flag_spec_CXX='${wl}-E'
22854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22855 # Instead, shared libraries are loaded at an image base (0x10000000 by
22856 # default) and relocated if they conflict, which is a slow very memory
22857 # consuming and fragmenting process. To avoid this, we pick a random,
22858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22859 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22860 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'
22861 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'
22863 irix5* | irix6*)
22864 case $cc_basename in
22865 CC*)
22866 # SGI C++
22867 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'
22869 # Archives containing C++ object files must be created using
22870 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22871 # necessary to make sure instantiated templates are included
22872 # in the archive.
22873 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22876 if test "$GXX" = yes; then
22877 if test "$with_gnu_ld" = no; then
22878 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'
22879 else
22880 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'
22883 link_all_deplibs_CXX=yes
22885 esac
22886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22887 hardcode_libdir_separator_CXX=:
22888 inherit_rpath_CXX=yes
22891 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22892 case $cc_basename in
22893 KCC*)
22894 # Kuck and Associates, Inc. (KAI) C++ Compiler
22896 # KCC will only create a shared library if the output file
22897 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22898 # to its proper name (with version) after linking.
22899 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'
22900 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'
22901 # Commands to make compiler produce verbose output that lists
22902 # what "hidden" libraries, object files and flags are used when
22903 # linking a shared library.
22905 # There doesn't appear to be a way to prevent this compiler from
22906 # explicitly linking system object files so we need to strip them
22907 # from the output so that they don't get included in the library
22908 # dependencies.
22909 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"'
22911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22912 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22914 # Archives containing C++ object files must be created using
22915 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22916 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22918 icpc* | ecpc* )
22919 # Intel C++
22920 with_gnu_ld=yes
22921 # version 8.0 and above of icpc choke on multiply defined symbols
22922 # if we add $predep_objects and $postdep_objects, however 7.1 and
22923 # earlier do not add the objects themselves.
22924 case `$CC -V 2>&1` in
22925 *"Version 7."*)
22926 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22927 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'
22929 *) # Version 8.0 or newer
22930 tmp_idyn=
22931 case $host_cpu in
22932 ia64*) tmp_idyn=' -i_dynamic';;
22933 esac
22934 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22935 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'
22937 esac
22938 archive_cmds_need_lc_CXX=no
22939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22940 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22941 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22943 pgCC* | pgcpp*)
22944 # Portland Group C++ compiler
22945 case `$CC -V` in
22946 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22947 prelink_cmds_CXX='tpldir=Template.dir~
22948 rm -rf $tpldir~
22949 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22950 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22951 old_archive_cmds_CXX='tpldir=Template.dir~
22952 rm -rf $tpldir~
22953 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22954 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22955 $RANLIB $oldlib'
22956 archive_cmds_CXX='tpldir=Template.dir~
22957 rm -rf $tpldir~
22958 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22959 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22960 archive_expsym_cmds_CXX='tpldir=Template.dir~
22961 rm -rf $tpldir~
22962 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22963 $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'
22965 *) # Version 6 and above use weak symbols
22966 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22967 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'
22969 esac
22971 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22972 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22973 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'
22975 cxx*)
22976 # Compaq C++
22977 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22978 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'
22980 runpath_var=LD_RUN_PATH
22981 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22982 hardcode_libdir_separator_CXX=:
22984 # Commands to make compiler produce verbose output that lists
22985 # what "hidden" libraries, object files and flags are used when
22986 # linking a shared library.
22988 # There doesn't appear to be a way to prevent this compiler from
22989 # explicitly linking system object files so we need to strip them
22990 # from the output so that they don't get included in the library
22991 # dependencies.
22992 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'
22994 xl* | mpixl* | bgxl*)
22995 # IBM XL 8.0 on PPC, with GNU ld
22996 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22997 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22998 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22999 if test "x$supports_anon_versioning" = xyes; then
23000 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
23001 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23002 echo "local: *; };" >> $output_objdir/$libname.ver~
23003 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23007 case `$CC -V 2>&1 | sed 5q` in
23008 *Sun\ C*)
23009 # Sun C++ 5.9
23010 no_undefined_flag_CXX=' -zdefs'
23011 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23012 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'
23013 hardcode_libdir_flag_spec_CXX='-R$libdir'
23014 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'
23015 compiler_needs_object_CXX=yes
23017 # Not sure whether something based on
23018 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
23019 # would be better.
23020 output_verbose_link_cmd='func_echo_all'
23022 # Archives containing C++ object files must be created using
23023 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23024 # necessary to make sure instantiated templates are included
23025 # in the archive.
23026 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23028 esac
23030 esac
23033 lynxos*)
23034 # FIXME: insert proper C++ library support
23035 ld_shlibs_CXX=no
23038 m88k*)
23039 # FIXME: insert proper C++ library support
23040 ld_shlibs_CXX=no
23043 mvs*)
23044 case $cc_basename in
23045 cxx*)
23046 # FIXME: insert proper C++ library support
23047 ld_shlibs_CXX=no
23050 # FIXME: insert proper C++ library support
23051 ld_shlibs_CXX=no
23053 esac
23056 netbsd*)
23057 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23058 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
23059 wlarc=
23060 hardcode_libdir_flag_spec_CXX='-R$libdir'
23061 hardcode_direct_CXX=yes
23062 hardcode_shlibpath_var_CXX=no
23064 # Workaround some broken pre-1.5 toolchains
23065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
23068 *nto* | *qnx*)
23069 ld_shlibs_CXX=yes
23072 openbsd2*)
23073 # C++ shared libraries are fairly broken
23074 ld_shlibs_CXX=no
23077 openbsd*)
23078 if test -f /usr/libexec/ld.so; then
23079 hardcode_direct_CXX=yes
23080 hardcode_shlibpath_var_CXX=no
23081 hardcode_direct_absolute_CXX=yes
23082 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
23083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23085 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
23086 export_dynamic_flag_spec_CXX='${wl}-E'
23087 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23089 output_verbose_link_cmd=func_echo_all
23090 else
23091 ld_shlibs_CXX=no
23095 osf3* | osf4* | osf5*)
23096 case $cc_basename in
23097 KCC*)
23098 # Kuck and Associates, Inc. (KAI) C++ Compiler
23100 # KCC will only create a shared library if the output file
23101 # ends with ".so" (or ".sl" for HP-UX), so rename the library
23102 # to its proper name (with version) after linking.
23103 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'
23105 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23106 hardcode_libdir_separator_CXX=:
23108 # Archives containing C++ object files must be created using
23109 # the KAI C++ compiler.
23110 case $host in
23111 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
23112 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
23113 esac
23115 RCC*)
23116 # Rational C++ 2.4.1
23117 # FIXME: insert proper C++ library support
23118 ld_shlibs_CXX=no
23120 cxx*)
23121 case $host in
23122 osf3*)
23123 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23124 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'
23125 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23128 allow_undefined_flag_CXX=' -expect_unresolved \*'
23129 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'
23130 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23131 echo "-hidden">> $lib.exp~
23132 $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~
23133 $RM $lib.exp'
23134 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
23136 esac
23138 hardcode_libdir_separator_CXX=:
23140 # Commands to make compiler produce verbose output that lists
23141 # what "hidden" libraries, object files and flags are used when
23142 # linking a shared library.
23144 # There doesn't appear to be a way to prevent this compiler from
23145 # explicitly linking system object files so we need to strip them
23146 # from the output so that they don't get included in the library
23147 # dependencies.
23148 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"'
23151 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23152 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23153 case $host in
23154 osf3*)
23155 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'
23158 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'
23160 esac
23162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23163 hardcode_libdir_separator_CXX=:
23165 # Commands to make compiler produce verbose output that lists
23166 # what "hidden" libraries, object files and flags are used when
23167 # linking a shared library.
23168 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23170 else
23171 # FIXME: insert proper C++ library support
23172 ld_shlibs_CXX=no
23175 esac
23178 psos*)
23179 # FIXME: insert proper C++ library support
23180 ld_shlibs_CXX=no
23183 sunos4*)
23184 case $cc_basename in
23185 CC*)
23186 # Sun C++ 4.x
23187 # FIXME: insert proper C++ library support
23188 ld_shlibs_CXX=no
23190 lcc*)
23191 # Lucid
23192 # FIXME: insert proper C++ library support
23193 ld_shlibs_CXX=no
23196 # FIXME: insert proper C++ library support
23197 ld_shlibs_CXX=no
23199 esac
23202 solaris*)
23203 case $cc_basename in
23204 CC*)
23205 # Sun C++ 4.2, 5.x and Centerline C++
23206 archive_cmds_need_lc_CXX=yes
23207 no_undefined_flag_CXX=' -zdefs'
23208 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23209 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23210 $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'
23212 hardcode_libdir_flag_spec_CXX='-R$libdir'
23213 hardcode_shlibpath_var_CXX=no
23214 case $host_os in
23215 solaris2.[0-5] | solaris2.[0-5].*) ;;
23217 # The compiler driver will combine and reorder linker options,
23218 # but understands `-z linker_flag'.
23219 # Supported since Solaris 2.6 (maybe 2.5.1?)
23220 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
23222 esac
23223 link_all_deplibs_CXX=yes
23225 output_verbose_link_cmd='func_echo_all'
23227 # Archives containing C++ object files must be created using
23228 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23229 # necessary to make sure instantiated templates are included
23230 # in the archive.
23231 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23233 gcx*)
23234 # Green Hills C++ Compiler
23235 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23237 # The C++ compiler must be used to create the archive.
23238 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23241 # GNU C++ compiler with Solaris linker
23242 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23243 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23244 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23245 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23246 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23247 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23249 # Commands to make compiler produce verbose output that lists
23250 # what "hidden" libraries, object files and flags are used when
23251 # linking a shared library.
23252 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23253 else
23254 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23255 # platform.
23256 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23257 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23258 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23260 # Commands to make compiler produce verbose output that lists
23261 # what "hidden" libraries, object files and flags are used when
23262 # linking a shared library.
23263 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23266 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23267 case $host_os in
23268 solaris2.[0-5] | solaris2.[0-5].*) ;;
23270 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23272 esac
23275 esac
23278 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23279 no_undefined_flag_CXX='${wl}-z,text'
23280 archive_cmds_need_lc_CXX=no
23281 hardcode_shlibpath_var_CXX=no
23282 runpath_var='LD_RUN_PATH'
23284 case $cc_basename in
23285 CC*)
23286 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23287 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23290 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23291 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23293 esac
23296 sysv5* | sco3.2v5* | sco5v6*)
23297 # Note: We can NOT use -z defs as we might desire, because we do not
23298 # link with -lc, and that would cause any symbols used from libc to
23299 # always be unresolved, which means just about no library would
23300 # ever link correctly. If we're not using GNU ld we use -z text
23301 # though, which does catch some bad symbols but isn't as heavy-handed
23302 # as -z defs.
23303 no_undefined_flag_CXX='${wl}-z,text'
23304 allow_undefined_flag_CXX='${wl}-z,nodefs'
23305 archive_cmds_need_lc_CXX=no
23306 hardcode_shlibpath_var_CXX=no
23307 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
23308 hardcode_libdir_separator_CXX=':'
23309 link_all_deplibs_CXX=yes
23310 export_dynamic_flag_spec_CXX='${wl}-Bexport'
23311 runpath_var='LD_RUN_PATH'
23313 case $cc_basename in
23314 CC*)
23315 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23316 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23317 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
23318 '"$old_archive_cmds_CXX"
23319 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
23320 '"$reload_cmds_CXX"
23323 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23324 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23326 esac
23329 tandem*)
23330 case $cc_basename in
23331 NCC*)
23332 # NonStop-UX NCC 3.20
23333 # FIXME: insert proper C++ library support
23334 ld_shlibs_CXX=no
23337 # FIXME: insert proper C++ library support
23338 ld_shlibs_CXX=no
23340 esac
23343 vxworks*)
23344 # For VxWorks ports, we assume the use of a GNU linker with
23345 # standard elf conventions.
23346 ld_shlibs_CXX=yes
23350 # FIXME: insert proper C++ library support
23351 ld_shlibs_CXX=no
23353 esac
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23356 $as_echo "$ld_shlibs_CXX" >&6; }
23357 test "$ld_shlibs_CXX" = no && can_build_shared=no
23359 GCC_CXX="$GXX"
23360 LD_CXX="$LD"
23362 ## CAVEAT EMPTOR:
23363 ## There is no encapsulation within the following macros, do not change
23364 ## the running order or otherwise move them around unless you know exactly
23365 ## what you are doing...
23366 # Dependencies to place before and after the object being linked:
23367 predep_objects_CXX=
23368 postdep_objects_CXX=
23369 predeps_CXX=
23370 postdeps_CXX=
23371 compiler_lib_search_path_CXX=
23373 cat > conftest.$ac_ext <<_LT_EOF
23374 class Foo
23376 public:
23377 Foo (void) { a = 0; }
23378 private:
23379 int a;
23381 _LT_EOF
23383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23384 (eval $ac_compile) 2>&5
23385 ac_status=$?
23386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23387 test $ac_status = 0; }; then
23388 # Parse the compiler output and extract the necessary
23389 # objects, libraries and library flags.
23391 # Sentinel used to keep track of whether or not we are before
23392 # the conftest object file.
23393 pre_test_object_deps_done=no
23395 for p in `eval "$output_verbose_link_cmd"`; do
23396 case $p in
23398 -L* | -R* | -l*)
23399 # Some compilers place space between "-{L,R}" and the path.
23400 # Remove the space.
23401 if test $p = "-L" ||
23402 test $p = "-R"; then
23403 prev=$p
23404 continue
23405 else
23406 prev=
23409 if test "$pre_test_object_deps_done" = no; then
23410 case $p in
23411 -L* | -R*)
23412 # Internal compiler library paths should come after those
23413 # provided the user. The postdeps already come after the
23414 # user supplied libs so there is no need to process them.
23415 if test -z "$compiler_lib_search_path_CXX"; then
23416 compiler_lib_search_path_CXX="${prev}${p}"
23417 else
23418 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23421 # The "-l" case would never come before the object being
23422 # linked, so don't bother handling this case.
23423 esac
23424 else
23425 if test -z "$postdeps_CXX"; then
23426 postdeps_CXX="${prev}${p}"
23427 else
23428 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23433 *.$objext)
23434 # This assumes that the test object file only shows up
23435 # once in the compiler output.
23436 if test "$p" = "conftest.$objext"; then
23437 pre_test_object_deps_done=yes
23438 continue
23441 if test "$pre_test_object_deps_done" = no; then
23442 if test -z "$predep_objects_CXX"; then
23443 predep_objects_CXX="$p"
23444 else
23445 predep_objects_CXX="$predep_objects_CXX $p"
23447 else
23448 if test -z "$postdep_objects_CXX"; then
23449 postdep_objects_CXX="$p"
23450 else
23451 postdep_objects_CXX="$postdep_objects_CXX $p"
23456 *) ;; # Ignore the rest.
23458 esac
23459 done
23461 # Clean up.
23462 rm -f a.out a.exe
23463 else
23464 echo "libtool.m4: error: problem compiling CXX test program"
23467 $RM -f confest.$objext
23469 # PORTME: override above test on systems where it is broken
23470 case $host_os in
23471 interix[3-9]*)
23472 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23473 # hack all around it, let's just trust "g++" to DTRT.
23474 predep_objects_CXX=
23475 postdep_objects_CXX=
23476 postdeps_CXX=
23479 linux*)
23480 case `$CC -V 2>&1 | sed 5q` in
23481 *Sun\ C*)
23482 # Sun C++ 5.9
23484 # The more standards-conforming stlport4 library is
23485 # incompatible with the Cstd library. Avoid specifying
23486 # it if it's in CXXFLAGS. Ignore libCrun as
23487 # -library=stlport4 depends on it.
23488 case " $CXX $CXXFLAGS " in
23489 *" -library=stlport4 "*)
23490 solaris_use_stlport4=yes
23492 esac
23494 if test "$solaris_use_stlport4" != yes; then
23495 postdeps_CXX='-library=Cstd -library=Crun'
23498 esac
23501 solaris*)
23502 case $cc_basename in
23503 CC*)
23504 # The more standards-conforming stlport4 library is
23505 # incompatible with the Cstd library. Avoid specifying
23506 # it if it's in CXXFLAGS. Ignore libCrun as
23507 # -library=stlport4 depends on it.
23508 case " $CXX $CXXFLAGS " in
23509 *" -library=stlport4 "*)
23510 solaris_use_stlport4=yes
23512 esac
23514 # Adding this requires a known-good setup of shared libraries for
23515 # Sun compiler versions before 5.6, else PIC objects from an old
23516 # archive will be linked into the output, leading to subtle bugs.
23517 if test "$solaris_use_stlport4" != yes; then
23518 postdeps_CXX='-library=Cstd -library=Crun'
23521 esac
23523 esac
23526 case " $postdeps_CXX " in
23527 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
23528 esac
23529 compiler_lib_search_dirs_CXX=
23530 if test -n "${compiler_lib_search_path_CXX}"; then
23531 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23564 lt_prog_compiler_wl_CXX=
23565 lt_prog_compiler_pic_CXX=
23566 lt_prog_compiler_static_CXX=
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23569 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23571 # C++ specific cases for pic, static, wl, etc.
23572 if test "$GXX" = yes; then
23573 lt_prog_compiler_wl_CXX='-Wl,'
23574 lt_prog_compiler_static_CXX='-static'
23576 case $host_os in
23577 aix*)
23578 # All AIX code is PIC.
23579 if test "$host_cpu" = ia64; then
23580 # AIX 5 now supports IA64 processor
23581 lt_prog_compiler_static_CXX='-Bstatic'
23583 lt_prog_compiler_pic_CXX='-fPIC'
23586 amigaos*)
23587 case $host_cpu in
23588 powerpc)
23589 # see comment about AmigaOS4 .so support
23590 lt_prog_compiler_pic_CXX='-fPIC'
23592 m68k)
23593 # FIXME: we need at least 68020 code to build shared libraries, but
23594 # adding the `-m68020' flag to GCC prevents building anything better,
23595 # like `-m68040'.
23596 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23598 esac
23601 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23602 # PIC is the default for these OSes.
23604 mingw* | cygwin* | os2* | pw32* | cegcc*)
23605 # This hack is so that the source file can tell whether it is being
23606 # built for inclusion in a dll (and should export symbols for example).
23607 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23608 # (--disable-auto-import) libraries
23609 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23611 darwin* | rhapsody*)
23612 # PIC is the default on this platform
23613 # Common symbols not allowed in MH_DYLIB files
23614 lt_prog_compiler_pic_CXX='-fno-common'
23616 *djgpp*)
23617 # DJGPP does not support shared libraries at all
23618 lt_prog_compiler_pic_CXX=
23620 haiku*)
23621 # PIC is the default for Haiku.
23622 # The "-static" flag exists, but is broken.
23623 lt_prog_compiler_static_CXX=
23625 interix[3-9]*)
23626 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23627 # Instead, we relocate shared libraries at runtime.
23629 sysv4*MP*)
23630 if test -d /usr/nec; then
23631 lt_prog_compiler_pic_CXX=-Kconform_pic
23634 hpux*)
23635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23637 # sets the default TLS model and affects inlining.
23638 case $host_cpu in
23639 hppa*64*)
23642 lt_prog_compiler_pic_CXX='-fPIC'
23644 esac
23646 *qnx* | *nto*)
23647 # QNX uses GNU C++, but need to define -shared option too, otherwise
23648 # it will coredump.
23649 lt_prog_compiler_pic_CXX='-fPIC -shared'
23652 lt_prog_compiler_pic_CXX='-fPIC'
23654 esac
23655 else
23656 case $host_os in
23657 aix[4-9]*)
23658 # All AIX code is PIC.
23659 if test "$host_cpu" = ia64; then
23660 # AIX 5 now supports IA64 processor
23661 lt_prog_compiler_static_CXX='-Bstatic'
23662 else
23663 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23666 chorus*)
23667 case $cc_basename in
23668 cxch68*)
23669 # Green Hills C++ Compiler
23670 # _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"
23672 esac
23674 dgux*)
23675 case $cc_basename in
23676 ec++*)
23677 lt_prog_compiler_pic_CXX='-KPIC'
23679 ghcx*)
23680 # Green Hills C++ Compiler
23681 lt_prog_compiler_pic_CXX='-pic'
23685 esac
23687 freebsd* | dragonfly*)
23688 # FreeBSD uses GNU C++
23690 hpux9* | hpux10* | hpux11*)
23691 case $cc_basename in
23692 CC*)
23693 lt_prog_compiler_wl_CXX='-Wl,'
23694 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23695 if test "$host_cpu" != ia64; then
23696 lt_prog_compiler_pic_CXX='+Z'
23699 aCC*)
23700 lt_prog_compiler_wl_CXX='-Wl,'
23701 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23702 case $host_cpu in
23703 hppa*64*|ia64*)
23704 # +Z the default
23707 lt_prog_compiler_pic_CXX='+Z'
23709 esac
23713 esac
23715 interix*)
23716 # This is c89, which is MS Visual C++ (no shared libs)
23717 # Anyone wants to do a port?
23719 irix5* | irix6* | nonstopux*)
23720 case $cc_basename in
23721 CC*)
23722 lt_prog_compiler_wl_CXX='-Wl,'
23723 lt_prog_compiler_static_CXX='-non_shared'
23724 # CC pic flag -KPIC is the default.
23728 esac
23730 linux* | k*bsd*-gnu | kopensolaris*-gnu)
23731 case $cc_basename in
23732 KCC*)
23733 # KAI C++ Compiler
23734 lt_prog_compiler_wl_CXX='--backend -Wl,'
23735 lt_prog_compiler_pic_CXX='-fPIC'
23737 ecpc* )
23738 # old Intel C++ for x86_64 which still supported -KPIC.
23739 lt_prog_compiler_wl_CXX='-Wl,'
23740 lt_prog_compiler_pic_CXX='-KPIC'
23741 lt_prog_compiler_static_CXX='-static'
23743 icpc* )
23744 # Intel C++, used to be incompatible with GCC.
23745 # ICC 10 doesn't accept -KPIC any more.
23746 lt_prog_compiler_wl_CXX='-Wl,'
23747 lt_prog_compiler_pic_CXX='-fPIC'
23748 lt_prog_compiler_static_CXX='-static'
23750 pgCC* | pgcpp*)
23751 # Portland Group C++ compiler
23752 lt_prog_compiler_wl_CXX='-Wl,'
23753 lt_prog_compiler_pic_CXX='-fpic'
23754 lt_prog_compiler_static_CXX='-Bstatic'
23756 cxx*)
23757 # Compaq C++
23758 # Make sure the PIC flag is empty. It appears that all Alpha
23759 # Linux and Compaq Tru64 Unix objects are PIC.
23760 lt_prog_compiler_pic_CXX=
23761 lt_prog_compiler_static_CXX='-non_shared'
23763 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23764 # IBM XL 8.0, 9.0 on PPC and BlueGene
23765 lt_prog_compiler_wl_CXX='-Wl,'
23766 lt_prog_compiler_pic_CXX='-qpic'
23767 lt_prog_compiler_static_CXX='-qstaticlink'
23770 case `$CC -V 2>&1 | sed 5q` in
23771 *Sun\ C*)
23772 # Sun C++ 5.9
23773 lt_prog_compiler_pic_CXX='-KPIC'
23774 lt_prog_compiler_static_CXX='-Bstatic'
23775 lt_prog_compiler_wl_CXX='-Qoption ld '
23777 esac
23779 esac
23781 lynxos*)
23783 m88k*)
23785 mvs*)
23786 case $cc_basename in
23787 cxx*)
23788 lt_prog_compiler_pic_CXX='-W c,exportall'
23792 esac
23794 netbsd*)
23796 *qnx* | *nto*)
23797 # QNX uses GNU C++, but need to define -shared option too, otherwise
23798 # it will coredump.
23799 lt_prog_compiler_pic_CXX='-fPIC -shared'
23801 osf3* | osf4* | osf5*)
23802 case $cc_basename in
23803 KCC*)
23804 lt_prog_compiler_wl_CXX='--backend -Wl,'
23806 RCC*)
23807 # Rational C++ 2.4.1
23808 lt_prog_compiler_pic_CXX='-pic'
23810 cxx*)
23811 # Digital/Compaq C++
23812 lt_prog_compiler_wl_CXX='-Wl,'
23813 # Make sure the PIC flag is empty. It appears that all Alpha
23814 # Linux and Compaq Tru64 Unix objects are PIC.
23815 lt_prog_compiler_pic_CXX=
23816 lt_prog_compiler_static_CXX='-non_shared'
23820 esac
23822 psos*)
23824 solaris*)
23825 case $cc_basename in
23826 CC*)
23827 # Sun C++ 4.2, 5.x and Centerline C++
23828 lt_prog_compiler_pic_CXX='-KPIC'
23829 lt_prog_compiler_static_CXX='-Bstatic'
23830 lt_prog_compiler_wl_CXX='-Qoption ld '
23832 gcx*)
23833 # Green Hills C++ Compiler
23834 lt_prog_compiler_pic_CXX='-PIC'
23838 esac
23840 sunos4*)
23841 case $cc_basename in
23842 CC*)
23843 # Sun C++ 4.x
23844 lt_prog_compiler_pic_CXX='-pic'
23845 lt_prog_compiler_static_CXX='-Bstatic'
23847 lcc*)
23848 # Lucid
23849 lt_prog_compiler_pic_CXX='-pic'
23853 esac
23855 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23856 case $cc_basename in
23857 CC*)
23858 lt_prog_compiler_wl_CXX='-Wl,'
23859 lt_prog_compiler_pic_CXX='-KPIC'
23860 lt_prog_compiler_static_CXX='-Bstatic'
23862 esac
23864 tandem*)
23865 case $cc_basename in
23866 NCC*)
23867 # NonStop-UX NCC 3.20
23868 lt_prog_compiler_pic_CXX='-KPIC'
23872 esac
23874 vxworks*)
23877 lt_prog_compiler_can_build_shared_CXX=no
23879 esac
23882 case $host_os in
23883 # For platforms which do not support PIC, -DPIC is meaningless:
23884 *djgpp*)
23885 lt_prog_compiler_pic_CXX=
23888 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23890 esac
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23892 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23897 # Check to make sure the PIC flag actually works.
23899 if test -n "$lt_prog_compiler_pic_CXX"; then
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23901 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23902 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
23903 $as_echo_n "(cached) " >&6
23904 else
23905 lt_cv_prog_compiler_pic_works_CXX=no
23906 ac_outfile=conftest.$ac_objext
23907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23908 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23909 # Insert the option either (1) after the last *FLAGS variable, or
23910 # (2) before a word containing "conftest.", or (3) at the end.
23911 # Note that $ac_compile itself does not contain backslashes and begins
23912 # with a dollar sign (not a hyphen), so the echo should work correctly.
23913 # The option is referenced via a variable to avoid confusing sed.
23914 lt_compile=`echo "$ac_compile" | $SED \
23915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23917 -e 's:$: $lt_compiler_flag:'`
23918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23919 (eval "$lt_compile" 2>conftest.err)
23920 ac_status=$?
23921 cat conftest.err >&5
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 if (exit $ac_status) && test -s "$ac_outfile"; then
23924 # The compiler can only warn and ignore the option if not recognized
23925 # So say no if there are warnings other than the usual output.
23926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23928 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23929 lt_cv_prog_compiler_pic_works_CXX=yes
23932 $RM conftest*
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23936 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23938 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23939 case $lt_prog_compiler_pic_CXX in
23940 "" | " "*) ;;
23941 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23942 esac
23943 else
23944 lt_prog_compiler_pic_CXX=
23945 lt_prog_compiler_can_build_shared_CXX=no
23953 # Check to make sure the static flag actually works.
23955 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23957 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23958 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23959 $as_echo_n "(cached) " >&6
23960 else
23961 lt_cv_prog_compiler_static_works_CXX=no
23962 save_LDFLAGS="$LDFLAGS"
23963 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23964 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23965 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23966 # The linker can only warn and ignore the option if not recognized
23967 # So say no if there are warnings
23968 if test -s conftest.err; then
23969 # Append any errors to the config.log.
23970 cat conftest.err 1>&5
23971 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23973 if diff conftest.exp conftest.er2 >/dev/null; then
23974 lt_cv_prog_compiler_static_works_CXX=yes
23976 else
23977 lt_cv_prog_compiler_static_works_CXX=yes
23980 $RM -r conftest*
23981 LDFLAGS="$save_LDFLAGS"
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23985 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23987 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23989 else
23990 lt_prog_compiler_static_CXX=
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23998 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23999 $as_echo_n "(cached) " >&6
24000 else
24001 lt_cv_prog_compiler_c_o_CXX=no
24002 $RM -r conftest 2>/dev/null
24003 mkdir conftest
24004 cd conftest
24005 mkdir out
24006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24008 lt_compiler_flag="-o out/conftest2.$ac_objext"
24009 # Insert the option either (1) after the last *FLAGS variable, or
24010 # (2) before a word containing "conftest.", or (3) at the end.
24011 # Note that $ac_compile itself does not contain backslashes and begins
24012 # with a dollar sign (not a hyphen), so the echo should work correctly.
24013 lt_compile=`echo "$ac_compile" | $SED \
24014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24016 -e 's:$: $lt_compiler_flag:'`
24017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24018 (eval "$lt_compile" 2>out/conftest.err)
24019 ac_status=$?
24020 cat out/conftest.err >&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24023 then
24024 # The compiler can only warn and ignore the option if not recognized
24025 # So say no if there are warnings
24026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
24027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24029 lt_cv_prog_compiler_c_o_CXX=yes
24032 chmod u+w . 2>&5
24033 $RM conftest*
24034 # SGI C++ compiler will create directory out/ii_files/ for
24035 # template instantiation
24036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24037 $RM out/* && rmdir out
24038 cd ..
24039 $RM -r conftest
24040 $RM conftest*
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24044 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
24049 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24050 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
24051 $as_echo_n "(cached) " >&6
24052 else
24053 lt_cv_prog_compiler_c_o_CXX=no
24054 $RM -r conftest 2>/dev/null
24055 mkdir conftest
24056 cd conftest
24057 mkdir out
24058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24060 lt_compiler_flag="-o out/conftest2.$ac_objext"
24061 # Insert the option either (1) after the last *FLAGS variable, or
24062 # (2) before a word containing "conftest.", or (3) at the end.
24063 # Note that $ac_compile itself does not contain backslashes and begins
24064 # with a dollar sign (not a hyphen), so the echo should work correctly.
24065 lt_compile=`echo "$ac_compile" | $SED \
24066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24068 -e 's:$: $lt_compiler_flag:'`
24069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24070 (eval "$lt_compile" 2>out/conftest.err)
24071 ac_status=$?
24072 cat out/conftest.err >&5
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24075 then
24076 # The compiler can only warn and ignore the option if not recognized
24077 # So say no if there are warnings
24078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
24079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24081 lt_cv_prog_compiler_c_o_CXX=yes
24084 chmod u+w . 2>&5
24085 $RM conftest*
24086 # SGI C++ compiler will create directory out/ii_files/ for
24087 # template instantiation
24088 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24089 $RM out/* && rmdir out
24090 cd ..
24091 $RM -r conftest
24092 $RM conftest*
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24096 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24101 hard_links="nottested"
24102 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
24103 # do not overwrite the value of need_locks provided by the user
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
24105 $as_echo_n "checking if we can lock with hard links... " >&6; }
24106 hard_links=yes
24107 $RM conftest*
24108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24109 touch conftest.a
24110 ln conftest.a conftest.b 2>&5 || hard_links=no
24111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
24113 $as_echo "$hard_links" >&6; }
24114 if test "$hard_links" = no; then
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24116 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24117 need_locks=warn
24119 else
24120 need_locks=no
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24126 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24128 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24129 case $host_os in
24130 aix[4-9]*)
24131 # If we're using GNU nm, then we don't want the "-C" option.
24132 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24133 # Also, AIX nm treats weak defined symbols like other global defined
24134 # symbols, whereas GNU nm marks them as "W".
24135 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
24136 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'
24137 else
24138 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'
24141 pw32*)
24142 export_symbols_cmds_CXX="$ltdll_cmds"
24144 cygwin* | mingw* | cegcc*)
24145 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'
24148 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24150 esac
24151 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
24154 $as_echo "$ld_shlibs_CXX" >&6; }
24155 test "$ld_shlibs_CXX" = no && can_build_shared=no
24157 with_gnu_ld_CXX=$with_gnu_ld
24165 # Do we need to explicitly link libc?
24167 case "x$archive_cmds_need_lc_CXX" in
24168 x|xyes)
24169 # Assume -lc should be added
24170 archive_cmds_need_lc_CXX=yes
24172 if test "$enable_shared" = yes && test "$GCC" = yes; then
24173 case $archive_cmds_CXX in
24174 *'~'*)
24175 # FIXME: we may have to deal with multi-command sequences.
24177 '$CC '*)
24178 # Test whether the compiler implicitly links with -lc since on some
24179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24180 # to ld, don't add -lc before -lgcc.
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24182 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24183 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
24184 $as_echo_n "(cached) " >&6
24185 else
24186 $RM conftest*
24187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24190 (eval $ac_compile) 2>&5
24191 ac_status=$?
24192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24193 test $ac_status = 0; } 2>conftest.err; then
24194 soname=conftest
24195 lib=conftest
24196 libobjs=conftest.$ac_objext
24197 deplibs=
24198 wl=$lt_prog_compiler_wl_CXX
24199 pic_flag=$lt_prog_compiler_pic_CXX
24200 compiler_flags=-v
24201 linker_flags=-v
24202 verstring=
24203 output_objdir=.
24204 libname=conftest
24205 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
24206 allow_undefined_flag_CXX=
24207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24208 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
24209 ac_status=$?
24210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24211 test $ac_status = 0; }
24212 then
24213 lt_cv_archive_cmds_need_lc_CXX=no
24214 else
24215 lt_cv_archive_cmds_need_lc_CXX=yes
24217 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
24218 else
24219 cat conftest.err 1>&5
24221 $RM conftest*
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24225 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24226 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
24228 esac
24231 esac
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24297 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24299 library_names_spec=
24300 libname_spec='lib$name'
24301 soname_spec=
24302 shrext_cmds=".so"
24303 postinstall_cmds=
24304 postuninstall_cmds=
24305 finish_cmds=
24306 finish_eval=
24307 shlibpath_var=
24308 shlibpath_overrides_runpath=unknown
24309 version_type=none
24310 dynamic_linker="$host_os ld.so"
24311 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24312 need_lib_prefix=unknown
24313 hardcode_into_libs=no
24315 # when you set need_version to no, make sure it does not cause -set_version
24316 # flags to be left without arguments
24317 need_version=unknown
24319 case $host_os in
24320 aix3*)
24321 version_type=linux
24322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24323 shlibpath_var=LIBPATH
24325 # AIX 3 has no versioning support, so we append a major version to the name.
24326 soname_spec='${libname}${release}${shared_ext}$major'
24329 aix[4-9]*)
24330 version_type=linux
24331 need_lib_prefix=no
24332 need_version=no
24333 hardcode_into_libs=yes
24334 if test "$host_cpu" = ia64; then
24335 # AIX 5 supports IA64
24336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24337 shlibpath_var=LD_LIBRARY_PATH
24338 else
24339 # With GCC up to 2.95.x, collect2 would create an import file
24340 # for dependence libraries. The import file would start with
24341 # the line `#! .'. This would cause the generated library to
24342 # depend on `.', always an invalid library. This was fixed in
24343 # development snapshots of GCC prior to 3.0.
24344 case $host_os in
24345 aix4 | aix4.[01] | aix4.[01].*)
24346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24347 echo ' yes '
24348 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
24350 else
24351 can_build_shared=no
24354 esac
24355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24356 # soname into executable. Probably we can add versioning support to
24357 # collect2, so additional links can be useful in future.
24358 if test "$aix_use_runtimelinking" = yes; then
24359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24360 # instead of lib<name>.a to let people know that these are not
24361 # typical AIX shared libraries.
24362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24363 else
24364 # We preserve .a as extension for shared libraries through AIX4.2
24365 # and later when we are not doing run time linking.
24366 library_names_spec='${libname}${release}.a $libname.a'
24367 soname_spec='${libname}${release}${shared_ext}$major'
24369 shlibpath_var=LIBPATH
24373 amigaos*)
24374 case $host_cpu in
24375 powerpc)
24376 # Since July 2007 AmigaOS4 officially supports .so libraries.
24377 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24380 m68k)
24381 library_names_spec='$libname.ixlibrary $libname.a'
24382 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24383 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'
24385 esac
24388 beos*)
24389 library_names_spec='${libname}${shared_ext}'
24390 dynamic_linker="$host_os ld.so"
24391 shlibpath_var=LIBRARY_PATH
24394 bsdi[45]*)
24395 version_type=linux
24396 need_version=no
24397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24398 soname_spec='${libname}${release}${shared_ext}$major'
24399 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24400 shlibpath_var=LD_LIBRARY_PATH
24401 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24402 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24403 # the default ld.so.conf also contains /usr/contrib/lib and
24404 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24405 # libtool to hard-code these into programs
24408 cygwin* | mingw* | pw32* | cegcc*)
24409 version_type=windows
24410 shrext_cmds=".dll"
24411 need_version=no
24412 need_lib_prefix=no
24414 case $GCC,$host_os in
24415 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
24416 library_names_spec='$libname.dll.a'
24417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24418 postinstall_cmds='base_file=`basename \${file}`~
24419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24420 dldir=$destdir/`dirname \$dlpath`~
24421 test -d \$dldir || mkdir -p \$dldir~
24422 $install_prog $dir/$dlname \$dldir/$dlname~
24423 chmod a+x \$dldir/$dlname~
24424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24428 dlpath=$dir/\$dldll~
24429 $RM \$dlpath'
24430 shlibpath_overrides_runpath=yes
24432 case $host_os in
24433 cygwin*)
24434 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24435 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24438 mingw* | cegcc*)
24439 # MinGW DLLs use traditional 'lib' prefix
24440 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24442 pw32*)
24443 # pw32 DLLs use 'pw' prefix rather than 'lib'
24444 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24446 esac
24450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24452 esac
24453 dynamic_linker='Win32 ld.exe'
24454 # FIXME: first we should search . and the directory the executable is in
24455 shlibpath_var=PATH
24458 darwin* | rhapsody*)
24459 dynamic_linker="$host_os dyld"
24460 version_type=darwin
24461 need_lib_prefix=no
24462 need_version=no
24463 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24464 soname_spec='${libname}${release}${major}$shared_ext'
24465 shlibpath_overrides_runpath=yes
24466 shlibpath_var=DYLD_LIBRARY_PATH
24467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24472 dgux*)
24473 version_type=linux
24474 need_lib_prefix=no
24475 need_version=no
24476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24477 soname_spec='${libname}${release}${shared_ext}$major'
24478 shlibpath_var=LD_LIBRARY_PATH
24481 freebsd* | dragonfly*)
24482 # DragonFly does not have aout. When/if they implement a new
24483 # versioning mechanism, adjust this.
24484 if test -x /usr/bin/objformat; then
24485 objformat=`/usr/bin/objformat`
24486 else
24487 case $host_os in
24488 freebsd[23].*) objformat=aout ;;
24489 *) objformat=elf ;;
24490 esac
24492 version_type=freebsd-$objformat
24493 case $version_type in
24494 freebsd-elf*)
24495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24496 need_version=no
24497 need_lib_prefix=no
24499 freebsd-*)
24500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24501 need_version=yes
24503 esac
24504 shlibpath_var=LD_LIBRARY_PATH
24505 case $host_os in
24506 freebsd2.*)
24507 shlibpath_overrides_runpath=yes
24509 freebsd3.[01]* | freebsdelf3.[01]*)
24510 shlibpath_overrides_runpath=yes
24511 hardcode_into_libs=yes
24513 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24514 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24515 shlibpath_overrides_runpath=no
24516 hardcode_into_libs=yes
24518 *) # from 4.6 on, and DragonFly
24519 shlibpath_overrides_runpath=yes
24520 hardcode_into_libs=yes
24522 esac
24525 haiku*)
24526 version_type=linux
24527 need_lib_prefix=no
24528 need_version=no
24529 dynamic_linker="$host_os runtime_loader"
24530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24531 soname_spec='${libname}${release}${shared_ext}$major'
24532 shlibpath_var=LIBRARY_PATH
24533 shlibpath_overrides_runpath=yes
24534 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24535 hardcode_into_libs=yes
24538 hpux9* | hpux10* | hpux11*)
24539 # Give a soname corresponding to the major version so that dld.sl refuses to
24540 # link against other versions.
24541 version_type=sunos
24542 need_lib_prefix=no
24543 need_version=no
24544 case $host_cpu in
24545 ia64*)
24546 shrext_cmds='.so'
24547 hardcode_into_libs=yes
24548 dynamic_linker="$host_os dld.so"
24549 shlibpath_var=LD_LIBRARY_PATH
24550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24552 soname_spec='${libname}${release}${shared_ext}$major'
24553 if test "X$HPUX_IA64_MODE" = X32; then
24554 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24555 else
24556 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24560 hppa*64*)
24561 shrext_cmds='.sl'
24562 hardcode_into_libs=yes
24563 dynamic_linker="$host_os dld.sl"
24564 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24567 soname_spec='${libname}${release}${shared_ext}$major'
24568 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24572 shrext_cmds='.sl'
24573 dynamic_linker="$host_os dld.sl"
24574 shlibpath_var=SHLIB_PATH
24575 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24577 soname_spec='${libname}${release}${shared_ext}$major'
24579 esac
24580 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24581 postinstall_cmds='chmod 555 $lib'
24582 # or fails outright, so override atomically:
24583 install_override_mode=555
24586 interix[3-9]*)
24587 version_type=linux
24588 need_lib_prefix=no
24589 need_version=no
24590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24591 soname_spec='${libname}${release}${shared_ext}$major'
24592 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24593 shlibpath_var=LD_LIBRARY_PATH
24594 shlibpath_overrides_runpath=no
24595 hardcode_into_libs=yes
24598 irix5* | irix6* | nonstopux*)
24599 case $host_os in
24600 nonstopux*) version_type=nonstopux ;;
24602 if test "$lt_cv_prog_gnu_ld" = yes; then
24603 version_type=linux
24604 else
24605 version_type=irix
24606 fi ;;
24607 esac
24608 need_lib_prefix=no
24609 need_version=no
24610 soname_spec='${libname}${release}${shared_ext}$major'
24611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24612 case $host_os in
24613 irix5* | nonstopux*)
24614 libsuff= shlibsuff=
24617 case $LD in # libtool.m4 will add one of these switches to LD
24618 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24619 libsuff= shlibsuff= libmagic=32-bit;;
24620 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24621 libsuff=32 shlibsuff=N32 libmagic=N32;;
24622 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24623 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24624 *) libsuff= shlibsuff= libmagic=never-match;;
24625 esac
24627 esac
24628 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24629 shlibpath_overrides_runpath=no
24630 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24631 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24632 hardcode_into_libs=yes
24635 # No shared lib support for Linux oldld, aout, or coff.
24636 linux*oldld* | linux*aout* | linux*coff*)
24637 dynamic_linker=no
24640 # This must be Linux ELF.
24642 # uclinux* changes (here and below) have been submitted to the libtool
24643 # project, but have not yet been accepted: they are GCC-local changes
24644 # for the time being. (See
24645 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24646 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
24647 version_type=linux
24648 need_lib_prefix=no
24649 need_version=no
24650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24651 soname_spec='${libname}${release}${shared_ext}$major'
24652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24653 shlibpath_var=LD_LIBRARY_PATH
24654 shlibpath_overrides_runpath=no
24656 # Some binutils ld are patched to set DT_RUNPATH
24657 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24658 $as_echo_n "(cached) " >&6
24659 else
24660 lt_cv_shlibpath_overrides_runpath=no
24661 save_LDFLAGS=$LDFLAGS
24662 save_libdir=$libdir
24663 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24664 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24666 /* end confdefs.h. */
24669 main ()
24673 return 0;
24675 _ACEOF
24676 if ac_fn_cxx_try_link "$LINENO"; then :
24677 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24678 lt_cv_shlibpath_overrides_runpath=yes
24681 rm -f core conftest.err conftest.$ac_objext \
24682 conftest$ac_exeext conftest.$ac_ext
24683 LDFLAGS=$save_LDFLAGS
24684 libdir=$save_libdir
24688 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24690 # This implies no fast_install, which is unacceptable.
24691 # Some rework will be needed to allow for fast_install
24692 # before this can be enabled.
24693 hardcode_into_libs=yes
24695 # Append ld.so.conf contents to the search path
24696 if test -f /etc/ld.so.conf; then
24697 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' ' '`
24698 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24701 # We used to test for /lib/ld.so.1 and disable shared libraries on
24702 # powerpc, because MkLinux only supported shared libraries with the
24703 # GNU dynamic linker. Since this was broken with cross compilers,
24704 # most powerpc-linux boxes support dynamic linking these days and
24705 # people can always --disable-shared, the test was removed, and we
24706 # assume the GNU/Linux dynamic linker is in use.
24707 dynamic_linker='GNU/Linux ld.so'
24710 netbsd*)
24711 version_type=sunos
24712 need_lib_prefix=no
24713 need_version=no
24714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24717 dynamic_linker='NetBSD (a.out) ld.so'
24718 else
24719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24720 soname_spec='${libname}${release}${shared_ext}$major'
24721 dynamic_linker='NetBSD ld.elf_so'
24723 shlibpath_var=LD_LIBRARY_PATH
24724 shlibpath_overrides_runpath=yes
24725 hardcode_into_libs=yes
24728 newsos6)
24729 version_type=linux
24730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24731 shlibpath_var=LD_LIBRARY_PATH
24732 shlibpath_overrides_runpath=yes
24735 *nto* | *qnx*)
24736 version_type=qnx
24737 need_lib_prefix=no
24738 need_version=no
24739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24740 soname_spec='${libname}${release}${shared_ext}$major'
24741 shlibpath_var=LD_LIBRARY_PATH
24742 shlibpath_overrides_runpath=no
24743 hardcode_into_libs=yes
24744 dynamic_linker='ldqnx.so'
24747 openbsd*)
24748 version_type=sunos
24749 sys_lib_dlsearch_path_spec="/usr/lib"
24750 need_lib_prefix=no
24751 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24752 case $host_os in
24753 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24754 *) need_version=no ;;
24755 esac
24756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24758 shlibpath_var=LD_LIBRARY_PATH
24759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24760 case $host_os in
24761 openbsd2.[89] | openbsd2.[89].*)
24762 shlibpath_overrides_runpath=no
24765 shlibpath_overrides_runpath=yes
24767 esac
24768 else
24769 shlibpath_overrides_runpath=yes
24773 os2*)
24774 libname_spec='$name'
24775 shrext_cmds=".dll"
24776 need_lib_prefix=no
24777 library_names_spec='$libname${shared_ext} $libname.a'
24778 dynamic_linker='OS/2 ld.exe'
24779 shlibpath_var=LIBPATH
24782 osf3* | osf4* | osf5*)
24783 version_type=osf
24784 need_lib_prefix=no
24785 need_version=no
24786 soname_spec='${libname}${release}${shared_ext}$major'
24787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24788 shlibpath_var=LD_LIBRARY_PATH
24789 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24790 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24793 rdos*)
24794 dynamic_linker=no
24797 solaris*)
24798 version_type=linux
24799 need_lib_prefix=no
24800 need_version=no
24801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24802 soname_spec='${libname}${release}${shared_ext}$major'
24803 shlibpath_var=LD_LIBRARY_PATH
24804 shlibpath_overrides_runpath=yes
24805 hardcode_into_libs=yes
24806 # ldd complains unless libraries are executable
24807 postinstall_cmds='chmod +x $lib'
24810 sunos4*)
24811 version_type=sunos
24812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24813 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24814 shlibpath_var=LD_LIBRARY_PATH
24815 shlibpath_overrides_runpath=yes
24816 if test "$with_gnu_ld" = yes; then
24817 need_lib_prefix=no
24819 need_version=yes
24822 sysv4 | sysv4.3*)
24823 version_type=linux
24824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24825 soname_spec='${libname}${release}${shared_ext}$major'
24826 shlibpath_var=LD_LIBRARY_PATH
24827 case $host_vendor in
24828 sni)
24829 shlibpath_overrides_runpath=no
24830 need_lib_prefix=no
24831 runpath_var=LD_RUN_PATH
24833 siemens)
24834 need_lib_prefix=no
24836 motorola)
24837 need_lib_prefix=no
24838 need_version=no
24839 shlibpath_overrides_runpath=no
24840 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24842 esac
24845 sysv4*MP*)
24846 if test -d /usr/nec ;then
24847 version_type=linux
24848 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24849 soname_spec='$libname${shared_ext}.$major'
24850 shlibpath_var=LD_LIBRARY_PATH
24854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24855 version_type=freebsd-elf
24856 need_lib_prefix=no
24857 need_version=no
24858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24859 soname_spec='${libname}${release}${shared_ext}$major'
24860 shlibpath_var=LD_LIBRARY_PATH
24861 shlibpath_overrides_runpath=yes
24862 hardcode_into_libs=yes
24863 if test "$with_gnu_ld" = yes; then
24864 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24865 else
24866 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24867 case $host_os in
24868 sco3.2v5*)
24869 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24871 esac
24873 sys_lib_dlsearch_path_spec='/usr/lib'
24876 tpf*)
24877 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24878 version_type=linux
24879 need_lib_prefix=no
24880 need_version=no
24881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24882 shlibpath_var=LD_LIBRARY_PATH
24883 shlibpath_overrides_runpath=no
24884 hardcode_into_libs=yes
24887 uts4*)
24888 version_type=linux
24889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24890 soname_spec='${libname}${release}${shared_ext}$major'
24891 shlibpath_var=LD_LIBRARY_PATH
24894 # Shared libraries for VwWorks, >= 7 only at this stage
24895 # and (fpic) still incompatible with "large" code models
24896 # in a few configurations. Only for RTP mode in any case,
24897 # and upon explicit request at configure time.
24898 vxworks7*)
24899 dynamic_linker=no
24900 case ${with_multisubdir}-${enable_shared} in
24901 *large*)
24903 *mrtp*-yes)
24904 version_type=linux
24905 need_lib_prefix=no
24906 need_version=no
24907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24908 soname_spec='${libname}${release}${shared_ext}$major'
24909 dynamic_linker="$host_os module_loader"
24911 esac
24914 dynamic_linker=no
24916 esac
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24918 $as_echo "$dynamic_linker" >&6; }
24919 test "$dynamic_linker" = no && can_build_shared=no
24921 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24922 if test "$GCC" = yes; then
24923 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24926 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24927 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24929 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24930 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24971 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24972 hardcode_action_CXX=
24973 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24974 test -n "$runpath_var_CXX" ||
24975 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24977 # We can hardcode non-existent directories.
24978 if test "$hardcode_direct_CXX" != no &&
24979 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24980 # have to relink, otherwise we might link with an installed library
24981 # when we should be linking with a yet-to-be-installed one
24982 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24983 test "$hardcode_minus_L_CXX" != no; then
24984 # Linking always hardcodes the temporary library directory.
24985 hardcode_action_CXX=relink
24986 else
24987 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24988 hardcode_action_CXX=immediate
24990 else
24991 # We cannot hardcode anything, or else we can only hardcode existing
24992 # directories.
24993 hardcode_action_CXX=unsupported
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24996 $as_echo "$hardcode_action_CXX" >&6; }
24998 if test "$hardcode_action_CXX" = relink ||
24999 test "$inherit_rpath_CXX" = yes; then
25000 # Fast installation is not supported
25001 enable_fast_install=no
25002 elif test "$shlibpath_overrides_runpath" = yes ||
25003 test "$enable_shared" = no; then
25004 # Fast installation is not necessary
25005 enable_fast_install=needless
25014 fi # test -n "$compiler"
25016 CC=$lt_save_CC
25017 LDCXX=$LD
25018 LD=$lt_save_LD
25019 GCC=$lt_save_GCC
25020 with_gnu_ld=$lt_save_with_gnu_ld
25021 lt_cv_path_LDCXX=$lt_cv_path_LD
25022 lt_cv_path_LD=$lt_save_path_LD
25023 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
25024 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
25025 fi # test "$_lt_caught_CXX_error" != yes
25027 ac_ext=cpp
25028 ac_cpp='$CXXCPP $CPPFLAGS'
25029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25048 # Only expand once:
25054 if test x$enable_darwin_at_rpath = xyes; then
25055 ENABLE_DARWIN_AT_RPATH_TRUE=
25056 ENABLE_DARWIN_AT_RPATH_FALSE='#'
25057 else
25058 ENABLE_DARWIN_AT_RPATH_TRUE='#'
25059 ENABLE_DARWIN_AT_RPATH_FALSE=
25062 DARWIN_DO_EXTRA_RPATH=0
25064 # Check whether --with-darwin-extra-rpath was given.
25065 if test "${with_darwin_extra_rpath+set}" = set; then :
25066 withval=$with_darwin_extra_rpath; if test x"$withval" != x; then
25067 DARWIN_ADD_RPATH="$withval"
25068 DARWIN_DO_EXTRA_RPATH=1
25073 cat >>confdefs.h <<_ACEOF
25074 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
25075 _ACEOF
25078 cat >>confdefs.h <<_ACEOF
25079 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
25080 _ACEOF
25083 # Identify the assembler which will work hand-in-glove with the newly
25084 # built GCC, so that we can examine its features. This is the assembler
25085 # which will be driven by the driver program.
25087 # If build != host, and we aren't building gas in-tree, we identify a
25088 # build->target assembler and hope that it will have the same features
25089 # as the host->target assembler we'll be using.
25090 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
25092 if ${gcc_cv_as+:} false; then :
25094 else
25096 if test -x "$DEFAULT_ASSEMBLER"; then
25097 gcc_cv_as="$DEFAULT_ASSEMBLER"
25098 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
25099 && test -f ../gas/Makefile \
25100 && test x$build = x$host; then
25101 gcc_cv_as=../gas/as-new$build_exeext
25102 elif test -x as$build_exeext; then
25103 # Build using assembler in the current directory.
25104 gcc_cv_as=./as$build_exeext
25105 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
25106 gcc_cv_as="$AS_FOR_TARGET"
25107 else
25108 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
25109 set dummy $AS_FOR_TARGET; ac_word=$2
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25111 $as_echo_n "checking for $ac_word... " >&6; }
25112 if ${ac_cv_path_gcc_cv_as+:} false; then :
25113 $as_echo_n "(cached) " >&6
25114 else
25115 case $gcc_cv_as in
25116 [\\/]* | ?:[\\/]*)
25117 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
25120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25121 for as_dir in $PATH
25123 IFS=$as_save_IFS
25124 test -z "$as_dir" && as_dir=.
25125 for ac_exec_ext in '' $ac_executable_extensions; do
25126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25127 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
25128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25129 break 2
25131 done
25132 done
25133 IFS=$as_save_IFS
25136 esac
25138 gcc_cv_as=$ac_cv_path_gcc_cv_as
25139 if test -n "$gcc_cv_as"; then
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
25141 $as_echo "$gcc_cv_as" >&6; }
25142 else
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25144 $as_echo "no" >&6; }
25151 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
25153 case "$ORIGINAL_AS_FOR_TARGET" in
25154 ./as | ./as$build_exeext) ;;
25155 *) ac_config_files="$ac_config_files as:exec-tool.in"
25157 esac
25159 default_ld=
25160 # Check whether --enable-ld was given.
25161 if test "${enable_ld+set}" = set; then :
25162 enableval=$enable_ld; case "${enableval}" in
25164 default_ld=ld.gold
25166 esac
25170 install_gold_as_default=no
25171 # Check whether --enable-gold was given.
25172 if test "${enable_gold+set}" = set; then :
25173 enableval=$enable_gold; case "${enableval}" in
25174 default)
25175 install_gold_as_default=yes
25177 yes)
25178 if test x${default_ld} != x; then
25179 install_gold_as_default=yes
25185 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
25187 esac
25191 # Identify the linker which will work hand-in-glove with the newly
25192 # built GCC, so that we can examine its features. This is the linker
25193 # which will be driven by the driver program.
25195 # If build != host, and we aren't building gas in-tree, we identify a
25196 # build->target linker and hope that it will have the same features
25197 # as the host->target linker we'll be using.
25198 gcc_cv_gld_major_version=
25199 gcc_cv_gld_minor_version=
25200 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
25201 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
25202 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
25204 if ${gcc_cv_ld+:} false; then :
25206 else
25208 if test -x "$DEFAULT_LINKER"; then
25209 gcc_cv_ld="$DEFAULT_LINKER"
25210 elif test $install_gold_as_default = yes \
25211 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
25212 && test -f ../gold/Makefile \
25213 && test x$build = x$host; then
25214 gcc_cv_ld=../gold/ld-new$build_exeext
25215 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
25216 && test -f ../ld/Makefile \
25217 && test x$build = x$host; then
25218 gcc_cv_ld=../ld/ld-new$build_exeext
25219 elif test -x collect-ld$build_exeext; then
25220 # Build using linker in the current directory.
25221 gcc_cv_ld=./collect-ld$build_exeext
25222 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
25223 gcc_cv_ld="$LD_FOR_TARGET"
25224 else
25225 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25226 set dummy $LD_FOR_TARGET; ac_word=$2
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25228 $as_echo_n "checking for $ac_word... " >&6; }
25229 if ${ac_cv_path_gcc_cv_ld+:} false; then :
25230 $as_echo_n "(cached) " >&6
25231 else
25232 case $gcc_cv_ld in
25233 [\\/]* | ?:[\\/]*)
25234 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
25237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25238 for as_dir in $PATH
25240 IFS=$as_save_IFS
25241 test -z "$as_dir" && as_dir=.
25242 for ac_exec_ext in '' $ac_executable_extensions; do
25243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25244 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
25245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25246 break 2
25248 done
25249 done
25250 IFS=$as_save_IFS
25253 esac
25255 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
25256 if test -n "$gcc_cv_ld"; then
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25258 $as_echo "$gcc_cv_ld" >&6; }
25259 else
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25261 $as_echo "no" >&6; }
25268 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
25269 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25270 # if the PLUGIN_LD is set ld-new, just have it as ld
25271 # as that is the installed named.
25272 if test x$PLUGIN_LD_SUFFIX = xld-new \
25273 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
25274 PLUGIN_LD_SUFFIX=ld
25277 # Check whether --with-plugin-ld was given.
25278 if test "${with_plugin_ld+set}" = set; then :
25279 withval=$with_plugin_ld; if test x"$withval" != x; then
25280 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
25281 PLUGIN_LD_SUFFIX="$withval"
25287 cat >>confdefs.h <<_ACEOF
25288 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25289 _ACEOF
25292 # Check to see if we are using gold instead of ld
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25294 $as_echo_n "checking whether we are using gold... " >&6; }
25295 ld_is_gold=no
25296 if test x$gcc_cv_ld != x; then
25297 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25298 | grep "GNU gold" > /dev/null; then
25299 ld_is_gold=yes
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25303 $as_echo "$ld_is_gold" >&6; }
25305 # Check to see if we are using mold instead of ld
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25307 $as_echo_n "checking whether we are using mold... " >&6; }
25308 ld_is_mold=no
25309 if test x$gcc_cv_ld != x; then
25310 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25311 | grep "mold" > /dev/null; then
25312 ld_is_mold=yes
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25316 $as_echo "$ld_is_mold" >&6; }
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25320 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25321 # Check to see if default ld is not gold, but gold is
25322 # available and has support for split stack. If gcc was configured
25323 # with gold then no checking is done.
25325 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
25327 # For platforms other than powerpc64*, enable as appropriate.
25329 gold_non_default=no
25330 ld_gold=`which ${gcc_cv_ld}.gold`
25331 # Make sure this gold has minimal split stack support
25332 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
25333 ld_vers=`$ld_gold --version | sed 1q`
25334 gold_vers=`echo $ld_vers | sed -n \
25335 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25336 case $target in
25337 # check that the gold version contains the complete split stack support
25338 # on powerpc64 big and little endian
25339 powerpc64*-*-*)
25340 case "$gold_vers" in
25341 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
25343 *) gold_non_default=no
25345 esac
25347 esac
25349 if test $gold_non_default = yes; then
25351 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25356 $as_echo "$gold_non_default" >&6; }
25358 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
25360 case "$ORIGINAL_LD_FOR_TARGET" in
25361 ./collect-ld | ./collect-ld$build_exeext) ;;
25362 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
25364 esac
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25367 $as_echo_n "checking what linker to use... " >&6; }
25368 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
25369 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
25370 # Single tree build which includes ld. We want to prefer it
25371 # over whatever linker top-level may have detected, since
25372 # we'll use what we're building after installation anyway.
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25374 $as_echo "newly built ld" >&6; }
25375 in_tree_ld=yes
25376 in_tree_ld_is_elf=no
25377 if (grep 'EMUL = .*elf' ../ld/Makefile \
25378 || grep 'EMUL = .*linux' ../ld/Makefile \
25379 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
25380 in_tree_ld_is_elf=yes
25381 elif test "$ld_is_gold" = yes; then
25382 in_tree_ld_is_elf=yes
25384 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
25386 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25387 if test x$gcc_cv_gld_version != x; then
25388 break
25390 done
25391 case $gcc_cv_gld_version in
25392 VERSION=[0-9]*) ;;
25393 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
25394 esac
25395 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25396 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25397 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
25398 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
25399 else
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25401 $as_echo "$gcc_cv_ld" >&6; }
25402 in_tree_ld=no
25403 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25404 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
25405 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
25411 # Figure out what nm we will be using.
25412 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25413 if ${gcc_cv_nm+:} false; then :
25415 else
25417 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25418 && test -f ../binutils/Makefile \
25419 && test x$build = x$host; then
25420 gcc_cv_nm=../binutils/nm-new$build_exeext
25421 elif test -x nm$build_exeext; then
25422 gcc_cv_nm=./nm$build_exeext
25423 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
25424 gcc_cv_nm="$NM_FOR_TARGET"
25425 else
25426 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25427 set dummy $NM_FOR_TARGET; ac_word=$2
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25429 $as_echo_n "checking for $ac_word... " >&6; }
25430 if ${ac_cv_path_gcc_cv_nm+:} false; then :
25431 $as_echo_n "(cached) " >&6
25432 else
25433 case $gcc_cv_nm in
25434 [\\/]* | ?:[\\/]*)
25435 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
25438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25439 for as_dir in $PATH
25441 IFS=$as_save_IFS
25442 test -z "$as_dir" && as_dir=.
25443 for ac_exec_ext in '' $ac_executable_extensions; do
25444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25445 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
25446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25447 break 2
25449 done
25450 done
25451 IFS=$as_save_IFS
25454 esac
25456 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
25457 if test -n "$gcc_cv_nm"; then
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25459 $as_echo "$gcc_cv_nm" >&6; }
25460 else
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25462 $as_echo "no" >&6; }
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25470 $as_echo_n "checking what nm to use... " >&6; }
25471 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
25472 # Single tree build which includes binutils.
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25474 $as_echo "newly built nm" >&6; }
25475 in_tree_nm=yes
25476 else
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25478 $as_echo "$gcc_cv_nm" >&6; }
25479 in_tree_nm=no
25482 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
25484 case "$ORIGINAL_NM_FOR_TARGET" in
25485 ./nm | ./nm$build_exeext) ;;
25486 *) ac_config_files="$ac_config_files nm:exec-tool.in"
25488 esac
25491 # Figure out what objdump we will be using.
25492 if ${gcc_cv_objdump+:} false; then :
25494 else
25496 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25497 && test -f ../binutils/Makefile \
25498 && test x$build = x$host; then
25499 # Single tree build which includes binutils.
25500 gcc_cv_objdump=../binutils/objdump$build_exeext
25501 elif test -x objdump$build_exeext; then
25502 gcc_cv_objdump=./objdump$build_exeext
25503 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
25504 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
25505 else
25506 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25507 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25509 $as_echo_n "checking for $ac_word... " >&6; }
25510 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
25511 $as_echo_n "(cached) " >&6
25512 else
25513 case $gcc_cv_objdump in
25514 [\\/]* | ?:[\\/]*)
25515 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
25518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25519 for as_dir in $PATH
25521 IFS=$as_save_IFS
25522 test -z "$as_dir" && as_dir=.
25523 for ac_exec_ext in '' $ac_executable_extensions; do
25524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25525 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
25526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25527 break 2
25529 done
25530 done
25531 IFS=$as_save_IFS
25534 esac
25536 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
25537 if test -n "$gcc_cv_objdump"; then
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25539 $as_echo "$gcc_cv_objdump" >&6; }
25540 else
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25542 $as_echo "no" >&6; }
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25550 $as_echo_n "checking what objdump to use... " >&6; }
25551 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
25552 # Single tree build which includes binutils.
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25554 $as_echo "newly built objdump" >&6; }
25555 elif test x$gcc_cv_objdump = x; then
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25557 $as_echo "not found" >&6; }
25558 else
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25560 $as_echo "$gcc_cv_objdump" >&6; }
25563 # Figure out what readelf we will be using.
25564 if ${gcc_cv_readelf+:} false; then :
25566 else
25568 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25569 && test -f ../binutils/Makefile \
25570 && test x$build = x$host; then
25571 # Single tree build which includes binutils.
25572 gcc_cv_readelf=../binutils/readelf$build_exeext
25573 elif test -x readelf$build_exeext; then
25574 gcc_cv_readelf=./readelf$build_exeext
25575 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
25576 gcc_cv_readelf="$READELF_FOR_TARGET"
25577 else
25578 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25579 set dummy $READELF_FOR_TARGET; ac_word=$2
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25581 $as_echo_n "checking for $ac_word... " >&6; }
25582 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
25583 $as_echo_n "(cached) " >&6
25584 else
25585 case $gcc_cv_readelf in
25586 [\\/]* | ?:[\\/]*)
25587 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
25590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25591 for as_dir in $PATH
25593 IFS=$as_save_IFS
25594 test -z "$as_dir" && as_dir=.
25595 for ac_exec_ext in '' $ac_executable_extensions; do
25596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25597 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
25598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25599 break 2
25601 done
25602 done
25603 IFS=$as_save_IFS
25606 esac
25608 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
25609 if test -n "$gcc_cv_readelf"; then
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25611 $as_echo "$gcc_cv_readelf" >&6; }
25612 else
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25614 $as_echo "no" >&6; }
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25622 $as_echo_n "checking what readelf to use... " >&6; }
25623 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
25624 # Single tree build which includes binutils.
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25626 $as_echo "newly built readelf" >&6; }
25627 elif test x$gcc_cv_readelf = x; then
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25629 $as_echo "not found" >&6; }
25630 else
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25632 $as_echo "$gcc_cv_readelf" >&6; }
25635 # Figure out what otool we will be using.
25636 if ${gcc_cv_otool+:} false; then :
25638 else
25640 if test -x otool$build_exeext; then
25641 gcc_cv_otool=./otool$build_exeext
25642 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
25643 gcc_cv_otool="$OTOOL_FOR_TARGET"
25644 else
25645 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25646 set dummy $OTOOL_FOR_TARGET; ac_word=$2
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25648 $as_echo_n "checking for $ac_word... " >&6; }
25649 if ${ac_cv_path_gcc_cv_otool+:} false; then :
25650 $as_echo_n "(cached) " >&6
25651 else
25652 case $gcc_cv_otool in
25653 [\\/]* | ?:[\\/]*)
25654 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
25657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25658 for as_dir in $PATH
25660 IFS=$as_save_IFS
25661 test -z "$as_dir" && as_dir=.
25662 for ac_exec_ext in '' $ac_executable_extensions; do
25663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25664 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
25665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25666 break 2
25668 done
25669 done
25670 IFS=$as_save_IFS
25673 esac
25675 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
25676 if test -n "$gcc_cv_otool"; then
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25678 $as_echo "$gcc_cv_otool" >&6; }
25679 else
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25681 $as_echo "no" >&6; }
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25689 $as_echo_n "checking what otool to use... " >&6; }
25690 if test x$gcc_cv_otool = x; then
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25692 $as_echo "not found" >&6; }
25693 else
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25695 $as_echo "$gcc_cv_otool" >&6; }
25698 # Figure out the dsymutil we will use.
25699 if ${gcc_cv_dsymutil+:} false; then :
25701 else
25703 if test -x "$DEFAULT_DSYMUTIL"; then
25704 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
25705 elif test -x dsymutil$build_exeext; then
25706 gcc_cv_dsymutil=./dsymutil$build_exeext
25707 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
25708 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
25709 elif ( set dummy $DSYMUTIL; test -x $2 ); then
25710 gcc_cv_dsymutil=$DSYMUTIL
25711 else
25712 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25713 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25715 $as_echo_n "checking for $ac_word... " >&6; }
25716 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
25717 $as_echo_n "(cached) " >&6
25718 else
25719 case $gcc_cv_dsymutil in
25720 [\\/]* | ?:[\\/]*)
25721 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
25724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25725 for as_dir in $PATH
25727 IFS=$as_save_IFS
25728 test -z "$as_dir" && as_dir=.
25729 for ac_exec_ext in '' $ac_executable_extensions; do
25730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25731 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
25732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25733 break 2
25735 done
25736 done
25737 IFS=$as_save_IFS
25740 esac
25742 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
25743 if test -n "$gcc_cv_dsymutil"; then
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25745 $as_echo "$gcc_cv_dsymutil" >&6; }
25746 else
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25748 $as_echo "no" >&6; }
25755 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
25757 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25758 ./dsymutil | ./dsymutil$build_exeext) ;;
25759 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
25761 esac
25763 # Figure out what assembler alignment features are present.
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25765 $as_echo_n "checking assembler flags... " >&6; }
25766 if ${gcc_cv_as_flags+:} false; then :
25767 $as_echo_n "(cached) " >&6
25768 else
25769 case "$target" in
25770 i[34567]86-*-linux*)
25771 gcc_cv_as_flags=--32
25773 x86_64-*-linux-gnux32)
25774 gcc_cv_as_flags=--x32
25776 x86_64-*-linux*)
25777 gcc_cv_as_flags=--64
25779 powerpc*-*-darwin*)
25780 gcc_cv_as_flags="-arch ppc"
25783 gcc_cv_as_flags=" "
25785 esac
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25788 $as_echo "$gcc_cv_as_flags" >&6; }
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25791 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25792 if ${gcc_cv_as_balign_and_p2align+:} false; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 gcc_cv_as_balign_and_p2align=no
25796 if test x$gcc_cv_as != x; then
25797 $as_echo '.balign 4
25798 .p2align 2' > conftest.s
25799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25801 (eval $ac_try) 2>&5
25802 ac_status=$?
25803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25804 test $ac_status = 0; }; }
25805 then
25806 gcc_cv_as_balign_and_p2align=yes
25807 else
25808 echo "configure: failed program was" >&5
25809 cat conftest.s >&5
25811 rm -f conftest.o conftest.s
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25815 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25816 if test $gcc_cv_as_balign_and_p2align = yes; then
25818 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25824 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25825 if ${gcc_cv_as_max_skip_p2align+:} false; then :
25826 $as_echo_n "(cached) " >&6
25827 else
25828 gcc_cv_as_max_skip_p2align=no
25829 if test x$gcc_cv_as != x; then
25830 $as_echo '.p2align 4,,7' > conftest.s
25831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25833 (eval $ac_try) 2>&5
25834 ac_status=$?
25835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25836 test $ac_status = 0; }; }
25837 then
25838 gcc_cv_as_max_skip_p2align=yes
25839 else
25840 echo "configure: failed program was" >&5
25841 cat conftest.s >&5
25843 rm -f conftest.o conftest.s
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25847 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25848 if test $gcc_cv_as_max_skip_p2align = yes; then
25850 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25856 $as_echo_n "checking assembler for .literal16... " >&6; }
25857 if ${gcc_cv_as_literal16+:} false; then :
25858 $as_echo_n "(cached) " >&6
25859 else
25860 gcc_cv_as_literal16=no
25861 if test x$gcc_cv_as != x; then
25862 $as_echo '.literal16' > conftest.s
25863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868 test $ac_status = 0; }; }
25869 then
25870 gcc_cv_as_literal16=yes
25871 else
25872 echo "configure: failed program was" >&5
25873 cat conftest.s >&5
25875 rm -f conftest.o conftest.s
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25879 $as_echo "$gcc_cv_as_literal16" >&6; }
25880 if test $gcc_cv_as_literal16 = yes; then
25882 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25888 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25889 if ${gcc_cv_as_subsection_m1+:} false; then :
25890 $as_echo_n "(cached) " >&6
25891 else
25892 gcc_cv_as_subsection_m1=no
25893 if test x$gcc_cv_as != x; then
25894 $as_echo 'conftest_label1: .word 0
25895 .subsection -1
25896 conftest_label2: .word 0
25897 .previous' > conftest.s
25898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25900 (eval $ac_try) 2>&5
25901 ac_status=$?
25902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25903 test $ac_status = 0; }; }
25904 then
25905 if test x$gcc_cv_nm != x; then
25906 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
25907 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
25908 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
25909 then :
25910 else gcc_cv_as_subsection_m1=yes
25912 rm -f conftest.nm1 conftest.nm2
25914 else
25915 echo "configure: failed program was" >&5
25916 cat conftest.s >&5
25918 rm -f conftest.o conftest.s
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25922 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25923 if test $gcc_cv_as_subsection_m1 = yes; then
25925 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25931 $as_echo_n "checking assembler for .weak... " >&6; }
25932 if ${gcc_cv_as_weak+:} false; then :
25933 $as_echo_n "(cached) " >&6
25934 else
25935 gcc_cv_as_weak=no
25936 if test x$gcc_cv_as != x; then
25937 $as_echo ' .weak foobar' > conftest.s
25938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25944 then
25945 gcc_cv_as_weak=yes
25946 else
25947 echo "configure: failed program was" >&5
25948 cat conftest.s >&5
25950 rm -f conftest.o conftest.s
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25954 $as_echo "$gcc_cv_as_weak" >&6; }
25955 if test $gcc_cv_as_weak = yes; then
25957 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25963 $as_echo_n "checking assembler for .weakref... " >&6; }
25964 if ${gcc_cv_as_weakref+:} false; then :
25965 $as_echo_n "(cached) " >&6
25966 else
25967 gcc_cv_as_weakref=no
25968 if test x$gcc_cv_as != x; then
25969 $as_echo ' .weakref foobar, barfnot' > conftest.s
25970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25972 (eval $ac_try) 2>&5
25973 ac_status=$?
25974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25975 test $ac_status = 0; }; }
25976 then
25977 gcc_cv_as_weakref=yes
25978 else
25979 echo "configure: failed program was" >&5
25980 cat conftest.s >&5
25982 rm -f conftest.o conftest.s
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25986 $as_echo "$gcc_cv_as_weakref" >&6; }
25987 if test $gcc_cv_as_weakref = yes; then
25989 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25995 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25996 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
25997 $as_echo_n "(cached) " >&6
25998 else
25999 gcc_cv_as_nsubspa_comdat=no
26000 if test x$gcc_cv_as != x; then
26001 $as_echo ' .SPACE $TEXT$
26002 .NSUBSPA $CODE$,COMDAT' > conftest.s
26003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26005 (eval $ac_try) 2>&5
26006 ac_status=$?
26007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26008 test $ac_status = 0; }; }
26009 then
26010 gcc_cv_as_nsubspa_comdat=yes
26011 else
26012 echo "configure: failed program was" >&5
26013 cat conftest.s >&5
26015 rm -f conftest.o conftest.s
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
26019 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
26020 if test $gcc_cv_as_nsubspa_comdat = yes; then
26022 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
26027 # .hidden needs to be supported in both the assembler and the linker,
26028 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
26029 # This is irritatingly difficult to feature test for; we have to check the
26030 # date string after the version number. If we've got an in-tree
26031 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
26032 # to be safe.
26033 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
26034 case "${target}" in
26035 *-*-aix*)
26036 conftest_s=' .globl foobar,hidden'
26039 conftest_s=' .hidden foobar
26040 foobar:'
26042 esac
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
26044 $as_echo_n "checking assembler for .hidden... " >&6; }
26045 if ${gcc_cv_as_hidden+:} false; then :
26046 $as_echo_n "(cached) " >&6
26047 else
26048 gcc_cv_as_hidden=no
26049 if test x$gcc_cv_as != x; then
26050 $as_echo "$conftest_s" > conftest.s
26051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26053 (eval $ac_try) 2>&5
26054 ac_status=$?
26055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26056 test $ac_status = 0; }; }
26057 then
26058 gcc_cv_as_hidden=yes
26059 else
26060 echo "configure: failed program was" >&5
26061 cat conftest.s >&5
26063 rm -f conftest.o conftest.s
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
26067 $as_echo "$gcc_cv_as_hidden" >&6; }
26070 case "${target}" in
26071 *-*-darwin*)
26072 # Darwin as has some visibility support, though with a different syntax.
26073 gcc_cv_as_hidden=yes
26075 esac
26077 # gnu_indirect_function type is an extension proposed at
26078 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
26079 # selection of function implementation
26080 # Check whether --enable-gnu-indirect-function was given.
26081 if test "${enable_gnu_indirect_function+set}" = set; then :
26082 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
26083 yes | no) ;;
26084 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
26085 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26086 esac
26087 else
26088 enable_gnu_indirect_function="$default_gnu_indirect_function"
26092 case "${target}" in
26093 riscv*-*-linux*)
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
26095 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
26096 cat > conftest.s <<EOF
26097 .text
26098 .type foo_resolver, @function
26099 foo_resolver:
26101 .size foo_resolver, .-foo_resolver
26103 .globl foo
26104 .type foo, %gnu_indirect_function
26105 .set foo, foo_resolver
26107 .globl bar
26108 .type bar, @function
26109 bar:
26110 call foo
26112 .size bar, .-bar
26114 if test x$gcc_cv_as != x \
26115 && test x$gcc_cv_ld != x \
26116 && test x$gcc_cv_readelf != x \
26117 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26118 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26119 && $gcc_cv_readelf --relocs --wide conftest \
26120 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
26121 enable_gnu_indirect_function=yes
26123 rm -f conftest conftest.o conftest.s
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
26125 $as_echo "$enable_gnu_indirect_function" >&6; }
26127 esac
26129 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
26131 cat >>confdefs.h <<_ACEOF
26132 #define HAVE_GNU_INDIRECT_FUNCTION $gif
26133 _ACEOF
26137 if test $in_tree_ld != yes ; then
26138 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
26139 if echo "$ld_ver" | grep GNU > /dev/null; then
26140 if test x"$ld_is_gold" = xyes; then
26141 # GNU gold --version looks like this:
26143 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
26145 # We extract the binutils version which is more familiar and specific
26146 # than the gold version.
26147 ld_vers=`echo $ld_ver | sed -n \
26148 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26149 else
26150 # GNU ld --version looks like this:
26152 # GNU ld (GNU Binutils) 2.21.51.20110225
26153 ld_vers=`echo $ld_ver | sed -n \
26154 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26156 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'`
26157 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26158 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26159 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
26160 else
26161 case "${target}" in
26162 *-*-solaris2*)
26163 # Solaris 2 ld -V output looks like this for a regular version:
26165 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
26167 # but test versions add stuff at the end:
26169 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
26171 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
26172 # numbers can be used in ld.so.1 feature checks even if a different
26173 # linker is configured.
26174 ld_ver=`$gcc_cv_ld -V 2>&1`
26175 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
26176 ld_vers=`echo $ld_ver | sed -n \
26177 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
26178 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26179 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26182 esac
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
26187 $as_echo_n "checking linker for .hidden support... " >&6; }
26188 if ${gcc_cv_ld_hidden+:} false; then :
26189 $as_echo_n "(cached) " >&6
26190 else
26191 if test $in_tree_ld = yes ; then
26192 gcc_cv_ld_hidden=no
26193 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 \
26194 && test $in_tree_ld_is_elf = yes; then
26195 gcc_cv_ld_hidden=yes
26197 else
26198 gcc_cv_ld_hidden=yes
26199 if test x"$ld_is_gold" = xyes; then
26201 elif test x"$ld_is_mold" = xyes; then
26203 elif echo "$ld_ver" | grep GNU > /dev/null; then
26204 if test 0"$ld_date" -lt 20020404; then
26205 if test -n "$ld_date"; then
26206 # If there was date string, but was earlier than 2002-04-04, fail
26207 gcc_cv_ld_hidden=no
26208 elif test -z "$ld_vers"; then
26209 # If there was no date string nor ld version number, something is wrong
26210 gcc_cv_ld_hidden=no
26211 else
26212 test -z "$ld_vers_patch" && ld_vers_patch=0
26213 if test "$ld_vers_major" -lt 2; then
26214 gcc_cv_ld_hidden=no
26215 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26216 gcc_cv_ld_hidden="no"
26217 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26218 gcc_cv_ld_hidden=no
26222 else
26223 case "${target}" in
26224 *-*-aix[789]*)
26225 gcc_cv_ld_hidden=yes
26227 *-*-darwin*)
26228 # Darwin ld has some visibility support.
26229 gcc_cv_ld_hidden=yes
26231 hppa64*-*-hpux* | ia64*-*-hpux*)
26232 gcc_cv_ld_hidden=yes
26234 *-*-solaris2*)
26235 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26236 # .symbolic was only added in Solaris 9 12/02.
26237 gcc_cv_ld_hidden=yes
26240 gcc_cv_ld_hidden=no
26242 esac
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26247 $as_echo "$gcc_cv_ld_hidden" >&6; }
26248 libgcc_visibility=no
26251 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26252 libgcc_visibility=yes
26254 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26259 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26260 gcc_cv_ld_ro_rw_mix=unknown
26261 if test $in_tree_ld = yes ; then
26262 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 \
26263 && test $in_tree_ld_is_elf = yes; then
26264 gcc_cv_ld_ro_rw_mix=read-write
26266 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26267 echo '.section myfoosect, "a"' > conftest1.s
26268 echo '.section myfoosect, "aw"' > conftest2.s
26269 echo '.byte 1' >> conftest2.s
26270 echo '.section myfoosect, "a"' > conftest3.s
26271 echo '.byte 0' >> conftest3.s
26272 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
26273 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
26274 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
26275 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26276 conftest2.o conftest3.o > /dev/null 2>&1 \
26277 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
26278 conftest2.o conftest3.o > /dev/null 2>&1; then
26279 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
26280 | sed -e '/myfoosect/!d' -e N`
26281 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
26282 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
26283 gcc_cv_ld_ro_rw_mix=read-only
26284 else
26285 gcc_cv_ld_ro_rw_mix=read-write
26290 rm -f conftest.* conftest[123].*
26292 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
26294 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26298 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26300 # Check whether --enable-initfini-array was given.
26301 if test "${enable_initfini_array+set}" = set; then :
26302 enableval=$enable_initfini_array;
26303 else
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26306 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26307 if ${gcc_cv_initfini_array+:} false; then :
26308 $as_echo_n "(cached) " >&6
26309 else
26310 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26311 case "${target}" in
26312 ia64-*)
26313 if test "$cross_compiling" = yes; then :
26314 gcc_cv_initfini_array=no
26315 else
26316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26317 /* end confdefs.h. */
26319 #ifndef __ELF__
26320 #error Not an ELF OS
26321 #endif
26322 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26323 if it can be used. */
26324 static int x = -1;
26325 int main (void) { return x; }
26326 int foo (void) { x = 0; }
26327 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26329 _ACEOF
26330 if ac_fn_cxx_try_run "$LINENO"; then :
26331 gcc_cv_initfini_array=yes
26332 else
26333 gcc_cv_initfini_array=no
26335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26336 conftest.$ac_objext conftest.beam conftest.$ac_ext
26340 gcc_cv_initfini_array=no
26341 if test $in_tree_ld = yes ; then
26342 if test "$gcc_cv_gld_major_version" -eq 2 \
26343 -a "$gcc_cv_gld_minor_version" -ge 22 \
26344 -o "$gcc_cv_gld_major_version" -gt 2 \
26345 && test $in_tree_ld_is_elf = yes; then
26346 gcc_cv_initfini_array=yes
26348 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26349 case $target:$gas in
26350 *:yes)
26351 sh_flags='"a"'
26352 sh_type='%progbits'
26354 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
26355 sh_flags='"a"'
26356 sh_type='@progbits'
26358 sparc*-*-solaris2*:no)
26359 sh_flags='#alloc'
26360 sh_type='#progbits'
26361 sh_quote='"'
26363 esac
26364 case "$target:$gnu_ld" in
26365 *:yes)
26366 cat > conftest.s <<EOF
26367 .section .dtors,$sh_flags,$sh_type
26368 .balign 4
26369 .byte 'A', 'A', 'A', 'A'
26370 .section .ctors,$sh_flags,$sh_type
26371 .balign 4
26372 .byte 'B', 'B', 'B', 'B'
26373 .section .fini_array.65530,$sh_flags,$sh_type
26374 .balign 4
26375 .byte 'C', 'C', 'C', 'C'
26376 .section .init_array.65530,$sh_flags,$sh_type
26377 .balign 4
26378 .byte 'D', 'D', 'D', 'D'
26379 .section .dtors.64528,$sh_flags,$sh_type
26380 .balign 4
26381 .byte 'E', 'E', 'E', 'E'
26382 .section .ctors.64528,$sh_flags,$sh_type
26383 .balign 4
26384 .byte 'F', 'F', 'F', 'F'
26385 .section .fini_array.01005,$sh_flags,$sh_type
26386 .balign 4
26387 .byte 'G', 'G', 'G', 'G'
26388 .section .init_array.01005,$sh_flags,$sh_type
26389 .balign 4
26390 .byte 'H', 'H', 'H', 'H'
26391 .text
26392 .globl _start
26393 _start:
26395 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26396 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26397 && $gcc_cv_objdump -s -j .init_array conftest \
26398 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
26399 && $gcc_cv_objdump -s -j .fini_array conftest \
26400 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
26401 gcc_cv_initfini_array=yes
26404 *-*-solaris2*:no)
26405 # When Solaris ld added constructor priority support, it was
26406 # decided to only handle .init_array.N/.fini_array.N since
26407 # there was no need for backwards compatibility with
26408 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26409 # sections with correct execution order resp. to
26410 # .init_array/.fini_array, while gld merges them into
26411 # .init_array/.fini_array.
26412 cat > conftest.s <<EOF
26413 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26414 .align 4
26415 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26416 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26417 .align 4
26418 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26419 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26420 .align 4
26421 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26422 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26423 .align 4
26424 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26425 .text
26426 .globl _start
26427 _start:
26429 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26430 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26431 && $gcc_cv_objdump -s -j .init_array conftest \
26432 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
26433 && $gcc_cv_objdump -s -j .fini_array conftest \
26434 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
26435 gcc_cv_initfini_array=yes
26438 esac
26439 rm -f conftest conftest.*
26441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26442 /* end confdefs.h. */
26444 #ifndef __ELF__
26445 # error Not an ELF OS
26446 #endif
26447 #include <stdlib.h>
26448 #if defined __GLIBC_PREREQ
26449 # if __GLIBC_PREREQ (2, 4)
26450 # else
26451 # error GLIBC 2.4 required
26452 # endif
26453 #else
26454 # if defined __sun__ && defined __svr4__
26455 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26456 # else
26457 # error The C library not known to support .init_array/.fini_array
26458 # endif
26459 #endif
26461 _ACEOF
26462 if ac_fn_cxx_try_cpp "$LINENO"; then :
26464 else
26465 gcc_cv_initfini_array=no
26467 rm -f conftest.err conftest.i conftest.$ac_ext;;
26468 esac
26469 else
26470 case "${target}" in
26471 aarch64*-linux-gnu*)
26472 # AArch64 postdates glibc support for .init_array/.fini_array,
26473 # so we don't need the preprocessor test above.
26474 gcc_cv_initfini_array=yes
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26479 $as_echo_n "checking cross compile... guessing... " >&6; }
26480 gcc_cv_initfini_array=no
26482 esac
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26486 $as_echo "$gcc_cv_initfini_array" >&6; }
26487 enable_initfini_array=$gcc_cv_initfini_array
26492 cat >>confdefs.h <<_ACEOF
26493 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26494 _ACEOF
26498 # Some assemblers (GNU as for LoongArch) generates relocations for
26499 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26500 # probing leb128 support then.
26501 case $target in
26502 loongarch*-*-*)
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26504 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26505 if ${gcc_cv_as_mno_relax+:} false; then :
26506 $as_echo_n "(cached) " >&6
26507 else
26508 gcc_cv_as_mno_relax=no
26509 if test x$gcc_cv_as != x; then
26510 $as_echo '.text' > conftest.s
26511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26513 (eval $ac_try) 2>&5
26514 ac_status=$?
26515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26516 test $ac_status = 0; }; }
26517 then
26518 gcc_cv_as_mno_relax=yes
26519 else
26520 echo "configure: failed program was" >&5
26521 cat conftest.s >&5
26523 rm -f conftest.o conftest.s
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26527 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26528 if test $gcc_cv_as_mno_relax = yes; then
26529 check_leb128_asflags=-mno-relax
26534 check_leb128_asflags=
26536 esac
26538 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26539 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26540 # these directives, even when they appear to accept them.
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26542 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26543 if ${gcc_cv_as_leb128+:} false; then :
26544 $as_echo_n "(cached) " >&6
26545 else
26546 gcc_cv_as_leb128=no
26547 if test x$gcc_cv_as != x; then
26548 $as_echo ' .data
26549 .uleb128 L2 - L1
26551 .uleb128 1280
26552 .sleb128 -1010
26554 .uleb128 0x8000000000000000
26555 ' > conftest.s
26556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26561 test $ac_status = 0; }; }
26562 then
26564 if test "x$gcc_cv_objdump" != x; then
26565 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
26566 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
26567 gcc_cv_as_leb128=yes
26569 elif test "x$gcc_cv_otool" != x; then
26570 if $gcc_cv_otool -d conftest.o 2>/dev/null \
26571 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
26572 gcc_cv_as_leb128=yes
26574 else
26575 # play safe, assume the assembler is broken.
26579 else
26580 echo "configure: failed program was" >&5
26581 cat conftest.s >&5
26583 rm -f conftest.o conftest.s
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26587 $as_echo "$gcc_cv_as_leb128" >&6; }
26588 if test $gcc_cv_as_leb128 = yes; then
26590 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26593 if test $gcc_cv_as_leb128 != yes; then
26595 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26599 # Determine if an .eh_frame section is read-only.
26600 gcc_fn_eh_frame_ro () {
26601 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
26602 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
26603 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
26606 # Check if we have assembler support for unwind directives.
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26608 $as_echo_n "checking assembler for cfi directives... " >&6; }
26609 if ${gcc_cv_as_cfi_directive+:} false; then :
26610 $as_echo_n "(cached) " >&6
26611 else
26612 gcc_cv_as_cfi_directive=no
26613 if test x$gcc_cv_as != x; then
26614 $as_echo ' .text
26615 .cfi_startproc
26616 .cfi_offset 0, 0
26617 .cfi_same_value 1
26618 .cfi_def_cfa 1, 2
26619 .cfi_escape 1, 2, 3, 4, 5
26620 .cfi_endproc' > conftest.s
26621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26623 (eval $ac_try) 2>&5
26624 ac_status=$?
26625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26626 test $ac_status = 0; }; }
26627 then
26628 case "$target" in
26629 *-*-solaris*)
26630 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26631 # read-only and read-write sections, we need to make sure that the
26632 # assembler used emits read-write .eh_frame sections.
26633 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
26634 gcc_cv_as_cfi_directive=yes
26635 elif test "x$gcc_cv_objdump" = x; then
26636 # No objdump, err on the side of caution.
26637 gcc_cv_as_cfi_directive=no
26638 else
26639 if test x$gas = xyes; then
26640 as_32_opt="--32"
26641 as_64_opt="--64"
26642 else
26643 as_32_opt="-m32"
26644 as_64_opt="-m64"
26646 case "$target" in
26647 sparc*-*-solaris2.*)
26648 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26649 if gcc_fn_eh_frame_ro $as_32_opt \
26650 || gcc_fn_eh_frame_ro $as_64_opt; then
26651 gcc_cv_as_cfi_directive=no
26652 else
26653 gcc_cv_as_cfi_directive=yes
26656 i?86-*-solaris2.* | x86_64-*-solaris2.*)
26657 # On Solaris/x86, make sure that GCC and assembler agree on using
26658 # read-only .eh_frame sections for 64-bit.
26659 if gcc_fn_eh_frame_ro $as_32_opt; then
26660 gcc_cv_as_cfi_directive=no
26661 elif gcc_fn_eh_frame_ro $as_64_opt; then
26662 gcc_cv_as_cfi_directive=yes
26663 else
26664 gcc_cv_as_cfi_directive=no
26667 esac
26670 *-*-*)
26671 gcc_cv_as_cfi_directive=yes
26673 esac
26674 else
26675 echo "configure: failed program was" >&5
26676 cat conftest.s >&5
26678 rm -f conftest.o conftest.s
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26682 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26685 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26687 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26688 if ${gcc_cv_as_cfi_advance_working+:} false; then :
26689 $as_echo_n "(cached) " >&6
26690 else
26691 gcc_cv_as_cfi_advance_working=no
26692 if test x$gcc_cv_as != x; then
26693 $as_echo ' .text
26694 .cfi_startproc
26695 .cfi_adjust_cfa_offset 64
26696 .skip 75040, 0
26697 .cfi_adjust_cfa_offset 128
26698 .cfi_endproc' > conftest.s
26699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26701 (eval $ac_try) 2>&5
26702 ac_status=$?
26703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26704 test $ac_status = 0; }; }
26705 then
26707 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
26708 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
26709 gcc_cv_as_cfi_advance_working=yes
26712 else
26713 echo "configure: failed program was" >&5
26714 cat conftest.s >&5
26716 rm -f conftest.o conftest.s
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26720 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26723 else
26724 # no objdump, err on the side of caution
26725 gcc_cv_as_cfi_advance_working=no
26729 cat >>confdefs.h <<_ACEOF
26730 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26731 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26732 _ACEOF
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26737 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26738 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
26739 $as_echo_n "(cached) " >&6
26740 else
26741 gcc_cv_as_cfi_personality_directive=no
26742 if test x$gcc_cv_as != x; then
26743 $as_echo ' .text
26744 .cfi_startproc
26745 .cfi_personality 0, symbol
26746 .cfi_endproc' > conftest.s
26747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26749 (eval $ac_try) 2>&5
26750 ac_status=$?
26751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26752 test $ac_status = 0; }; }
26753 then
26754 gcc_cv_as_cfi_personality_directive=yes
26755 else
26756 echo "configure: failed program was" >&5
26757 cat conftest.s >&5
26759 rm -f conftest.o conftest.s
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26763 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26767 cat >>confdefs.h <<_ACEOF
26768 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26769 _ACEOF
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26773 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26774 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
26775 $as_echo_n "(cached) " >&6
26776 else
26777 gcc_cv_as_cfi_sections_directive=no
26778 if test x$gcc_cv_as != x; then
26779 $as_echo ' .text
26780 .cfi_sections .debug_frame, .eh_frame
26781 .cfi_startproc
26782 .cfi_endproc' > conftest.s
26783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26785 (eval $ac_try) 2>&5
26786 ac_status=$?
26787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26788 test $ac_status = 0; }; }
26789 then
26790 case $target_os in
26791 win32 | pe | cygwin* | mingw32*)
26792 # Need to check that we generated the correct relocation for the
26793 # .debug_frame section. This was fixed for binutils 2.21.
26794 gcc_cv_as_cfi_sections_directive=no
26795 if test "x$gcc_cv_objdump" != x; then
26796 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
26797 grep -i secrel > /dev/null; then
26798 gcc_cv_as_cfi_sections_directive=yes
26803 gcc_cv_as_cfi_sections_directive=yes
26805 esac
26806 else
26807 echo "configure: failed program was" >&5
26808 cat conftest.s >&5
26810 rm -f conftest.o conftest.s
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26814 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26819 cat >>confdefs.h <<_ACEOF
26820 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26821 _ACEOF
26824 # GAS versions up to and including 2.11.0 may mis-optimize
26825 # .eh_frame data.
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26827 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26828 if ${gcc_cv_as_eh_frame+:} false; then :
26829 $as_echo_n "(cached) " >&6
26830 else
26831 gcc_cv_as_eh_frame=no
26832 if test x$gcc_cv_as != x; then
26833 $as_echo ' .text
26834 .LFB1:
26835 .4byte 0
26836 .L1:
26837 .4byte 0
26838 .LFE1:
26839 .section .eh_frame,"aw",@progbits
26840 __FRAME_BEGIN__:
26841 .4byte .LECIE1-.LSCIE1
26842 .LSCIE1:
26843 .4byte 0x0
26844 .byte 0x1
26845 .ascii "z\0"
26846 .byte 0x1
26847 .byte 0x78
26848 .byte 0x1a
26849 .byte 0x0
26850 .byte 0x4
26851 .4byte 1
26852 .p2align 1
26853 .LECIE1:
26854 .LSFDE1:
26855 .4byte .LEFDE1-.LASFDE1
26856 .LASFDE1:
26857 .4byte .LASFDE1-__FRAME_BEGIN__
26858 .4byte .LFB1
26859 .4byte .LFE1-.LFB1
26860 .byte 0x4
26861 .4byte .LFE1-.LFB1
26862 .byte 0x4
26863 .4byte .L1-.LFB1
26864 .LEFDE1:' > conftest.s
26865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26867 (eval $ac_try) 2>&5
26868 ac_status=$?
26869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26870 test $ac_status = 0; }; }
26871 then
26872 cat > conftest.lit <<EOF
26873 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26874 0010 01000000 12000000 18000000 00000000 ................
26875 0020 08000000 04080000 0044 .........D
26877 cat > conftest.big <<EOF
26878 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26879 0010 00000001 00000012 00000018 00000000 ................
26880 0020 00000008 04000000 0844 .........D
26882 # If the assembler didn't choke, and we can objdump,
26883 # and we got the correct data, then succeed.
26884 # The text in the here-document typically retains its unix-style line
26885 # endings, while the output of objdump will use host line endings.
26886 # Therefore, use diff -b for the comparisons.
26887 if test x$gcc_cv_objdump != x \
26888 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
26889 | tail -3 > conftest.got \
26890 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
26891 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
26892 then
26893 gcc_cv_as_eh_frame=yes
26894 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26896 (eval $ac_try) 2>&5
26897 ac_status=$?
26898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26899 test $ac_status = 0; }; }; then
26900 gcc_cv_as_eh_frame=buggy
26901 else
26902 # Uh oh, what do we do now?
26903 gcc_cv_as_eh_frame=no
26905 else
26906 echo "configure: failed program was" >&5
26907 cat conftest.s >&5
26909 rm -f conftest.o conftest.s
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26913 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26917 if test $gcc_cv_as_eh_frame = buggy; then
26919 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26923 # Test if the assembler supports the section flag 'e' or #exclude for
26924 # specifying an excluded section.
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26926 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26927 if ${gcc_cv_as_section_exclude_e+:} false; then :
26928 $as_echo_n "(cached) " >&6
26929 else
26930 gcc_cv_as_section_exclude_e=no
26931 if test x$gcc_cv_as != x; then
26932 $as_echo '.section foo1,"e"
26933 .byte 0,0,0,0' > conftest.s
26934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26936 (eval $ac_try) 2>&5
26937 ac_status=$?
26938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26939 test $ac_status = 0; }; }
26940 then
26941 gcc_cv_as_section_exclude_e=yes
26942 else
26943 echo "configure: failed program was" >&5
26944 cat conftest.s >&5
26946 rm -f conftest.o conftest.s
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26950 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26953 if test $gcc_cv_as_section_exclude_e = no; then
26954 case "${target}" in
26955 # Solaris as uses #exclude instead.
26956 *-*-solaris2*)
26957 case "${target}" in
26958 sparc*-*-solaris2*)
26959 conftest_s='.section "foo1", #exclude'
26961 i?86-*-solaris2* | x86_64-*-solaris2*)
26962 conftest_s='.section foo1, #exclude'
26964 esac
26966 esac
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26968 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26969 if ${gcc_cv_as_section_exclude_hash+:} false; then :
26970 $as_echo_n "(cached) " >&6
26971 else
26972 gcc_cv_as_section_exclude_hash=no
26973 if test x$gcc_cv_as != x; then
26974 $as_echo "$conftest_s
26975 .byte 0,0,0,0" > conftest.s
26976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26978 (eval $ac_try) 2>&5
26979 ac_status=$?
26980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26981 test $ac_status = 0; }; }
26982 then
26983 gcc_cv_as_section_exclude_hash=yes
26984 else
26985 echo "configure: failed program was" >&5
26986 cat conftest.s >&5
26988 rm -f conftest.o conftest.s
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26992 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26997 cat >>confdefs.h <<_ACEOF
26998 #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`
26999 _ACEOF
27002 # Test if the assembler supports the section flag 'R' for specifying
27003 # section with SHF_GNU_RETAIN.
27004 case "${target}" in
27005 # Solaris may use GNU assembler with Solairs ld. Even if GNU
27006 # assembler supports the section flag 'R', it doesn't mean that
27007 # Solairs ld supports it.
27008 *-*-solaris2*)
27009 gcc_cv_as_shf_gnu_retain=no
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
27013 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
27014 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
27015 $as_echo_n "(cached) " >&6
27016 else
27017 gcc_cv_as_shf_gnu_retain=no
27018 if test x$gcc_cv_as != x; then
27019 $as_echo '.section .foo,"awR",%progbits
27020 .byte 0' > conftest.s
27021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27026 test $ac_status = 0; }; }
27027 then
27028 gcc_cv_as_shf_gnu_retain=yes
27029 else
27030 echo "configure: failed program was" >&5
27031 cat conftest.s >&5
27033 rm -f conftest.o conftest.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
27037 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
27041 esac
27043 cat >>confdefs.h <<_ACEOF
27044 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
27045 _ACEOF
27048 # Test if the assembler supports the section flag 'o' for specifying
27049 # section with link-order.
27050 case "${target}" in
27051 # Solaris may use GNU assembler with Solairs ld. Even if GNU
27052 # assembler supports the section flag 'o', it doesn't mean that
27053 # Solairs ld supports it.
27054 *-*-solaris2*)
27055 gcc_cv_as_section_link_order=no
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
27059 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
27060 if ${gcc_cv_as_section_link_order+:} false; then :
27061 $as_echo_n "(cached) " >&6
27062 else
27063 gcc_cv_as_section_link_order=no
27064 if test x$gcc_cv_as != x; then
27065 $as_echo '.section .foo,"a"
27066 .byte 0
27067 .section __patchable_function_entries,"awo",%progbits,.foo
27068 .byte 0' > conftest.s
27069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27071 (eval $ac_try) 2>&5
27072 ac_status=$?
27073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27074 test $ac_status = 0; }; }
27075 then
27076 gcc_cv_as_section_link_order=yes
27077 else
27078 echo "configure: failed program was" >&5
27079 cat conftest.s >&5
27081 rm -f conftest.o conftest.s
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
27085 $as_echo "$gcc_cv_as_section_link_order" >&6; }
27089 esac
27091 cat >>confdefs.h <<_ACEOF
27092 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
27093 _ACEOF
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27097 $as_echo_n "checking assembler for section merging support... " >&6; }
27098 if ${gcc_cv_as_shf_merge+:} false; then :
27099 $as_echo_n "(cached) " >&6
27100 else
27101 gcc_cv_as_shf_merge=no
27102 if test x$gcc_cv_as != x; then
27103 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
27104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27106 (eval $ac_try) 2>&5
27107 ac_status=$?
27108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27109 test $ac_status = 0; }; }
27110 then
27111 gcc_cv_as_shf_merge=yes
27112 else
27113 echo "configure: failed program was" >&5
27114 cat conftest.s >&5
27116 rm -f conftest.o conftest.s
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27120 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27123 if test $gcc_cv_as_shf_merge = no; then
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27125 $as_echo_n "checking assembler for section merging support... " >&6; }
27126 if ${gcc_cv_as_shf_merge+:} false; then :
27127 $as_echo_n "(cached) " >&6
27128 else
27129 gcc_cv_as_shf_merge=no
27130 if test x$gcc_cv_as != x; then
27131 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
27132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27134 (eval $ac_try) 2>&5
27135 ac_status=$?
27136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27137 test $ac_status = 0; }; }
27138 then
27139 gcc_cv_as_shf_merge=yes
27140 else
27141 echo "configure: failed program was" >&5
27142 cat conftest.s >&5
27144 rm -f conftest.o conftest.s
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27148 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27153 cat >>confdefs.h <<_ACEOF
27154 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
27155 _ACEOF
27158 gcc_cv_ld_aligned_shf_merge=yes
27159 case "$target" in
27160 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
27161 # alignment > 1.
27162 sparc*-*-solaris2.11*)
27163 if test x"$gnu_ld" = xno \
27164 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
27165 gcc_cv_ld_aligned_shf_merge=no
27168 esac
27170 cat >>confdefs.h <<_ACEOF
27171 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
27172 _ACEOF
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
27176 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
27177 if ${gcc_cv_as_comdat_group+:} false; then :
27178 $as_echo_n "(cached) " >&6
27179 else
27180 gcc_cv_as_comdat_group=no
27181 if test x$gcc_cv_as != x; then
27182 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
27183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27185 (eval $ac_try) 2>&5
27186 ac_status=$?
27187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27188 test $ac_status = 0; }; }
27189 then
27190 gcc_cv_as_comdat_group=yes
27191 else
27192 echo "configure: failed program was" >&5
27193 cat conftest.s >&5
27195 rm -f conftest.o conftest.s
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
27199 $as_echo "$gcc_cv_as_comdat_group" >&6; }
27202 if test $gcc_cv_as_comdat_group = yes; then
27203 gcc_cv_as_comdat_group_percent=no
27204 gcc_cv_as_comdat_group_group=no
27205 else
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
27207 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
27208 if ${gcc_cv_as_comdat_group_percent+:} false; then :
27209 $as_echo_n "(cached) " >&6
27210 else
27211 gcc_cv_as_comdat_group_percent=no
27212 if test x$gcc_cv_as != x; then
27213 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
27214 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27216 (eval $ac_try) 2>&5
27217 ac_status=$?
27218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27219 test $ac_status = 0; }; }
27220 then
27221 gcc_cv_as_comdat_group_percent=yes
27222 else
27223 echo "configure: failed program was" >&5
27224 cat conftest.s >&5
27226 rm -f conftest.o conftest.s
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
27230 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27233 if test $gcc_cv_as_comdat_group_percent = yes; then
27234 gcc_cv_as_comdat_group_group=no
27235 else
27236 case "${target}" in
27237 # Sun as uses a completely different syntax.
27238 *-*-solaris2*)
27239 case "${target}" in
27240 sparc*-*-solaris2*)
27241 conftest_s='
27242 .group foo,".text%foo",#comdat
27243 .section ".text%foo", #alloc,#execinstr,#progbits
27244 .globl foo
27245 foo:
27248 i?86-*-solaris2* | x86_64-*-solaris2*)
27249 conftest_s='
27250 .group foo,.text%foo,#comdat
27251 .section .text%foo, "ax", @progbits
27252 .globl foo
27253 foo:
27256 esac
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27258 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27259 if ${gcc_cv_as_comdat_group_group+:} false; then :
27260 $as_echo_n "(cached) " >&6
27261 else
27262 gcc_cv_as_comdat_group_group=no
27263 if test x$gcc_cv_as != x; then
27264 $as_echo "$conftest_s" > conftest.s
27265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27267 (eval $ac_try) 2>&5
27268 ac_status=$?
27269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27270 test $ac_status = 0; }; }
27271 then
27272 gcc_cv_as_comdat_group_group=yes
27273 else
27274 echo "configure: failed program was" >&5
27275 cat conftest.s >&5
27277 rm -f conftest.o conftest.s
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27281 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27285 esac
27286 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27287 gcc_cv_as_comdat_group_group=no
27291 if test x"$ld_is_gold" = xyes; then
27292 comdat_group=yes
27293 elif test x"$ld_is_mold" = xyes; then
27294 comdat_group=yes
27295 elif test $in_tree_ld = yes ; then
27296 comdat_group=no
27297 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 \
27298 && test $in_tree_ld_is_elf = yes; then
27299 comdat_group=yes
27301 elif echo "$ld_ver" | grep GNU > /dev/null; then
27302 comdat_group=yes
27303 if test 0"$ld_date" -lt 20050308; then
27304 if test -n "$ld_date"; then
27305 # If there was date string, but was earlier than 2005-03-08, fail
27306 comdat_group=no
27307 elif test "$ld_vers_major" -lt 2; then
27308 comdat_group=no
27309 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27310 comdat_group=no
27313 else
27314 case "${target}" in
27315 *-*-solaris2.1[1-9]*)
27316 comdat_group=no
27317 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27318 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27319 # version 1.688.
27321 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27322 # least ld version 1.2267.
27323 if test "$ld_vers_major" -gt 1; then
27324 comdat_group=yes
27325 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
27326 comdat_group=yes
27327 elif test "$ld_vers_minor" -ge 2267; then
27328 comdat_group=yes
27332 # Assume linkers other than GNU ld don't support COMDAT group.
27333 comdat_group=no
27335 esac
27337 # Allow overriding the automatic COMDAT group tests above.
27338 # Check whether --enable-comdat was given.
27339 if test "${enable_comdat+set}" = set; then :
27340 enableval=$enable_comdat; comdat_group="$enable_comdat"
27343 if test $comdat_group = no; then
27344 gcc_cv_as_comdat_group=no
27345 gcc_cv_as_comdat_group_percent=no
27346 gcc_cv_as_comdat_group_group=no
27349 cat >>confdefs.h <<_ACEOF
27350 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27351 || test $gcc_cv_as_comdat_group_percent = yes \
27352 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27353 _ACEOF
27356 # Restrict this test to Solaris/x86: other targets define this statically.
27357 case "${target}" in
27358 i?86-*-solaris2* | x86_64-*-solaris2*)
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
27360 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
27361 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
27362 hidden_linkonce=yes
27363 else
27364 case "${target}" in
27365 # Full support for hidden thunks in linkonce sections only appeared in
27366 # Solaris 11/OpenSolaris.
27367 *-*-solaris2.1[1-9]*)
27368 hidden_linkonce=yes
27371 hidden_linkonce=no
27373 esac
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
27376 $as_echo "$hidden_linkonce" >&6; }
27378 cat >>confdefs.h <<_ACEOF
27379 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
27380 _ACEOF
27383 esac
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27386 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27387 if ${gcc_cv_as_is_stmt+:} false; then :
27388 $as_echo_n "(cached) " >&6
27389 else
27390 gcc_cv_as_is_stmt=no
27391 if test x$gcc_cv_as != x; then
27392 $as_echo ' .text
27393 .file 1 "conf.c"
27394 .loc 1 1 0 is_stmt 1' > conftest.s
27395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27397 (eval $ac_try) 2>&5
27398 ac_status=$?
27399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27400 test $ac_status = 0; }; }
27401 then
27402 gcc_cv_as_is_stmt=yes
27403 else
27404 echo "configure: failed program was" >&5
27405 cat conftest.s >&5
27407 rm -f conftest.o conftest.s
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27411 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27412 if test $gcc_cv_as_is_stmt = yes; then
27414 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27420 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27421 if ${gcc_cv_as_discriminator+:} false; then :
27422 $as_echo_n "(cached) " >&6
27423 else
27424 gcc_cv_as_discriminator=no
27425 if test x$gcc_cv_as != x; then
27426 $as_echo ' .text
27427 .file 1 "conf.c"
27428 .loc 1 1 0 discriminator 1' > conftest.s
27429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27431 (eval $ac_try) 2>&5
27432 ac_status=$?
27433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27434 test $ac_status = 0; }; }
27435 then
27436 gcc_cv_as_discriminator=yes
27437 else
27438 echo "configure: failed program was" >&5
27439 cat conftest.s >&5
27441 rm -f conftest.o conftest.s
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27445 $as_echo "$gcc_cv_as_discriminator" >&6; }
27446 if test $gcc_cv_as_discriminator = yes; then
27448 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27453 # Catch the newlib flag of the same name so we can gate GCC features on it.
27454 # Check whether --enable-newlib-nano-formatted-io was given.
27455 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27456 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
27457 yes|no)
27460 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27462 esac
27466 # Thread-local storage - the check is heavily parameterized.
27467 conftest_s=
27468 tls_as_opt=
27469 case "$target" in
27470 alpha*-*-*)
27471 conftest_s='
27472 .section ".tdata","awT",@progbits
27473 foo: .long 25
27474 .text
27475 ldq $27,__tls_get_addr($29) !literal!1
27476 lda $16,foo($29) !tlsgd!1
27477 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27478 ldq $27,__tls_get_addr($29) !literal!2
27479 lda $16,foo($29) !tlsldm!2
27480 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27481 ldq $1,foo($29) !gotdtprel
27482 ldah $2,foo($29) !dtprelhi
27483 lda $3,foo($2) !dtprello
27484 lda $4,foo($29) !dtprel
27485 ldq $1,foo($29) !gottprel
27486 ldah $2,foo($29) !tprelhi
27487 lda $3,foo($2) !tprello
27488 lda $4,foo($29) !tprel'
27489 tls_as_opt=--fatal-warnings
27491 arc*-*-*)
27492 conftest_s='
27493 add_s r0,r0, @foo@tpoff'
27495 cris-*-*|crisv32-*-*)
27496 conftest_s='
27497 .section ".tdata","awT",@progbits
27498 x: .long 25
27499 .text
27500 move.d x:IE,$r10
27501 nop'
27502 tls_as_opt=--fatal-warnings
27504 frv*-*-*)
27505 conftest_s='
27506 .section ".tdata","awT",@progbits
27507 x: .long 25
27508 .text
27509 call #gettlsoff(x)'
27511 hppa*-*-linux*)
27512 conftest_s='
27513 t1: .reg %r20
27514 t2: .reg %r21
27515 gp: .reg %r19
27516 .section ".tdata","awT",@progbits
27517 foo: .long 25
27518 .text
27519 .align 4
27520 addil LT%foo-$tls_gdidx$,gp
27521 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27522 b __tls_get_addr
27524 addil LT%foo-$tls_ldidx$,gp
27525 b __tls_get_addr
27526 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27527 addil LR%foo-$tls_dtpoff$,%ret0
27528 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27529 mfctl %cr27,%t1
27530 addil LT%foo-$tls_ieoff$,gp
27531 ldw RT%foo-$tls_ieoff$(%r1),%t2
27532 add %t1,%t2,%t3
27533 mfctl %cr27,%t1
27534 addil LR%foo-$tls_leoff$,%t1
27535 ldo RR%foo-$tls_leoff$(%r1),%t2'
27536 tls_as_opt=--fatal-warnings
27538 arm*-*-*)
27539 conftest_s='
27540 .section ".tdata","awT",%progbits
27541 foo: .long 25
27542 .text
27543 .word foo(gottpoff)
27544 .word foo(tpoff)
27545 .word foo(tlsgd)
27546 .word foo(tlsldm)
27547 .word foo(tlsldo)'
27549 i[34567]86-*-* | x86_64-*-*)
27550 case "$target" in
27551 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
27552 on_solaris=yes
27555 on_solaris=no
27557 esac
27558 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27559 conftest_s='
27560 .section .tdata,"awt",@progbits'
27561 tls_section_flag=t
27563 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27565 else
27566 conftest_s='
27567 .section ".tdata","awT",@progbits'
27568 tls_section_flag=T
27569 tls_as_opt="--fatal-warnings"
27571 case "$target" in
27572 i[34567]86-*-*)
27573 if test x$on_solaris = xyes; then
27574 case $gas_flag in
27575 yes) tls_as_opt="$tls_as_opt --32" ;;
27576 esac
27578 conftest_s="$conftest_s
27579 foo: .long 25
27580 .text
27581 movl %gs:0, %eax
27582 leal foo@tlsgd(,%ebx,1), %eax
27583 leal foo@tlsldm(%ebx), %eax
27584 leal foo@dtpoff(%eax), %edx
27585 movl foo@gottpoff(%ebx), %eax
27586 subl foo@gottpoff(%ebx), %eax
27587 addl foo@gotntpoff(%ebx), %eax
27588 movl foo@indntpoff, %eax
27589 movl \$foo@tpoff, %eax
27590 subl \$foo@tpoff, %eax
27591 leal foo@ntpoff(%ecx), %eax"
27593 x86_64-*-*)
27594 if test x$on_solaris = xyes; then
27595 case $gas_flag in
27596 yes) tls_as_opt="$tls_as_opt --64" ;;
27597 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
27598 esac
27600 conftest_s="$conftest_s
27601 foo: .long 25
27602 .text
27603 movq %fs:0, %rax
27604 leaq foo@tlsgd(%rip), %rdi
27605 leaq foo@tlsld(%rip), %rdi
27606 leaq foo@dtpoff(%rax), %rdx
27607 movq foo@gottpoff(%rip), %rax
27608 movq \$foo@tpoff, %rax"
27610 esac
27612 ia64-*-*)
27613 conftest_s='
27614 .section ".tdata","awT",@progbits
27615 foo: data8 25
27616 .text
27617 addl r16 = @ltoff(@dtpmod(foo#)), gp
27618 addl r17 = @ltoff(@dtprel(foo#)), gp
27619 addl r18 = @ltoff(@tprel(foo#)), gp
27620 addl r19 = @dtprel(foo#), gp
27621 adds r21 = @dtprel(foo#), r13
27622 movl r23 = @dtprel(foo#)
27623 addl r20 = @tprel(foo#), gp
27624 adds r22 = @tprel(foo#), r13
27625 movl r24 = @tprel(foo#)'
27626 tls_as_opt=--fatal-warnings
27628 loongarch*-*-*)
27629 conftest_s='
27630 .section .tdata,"awT",@progbits
27631 x: .word 2
27632 .text
27633 la.tls.gd $a0,x
27634 bl __tls_get_addr'
27635 tls_first_major=0
27636 tls_first_minor=0
27637 tls_as_opt='--fatal-warnings'
27639 microblaze*-*-*)
27640 conftest_s='
27641 .section .tdata,"awT",@progbits
27643 .word 2
27644 .text
27645 addik r5,r20,x@TLSGD
27646 addik r5,r20,x@TLSLDM'
27647 tls_as_opt='--fatal-warnings'
27649 mips*-*-*)
27650 conftest_s='
27651 .section .tdata,"awT",@progbits
27653 .word 2
27654 .text
27655 addiu $4, $28, %tlsgd(x)
27656 addiu $4, $28, %tlsldm(x)
27657 lui $4, %dtprel_hi(x)
27658 addiu $4, $4, %dtprel_lo(x)
27659 lw $4, %gottprel(x)($28)
27660 lui $4, %tprel_hi(x)
27661 addiu $4, $4, %tprel_lo(x)'
27662 tls_as_opt='-32 --fatal-warnings'
27664 m68k-*-*)
27665 conftest_s='
27666 .section .tdata,"awT",@progbits
27668 .word 2
27669 .text
27670 foo:
27671 move.l x@TLSGD(%a5),%a0
27672 move.l x@TLSLDM(%a5),%a0
27673 move.l x@TLSLDO(%a5),%a0
27674 move.l x@TLSIE(%a5),%a0
27675 move.l x@TLSLE(%a5),%a0'
27676 tls_as_opt='--fatal-warnings'
27678 nios2-*-*)
27679 conftest_s='
27680 .section ".tdata","awT",@progbits'
27681 tls_as_opt="--fatal-warnings"
27683 aarch64*-*-*)
27684 conftest_s='
27685 .section ".tdata","awT",%progbits
27686 foo: .long 25
27687 .text
27688 adrp x0, :tlsgd:x
27689 add x0, x0, #:tlsgd_lo12:x
27690 bl __tls_get_addr
27691 nop'
27692 tls_as_opt='--fatal-warnings'
27694 or1k*-*-*)
27695 conftest_s='
27696 .section ".tdata","awT",@progbits
27697 foo: .long 25
27698 .text
27699 l.movhi r3, tpoffha(foo)
27700 l.add r3, r3, r10
27701 l.lwz r4, tpofflo(foo)(r3)'
27702 tls_as_opt=--fatal-warnings
27704 powerpc-ibm-aix*)
27705 conftest_s='
27706 .extern __get_tpointer
27707 .toc
27708 LC..1:
27709 .tc a[TC],a[TL]@le
27710 .csect .text[PR]
27711 .tlstest:
27712 lwz 9,LC..1(2)
27713 bla __get_tpointer
27714 lwzx 3,9,3
27715 .globl a
27716 .csect a[TL],4
27718 .space 4'
27720 powerpc64*-*-*)
27721 conftest_s='
27722 .section ".tdata","awT",@progbits
27723 .align 3
27724 ld0: .space 8
27725 ld1: .space 8
27726 x1: .space 8
27727 x2: .space 8
27728 x3: .space 8
27729 .text
27730 addi 3,2,ld0@got@tlsgd
27731 bl .__tls_get_addr
27733 addi 3,2,ld1@toc
27734 bl .__tls_get_addr
27736 addi 3,2,x1@got@tlsld
27737 bl .__tls_get_addr
27739 addi 9,3,x1@dtprel
27740 bl .__tls_get_addr
27742 addis 9,3,x2@dtprel@ha
27743 addi 9,9,x2@dtprel@l
27744 bl .__tls_get_addr
27746 ld 9,x3@got@dtprel(2)
27747 add 9,9,3
27748 bl .__tls_get_addr
27749 nop'
27750 tls_as_opt="-a64 --fatal-warnings"
27752 powerpc*-*-*)
27753 conftest_s='
27754 .section ".tdata","awT",@progbits
27755 .align 2
27756 ld0: .space 4
27757 ld1: .space 4
27758 x1: .space 4
27759 x2: .space 4
27760 x3: .space 4
27761 .text
27762 addi 3,31,ld0@got@tlsgd
27763 bl __tls_get_addr
27764 addi 3,31,x1@got@tlsld
27765 bl __tls_get_addr
27766 addi 9,3,x1@dtprel
27767 addis 9,3,x2@dtprel@ha
27768 addi 9,9,x2@dtprel@l
27769 lwz 9,x3@got@tprel(31)
27770 add 9,9,x@tls
27771 addi 9,2,x1@tprel
27772 addis 9,2,x2@tprel@ha
27773 addi 9,9,x2@tprel@l'
27774 tls_as_opt="-a32 --fatal-warnings"
27776 riscv*-*-*)
27777 conftest_s='
27778 .section .tdata,"awT",@progbits
27779 x: .word 2
27780 .text
27781 la.tls.gd a0,x
27782 call __tls_get_addr'
27783 tls_as_opt='--fatal-warnings'
27785 s390-*-*)
27786 conftest_s='
27787 .section ".tdata","awT",@progbits
27788 foo: .long 25
27789 .text
27790 .long foo@TLSGD
27791 .long foo@TLSLDM
27792 .long foo@DTPOFF
27793 .long foo@NTPOFF
27794 .long foo@GOTNTPOFF
27795 .long foo@INDNTPOFF
27796 l %r1,foo@GOTNTPOFF(%r12)
27797 l %r1,0(%r1):tls_load:foo
27798 bas %r14,0(%r1,%r13):tls_gdcall:foo
27799 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27800 tls_as_opt="-m31 --fatal-warnings"
27802 s390x-*-*)
27803 conftest_s='
27804 .section ".tdata","awT",@progbits
27805 foo: .long 25
27806 .text
27807 .quad foo@TLSGD
27808 .quad foo@TLSLDM
27809 .quad foo@DTPOFF
27810 .quad foo@NTPOFF
27811 .quad foo@GOTNTPOFF
27812 lg %r1,foo@GOTNTPOFF(%r12)
27813 larl %r1,foo@INDNTPOFF
27814 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27815 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27816 tls_as_opt="-m64 -Aesame --fatal-warnings"
27818 sh-*-* | sh[123456789lbe]*-*-*)
27819 conftest_s='
27820 .section ".tdata","awT",@progbits
27821 foo: .long 25
27822 .text
27823 .long foo@TLSGD
27824 .long foo@TLSLDM
27825 .long foo@DTPOFF
27826 .long foo@GOTTPOFF
27827 .long foo@TPOFF'
27828 tls_as_opt=--fatal-warnings
27830 sparc*-*-*)
27831 case "$target" in
27832 sparc*-sun-solaris2.*)
27833 on_solaris=yes
27836 on_solaris=no
27838 esac
27839 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27840 conftest_s='
27841 .section ".tdata",#alloc,#write,#tls'
27842 else
27843 conftest_s='
27844 .section ".tdata","awT",@progbits'
27845 tls_as_opt="-32 --fatal-warnings"
27847 conftest_s="$conftest_s
27848 foo: .long 25
27849 .text
27850 sethi %tgd_hi22(foo), %o0
27851 add %o0, %tgd_lo10(foo), %o1
27852 add %l7, %o1, %o0, %tgd_add(foo)
27853 call __tls_get_addr, %tgd_call(foo)
27854 sethi %tldm_hi22(foo), %l1
27855 add %l1, %tldm_lo10(foo), %l2
27856 add %l7, %l2, %o0, %tldm_add(foo)
27857 call __tls_get_addr, %tldm_call(foo)
27858 sethi %tldo_hix22(foo), %l3
27859 xor %l3, %tldo_lox10(foo), %l4
27860 add %o0, %l4, %l5, %tldo_add(foo)
27861 sethi %tie_hi22(foo), %o3
27862 add %o3, %tie_lo10(foo), %o3
27863 ld [%l7 + %o3], %o2, %tie_ld(foo)
27864 add %g7, %o2, %o4, %tie_add(foo)
27865 sethi %tle_hix22(foo), %l1
27866 xor %l1, %tle_lox10(foo), %o5
27867 ld [%g7 + %o5], %o1"
27869 xtensa*-*-*)
27870 conftest_s='
27871 .section ".tdata","awT",@progbits
27872 foo: .long 25
27873 .text
27874 movi a8, foo@TLSFUNC
27875 movi a10, foo@TLSARG
27876 callx8.tls a8, foo@TLSCALL'
27878 esac
27879 set_have_as_tls=no
27880 if test "x$enable_tls" = xno ; then
27881 : # TLS explicitly disabled.
27882 elif test "x$enable_tls" = xyes ; then
27883 set_have_as_tls=yes # TLS explicitly enabled.
27884 elif test -z "$conftest_s"; then
27885 : # If we don't have a check, assume no support.
27886 else
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27888 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27889 if ${gcc_cv_as_tls+:} false; then :
27890 $as_echo_n "(cached) " >&6
27891 else
27892 gcc_cv_as_tls=no
27893 if test x$gcc_cv_as != x; then
27894 $as_echo "$conftest_s" > conftest.s
27895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27897 (eval $ac_try) 2>&5
27898 ac_status=$?
27899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27900 test $ac_status = 0; }; }
27901 then
27902 gcc_cv_as_tls=yes
27903 else
27904 echo "configure: failed program was" >&5
27905 cat conftest.s >&5
27907 rm -f conftest.o conftest.s
27910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27911 $as_echo "$gcc_cv_as_tls" >&6; }
27912 if test $gcc_cv_as_tls = yes; then
27913 set_have_as_tls=yes
27917 if test $set_have_as_tls = yes ; then
27919 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27923 # Target-specific assembler checks.
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27926 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27927 gcc_cv_ld_static_dynamic=no
27928 gcc_cv_ld_static_option='-Bstatic'
27929 gcc_cv_ld_dynamic_option='-Bdynamic'
27930 if test $in_tree_ld = yes ; then
27931 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
27932 gcc_cv_ld_static_dynamic=yes
27934 elif test x$gcc_cv_ld != x; then
27935 # Check if linker supports -Bstatic/-Bdynamic option
27936 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
27937 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
27938 gcc_cv_ld_static_dynamic=yes
27939 else
27940 case "$target" in
27941 # AIX ld uses -b flags
27942 *-*-aix4.[23]* | *-*-aix[5-9]*)
27943 gcc_cv_ld_static_dynamic=yes
27944 gcc_cv_ld_static_option="-bstatic"
27945 gcc_cv_ld_dynamic_option="-bdynamic"
27947 # HP-UX ld uses -a flags to select between shared and archive.
27948 *-*-hpux*)
27949 if test x"$gnu_ld" = xno; then
27950 gcc_cv_ld_static_dynamic=yes
27951 gcc_cv_ld_static_option="-aarchive_shared"
27952 gcc_cv_ld_dynamic_option="-adefault"
27955 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27956 *-*-solaris2*)
27957 gcc_cv_ld_static_dynamic=yes
27959 esac
27962 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
27964 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27967 cat >>confdefs.h <<_ACEOF
27968 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27969 _ACEOF
27972 cat >>confdefs.h <<_ACEOF
27973 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27974 _ACEOF
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27978 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27981 $as_echo_n "checking linker --version-script option... " >&6; }
27982 gcc_cv_ld_version_script=no
27983 ld_version_script_option=''
27984 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27985 gcc_cv_ld_version_script=yes
27986 ld_version_script_option='--version-script'
27987 elif test x$gcc_cv_ld != x; then
27988 case "$target" in
27989 # Solaris 2 ld always supports -M. It also supports a subset of
27990 # --version-script since Solaris 11.4, but requires
27991 # -z gnu-version-script-compat to activate.
27992 *-*-solaris2*)
27993 gcc_cv_ld_version_script=yes
27994 ld_version_script_option='-M'
27996 esac
27998 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
28000 $as_echo "$gcc_cv_ld_version_script" >&6; }
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
28004 $as_echo_n "checking linker soname option... " >&6; }
28005 gcc_cv_ld_soname=no
28006 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
28007 gcc_cv_ld_soname=yes
28008 ld_soname_option='-soname'
28009 elif test x$gcc_cv_ld != x; then
28010 case "$target" in
28011 *-*-darwin*)
28012 gcc_cv_ld_soname=yes
28013 ld_soname_option='-install_name'
28015 # Solaris 2 ld always supports -h. It also supports --soname for GNU
28016 # ld compatiblity since some Solaris 10 update.
28017 *-*-solaris2*)
28018 gcc_cv_ld_soname=yes
28019 ld_soname_option='-h'
28021 esac
28023 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
28025 $as_echo "$gcc_cv_ld_soname" >&6; }
28028 if test x"$demangler_in_ld" = xyes; then
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
28030 $as_echo_n "checking linker --demangle support... " >&6; }
28031 gcc_cv_ld_demangle=no
28032 if test $in_tree_ld = yes; then
28033 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 \
28034 gcc_cv_ld_demangle=yes
28036 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
28037 # Check if the GNU linker supports --demangle option
28038 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
28039 gcc_cv_ld_demangle=yes
28042 if test x"$gcc_cv_ld_demangle" = xyes; then
28044 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
28048 $as_echo "$gcc_cv_ld_demangle" >&6; }
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
28052 $as_echo_n "checking linker plugin support... " >&6; }
28053 gcc_cv_lto_plugin=0
28054 if test -f liblto_plugin.la; then
28055 save_ld_ver="$ld_ver"
28056 save_ld_vers_major="$ld_vers_major"
28057 save_ld_vers_minor="$ld_vers_minor"
28058 save_ld_is_gold="$ld_is_gold"
28060 ld_is_gold=no
28062 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
28063 ld_ver="GNU ld"
28064 # FIXME: ld_is_gold?
28065 ld_vers_major="$gcc_cv_gld_major_version"
28066 ld_vers_minor="$gcc_cv_gld_minor_version"
28067 else
28068 # Determine plugin linker version.
28069 # FIXME: Partial duplicate from above, generalize.
28070 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
28071 if echo "$ld_ver" | grep GNU > /dev/null; then
28072 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
28073 ld_is_gold=yes
28074 ld_vers=`echo $ld_ver | sed -n \
28075 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
28076 else
28077 ld_vers=`echo $ld_ver | sed -n \
28078 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
28080 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
28081 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
28085 # Determine plugin support.
28086 if echo "$ld_ver" | grep GNU > /dev/null; then
28087 # Require GNU ld or gold 2.21+ for plugin support by default.
28088 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
28089 gcc_cv_lto_plugin=2
28090 elif test "$ld_is_mold" = yes; then
28091 gcc_cv_lto_plugin=2
28092 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
28093 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
28094 gcc_cv_lto_plugin=1
28098 ld_ver="$save_ld_ver"
28099 ld_vers_major="$save_ld_vers_major"
28100 ld_vers_minor="$save_ld_vers_minor"
28101 ld_is_gold="$save_ld_is_gold"
28104 cat >>confdefs.h <<_ACEOF
28105 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
28106 _ACEOF
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
28109 $as_echo "$gcc_cv_lto_plugin" >&6; }
28111 # Target OS-specific assembler checks.
28113 case "$target_os" in
28114 darwin*)
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
28116 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
28117 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
28118 $as_echo_n "(cached) " >&6
28119 else
28120 gcc_cv_as_mmacosx_version_min=no
28121 if test x$gcc_cv_as != x; then
28122 $as_echo '.text' > conftest.s
28123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; }
28129 then
28130 gcc_cv_as_mmacosx_version_min=yes
28131 else
28132 echo "configure: failed program was" >&5
28133 cat conftest.s >&5
28135 rm -f conftest.o conftest.s
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
28139 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
28140 if test $gcc_cv_as_mmacosx_version_min = yes; then
28142 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
28146 if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
28148 $as_echo_n "checking assembler for .build_version... " >&6; }
28149 if ${gcc_cv_as_darwin_build_version+:} false; then :
28150 $as_echo_n "(cached) " >&6
28151 else
28152 gcc_cv_as_darwin_build_version=no
28153 if test x$gcc_cv_as != x; then
28154 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
28155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
28156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28157 (eval $ac_try) 2>&5
28158 ac_status=$?
28159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28160 test $ac_status = 0; }; }
28161 then
28162 gcc_cv_as_darwin_build_version=yes
28163 else
28164 echo "configure: failed program was" >&5
28165 cat conftest.s >&5
28167 rm -f conftest.o conftest.s
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
28171 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
28172 if test $gcc_cv_as_darwin_build_version = yes; then
28174 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
28180 esac
28182 # Target CPU-specific assembler checks.
28184 case "$target" in
28185 aarch64*-*-*)
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
28187 $as_echo_n "checking assembler for -mabi option... " >&6; }
28188 if ${gcc_cv_as_aarch64_mabi+:} false; then :
28189 $as_echo_n "(cached) " >&6
28190 else
28191 gcc_cv_as_aarch64_mabi=no
28192 if test x$gcc_cv_as != x; then
28193 $as_echo '.text' > conftest.s
28194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
28195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28196 (eval $ac_try) 2>&5
28197 ac_status=$?
28198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28199 test $ac_status = 0; }; }
28200 then
28201 gcc_cv_as_aarch64_mabi=yes
28202 else
28203 echo "configure: failed program was" >&5
28204 cat conftest.s >&5
28206 rm -f conftest.o conftest.s
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
28210 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
28213 if test x$gcc_cv_as_aarch64_mabi = xyes; then
28215 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
28217 else
28218 if test x$with_abi = xilp32; then
28219 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28220 Upgrade the Assembler." "$LINENO" 5
28222 if test x"$with_multilib_list" = xdefault; then
28223 TM_MULTILIB_CONFIG=lp64
28224 else
28225 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
28226 for aarch64_multilib in ${aarch64_multilibs}; do
28227 case ${aarch64_multilib} in
28228 ilp32)
28229 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28230 Upgrade the Assembler." "$LINENO" 5
28234 esac
28235 done
28238 # Check if we have binutils support for relocations types needed by -fpic
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
28240 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
28241 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
28242 $as_echo_n "(cached) " >&6
28243 else
28244 gcc_cv_as_aarch64_picreloc=no
28245 if test x$gcc_cv_as != x; then
28246 $as_echo '
28247 .text
28248 ldr x0, [x2, #:gotpage_lo15:globalsym]
28249 ' > conftest.s
28250 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28252 (eval $ac_try) 2>&5
28253 ac_status=$?
28254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28255 test $ac_status = 0; }; }
28256 then
28257 gcc_cv_as_aarch64_picreloc=yes
28258 else
28259 echo "configure: failed program was" >&5
28260 cat conftest.s >&5
28262 rm -f conftest.o conftest.s
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
28266 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28267 if test $gcc_cv_as_aarch64_picreloc = yes; then
28269 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28273 # Enable Branch Target Identification Mechanism and Return Address
28274 # Signing by default.
28275 # Check whether --enable-standard-branch-protection was given.
28276 if test "${enable_standard_branch_protection+set}" = set; then :
28277 enableval=$enable_standard_branch_protection;
28278 case $enableval in
28279 yes)
28280 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
28285 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
28286 Valid choices are 'yes' and 'no'." "$LINENO" 5
28288 esac
28292 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28293 # Check whether --enable-fix-cortex-a53-835769 was given.
28294 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28295 enableval=$enable_fix_cortex_a53_835769;
28296 case $enableval in
28297 yes)
28298 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28303 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28304 Valid choices are 'yes' and 'no'." "$LINENO" 5
28307 esac
28311 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28312 # Check whether --enable-fix-cortex-a53-843419 was given.
28313 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28314 enableval=$enable_fix_cortex_a53_843419;
28315 case $enableval in
28316 yes)
28317 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28322 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28323 Valid choices are 'yes' and 'no'." "$LINENO" 5
28326 esac
28332 # All TARGET_ABI_OSF targets.
28333 alpha*-*-linux* | alpha*-*-*bsd*)
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28335 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28336 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
28337 $as_echo_n "(cached) " >&6
28338 else
28339 gcc_cv_as_alpha_explicit_relocs=no
28340 if test x$gcc_cv_as != x; then
28341 $as_echo ' .set nomacro
28342 .text
28343 extbl $3, $2, $3 !lituse_bytoff!1
28344 ldq $2, a($29) !literal!1
28345 ldq $4, b($29) !literal!2
28346 ldq_u $3, 0($2) !lituse_base!1
28347 ldq $27, f($29) !literal!5
28348 jsr $26, ($27), f !lituse_jsr!5
28349 ldah $29, 0($26) !gpdisp!3
28350 lda $0, c($29) !gprel
28351 ldah $1, d($29) !gprelhigh
28352 lda $1, d($1) !gprellow
28353 lda $29, 0($29) !gpdisp!3' > conftest.s
28354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28356 (eval $ac_try) 2>&5
28357 ac_status=$?
28358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28359 test $ac_status = 0; }; }
28360 then
28361 gcc_cv_as_alpha_explicit_relocs=yes
28362 else
28363 echo "configure: failed program was" >&5
28364 cat conftest.s >&5
28366 rm -f conftest.o conftest.s
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28370 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28371 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28373 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28378 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28379 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
28380 $as_echo_n "(cached) " >&6
28381 else
28382 gcc_cv_as_alpha_jsrdirect_relocs=no
28383 if test x$gcc_cv_as != x; then
28384 $as_echo ' .set nomacro
28385 .text
28386 ldq $27, a($29) !literal!1
28387 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28388 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28390 (eval $ac_try) 2>&5
28391 ac_status=$?
28392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28393 test $ac_status = 0; }; }
28394 then
28395 gcc_cv_as_alpha_jsrdirect_relocs=yes
28396 else
28397 echo "configure: failed program was" >&5
28398 cat conftest.s >&5
28400 rm -f conftest.o conftest.s
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28404 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28405 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28407 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28413 avr-*-*)
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28415 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28416 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
28417 $as_echo_n "(cached) " >&6
28418 else
28419 gcc_cv_as_avr_mlink_relax=no
28420 if test x$gcc_cv_as != x; then
28421 $as_echo '.text' > conftest.s
28422 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28424 (eval $ac_try) 2>&5
28425 ac_status=$?
28426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28427 test $ac_status = 0; }; }
28428 then
28429 gcc_cv_as_avr_mlink_relax=yes
28430 else
28431 echo "configure: failed program was" >&5
28432 cat conftest.s >&5
28434 rm -f conftest.o conftest.s
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28438 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28439 if test $gcc_cv_as_avr_mlink_relax = yes; then
28441 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28447 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28448 if ${gcc_cv_as_avr_mrmw+:} false; then :
28449 $as_echo_n "(cached) " >&6
28450 else
28451 gcc_cv_as_avr_mrmw=no
28452 if test x$gcc_cv_as != x; then
28453 $as_echo '.text' > conftest.s
28454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28456 (eval $ac_try) 2>&5
28457 ac_status=$?
28458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28459 test $ac_status = 0; }; }
28460 then
28461 gcc_cv_as_avr_mrmw=yes
28462 else
28463 echo "configure: failed program was" >&5
28464 cat conftest.s >&5
28466 rm -f conftest.o conftest.s
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28470 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28471 if test $gcc_cv_as_avr_mrmw = yes; then
28473 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28479 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28480 if ${gcc_cv_as_avr_mgccisr+:} false; then :
28481 $as_echo_n "(cached) " >&6
28482 else
28483 gcc_cv_as_avr_mgccisr=no
28484 if test x$gcc_cv_as != x; then
28485 $as_echo '.text
28486 __gcc_isr 1
28487 __gcc_isr 2
28488 __gcc_isr 0,r24
28489 ' > conftest.s
28490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28492 (eval $ac_try) 2>&5
28493 ac_status=$?
28494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28495 test $ac_status = 0; }; }
28496 then
28497 gcc_cv_as_avr_mgccisr=yes
28498 else
28499 echo "configure: failed program was" >&5
28500 cat conftest.s >&5
28502 rm -f conftest.o conftest.s
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28506 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28507 if test $gcc_cv_as_avr_mgccisr = yes; then
28509 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28514 # Check how default linker description file implements .rodata for
28515 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28516 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28518 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28519 cat > conftest.s <<EOF
28520 .section .rodata,"a",@progbits
28521 .global xxvaryy
28522 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28523 xxvaryy:
28524 .word 1
28526 rm -f conftest.nm
28527 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28532 test $ac_status = 0; }; }
28533 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28535 (eval $ac_try) 2>&5
28536 ac_status=$?
28537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28538 test $ac_status = 0; }; }
28539 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
28540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28541 (eval $ac_try) 2>&5
28542 ac_status=$?
28543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28544 test $ac_status = 0; }; }
28545 if test -s conftest.nm
28546 then
28547 if grep ' R xxvaryy' conftest.nm > /dev/null; then
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28549 $as_echo "yes" >&6; }
28551 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28553 else
28554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28555 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28556 echo "$as_me: nm output was" >&5
28557 cat conftest.nm >&5
28558 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28559 { $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
28560 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28562 else
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28564 $as_echo "test failed" >&6; }
28565 echo "$as_me: failed program was" >&5
28566 cat conftest.s >&5
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28568 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28570 rm -f conftest.s conftest.o conftest.elf conftest.nm
28573 cris-*-*)
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28575 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28576 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
28577 $as_echo_n "(cached) " >&6
28578 else
28579 gcc_cv_as_cris_no_mul_bug=no
28580 if test x$gcc_cv_as != x; then
28581 $as_echo '.text' > conftest.s
28582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28584 (eval $ac_try) 2>&5
28585 ac_status=$?
28586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28587 test $ac_status = 0; }; }
28588 then
28589 gcc_cv_as_cris_no_mul_bug=yes
28590 else
28591 echo "configure: failed program was" >&5
28592 cat conftest.s >&5
28594 rm -f conftest.o conftest.s
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28598 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28599 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28601 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28607 sparc*-*-*)
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28609 $as_echo_n "checking assembler for -relax option... " >&6; }
28610 if ${gcc_cv_as_sparc_relax+:} false; then :
28611 $as_echo_n "(cached) " >&6
28612 else
28613 gcc_cv_as_sparc_relax=no
28614 if test x$gcc_cv_as != x; then
28615 $as_echo '.text' > conftest.s
28616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28618 (eval $ac_try) 2>&5
28619 ac_status=$?
28620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28621 test $ac_status = 0; }; }
28622 then
28623 gcc_cv_as_sparc_relax=yes
28624 else
28625 echo "configure: failed program was" >&5
28626 cat conftest.s >&5
28628 rm -f conftest.o conftest.s
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28632 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28633 if test $gcc_cv_as_sparc_relax = yes; then
28635 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28641 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28642 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
28643 $as_echo_n "(cached) " >&6
28644 else
28645 gcc_cv_as_sparc_gotdata_op=no
28646 if test x$gcc_cv_as != x; then
28647 $as_echo '.text
28648 .align 4
28649 foo:
28651 bar:
28652 sethi %gdop_hix22(foo), %g1
28653 xor %g1, %gdop_lox10(foo), %g1
28654 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28657 (eval $ac_try) 2>&5
28658 ac_status=$?
28659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28660 test $ac_status = 0; }; }
28661 then
28662 if test x$gcc_cv_ld != x \
28663 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28664 if test x$gcc_cv_objdump != x; then
28665 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
28666 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
28667 gcc_cv_as_sparc_gotdata_op=no
28668 else
28669 gcc_cv_as_sparc_gotdata_op=yes
28673 rm -f conftest
28674 else
28675 echo "configure: failed program was" >&5
28676 cat conftest.s >&5
28678 rm -f conftest.o conftest.s
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28682 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28683 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28685 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28691 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28692 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
28693 $as_echo_n "(cached) " >&6
28694 else
28695 gcc_cv_as_sparc_ua_pcrel=no
28696 if test x$gcc_cv_as != x; then
28697 $as_echo '.text
28698 foo:
28700 .data
28701 .align 4
28702 .byte 0
28703 .uaword %r_disp32(foo)' > conftest.s
28704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28706 (eval $ac_try) 2>&5
28707 ac_status=$?
28708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28709 test $ac_status = 0; }; }
28710 then
28711 if test x$gcc_cv_ld != x \
28712 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28713 gcc_cv_as_sparc_ua_pcrel=yes
28715 rm -f conftest
28716 else
28717 echo "configure: failed program was" >&5
28718 cat conftest.s >&5
28720 rm -f conftest.o conftest.s
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28724 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28725 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28727 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28731 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28732 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
28733 $as_echo_n "(cached) " >&6
28734 else
28735 gcc_cv_as_sparc_ua_pcrel_hidden=no
28736 if test x$gcc_cv_as != x; then
28737 $as_echo '.data
28738 .align 4
28739 .byte 0x31
28740 .uaword %r_disp32(foo)
28741 .byte 0x32, 0x33, 0x34
28742 .global foo
28743 .hidden foo
28744 foo:
28745 .skip 4' > conftest.s
28746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28748 (eval $ac_try) 2>&5
28749 ac_status=$?
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; }
28752 then
28753 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28754 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
28755 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
28756 | grep ' 31000000 07323334' > /dev/null 2>&1; then
28757 if $gcc_cv_objdump -R conftest 2> /dev/null \
28758 | grep 'DISP32' > /dev/null 2>&1; then
28760 else
28761 gcc_cv_as_sparc_ua_pcrel_hidden=yes
28764 rm -f conftest
28765 else
28766 echo "configure: failed program was" >&5
28767 cat conftest.s >&5
28769 rm -f conftest.o conftest.s
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28773 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28774 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28776 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28782 # unaligned pcrel relocs
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28785 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28786 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
28787 $as_echo_n "(cached) " >&6
28788 else
28789 gcc_cv_as_sparc_offsetable_lo10=no
28790 if test x$gcc_cv_as != x; then
28791 $as_echo '.text
28792 or %g1, %lo(ab) + 12, %g1
28793 or %g1, %lo(ab + 12), %g1' > conftest.s
28794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28796 (eval $ac_try) 2>&5
28797 ac_status=$?
28798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28799 test $ac_status = 0; }; }
28800 then
28801 if test x$gcc_cv_objdump != x \
28802 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
28803 | grep ' 82106000 82106000' > /dev/null 2>&1; then
28804 gcc_cv_as_sparc_offsetable_lo10=yes
28806 else
28807 echo "configure: failed program was" >&5
28808 cat conftest.s >&5
28810 rm -f conftest.o conftest.s
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28814 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28815 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28817 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28823 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28824 if ${gcc_cv_as_sparc_fmaf+:} false; then :
28825 $as_echo_n "(cached) " >&6
28826 else
28827 gcc_cv_as_sparc_fmaf=no
28828 if test x$gcc_cv_as != x; then
28829 $as_echo '.text
28830 .register %g2, #scratch
28831 .register %g3, #scratch
28832 .align 4
28833 fmaddd %f0, %f2, %f4, %f6
28834 addxccc %g1, %g2, %g3
28835 fsrl32 %f2, %f4, %f8
28836 fnaddd %f10, %f12, %f14' > conftest.s
28837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28839 (eval $ac_try) 2>&5
28840 ac_status=$?
28841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28842 test $ac_status = 0; }; }
28843 then
28844 gcc_cv_as_sparc_fmaf=yes
28845 else
28846 echo "configure: failed program was" >&5
28847 cat conftest.s >&5
28849 rm -f conftest.o conftest.s
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28853 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28854 if test $gcc_cv_as_sparc_fmaf = yes; then
28856 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28862 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28863 if ${gcc_cv_as_sparc_sparc4+:} false; then :
28864 $as_echo_n "(cached) " >&6
28865 else
28866 gcc_cv_as_sparc_sparc4=no
28867 if test x$gcc_cv_as != x; then
28868 $as_echo '.text
28869 .register %g2, #scratch
28870 .register %g3, #scratch
28871 .align 4
28872 cxbe %g2, %g3, 1f
28873 1: cwbneg %g2, %g3, 1f
28874 1: sha1
28876 aes_kexpand0 %f4, %f6, %f8
28877 des_round %f38, %f40, %f42, %f44
28878 camellia_f %f54, %f56, %f58, %f60
28879 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28882 (eval $ac_try) 2>&5
28883 ac_status=$?
28884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28885 test $ac_status = 0; }; }
28886 then
28887 gcc_cv_as_sparc_sparc4=yes
28888 else
28889 echo "configure: failed program was" >&5
28890 cat conftest.s >&5
28892 rm -f conftest.o conftest.s
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28896 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28897 if test $gcc_cv_as_sparc_sparc4 = yes; then
28899 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28905 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28906 if ${gcc_cv_as_sparc_sparc5+:} false; then :
28907 $as_echo_n "(cached) " >&6
28908 else
28909 gcc_cv_as_sparc_sparc5=no
28910 if test x$gcc_cv_as != x; then
28911 $as_echo '.text
28912 .register %g2, #scratch
28913 .register %g3, #scratch
28914 .align 4
28915 subxc %g1, %g2, %g3
28916 fpadd8 %f0, %f2, %f4' > conftest.s
28917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28919 (eval $ac_try) 2>&5
28920 ac_status=$?
28921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28922 test $ac_status = 0; }; }
28923 then
28924 gcc_cv_as_sparc_sparc5=yes
28925 else
28926 echo "configure: failed program was" >&5
28927 cat conftest.s >&5
28929 rm -f conftest.o conftest.s
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28933 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28934 if test $gcc_cv_as_sparc_sparc5 = yes; then
28936 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28942 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28943 if ${gcc_cv_as_sparc_sparc6+:} false; then :
28944 $as_echo_n "(cached) " >&6
28945 else
28946 gcc_cv_as_sparc_sparc6=no
28947 if test x$gcc_cv_as != x; then
28948 $as_echo '.text
28949 .register %g2, #scratch
28950 .register %g3, #scratch
28951 .align 4
28952 rd %entropy, %g1
28953 fpsll64x %f0, %f2, %f4' > conftest.s
28954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28956 (eval $ac_try) 2>&5
28957 ac_status=$?
28958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28959 test $ac_status = 0; }; }
28960 then
28961 gcc_cv_as_sparc_sparc6=yes
28962 else
28963 echo "configure: failed program was" >&5
28964 cat conftest.s >&5
28966 rm -f conftest.o conftest.s
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28970 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28971 if test $gcc_cv_as_sparc_sparc6 = yes; then
28973 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28979 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28980 if ${gcc_cv_as_sparc_leon+:} false; then :
28981 $as_echo_n "(cached) " >&6
28982 else
28983 gcc_cv_as_sparc_leon=no
28984 if test x$gcc_cv_as != x; then
28985 $as_echo '.text
28986 .register %g2, #scratch
28987 .register %g3, #scratch
28988 .align 4
28989 smac %g2, %g3, %g1
28990 umac %g2, %g3, %g1
28991 casa [%g2] 0xb, %g3, %g1' > conftest.s
28992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
28993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28994 (eval $ac_try) 2>&5
28995 ac_status=$?
28996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28997 test $ac_status = 0; }; }
28998 then
28999 gcc_cv_as_sparc_leon=yes
29000 else
29001 echo "configure: failed program was" >&5
29002 cat conftest.s >&5
29004 rm -f conftest.o conftest.s
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
29008 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
29009 if test $gcc_cv_as_sparc_leon = yes; then
29011 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
29017 i[34567]86-*-* | x86_64-*-*)
29018 case $target_os in
29019 cygwin*)
29020 # Full C++ conformance when using a shared libstdc++-v3 requires some
29021 # support from the Cygwin DLL, which in more recent versions exports
29022 # wrappers to aid in interposing and redirecting operators new, delete,
29023 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
29024 # are configuring for a version of Cygwin that exports the wrappers.
29025 if test x$host = x$target && test x$host_cpu = xi686; then
29026 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
29027 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
29028 gcc_ac_cygwin_dll_wrappers=yes
29029 else
29030 gcc_ac_cygwin_dll_wrappers=no
29033 else
29034 # Can't check presence of libc functions during cross-compile, so
29035 # we just have to assume we're building for an up-to-date target.
29036 gcc_ac_cygwin_dll_wrappers=yes
29039 cat >>confdefs.h <<_ACEOF
29040 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
29041 _ACEOF
29043 esac
29044 case $target_os in
29045 cygwin* | pe | mingw32*)
29046 # Recent binutils allows the three-operand form of ".comm" on PE. This
29047 # definition is used unconditionally to initialise the default state of
29048 # the target option variable that governs usage of the feature.
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
29050 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
29051 if ${gcc_cv_as_comm_has_align+:} false; then :
29052 $as_echo_n "(cached) " >&6
29053 else
29054 gcc_cv_as_comm_has_align=no
29055 if test x$gcc_cv_as != x; then
29056 $as_echo '.comm foo,1,32' > conftest.s
29057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29059 (eval $ac_try) 2>&5
29060 ac_status=$?
29061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29062 test $ac_status = 0; }; }
29063 then
29064 gcc_cv_as_comm_has_align=yes
29065 else
29066 echo "configure: failed program was" >&5
29067 cat conftest.s >&5
29069 rm -f conftest.o conftest.s
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
29073 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
29077 cat >>confdefs.h <<_ACEOF
29078 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
29079 _ACEOF
29081 # Used for DWARF 2 in PE
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
29083 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
29084 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
29085 $as_echo_n "(cached) " >&6
29086 else
29087 gcc_cv_as_ix86_pe_secrel32=no
29088 if test x$gcc_cv_as != x; then
29089 $as_echo '.text
29090 foo: nop
29091 .data
29092 .secrel32 foo' > conftest.s
29093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29095 (eval $ac_try) 2>&5
29096 ac_status=$?
29097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29098 test $ac_status = 0; }; }
29099 then
29100 if test x$gcc_cv_ld != x \
29101 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
29102 gcc_cv_as_ix86_pe_secrel32=yes
29104 rm -f conftest
29105 else
29106 echo "configure: failed program was" >&5
29107 cat conftest.s >&5
29109 rm -f conftest.o conftest.s
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
29113 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
29114 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
29116 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
29120 # Test if the assembler supports the extended form of the .section
29121 # directive that specifies section alignment. LTO support uses this,
29122 # but normally only after installation, so we warn but don't fail the
29123 # configure if LTO is enabled but the assembler does not support it.
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
29125 $as_echo_n "checking assembler for .section with alignment... " >&6; }
29126 if ${gcc_cv_as_section_has_align+:} false; then :
29127 $as_echo_n "(cached) " >&6
29128 else
29129 gcc_cv_as_section_has_align=no
29130 if test x$gcc_cv_as != x; then
29131 $as_echo '.section lto_test,"dr0"' > conftest.s
29132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
29133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29134 (eval $ac_try) 2>&5
29135 ac_status=$?
29136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29137 test $ac_status = 0; }; }
29138 then
29139 gcc_cv_as_section_has_align=yes
29140 else
29141 echo "configure: failed program was" >&5
29142 cat conftest.s >&5
29144 rm -f conftest.o conftest.s
29147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
29148 $as_echo "$gcc_cv_as_section_has_align" >&6; }
29151 if test x$gcc_cv_as_section_has_align != xyes; then
29152 case ",$enable_languages," in
29153 *,lto,*)
29154 { $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
29155 $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;}
29157 esac
29160 esac
29161 case $target_os in
29162 darwin2* | darwin19*)
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
29164 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
29165 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
29166 $as_echo_n "(cached) " >&6
29167 else
29168 gcc_cv_as_mllvm_x86_pad_for_align=no
29169 if test x$gcc_cv_as != x; then
29170 $as_echo '.text' > conftest.s
29171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
29172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29173 (eval $ac_try) 2>&5
29174 ac_status=$?
29175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29176 test $ac_status = 0; }; }
29177 then
29178 gcc_cv_as_mllvm_x86_pad_for_align=yes
29179 else
29180 echo "configure: failed program was" >&5
29181 cat conftest.s >&5
29183 rm -f conftest.o conftest.s
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
29187 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
29188 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
29190 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29195 esac
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29198 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29199 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
29200 $as_echo_n "(cached) " >&6
29201 else
29202 gcc_cv_as_ix86_xbrace_comment=no
29203 if test x$gcc_cv_as != x; then
29204 $as_echo '.text' > conftest.s
29205 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29207 (eval $ac_try) 2>&5
29208 ac_status=$?
29209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29210 test $ac_status = 0; }; }
29211 then
29212 gcc_cv_as_ix86_xbrace_comment=yes
29213 else
29214 echo "configure: failed program was" >&5
29215 cat conftest.s >&5
29217 rm -f conftest.o conftest.s
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29221 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29222 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29224 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29230 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29231 if ${gcc_cv_as_ix86_filds+:} false; then :
29232 $as_echo_n "(cached) " >&6
29233 else
29234 gcc_cv_as_ix86_filds=no
29235 if test x$gcc_cv_as != x; then
29236 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29239 (eval $ac_try) 2>&5
29240 ac_status=$?
29241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29242 test $ac_status = 0; }; }
29243 then
29244 gcc_cv_as_ix86_filds=yes
29245 else
29246 echo "configure: failed program was" >&5
29247 cat conftest.s >&5
29249 rm -f conftest.o conftest.s
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29253 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29254 if test $gcc_cv_as_ix86_filds = yes; then
29256 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29262 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29263 if ${gcc_cv_as_ix86_fildq+:} false; then :
29264 $as_echo_n "(cached) " >&6
29265 else
29266 gcc_cv_as_ix86_fildq=no
29267 if test x$gcc_cv_as != x; then
29268 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29271 (eval $ac_try) 2>&5
29272 ac_status=$?
29273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29274 test $ac_status = 0; }; }
29275 then
29276 gcc_cv_as_ix86_fildq=yes
29277 else
29278 echo "configure: failed program was" >&5
29279 cat conftest.s >&5
29281 rm -f conftest.o conftest.s
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29285 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29286 if test $gcc_cv_as_ix86_fildq = yes; then
29288 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29294 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29295 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
29296 $as_echo_n "(cached) " >&6
29297 else
29298 gcc_cv_as_ix86_cmov_sun_syntax=no
29299 if test x$gcc_cv_as != x; then
29300 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29303 (eval $ac_try) 2>&5
29304 ac_status=$?
29305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29306 test $ac_status = 0; }; }
29307 then
29308 gcc_cv_as_ix86_cmov_sun_syntax=yes
29309 else
29310 echo "configure: failed program was" >&5
29311 cat conftest.s >&5
29313 rm -f conftest.o conftest.s
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29317 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29318 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29320 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29326 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29327 if ${gcc_cv_as_ix86_ffreep+:} false; then :
29328 $as_echo_n "(cached) " >&6
29329 else
29330 gcc_cv_as_ix86_ffreep=no
29331 if test x$gcc_cv_as != x; then
29332 $as_echo 'ffreep %st(1)' > conftest.s
29333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29335 (eval $ac_try) 2>&5
29336 ac_status=$?
29337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29338 test $ac_status = 0; }; }
29339 then
29340 gcc_cv_as_ix86_ffreep=yes
29341 else
29342 echo "configure: failed program was" >&5
29343 cat conftest.s >&5
29345 rm -f conftest.o conftest.s
29348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29349 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29350 if test $gcc_cv_as_ix86_ffreep = yes; then
29352 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29358 $as_echo_n "checking assembler for .quad directive... " >&6; }
29359 if ${gcc_cv_as_ix86_quad+:} false; then :
29360 $as_echo_n "(cached) " >&6
29361 else
29362 gcc_cv_as_ix86_quad=no
29363 if test x$gcc_cv_as != x; then
29364 $as_echo '.quad 0' > conftest.s
29365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29367 (eval $ac_try) 2>&5
29368 ac_status=$?
29369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29370 test $ac_status = 0; }; }
29371 then
29372 gcc_cv_as_ix86_quad=yes
29373 else
29374 echo "configure: failed program was" >&5
29375 cat conftest.s >&5
29377 rm -f conftest.o conftest.s
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29381 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29382 if test $gcc_cv_as_ix86_quad = yes; then
29384 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29390 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29391 if ${gcc_cv_as_ix86_sahf+:} false; then :
29392 $as_echo_n "(cached) " >&6
29393 else
29394 gcc_cv_as_ix86_sahf=no
29395 if test x$gcc_cv_as != x; then
29396 $as_echo '.code64
29397 sahf' > conftest.s
29398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29400 (eval $ac_try) 2>&5
29401 ac_status=$?
29402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29403 test $ac_status = 0; }; }
29404 then
29405 gcc_cv_as_ix86_sahf=yes
29406 else
29407 echo "configure: failed program was" >&5
29408 cat conftest.s >&5
29410 rm -f conftest.o conftest.s
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29414 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29415 if test $gcc_cv_as_ix86_sahf = yes; then
29417 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29423 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29424 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
29425 $as_echo_n "(cached) " >&6
29426 else
29427 gcc_cv_as_ix86_interunit_movq=no
29428 if test x$gcc_cv_as != x; then
29429 $as_echo '.code64
29430 movq %mm0, %rax
29431 movq %rax, %xmm0' > conftest.s
29432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29434 (eval $ac_try) 2>&5
29435 ac_status=$?
29436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29437 test $ac_status = 0; }; }
29438 then
29439 gcc_cv_as_ix86_interunit_movq=yes
29440 else
29441 echo "configure: failed program was" >&5
29442 cat conftest.s >&5
29444 rm -f conftest.o conftest.s
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29448 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29452 cat >>confdefs.h <<_ACEOF
29453 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29454 _ACEOF
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29458 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29459 if ${gcc_cv_as_ix86_hle+:} false; then :
29460 $as_echo_n "(cached) " >&6
29461 else
29462 gcc_cv_as_ix86_hle=no
29463 if test x$gcc_cv_as != x; then
29464 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29467 (eval $ac_try) 2>&5
29468 ac_status=$?
29469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29470 test $ac_status = 0; }; }
29471 then
29472 gcc_cv_as_ix86_hle=yes
29473 else
29474 echo "configure: failed program was" >&5
29475 cat conftest.s >&5
29477 rm -f conftest.o conftest.s
29480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29481 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29482 if test $gcc_cv_as_ix86_hle = yes; then
29484 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29490 $as_echo_n "checking assembler for swap suffix... " >&6; }
29491 if ${gcc_cv_as_ix86_swap+:} false; then :
29492 $as_echo_n "(cached) " >&6
29493 else
29494 gcc_cv_as_ix86_swap=no
29495 if test x$gcc_cv_as != x; then
29496 $as_echo 'movl.s %esp, %ebp' > conftest.s
29497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29499 (eval $ac_try) 2>&5
29500 ac_status=$?
29501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29502 test $ac_status = 0; }; }
29503 then
29504 gcc_cv_as_ix86_swap=yes
29505 else
29506 echo "configure: failed program was" >&5
29507 cat conftest.s >&5
29509 rm -f conftest.o conftest.s
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29513 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29514 if test $gcc_cv_as_ix86_swap = yes; then
29516 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29522 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29523 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
29524 $as_echo_n "(cached) " >&6
29525 else
29526 gcc_cv_as_ix86_diff_sect_delta=no
29527 if test x$gcc_cv_as != x; then
29528 $as_echo '.section .rodata
29529 .L1:
29530 .long .L2-.L1
29531 .long .L3-.L1
29532 .text
29533 .L3: nop
29534 .L2: nop' > conftest.s
29535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29537 (eval $ac_try) 2>&5
29538 ac_status=$?
29539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29540 test $ac_status = 0; }; }
29541 then
29542 gcc_cv_as_ix86_diff_sect_delta=yes
29543 else
29544 echo "configure: failed program was" >&5
29545 cat conftest.s >&5
29547 rm -f conftest.o conftest.s
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29551 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29552 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29554 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29560 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29561 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
29562 $as_echo_n "(cached) " >&6
29563 else
29564 gcc_cv_as_ix86_rep_lock_prefix=no
29565 if test x$gcc_cv_as != x; then
29566 $as_echo 'rep movsl
29567 rep ret
29568 rep nop
29569 rep bsf %ecx, %eax
29570 rep bsr %ecx, %eax
29571 lock addl %edi, (%eax,%esi)
29572 lock orl $0, (%esp)' > conftest.s
29573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29575 (eval $ac_try) 2>&5
29576 ac_status=$?
29577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29578 test $ac_status = 0; }; }
29579 then
29580 gcc_cv_as_ix86_rep_lock_prefix=yes
29581 else
29582 echo "configure: failed program was" >&5
29583 cat conftest.s >&5
29585 rm -f conftest.o conftest.s
29588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29589 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29590 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29592 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29598 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29599 if ${gcc_cv_as_ix86_ud2+:} false; then :
29600 $as_echo_n "(cached) " >&6
29601 else
29602 gcc_cv_as_ix86_ud2=no
29603 if test x$gcc_cv_as != x; then
29604 $as_echo 'ud2' > conftest.s
29605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29607 (eval $ac_try) 2>&5
29608 ac_status=$?
29609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29610 test $ac_status = 0; }; }
29611 then
29612 gcc_cv_as_ix86_ud2=yes
29613 else
29614 echo "configure: failed program was" >&5
29615 cat conftest.s >&5
29617 rm -f conftest.o conftest.s
29620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29621 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29622 if test $gcc_cv_as_ix86_ud2 = yes; then
29624 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29629 # Enforce 32-bit output with gas and gld.
29630 if test x$gas = xyes; then
29631 as_ix86_gas_32_opt="--32"
29633 if echo "$ld_ver" | grep GNU > /dev/null; then
29634 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
29635 ld_ix86_gld_32_opt="-melf_i386_sol2"
29636 else
29637 ld_ix86_gld_32_opt="-melf_i386"
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29642 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29643 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
29644 $as_echo_n "(cached) " >&6
29645 else
29646 gcc_cv_as_ix86_tlsgdplt=no
29647 if test x$gcc_cv_as != x; then
29648 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29651 (eval $ac_try) 2>&5
29652 ac_status=$?
29653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29654 test $ac_status = 0; }; }
29655 then
29656 if test x$gcc_cv_ld != x \
29657 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29658 gcc_cv_as_ix86_tlsgdplt=yes
29660 rm -f conftest
29661 else
29662 echo "configure: failed program was" >&5
29663 cat conftest.s >&5
29665 rm -f conftest.o conftest.s
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29669 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29670 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29672 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29677 conftest_s='
29678 .section .tdata,"aw'$tls_section_flag'",@progbits
29679 tls_ld:
29680 .section .text,"ax",@progbits
29681 call tls_ld@tlsldmplt'
29683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29684 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29685 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
29686 $as_echo_n "(cached) " >&6
29687 else
29688 gcc_cv_as_ix86_tlsldmplt=no
29689 if test x$gcc_cv_as != x; then
29690 $as_echo "$conftest_s" > conftest.s
29691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29693 (eval $ac_try) 2>&5
29694 ac_status=$?
29695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29696 test $ac_status = 0; }; }
29697 then
29698 if test x$gcc_cv_ld != x \
29699 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29700 gcc_cv_as_ix86_tlsldmplt=yes
29702 rm -f conftest
29703 else
29704 echo "configure: failed program was" >&5
29705 cat conftest.s >&5
29707 rm -f conftest.o conftest.s
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29711 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29715 cat >>confdefs.h <<_ACEOF
29716 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29717 _ACEOF
29720 conftest_s='
29721 .section .text,"ax",@progbits
29722 .globl _start
29723 .type _start, @function
29724 _start:
29725 leal value@tlsldm(%ebx), %eax
29726 call ___tls_get_addr@plt
29728 .section .tdata,"aw'$tls_section_flag'",@progbits
29729 .type value, @object
29730 value:'
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29732 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29733 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
29734 $as_echo_n "(cached) " >&6
29735 else
29736 gcc_cv_as_ix86_tlsldm=no
29737 if test x$gcc_cv_as != x; then
29738 $as_echo "$conftest_s" > conftest.s
29739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29741 (eval $ac_try) 2>&5
29742 ac_status=$?
29743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29744 test $ac_status = 0; }; }
29745 then
29746 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29747 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
29748 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
29749 || dis conftest 2>/dev/null | grep nop > /dev/null; then
29750 gcc_cv_as_ix86_tlsldm=yes
29753 rm -f conftest
29754 else
29755 echo "configure: failed program was" >&5
29756 cat conftest.s >&5
29758 rm -f conftest.o conftest.s
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29762 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29766 cat >>confdefs.h <<_ACEOF
29767 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29768 _ACEOF
29771 conftest_s='
29772 .data
29773 bar:
29774 .byte 1
29775 .text
29776 .global _start
29777 _start:
29778 cmpl $0, bar@GOT
29779 jmp *_start@GOT'
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29781 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29782 if ${gcc_cv_as_ix86_got32x+:} false; then :
29783 $as_echo_n "(cached) " >&6
29784 else
29785 gcc_cv_as_ix86_got32x=no
29786 if test x$gcc_cv_as != x; then
29787 $as_echo "$conftest_s" > conftest.s
29788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29790 (eval $ac_try) 2>&5
29791 ac_status=$?
29792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29793 test $ac_status = 0; }; }
29794 then
29795 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29796 && test x$gcc_cv_readelf != x \
29797 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29798 | grep R_386_GOT32X > /dev/null 2>&1 \
29799 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29800 if $gcc_cv_objdump -dw conftest 2>&1 \
29801 | grep 0xffffff > /dev/null 2>&1; then
29802 gcc_cv_as_ix86_got32x=no
29803 else
29804 gcc_cv_as_ix86_got32x=yes
29807 rm -f conftest
29808 else
29809 echo "configure: failed program was" >&5
29810 cat conftest.s >&5
29812 rm -f conftest.o conftest.s
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29816 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29820 cat >>confdefs.h <<_ACEOF
29821 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29822 _ACEOF
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29826 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29827 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
29828 $as_echo_n "(cached) " >&6
29829 else
29830 gcc_cv_as_ix86_gotoff_in_data=no
29831 if test x$gcc_cv_as != x; then
29832 $as_echo ' .text
29833 .L0:
29835 .data
29836 .long .L0@GOTOFF' > conftest.s
29837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29839 (eval $ac_try) 2>&5
29840 ac_status=$?
29841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29842 test $ac_status = 0; }; }
29843 then
29844 gcc_cv_as_ix86_gotoff_in_data=yes
29845 else
29846 echo "configure: failed program was" >&5
29847 cat conftest.s >&5
29849 rm -f conftest.o conftest.s
29852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29853 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29857 cat >>confdefs.h <<_ACEOF
29858 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29859 _ACEOF
29862 conftest_s='
29863 .section .text,"ax",@progbits
29864 .globl _start
29865 .type _start, @function
29866 _start:
29867 leal ld@tlsldm(%ecx), %eax
29868 call *___tls_get_addr@GOT(%ecx)
29869 leal gd@tlsgd(%ecx), %eax
29870 call *___tls_get_addr@GOT(%ecx)
29872 .section .tdata,"aw'$tls_section_flag'",@progbits
29873 .type ld, @object
29875 .byte 0
29876 .globl gd
29877 .type gd, @object
29879 .byte 0'
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29881 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29882 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
29883 $as_echo_n "(cached) " >&6
29884 else
29885 gcc_cv_as_ix86_tls_get_addr_via_got=no
29886 if test x$gcc_cv_as != x; then
29887 $as_echo "$conftest_s" > conftest.s
29888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29890 (eval $ac_try) 2>&5
29891 ac_status=$?
29892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29893 test $ac_status = 0; }; }
29894 then
29895 if test x$gcc_cv_ld != x \
29896 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29897 gcc_cv_as_ix86_tls_get_addr_via_got=yes
29899 rm -f conftest
29900 else
29901 echo "configure: failed program was" >&5
29902 cat conftest.s >&5
29904 rm -f conftest.o conftest.s
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29908 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29912 cat >>confdefs.h <<_ACEOF
29913 #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`
29914 _ACEOF
29918 ia64*-*-*)
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
29920 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
29921 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
29922 $as_echo_n "(cached) " >&6
29923 else
29924 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
29925 if test x$gcc_cv_as != x; then
29926 $as_echo ' .text
29927 addl r15 = @ltoffx(x#), gp
29929 ld8.mov r16 = [r15], x#
29930 ' > conftest.s
29931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29933 (eval $ac_try) 2>&5
29934 ac_status=$?
29935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29936 test $ac_status = 0; }; }
29937 then
29938 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
29939 else
29940 echo "configure: failed program was" >&5
29941 cat conftest.s >&5
29943 rm -f conftest.o conftest.s
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
29947 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
29948 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
29950 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
29957 powerpc*-*-*)
29959 case $target in
29960 *-*-darwin*)
29961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
29962 $as_echo_n "checking assembler for .machine directive support... " >&6; }
29963 if ${gcc_cv_as_machine_directive+:} false; then :
29964 $as_echo_n "(cached) " >&6
29965 else
29966 gcc_cv_as_machine_directive=no
29967 if test x$gcc_cv_as != x; then
29968 $as_echo ' .machine ppc7400' > conftest.s
29969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29971 (eval $ac_try) 2>&5
29972 ac_status=$?
29973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29974 test $ac_status = 0; }; }
29975 then
29976 gcc_cv_as_machine_directive=yes
29977 else
29978 echo "configure: failed program was" >&5
29979 cat conftest.s >&5
29981 rm -f conftest.o conftest.s
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
29985 $as_echo "$gcc_cv_as_machine_directive" >&6; }
29988 if test x$gcc_cv_as_machine_directive != xyes; then
29989 echo "*** This target requires an assembler supporting \".machine\"" >&2
29990 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
29991 test x$build = x$target && exit 1
29994 esac
29996 case $target in
29997 *-*-aix*) conftest_s=' .machine "pwr5"
29998 .csect .text[PR]
29999 mfcr 3,128';;
30000 *-*-darwin*) conftest_s=' .text
30001 mfcr r3,128';;
30002 *) conftest_s=' .machine power4
30003 .text
30004 mfcr 3,128';;
30005 esac
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
30008 $as_echo_n "checking assembler for mfcr field support... " >&6; }
30009 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
30010 $as_echo_n "(cached) " >&6
30011 else
30012 gcc_cv_as_powerpc_mfcrf=no
30013 if test x$gcc_cv_as != x; then
30014 $as_echo "$conftest_s" > conftest.s
30015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30017 (eval $ac_try) 2>&5
30018 ac_status=$?
30019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30020 test $ac_status = 0; }; }
30021 then
30022 gcc_cv_as_powerpc_mfcrf=yes
30023 else
30024 echo "configure: failed program was" >&5
30025 cat conftest.s >&5
30027 rm -f conftest.o conftest.s
30030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
30031 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
30032 if test $gcc_cv_as_powerpc_mfcrf = yes; then
30034 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
30039 case $target in
30040 *-*-aix*) conftest_s=' .machine "pwr10"
30041 .csect .text[PR]
30042 tend. 0';;
30043 *-*-darwin*) conftest_s=' .text
30044 tend. 0';;
30045 *) conftest_s=' .machine power10
30046 .text
30047 tend. 0';;
30048 esac
30050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
30051 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
30052 if ${gcc_cv_as_power10_htm+:} false; then :
30053 $as_echo_n "(cached) " >&6
30054 else
30055 gcc_cv_as_power10_htm=no
30056 if test x$gcc_cv_as != x; then
30057 $as_echo "$conftest_s" > conftest.s
30058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30060 (eval $ac_try) 2>&5
30061 ac_status=$?
30062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30063 test $ac_status = 0; }; }
30064 then
30065 gcc_cv_as_power10_htm=yes
30066 else
30067 echo "configure: failed program was" >&5
30068 cat conftest.s >&5
30070 rm -f conftest.o conftest.s
30073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
30074 $as_echo "$gcc_cv_as_power10_htm" >&6; }
30075 if test $gcc_cv_as_power10_htm = yes; then
30077 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
30082 case $target in
30083 *-*-aix*) conftest_s=' .csect .text[PR]
30084 LCF..0:
30085 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
30086 *-*-darwin*)
30087 conftest_s=' .text
30088 LCF0:
30089 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
30090 *) conftest_s=' .text
30091 .LCF0:
30092 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
30093 esac
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
30096 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
30097 if ${gcc_cv_as_powerpc_rel16+:} false; then :
30098 $as_echo_n "(cached) " >&6
30099 else
30100 gcc_cv_as_powerpc_rel16=no
30101 if test x$gcc_cv_as != x; then
30102 $as_echo "$conftest_s" > conftest.s
30103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30105 (eval $ac_try) 2>&5
30106 ac_status=$?
30107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30108 test $ac_status = 0; }; }
30109 then
30110 gcc_cv_as_powerpc_rel16=yes
30111 else
30112 echo "configure: failed program was" >&5
30113 cat conftest.s >&5
30115 rm -f conftest.o conftest.s
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
30119 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
30120 if test $gcc_cv_as_powerpc_rel16 = yes; then
30122 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30127 case $target in
30128 *-*-aix*) conftest_s=' .machine "pwr7"
30129 .csect .text[PR]
30130 lxvd2x 1,2,3';;
30131 *) conftest_s=' .machine power7
30132 .text
30133 lxvd2x 1,2,3';;
30134 esac
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30137 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30138 if ${gcc_cv_as_powerpc_vsx+:} false; then :
30139 $as_echo_n "(cached) " >&6
30140 else
30141 gcc_cv_as_powerpc_vsx=no
30142 if test x$gcc_cv_as != x; then
30143 $as_echo "$conftest_s" > conftest.s
30144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30146 (eval $ac_try) 2>&5
30147 ac_status=$?
30148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30149 test $ac_status = 0; }; }
30150 then
30151 gcc_cv_as_powerpc_vsx=yes
30152 else
30153 echo "configure: failed program was" >&5
30154 cat conftest.s >&5
30156 rm -f conftest.o conftest.s
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30160 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30161 if test $gcc_cv_as_powerpc_vsx = yes; then
30163 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30169 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30170 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
30171 $as_echo_n "(cached) " >&6
30172 else
30173 gcc_cv_as_powerpc_gnu_attribute=no
30174 if test x$gcc_cv_as != x; then
30175 $as_echo '.gnu_attribute 4,1' > conftest.s
30176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30178 (eval $ac_try) 2>&5
30179 ac_status=$?
30180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30181 test $ac_status = 0; }; }
30182 then
30183 gcc_cv_as_powerpc_gnu_attribute=yes
30184 else
30185 echo "configure: failed program was" >&5
30186 cat conftest.s >&5
30188 rm -f conftest.o conftest.s
30191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30192 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30193 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30195 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30201 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30202 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
30203 $as_echo_n "(cached) " >&6
30204 else
30205 gcc_cv_as_powerpc_entry_markers=no
30206 if test x$gcc_cv_as != x; then
30207 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30210 (eval $ac_try) 2>&5
30211 ac_status=$?
30212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30213 test $ac_status = 0; }; }
30214 then
30215 gcc_cv_as_powerpc_entry_markers=yes
30216 else
30217 echo "configure: failed program was" >&5
30218 cat conftest.s >&5
30220 rm -f conftest.o conftest.s
30223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30224 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30225 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30227 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30233 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30234 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
30235 $as_echo_n "(cached) " >&6
30236 else
30237 gcc_cv_as_powerpc_pltseq_markers=no
30238 if test x$gcc_cv_as != x; then
30239 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
30241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30242 (eval $ac_try) 2>&5
30243 ac_status=$?
30244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30245 test $ac_status = 0; }; }
30246 then
30247 gcc_cv_as_powerpc_pltseq_markers=yes
30248 else
30249 echo "configure: failed program was" >&5
30250 cat conftest.s >&5
30252 rm -f conftest.o conftest.s
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30256 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30257 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30259 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30264 case $target in
30265 *-*-aix*)
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30267 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30268 if ${gcc_cv_as_aix_ref+:} false; then :
30269 $as_echo_n "(cached) " >&6
30270 else
30271 gcc_cv_as_aix_ref=no
30272 if test x$gcc_cv_as != x; then
30273 $as_echo ' .csect stuff[rw]
30274 stuff:
30275 .long 1
30276 .extern sym
30277 .ref sym
30278 ' > conftest.s
30279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30281 (eval $ac_try) 2>&5
30282 ac_status=$?
30283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30284 test $ac_status = 0; }; }
30285 then
30286 gcc_cv_as_aix_ref=yes
30287 else
30288 echo "configure: failed program was" >&5
30289 cat conftest.s >&5
30291 rm -f conftest.o conftest.s
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30295 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30296 if test $gcc_cv_as_aix_ref = yes; then
30298 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30304 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30305 if ${gcc_cv_as_aix_dwloc+:} false; then :
30306 $as_echo_n "(cached) " >&6
30307 else
30308 gcc_cv_as_aix_dwloc=no
30309 if test x$gcc_cv_as != x; then
30310 $as_echo ' .dwsect 0xA0000
30311 Lframe..0:
30312 .vbyte 4,Lframe..0
30313 ' > conftest.s
30314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30316 (eval $ac_try) 2>&5
30317 ac_status=$?
30318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30319 test $ac_status = 0; }; }
30320 then
30321 gcc_cv_as_aix_dwloc=yes
30322 else
30323 echo "configure: failed program was" >&5
30324 cat conftest.s >&5
30326 rm -f conftest.o conftest.s
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30330 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30331 if test $gcc_cv_as_aix_dwloc = yes; then
30333 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30338 esac
30341 mips*-*-*)
30342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30343 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30344 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
30345 $as_echo_n "(cached) " >&6
30346 else
30347 gcc_cv_as_mips_explicit_relocs=no
30348 if test x$gcc_cv_as != x; then
30349 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30352 (eval $ac_try) 2>&5
30353 ac_status=$?
30354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30355 test $ac_status = 0; }; }
30356 then
30357 gcc_cv_as_mips_explicit_relocs=yes
30358 else
30359 echo "configure: failed program was" >&5
30360 cat conftest.s >&5
30362 rm -f conftest.o conftest.s
30365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30366 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30367 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30368 if test x$target_cpu_default = x
30369 then target_cpu_default=MASK_EXPLICIT_RELOCS
30370 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30376 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30377 if ${gcc_cv_as_mips_no_shared+:} false; then :
30378 $as_echo_n "(cached) " >&6
30379 else
30380 gcc_cv_as_mips_no_shared=no
30381 if test x$gcc_cv_as != x; then
30382 $as_echo 'nop' > conftest.s
30383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30385 (eval $ac_try) 2>&5
30386 ac_status=$?
30387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30388 test $ac_status = 0; }; }
30389 then
30390 gcc_cv_as_mips_no_shared=yes
30391 else
30392 echo "configure: failed program was" >&5
30393 cat conftest.s >&5
30395 rm -f conftest.o conftest.s
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30399 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30400 if test $gcc_cv_as_mips_no_shared = yes; then
30402 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30408 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30409 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
30410 $as_echo_n "(cached) " >&6
30411 else
30412 gcc_cv_as_mips_gnu_attribute=no
30413 if test x$gcc_cv_as != x; then
30414 $as_echo '.gnu_attribute 4,1' > conftest.s
30415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30417 (eval $ac_try) 2>&5
30418 ac_status=$?
30419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30420 test $ac_status = 0; }; }
30421 then
30422 gcc_cv_as_mips_gnu_attribute=yes
30423 else
30424 echo "configure: failed program was" >&5
30425 cat conftest.s >&5
30427 rm -f conftest.o conftest.s
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30431 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30432 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30434 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30440 $as_echo_n "checking assembler for .module support... " >&6; }
30441 if ${gcc_cv_as_mips_dot_module+:} false; then :
30442 $as_echo_n "(cached) " >&6
30443 else
30444 gcc_cv_as_mips_dot_module=no
30445 if test x$gcc_cv_as != x; then
30446 $as_echo '.module mips2
30447 .module fp=xx' > conftest.s
30448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
30449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30450 (eval $ac_try) 2>&5
30451 ac_status=$?
30452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30453 test $ac_status = 0; }; }
30454 then
30455 gcc_cv_as_mips_dot_module=yes
30456 else
30457 echo "configure: failed program was" >&5
30458 cat conftest.s >&5
30460 rm -f conftest.o conftest.s
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30464 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30465 if test $gcc_cv_as_mips_dot_module = yes; then
30467 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30471 if test x$gcc_cv_as_mips_dot_module = xno \
30472 && test x$with_fp_32 != x; then
30473 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30477 $as_echo_n "checking assembler for .micromips support... " >&6; }
30478 if ${gcc_cv_as_micromips_support+:} false; then :
30479 $as_echo_n "(cached) " >&6
30480 else
30481 gcc_cv_as_micromips_support=no
30482 if test x$gcc_cv_as != x; then
30483 $as_echo '.set micromips' > conftest.s
30484 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30486 (eval $ac_try) 2>&5
30487 ac_status=$?
30488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30489 test $ac_status = 0; }; }
30490 then
30491 gcc_cv_as_micromips_support=yes
30492 else
30493 echo "configure: failed program was" >&5
30494 cat conftest.s >&5
30496 rm -f conftest.o conftest.s
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30500 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30501 if test $gcc_cv_as_micromips_support = yes; then
30503 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30509 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30510 if ${gcc_cv_as_mips_dtprelword+:} false; then :
30511 $as_echo_n "(cached) " >&6
30512 else
30513 gcc_cv_as_mips_dtprelword=no
30514 if test x$gcc_cv_as != x; then
30515 $as_echo '.section .tdata,"awT",@progbits
30517 .word 2
30518 .text
30519 .dtprelword x+0x8000' > conftest.s
30520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30522 (eval $ac_try) 2>&5
30523 ac_status=$?
30524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30525 test $ac_status = 0; }; }
30526 then
30527 gcc_cv_as_mips_dtprelword=yes
30528 else
30529 echo "configure: failed program was" >&5
30530 cat conftest.s >&5
30532 rm -f conftest.o conftest.s
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30536 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30537 if test $gcc_cv_as_mips_dtprelword = yes; then
30539 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30545 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30546 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
30547 $as_echo_n "(cached) " >&6
30548 else
30549 gcc_cv_as_mips_dspr1_mult=no
30550 if test x$gcc_cv_as != x; then
30551 $as_echo ' .set mips32r2
30552 .set nodspr2
30553 .set dsp
30554 madd $ac3,$4,$5
30555 maddu $ac3,$4,$5
30556 msub $ac3,$4,$5
30557 msubu $ac3,$4,$5
30558 mult $ac3,$4,$5
30559 multu $ac3,$4,$5' > conftest.s
30560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30562 (eval $ac_try) 2>&5
30563 ac_status=$?
30564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30565 test $ac_status = 0; }; }
30566 then
30567 gcc_cv_as_mips_dspr1_mult=yes
30568 else
30569 echo "configure: failed program was" >&5
30570 cat conftest.s >&5
30572 rm -f conftest.o conftest.s
30575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30576 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30577 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30579 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30585 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30586 gcc_cv_as_ld_jalr_reloc=no
30587 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30588 if test $in_tree_ld = yes ; then
30589 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 \
30590 && test $in_tree_ld_is_elf = yes; then
30591 gcc_cv_as_ld_jalr_reloc=yes
30593 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
30594 echo ' .ent x' > conftest.s
30595 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30596 echo ' lw $25,%call16(y)($28)' >> conftest.s
30597 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30598 echo '1: jalr $25' >> conftest.s
30599 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30600 echo '1: jalr $25' >> conftest.s
30601 echo ' .end x' >> conftest.s
30602 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
30603 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
30604 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
30605 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
30606 gcc_cv_as_ld_jalr_reloc=yes
30609 rm -f conftest.*
30612 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30613 if test x$target_cpu_default = x; then
30614 target_cpu_default=MASK_RELAX_PIC_CALLS
30615 else
30616 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30620 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30623 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30624 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
30625 $as_echo_n "(cached) " >&6
30626 else
30627 gcc_cv_ld_mips_personality_relaxation=no
30628 if test $in_tree_ld = yes ; then
30629 if test "$gcc_cv_gld_major_version" -eq 2 \
30630 -a "$gcc_cv_gld_minor_version" -ge 21 \
30631 -o "$gcc_cv_gld_major_version" -gt 2; then
30632 gcc_cv_ld_mips_personality_relaxation=yes
30634 elif test x$gcc_cv_as != x \
30635 -a x$gcc_cv_ld != x \
30636 -a x$gcc_cv_readelf != x ; then
30637 cat > conftest.s <<EOF
30638 .cfi_startproc
30639 .cfi_personality 0x80,indirect_ptr
30640 .ent test
30641 test:
30643 .end test
30644 .cfi_endproc
30646 .section .data,"aw",@progbits
30647 indirect_ptr:
30648 .dc.a personality
30650 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
30651 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
30652 if $gcc_cv_readelf -d conftest 2>&1 \
30653 | grep TEXTREL > /dev/null 2>&1; then
30655 elif $gcc_cv_readelf --relocs conftest 2>&1 \
30656 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
30658 else
30659 gcc_cv_ld_mips_personality_relaxation=yes
30663 rm -f conftest.s conftest.o conftest
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30666 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30667 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
30669 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30674 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30675 if ${gcc_cv_as_mips_nan+:} false; then :
30676 $as_echo_n "(cached) " >&6
30677 else
30678 gcc_cv_as_mips_nan=no
30679 if test x$gcc_cv_as != x; then
30680 $as_echo '' > conftest.s
30681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30683 (eval $ac_try) 2>&5
30684 ac_status=$?
30685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30686 test $ac_status = 0; }; }
30687 then
30688 gcc_cv_as_mips_nan=yes
30689 else
30690 echo "configure: failed program was" >&5
30691 cat conftest.s >&5
30693 rm -f conftest.o conftest.s
30696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30697 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30698 if test $gcc_cv_as_mips_nan = yes; then
30700 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30704 if test x$gcc_cv_as_mips_nan = xno \
30705 && test x$with_nan != x; then
30706 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30709 msp430-*-*)
30710 # Earlier GAS versions generically support .gnu_attribute, but the
30711 # msp430 assembler will not do anything with it.
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30713 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30714 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
30715 $as_echo_n "(cached) " >&6
30716 else
30717 gcc_cv_as_msp430_gnu_attribute=no
30718 if test x$gcc_cv_as != x; then
30719 $as_echo '.gnu_attribute 4,1' > conftest.s
30720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30722 (eval $ac_try) 2>&5
30723 ac_status=$?
30724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30725 test $ac_status = 0; }; }
30726 then
30727 gcc_cv_as_msp430_gnu_attribute=yes
30728 else
30729 echo "configure: failed program was" >&5
30730 cat conftest.s >&5
30732 rm -f conftest.o conftest.s
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30736 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30737 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30739 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30744 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30745 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
30746 $as_echo_n "(cached) " >&6
30747 else
30748 gcc_cv_as_msp430_mspabi_attribute=no
30749 if test x$gcc_cv_as != x; then
30750 $as_echo '.mspabi_attribute 4,2' > conftest.s
30751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30753 (eval $ac_try) 2>&5
30754 ac_status=$?
30755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30756 test $ac_status = 0; }; }
30757 then
30758 gcc_cv_as_msp430_mspabi_attribute=yes
30759 else
30760 echo "configure: failed program was" >&5
30761 cat conftest.s >&5
30763 rm -f conftest.o conftest.s
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30767 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30768 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30770 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30774 if test x$enable_newlib_nano_formatted_io = xyes; then
30776 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30780 nios2-*-*)
30781 # Versions 2.33 and earlier lacked support for the %gotoff relocation
30782 # syntax that is documented in the ABI specification.
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
30784 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
30785 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
30786 $as_echo_n "(cached) " >&6
30787 else
30788 gcc_cv_as_nios2_gotoff_relocation=no
30789 if test x$gcc_cv_as != x; then
30790 $as_echo ' .extern foo
30791 .data
30792 .long %gotoff(foo)' > conftest.s
30793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30795 (eval $ac_try) 2>&5
30796 ac_status=$?
30797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30798 test $ac_status = 0; }; }
30799 then
30800 gcc_cv_as_nios2_gotoff_relocation=yes
30801 else
30802 echo "configure: failed program was" >&5
30803 cat conftest.s >&5
30805 rm -f conftest.o conftest.s
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
30809 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
30810 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
30812 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
30817 riscv*-*-*)
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30819 $as_echo_n "checking assembler for .attribute support... " >&6; }
30820 if ${gcc_cv_as_riscv_attribute+:} false; then :
30821 $as_echo_n "(cached) " >&6
30822 else
30823 gcc_cv_as_riscv_attribute=no
30824 if test x$gcc_cv_as != x; then
30825 $as_echo '.attribute stack_align,4' > conftest.s
30826 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30828 (eval $ac_try) 2>&5
30829 ac_status=$?
30830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30831 test $ac_status = 0; }; }
30832 then
30833 gcc_cv_as_riscv_attribute=yes
30834 else
30835 echo "configure: failed program was" >&5
30836 cat conftest.s >&5
30838 rm -f conftest.o conftest.s
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30842 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30843 if test $gcc_cv_as_riscv_attribute = yes; then
30845 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30850 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30851 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
30852 $as_echo_n "(cached) " >&6
30853 else
30854 gcc_cv_as_riscv_isa_spec=no
30855 if test x$gcc_cv_as != x; then
30856 $as_echo '' > conftest.s
30857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30859 (eval $ac_try) 2>&5
30860 ac_status=$?
30861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30862 test $ac_status = 0; }; }
30863 then
30864 gcc_cv_as_riscv_isa_spec=yes
30865 else
30866 echo "configure: failed program was" >&5
30867 cat conftest.s >&5
30869 rm -f conftest.o conftest.s
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30873 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30874 if test $gcc_cv_as_riscv_isa_spec = yes; then
30876 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
30881 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
30882 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
30883 $as_echo_n "(cached) " >&6
30884 else
30885 gcc_cv_as_riscv_march_zifencei=no
30886 if test x$gcc_cv_as != x; then
30887 $as_echo '' > conftest.s
30888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
30889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30890 (eval $ac_try) 2>&5
30891 ac_status=$?
30892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30893 test $ac_status = 0; }; }
30894 then
30895 gcc_cv_as_riscv_march_zifencei=yes
30896 else
30897 echo "configure: failed program was" >&5
30898 cat conftest.s >&5
30900 rm -f conftest.o conftest.s
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
30904 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
30905 if test $gcc_cv_as_riscv_march_zifencei = yes; then
30907 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
30912 loongarch*-*-*)
30913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30914 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30915 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
30916 $as_echo_n "(cached) " >&6
30917 else
30918 gcc_cv_as_loongarch_dtprelword=no
30919 if test x$gcc_cv_as != x; then
30920 $as_echo '' > conftest.s
30921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
30922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30923 (eval $ac_try) 2>&5
30924 ac_status=$?
30925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30926 test $ac_status = 0; }; }
30927 then
30928 .section .tdata,"awT",@progbits
30930 .word 2
30931 .text
30932 .dtprelword x+0x8000
30933 else
30934 echo "configure: failed program was" >&5
30935 cat conftest.s >&5
30937 rm -f conftest.o conftest.s
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
30941 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
30943 if test $gcc_cv_as_loongarch_dtprelword != yes; then
30945 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30949 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30950 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
30951 $as_echo_n "(cached) " >&6
30952 else
30953 gcc_cv_as_loongarch_explicit_relocs=no
30954 if test x$gcc_cv_as != x; then
30955 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
30956 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30958 (eval $ac_try) 2>&5
30959 ac_status=$?
30960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30961 test $ac_status = 0; }; }
30962 then
30963 gcc_cv_as_loongarch_explicit_relocs=yes
30964 else
30965 echo "configure: failed program was" >&5
30966 cat conftest.s >&5
30968 rm -f conftest.o conftest.s
30971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
30972 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
30973 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
30975 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
30980 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
30981 if ${gcc_cv_as_loongarch_call36+:} false; then :
30982 $as_echo_n "(cached) " >&6
30983 else
30984 gcc_cv_as_loongarch_call36=no
30985 if test x$gcc_cv_as != x; then
30986 $as_echo 'pcaddu18i $r1, %call36(a)
30987 jirl $r1, $r1, 0' > conftest.s
30988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30990 (eval $ac_try) 2>&5
30991 ac_status=$?
30992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30993 test $ac_status = 0; }; }
30994 then
30995 gcc_cv_as_loongarch_call36=yes
30996 else
30997 echo "configure: failed program was" >&5
30998 cat conftest.s >&5
31000 rm -f conftest.o conftest.s
31003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
31004 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
31005 if test $gcc_cv_as_loongarch_call36 = yes; then
31007 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
31012 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
31013 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
31014 $as_echo_n "(cached) " >&6
31015 else
31016 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
31017 if test x$gcc_cv_as != x; then
31018 $as_echo '.cfi_startproc
31019 .cfi_personality 0x9b,a
31020 .cfi_lsda 0x1b,b
31021 .cfi_endproc' > conftest.s
31022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31024 (eval $ac_try) 2>&5
31025 ac_status=$?
31026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31027 test $ac_status = 0; }; }
31028 then
31029 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
31030 else
31031 echo "configure: failed program was" >&5
31032 cat conftest.s >&5
31034 rm -f conftest.o conftest.s
31037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
31038 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
31039 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
31041 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
31046 $as_echo_n "checking assembler for -mrelax option... " >&6; }
31047 if ${gcc_cv_as_loongarch_relax+:} false; then :
31048 $as_echo_n "(cached) " >&6
31049 else
31050 gcc_cv_as_loongarch_relax=no
31051 if test x$gcc_cv_as != x; then
31052 $as_echo '.text' > conftest.s
31053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
31054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31055 (eval $ac_try) 2>&5
31056 ac_status=$?
31057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31058 test $ac_status = 0; }; }
31059 then
31060 gcc_cv_as_loongarch_relax=yes
31061 else
31062 echo "configure: failed program was" >&5
31063 cat conftest.s >&5
31065 rm -f conftest.o conftest.s
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
31069 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
31070 if test $gcc_cv_as_loongarch_relax = yes; then
31072 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
31077 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
31078 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then :
31079 $as_echo_n "(cached) " >&6
31080 else
31081 gcc_cv_as_loongarch_cond_branch_relax=no
31082 if test x$gcc_cv_as != x; then
31083 $as_echo 'a:
31084 .rept 32769
31086 .endr
31087 beq $a0,$a1,a' > conftest.s
31088 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31090 (eval $ac_try) 2>&5
31091 ac_status=$?
31092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31093 test $ac_status = 0; }; }
31094 then
31095 gcc_cv_as_loongarch_cond_branch_relax=yes
31096 else
31097 echo "configure: failed program was" >&5
31098 cat conftest.s >&5
31100 rm -f conftest.o conftest.s
31103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31104 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31105 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31107 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31112 s390*-*-*)
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31114 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31115 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
31116 $as_echo_n "(cached) " >&6
31117 else
31118 gcc_cv_as_s390_gnu_attribute=no
31119 if test x$gcc_cv_as != x; then
31120 $as_echo '.gnu_attribute 8,1' > conftest.s
31121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31123 (eval $ac_try) 2>&5
31124 ac_status=$?
31125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31126 test $ac_status = 0; }; }
31127 then
31128 gcc_cv_as_s390_gnu_attribute=yes
31129 else
31130 echo "configure: failed program was" >&5
31131 cat conftest.s >&5
31133 rm -f conftest.o conftest.s
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31137 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31138 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31140 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31145 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31146 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
31147 $as_echo_n "(cached) " >&6
31148 else
31149 gcc_cv_as_s390_machine_machinemode=no
31150 if test x$gcc_cv_as != x; then
31151 $as_echo ' .machinemode push
31152 .machinemode pop
31153 .machine push
31154 .machine pop' > conftest.s
31155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31157 (eval $ac_try) 2>&5
31158 ac_status=$?
31159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31160 test $ac_status = 0; }; }
31161 then
31162 gcc_cv_as_s390_machine_machinemode=yes
31163 else
31164 echo "configure: failed program was" >&5
31165 cat conftest.s >&5
31167 rm -f conftest.o conftest.s
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31171 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31172 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31174 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31179 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31180 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
31181 $as_echo_n "(cached) " >&6
31182 else
31183 gcc_cv_as_s390_architecture_modifiers=no
31184 if test x$gcc_cv_as != x; then
31185 $as_echo ' .machine z13+vx ' > conftest.s
31186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31188 (eval $ac_try) 2>&5
31189 ac_status=$?
31190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31191 test $ac_status = 0; }; }
31192 then
31193 gcc_cv_as_s390_architecture_modifiers=yes
31194 else
31195 echo "configure: failed program was" >&5
31196 cat conftest.s >&5
31198 rm -f conftest.o conftest.s
31201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31202 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31203 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31205 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31210 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31211 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
31212 $as_echo_n "(cached) " >&6
31213 else
31214 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
31215 if test x$gcc_cv_as != x; then
31216 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31219 (eval $ac_try) 2>&5
31220 ac_status=$?
31221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31222 test $ac_status = 0; }; }
31223 then
31224 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
31225 else
31226 echo "configure: failed program was" >&5
31227 cat conftest.s >&5
31229 rm -f conftest.o conftest.s
31232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31233 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31234 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31236 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31241 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31242 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
31243 $as_echo_n "(cached) " >&6
31244 else
31245 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
31246 if test x$gcc_cv_as != x; then
31247 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31250 (eval $ac_try) 2>&5
31251 ac_status=$?
31252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31253 test $ac_status = 0; }; }
31254 then
31255 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
31256 else
31257 echo "configure: failed program was" >&5
31258 cat conftest.s >&5
31260 rm -f conftest.o conftest.s
31263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31264 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31265 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31267 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31273 esac
31275 # Mips, LoongArch and HP-UX need the GNU assembler.
31276 # Linux on IA64 might be able to use the Intel assembler.
31278 case "$target" in
31279 mips*-*-* | loongarch*-*-* | *-*-hpux* )
31280 if test x$gas_flag = xyes \
31281 || test x"$host" != x"$build" \
31282 || test ! -x "$gcc_cv_as" \
31283 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
31285 else
31286 echo "*** This configuration requires the GNU assembler" >&2
31287 exit 1
31290 esac
31292 # AMD GCN needs the LLVM assembler and linker.
31293 # Test that LLVM is at least 13.0.1.
31294 case "$target" in
31295 amdgcn-* | gcn-*)
31296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31297 $as_echo_n "checking llvm assembler version... " >&6; }
31298 gcc_cv_as_version="unknown"
31299 if test x$gcc_cv_as != x; then
31300 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31301 case "$gcc_cv_as_version" in
31302 13.0.[1-9]*) ;; # 13.0.1+
31303 13.[1-9]*) ;; # 13.1+
31304 1[4-9]*) ;; # 14..19
31305 [2-9][0-9]*) ;; # 20..99
31306 [1-9][0-9][0-9]*) ;; # 100+
31307 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
31308 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31309 esac
31311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31312 $as_echo "$gcc_cv_as_version, ok" >&6; }
31314 esac
31316 case "$target" in
31317 arm*)
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31319 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31320 if ${gcc_cv_as_arm_option_extensions+:} false; then :
31321 $as_echo_n "(cached) " >&6
31322 else
31323 gcc_cv_as_arm_option_extensions=no
31324 if test x$gcc_cv_as != x; then
31325 $as_echo '.text
31326 .thumb
31327 .syntax unified
31328 vmov.f32 s0, s1' > conftest.s
31329 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31331 (eval $ac_try) 2>&5
31332 ac_status=$?
31333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31334 test $ac_status = 0; }; }
31335 then
31336 gcc_cv_as_arm_option_extensions=yes
31337 else
31338 echo "configure: failed program was" >&5
31339 cat conftest.s >&5
31341 rm -f conftest.o conftest.s
31344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31345 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31346 if test $gcc_cv_as_arm_option_extensions = yes; then
31348 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31352 esac
31354 # ??? Not all targets support dwarf2 debug_line, even within a version
31355 # of gas. Moreover, we need to emit a valid instruction to trigger any
31356 # info to the output file. So, as supported targets are added to gas 2.11,
31357 # add some instruction here to (also) show we expect this might work.
31358 # ??? Once 2.11 is released, probably need to add first known working
31359 # version to the per-target configury.
31360 case "$cpu_type" in
31361 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31362 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
31363 | visium | xstormy16 | xtensa)
31364 insn="nop"
31366 ia64 | s390)
31367 insn="nop 0"
31369 mmix)
31370 insn="swym 0"
31372 esac
31373 if test x"$insn" != x; then
31374 conftest_s="\
31375 .file 1 \"conftest.s\"
31376 .loc 1 3 0
31377 $insn"
31378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31379 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31380 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
31381 $as_echo_n "(cached) " >&6
31382 else
31383 gcc_cv_as_dwarf2_debug_line=no
31384 if test x$gcc_cv_as != x; then
31385 $as_echo "$conftest_s" > conftest.s
31386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31388 (eval $ac_try) 2>&5
31389 ac_status=$?
31390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31391 test $ac_status = 0; }; }
31392 then
31393 if test x$gcc_cv_objdump != x \
31394 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
31395 | grep debug_line > /dev/null 2>&1; then
31396 gcc_cv_as_dwarf2_debug_line=yes
31397 elif test x$gcc_cv_otool != x \
31398 && $gcc_cv_otool -l conftest.o 2> /dev/null \
31399 | grep debug_line > /dev/null 2>&1; then
31400 gcc_cv_as_dwarf2_debug_line=yes
31402 else
31403 echo "configure: failed program was" >&5
31404 cat conftest.s >&5
31406 rm -f conftest.o conftest.s
31409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31410 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31414 # The .debug_line file table must be in the exact order that
31415 # we specified the files, since these indices are also used
31416 # by DW_AT_decl_file. Approximate this test by testing if
31417 # the assembler bitches if the same index is assigned twice.
31418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31419 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31420 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
31421 $as_echo_n "(cached) " >&6
31422 else
31423 gcc_cv_as_dwarf2_file_buggy=no
31424 if test x$gcc_cv_as != x; then
31425 $as_echo ' .file 1 "foo.s"
31426 .file 1 "bar.s"' > conftest.s
31427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31429 (eval $ac_try) 2>&5
31430 ac_status=$?
31431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31432 test $ac_status = 0; }; }
31433 then
31434 gcc_cv_as_dwarf2_file_buggy=yes
31435 else
31436 echo "configure: failed program was" >&5
31437 cat conftest.s >&5
31439 rm -f conftest.o conftest.s
31442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
31443 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31447 if test $gcc_cv_as_dwarf2_debug_line = yes \
31448 && test $gcc_cv_as_dwarf2_file_buggy = no; then
31450 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31453 if test $gcc_cv_as_leb128 = yes; then
31454 conftest_s="\
31455 .file 1 \"conftest.s\"
31456 .loc 1 3 0 view .LVU1
31457 $insn
31458 .data
31459 .uleb128 .LVU1
31460 .uleb128 .LVU1
31462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31463 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31464 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
31465 $as_echo_n "(cached) " >&6
31466 else
31467 gcc_cv_as_dwarf2_debug_view=no
31468 if test x$gcc_cv_as != x; then
31469 $as_echo "$conftest_s" > conftest.s
31470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31472 (eval $ac_try) 2>&5
31473 ac_status=$?
31474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31475 test $ac_status = 0; }; }
31476 then
31477 gcc_cv_as_dwarf2_debug_view=yes
31478 else
31479 echo "configure: failed program was" >&5
31480 cat conftest.s >&5
31482 rm -f conftest.o conftest.s
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31486 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31487 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31489 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31497 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31498 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
31499 $as_echo_n "(cached) " >&6
31500 else
31501 gcc_cv_as_gdwarf2_flag=no
31502 if test x$gcc_cv_as != x; then
31503 $as_echo "$insn" > conftest.s
31504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31506 (eval $ac_try) 2>&5
31507 ac_status=$?
31508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31509 test $ac_status = 0; }; }
31510 then
31511 gcc_cv_as_gdwarf2_flag=yes
31512 else
31513 echo "configure: failed program was" >&5
31514 cat conftest.s >&5
31516 rm -f conftest.o conftest.s
31519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31520 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31521 if test $gcc_cv_as_gdwarf2_flag = yes; then
31523 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31529 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31530 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
31531 $as_echo_n "(cached) " >&6
31532 else
31533 gcc_cv_as_gdwarf_5_flag=no
31534 if test x$gcc_cv_as != x; then
31535 $as_echo "$insn" > conftest.s
31536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31538 (eval $ac_try) 2>&5
31539 ac_status=$?
31540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31541 test $ac_status = 0; }; }
31542 then
31543 if test x$gcc_cv_objdump != x \
31544 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
31545 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
31546 gcc_cv_as_gdwarf_5_flag=yes;
31548 else
31549 echo "configure: failed program was" >&5
31550 cat conftest.s >&5
31552 rm -f conftest.o conftest.s
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31556 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31557 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31559 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31564 case $target_os in
31565 win32 | pe | cygwin* | mingw32*)
31566 section_flags=\"dr\"
31567 function_type=".def foo; .scl 2; .type 32; .endef"
31568 function_size="";;
31570 section_flags=\"\",%progbits
31571 function_type=".type foo, %function"
31572 function_size=".size foo, .-foo";;
31573 esac
31574 dwarf4_debug_info_size=0x46
31575 dwarf4_high_pc_form=7
31576 dwarf4_debug_aranges_size=0x2c
31577 dwarf4_line_sz=9
31578 for dwarf4_addr_size in 8 4; do
31579 conftest_s="\
31580 .file \"a.c\"
31581 .text
31582 .Ltext0:
31583 .p2align 4
31584 .globl foo
31585 $function_type
31586 foo:
31587 .LFB0:
31588 .LM1:
31589 $insn
31590 .LM2:
31591 .LFE0:
31592 $function_size
31593 .Letext0:
31594 .section .debug_info,$section_flags
31595 .Ldebug_info0:
31596 .4byte $dwarf4_debug_info_size
31597 .2byte 0x4
31598 .4byte .Ldebug_abbrev0
31599 .byte 0x$dwarf4_addr_size
31600 .byte 0x1
31601 .ascii \"GNU C17\\0\"
31602 .byte 0xc
31603 .ascii \"a.c\\0\"
31604 .ascii \"/\\0\"
31605 .${dwarf4_addr_size}byte .Ltext0
31606 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31607 .4byte .Ldebug_line0
31608 .byte 0x2
31609 .ascii \"foo\\0\"
31610 .byte 0x1
31611 .byte 0x2
31612 .byte 0x1
31613 .${dwarf4_addr_size}byte .LFB0
31614 .${dwarf4_addr_size}byte .LFE0-.LFB0
31615 .byte 0x1
31616 .byte 0x9c
31617 .byte 0
31618 .section .debug_abbrev,$section_flags
31619 .Ldebug_abbrev0:
31620 .byte 0x1
31621 .byte 0x11
31622 .byte 0x1
31623 .byte 0x25
31624 .byte 0x8
31625 .byte 0x13
31626 .byte 0xb
31627 .byte 0x3
31628 .byte 0x8
31629 .byte 0x1b
31630 .byte 0x8
31631 .byte 0x11
31632 .byte 0x1
31633 .byte 0x12
31634 .byte 0x$dwarf4_high_pc_form
31635 .byte 0x10
31636 .byte 0x17
31637 .byte 0
31638 .byte 0
31639 .byte 0x2
31640 .byte 0x2e
31641 .byte 0
31642 .byte 0x3f
31643 .byte 0x19
31644 .byte 0x3
31645 .byte 0x8
31646 .byte 0x3a
31647 .byte 0xb
31648 .byte 0x3b
31649 .byte 0xb
31650 .byte 0x39
31651 .byte 0xb
31652 .byte 0x11
31653 .byte 0x1
31654 .byte 0x12
31655 .byte 0x$dwarf4_high_pc_form
31656 .byte 0x40
31657 .byte 0x18
31658 .byte 0
31659 .byte 0
31660 .byte 0
31661 .section .debug_aranges,$section_flags
31662 .4byte $dwarf4_debug_aranges_size
31663 .2byte 0x2
31664 .4byte .Ldebug_info0
31665 .byte 0x8
31666 .byte 0
31667 .2byte 0
31668 .2byte 0
31669 .${dwarf4_addr_size}byte .Ltext0
31670 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31671 .${dwarf4_addr_size}byte 0
31672 .${dwarf4_addr_size}byte 0
31673 .section .debug_line,$section_flags
31674 .Ldebug_line0:
31675 .4byte .LELT0-.LSLT0
31676 .LSLT0:
31677 .2byte 0x4
31678 .4byte .LELTP0-.LASLTP0
31679 .LASLTP0:
31680 .byte 0x1
31681 .byte 0x1
31682 .byte 0x1
31683 .byte 0xf6
31684 .byte 0xf2
31685 .byte 0xd
31686 .byte 0
31687 .byte 0x1
31688 .byte 0x1
31689 .byte 0x1
31690 .byte 0x1
31691 .byte 0
31692 .byte 0
31693 .byte 0
31694 .byte 0x1
31695 .byte 0
31696 .byte 0
31697 .byte 0x1
31698 .byte 0
31699 .ascii \"a.c\\0\"
31700 .byte 0
31701 .byte 0
31702 .byte 0
31703 .byte 0
31704 .LELTP0:
31705 .byte 0
31706 .byte 0x$dwarf4_line_sz
31707 .byte 0x2
31708 .${dwarf4_addr_size}byte .LM1
31709 .byte 0x18
31710 .byte 0x5
31711 .byte 0x1
31712 .byte 0
31713 .byte 0x$dwarf4_line_sz
31714 .byte 0x2
31715 .${dwarf4_addr_size}byte .LM2
31716 .byte 0x1
31717 .byte 0x5
31718 .byte 0x1
31719 .byte 0
31720 .byte 0x$dwarf4_line_sz
31721 .byte 0x2
31722 .${dwarf4_addr_size}byte .Letext0
31723 .byte 0
31724 .byte 0x1
31725 .byte 0x1
31726 .LELT0:
31727 .section .debug_str,$section_flags
31728 .ident \"GCC\"
31730 dwarf4_success=no
31731 if test $dwarf4_addr_size = 4; then
31732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31733 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31734 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
31735 $as_echo_n "(cached) " >&6
31736 else
31737 gcc_cv_as_debug_line_32_flag=no
31738 if test x$gcc_cv_as != x; then
31739 $as_echo "$conftest_s" > conftest.s
31740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31742 (eval $ac_try) 2>&5
31743 ac_status=$?
31744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31745 test $ac_status = 0; }; }
31746 then
31747 gcc_cv_as_debug_line_32_flag=yes
31748 else
31749 echo "configure: failed program was" >&5
31750 cat conftest.s >&5
31752 rm -f conftest.o conftest.s
31755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31756 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31757 if test $gcc_cv_as_debug_line_32_flag = yes; then
31758 dwarf4_success=yes
31761 else
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31763 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31764 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
31765 $as_echo_n "(cached) " >&6
31766 else
31767 gcc_cv_as_debug_line_64_flag=no
31768 if test x$gcc_cv_as != x; then
31769 $as_echo "$conftest_s" > conftest.s
31770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31772 (eval $ac_try) 2>&5
31773 ac_status=$?
31774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31775 test $ac_status = 0; }; }
31776 then
31777 gcc_cv_as_debug_line_64_flag=yes
31778 else
31779 echo "configure: failed program was" >&5
31780 cat conftest.s >&5
31782 rm -f conftest.o conftest.s
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31786 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31787 if test $gcc_cv_as_debug_line_64_flag = yes; then
31788 dwarf4_success=yes
31792 if test $dwarf4_success = yes; then
31793 dwarf4_success=no
31794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31795 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31796 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
31797 $as_echo_n "(cached) " >&6
31798 else
31799 gcc_cv_as_dwarf_4_debug_line_flag=no
31800 if test x$gcc_cv_as != x; then
31801 $as_echo "$conftest_s" > conftest.s
31802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31804 (eval $ac_try) 2>&5
31805 ac_status=$?
31806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31807 test $ac_status = 0; }; }
31808 then
31809 gcc_cv_as_dwarf_4_debug_line_flag=yes
31810 else
31811 echo "configure: failed program was" >&5
31812 cat conftest.s >&5
31814 rm -f conftest.o conftest.s
31817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31818 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31819 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31820 dwarf4_success=yes
31823 break
31825 dwarf4_debug_info_size=0x36
31826 dwarf4_high_pc_form=6
31827 dwarf4_debug_aranges_size=0x1c
31828 dwarf4_line_sz=5
31829 done
31831 if test $dwarf4_success = yes; then
31832 conftest_s="\
31833 .file \"foo.c\"
31834 .text
31835 bar:
31836 #APP
31837 # 82 \"xxx.h\" 1
31838 $insn
31839 # 0 \"\" 2
31840 #NO_APP
31841 $insn
31842 foo:
31843 .file 1 \"foo.c\"
31844 $insn
31845 .file 2 \"foo.h\"
31848 dwarf4_success=no
31849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
31850 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
31851 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
31852 $as_echo_n "(cached) " >&6
31853 else
31854 gcc_cv_as_dwarf_4_app_flag=no
31855 if test x$gcc_cv_as != x; then
31856 $as_echo "$conftest_s" > conftest.s
31857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31859 (eval $ac_try) 2>&5
31860 ac_status=$?
31861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31862 test $ac_status = 0; }; }
31863 then
31864 gcc_cv_as_dwarf_4_app_flag=yes
31865 else
31866 echo "configure: failed program was" >&5
31867 cat conftest.s >&5
31869 rm -f conftest.o conftest.s
31872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
31873 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
31874 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
31875 dwarf4_success=yes
31880 if test $dwarf4_success = yes; then
31881 conftest_s="\
31882 .text
31883 .globl foo
31884 $function_type
31885 foo:
31886 $insn
31887 $function_size
31888 .file 1 \"foo.c\"
31890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
31891 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
31892 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
31893 $as_echo_n "(cached) " >&6
31894 else
31895 gcc_cv_as_working_gdwarf_n_flag=no
31896 if test x$gcc_cv_as != x; then
31897 $as_echo "$conftest_s" > conftest.s
31898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31900 (eval $ac_try) 2>&5
31901 ac_status=$?
31902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31903 test $ac_status = 0; }; }
31904 then
31905 if test x$gcc_cv_objdump != x \
31906 && $gcc_cv_objdump -W conftest.o 2>&1 \
31907 | grep conftest.s > /dev/null 2>&1; then
31908 gcc_cv_as_working_gdwarf_n_flag=no
31909 else
31910 gcc_cv_as_working_gdwarf_n_flag=yes
31912 else
31913 echo "configure: failed program was" >&5
31914 cat conftest.s >&5
31916 rm -f conftest.o conftest.s
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
31920 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
31923 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
31925 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
31930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
31931 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
31932 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
31933 $as_echo_n "(cached) " >&6
31934 else
31935 gcc_cv_as_debug_prefix_map_flag=no
31936 if test x$gcc_cv_as != x; then
31937 $as_echo "$insn" > conftest.s
31938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
31939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31940 (eval $ac_try) 2>&5
31941 ac_status=$?
31942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31943 test $ac_status = 0; }; }
31944 then
31945 gcc_cv_as_debug_prefix_map_flag=yes
31946 else
31947 echo "configure: failed program was" >&5
31948 cat conftest.s >&5
31950 rm -f conftest.o conftest.s
31953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
31954 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
31955 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
31957 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
31963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
31964 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
31965 if ${gcc_cv_as_compress_debug+:} false; then :
31966 $as_echo_n "(cached) " >&6
31967 else
31968 gcc_cv_as_compress_debug=no
31969 if test x$gcc_cv_as != x; then
31970 $as_echo '' > conftest.s
31971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31973 (eval $ac_try) 2>&5
31974 ac_status=$?
31975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31976 test $ac_status = 0; }; }
31977 then
31978 # gas compiled without zlib cannot compress debug sections and warns
31979 # about it, but still exits successfully. So check for this, too.
31980 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
31981 then
31982 gcc_cv_as_compress_debug=0
31983 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
31984 then
31985 gcc_cv_as_compress_debug=1
31986 gcc_cv_as_compress_debug_option="--compress-debug-sections"
31987 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
31988 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
31989 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
31990 then
31991 gcc_cv_as_compress_debug=2
31993 else
31994 gcc_cv_as_compress_debug=0
31996 else
31997 echo "configure: failed program was" >&5
31998 cat conftest.s >&5
32000 rm -f conftest.o conftest.s
32003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
32004 $as_echo "$gcc_cv_as_compress_debug" >&6; }
32008 cat >>confdefs.h <<_ACEOF
32009 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
32010 _ACEOF
32013 cat >>confdefs.h <<_ACEOF
32014 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
32015 _ACEOF
32018 cat >>confdefs.h <<_ACEOF
32019 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
32020 _ACEOF
32023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
32024 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
32025 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
32026 $as_echo_n "(cached) " >&6
32027 else
32028 gcc_cv_as_lcomm_with_alignment=no
32029 if test x$gcc_cv_as != x; then
32030 $as_echo '.lcomm bar,4,16' > conftest.s
32031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32033 (eval $ac_try) 2>&5
32034 ac_status=$?
32035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32036 test $ac_status = 0; }; }
32037 then
32038 gcc_cv_as_lcomm_with_alignment=yes
32039 else
32040 echo "configure: failed program was" >&5
32041 cat conftest.s >&5
32043 rm -f conftest.o conftest.s
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
32047 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
32048 if test $gcc_cv_as_lcomm_with_alignment = yes; then
32050 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32055 if test x$with_sysroot = x && test x$host = x$target \
32056 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32057 && test "$prefix" != "NONE"; then
32059 cat >>confdefs.h <<_ACEOF
32060 #define PREFIX_INCLUDE_DIR "$prefix/include"
32061 _ACEOF
32065 # Determine the version of glibc, if any, used on the target.
32066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32067 $as_echo_n "checking for target glibc version... " >&6; }
32069 # Check whether --with-glibc-version was given.
32070 if test "${with_glibc_version+set}" = set; then :
32071 withval=$with_glibc_version;
32072 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32073 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32074 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32075 else
32076 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
32078 else
32080 glibc_version_major=0
32081 glibc_version_minor=0
32082 if test -f $target_header_dir/features.h \
32083 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32084 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32085 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32086 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32091 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32093 cat >>confdefs.h <<_ACEOF
32094 #define TARGET_GLIBC_MAJOR $glibc_version_major
32095 _ACEOF
32098 cat >>confdefs.h <<_ACEOF
32099 #define TARGET_GLIBC_MINOR $glibc_version_minor
32100 _ACEOF
32103 # Check whether --enable-gnu-unique-object was given.
32104 if test "${enable_gnu_unique_object+set}" = set; then :
32105 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32106 yes | no) ;;
32107 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32108 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32109 esac
32110 else
32111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32112 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32113 if ${gcc_cv_as_gnu_unique_object+:} false; then :
32114 $as_echo_n "(cached) " >&6
32115 else
32116 gcc_cv_as_gnu_unique_object=no
32117 if test x$gcc_cv_as != x; then
32118 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32121 (eval $ac_try) 2>&5
32122 ac_status=$?
32123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32124 test $ac_status = 0; }; }
32125 then
32126 gcc_cv_as_gnu_unique_object=yes
32127 else
32128 echo "configure: failed program was" >&5
32129 cat conftest.s >&5
32131 rm -f conftest.o conftest.s
32134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32135 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32136 if test $gcc_cv_as_gnu_unique_object = yes; then
32137 # We need to unquote above to to use the definition from config.gcc.
32138 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32140 if test $glibc_version_major -gt 2 \
32141 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32142 enable_gnu_unique_object=yes
32149 if test x$enable_gnu_unique_object = xyes; then
32151 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32156 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32157 if ${gcc_cv_as_line_zero+:} false; then :
32158 $as_echo_n "(cached) " >&6
32159 else
32160 gcc_cv_as_line_zero=no
32161 if test "x$gcc_cv_as" != x; then
32162 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32163 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32165 (eval $ac_try) 2>&5
32166 ac_status=$?
32167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32168 test $ac_status = 0; }; } &&
32169 test "x`cat conftest.out`" = x
32170 then
32171 gcc_cv_as_line_zero=yes
32172 else
32173 echo "configure: failed program was" >&5
32174 cat conftest.s >&5
32175 echo "configure: error output was" >&5
32176 cat conftest.out >&5
32178 rm -f conftest.o conftest.s conftest.out
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32182 $as_echo "$gcc_cv_as_line_zero" >&6; }
32183 if test "x$gcc_cv_as_line_zero" = xyes; then
32185 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32190 $as_echo_n "checking support for thin archives... " >&6; }
32191 thin_archive_support=no
32192 echo 'int main (void) { return 0; }' > conftest.c
32193 if ($AR --version | sed 1q | grep "GNU ar" \
32194 && $CC $CFLAGS -c conftest.c \
32195 && $AR rcT conftest.a conftest.o \
32196 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
32197 thin_archive_support=yes
32199 rm -f conftest.c conftest.o conftest.a conftest
32200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32201 $as_echo "$thin_archive_support" >&6; }
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32205 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32206 gcc_cv_ld_eh_frame_hdr=no
32207 if test $in_tree_ld = yes ; then
32208 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 \
32209 && test $in_tree_ld_is_elf = yes; then
32210 gcc_cv_ld_eh_frame_hdr=yes
32212 elif test x$gcc_cv_ld != x; then
32213 if echo "$ld_ver" | grep GNU > /dev/null; then
32214 # Check if linker supports --eh-frame-hdr option
32215 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
32216 gcc_cv_ld_eh_frame_hdr=yes
32218 else
32219 case "$target" in
32220 *-*-solaris2*)
32221 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32222 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
32223 gcc_cv_ld_eh_frame_hdr=yes
32226 esac
32230 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
32232 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32236 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32239 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32240 gcc_cv_ld_eh_frame_ciev3=no
32241 if test $in_tree_ld = yes ; then
32242 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 \
32243 && test $in_tree_ld_is_elf = yes; then
32244 gcc_cv_ld_eh_frame_ciev3=yes
32246 elif test x$gcc_cv_ld != x; then
32247 if echo "$ld_ver" | grep GNU > /dev/null; then
32248 gcc_cv_ld_eh_frame_ciev3=yes
32249 if test 0"$ld_date" -lt 20040513; then
32250 if test -n "$ld_date"; then
32251 # If there was date string, but was earlier than 2004-05-13, fail
32252 gcc_cv_ld_eh_frame_ciev3=no
32253 elif test "$ld_vers_major" -lt 2; then
32254 gcc_cv_ld_eh_frame_ciev3=no
32255 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32256 gcc_cv_ld_eh_frame_ciev3=no
32259 else
32260 case "$target" in
32261 *-*-solaris2*)
32262 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32263 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
32264 gcc_cv_ld_eh_frame_ciev3=yes
32267 esac
32271 cat >>confdefs.h <<_ACEOF
32272 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32273 _ACEOF
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32276 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32279 $as_echo_n "checking linker position independent executable support... " >&6; }
32280 gcc_cv_ld_pie=no
32281 if test $in_tree_ld = yes ; then
32282 case "$target" in
32283 # Full PIE support on Solaris was only introduced in gld 2.26.
32284 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
32285 *) gcc_gld_pie_min_version=15 ;;
32286 esac
32287 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 \
32288 && test $in_tree_ld_is_elf = yes; then
32289 gcc_cv_ld_pie=yes
32291 elif test x$gcc_cv_ld != x; then
32292 # Check if linker supports -pie option
32293 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
32294 gcc_cv_ld_pie=yes
32295 case "$target" in
32296 *-*-solaris2*)
32297 if echo "$ld_ver" | grep GNU > /dev/null \
32298 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32299 gcc_cv_ld_pie=no
32302 esac
32303 else
32304 case "$target" in
32305 *-*-solaris2.1[1-9]*)
32306 # Solaris 11.3 added PIE support.
32307 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
32308 gcc_cv_ld_pie=yes
32311 esac
32314 if test x"$gcc_cv_ld_pie" = xyes; then
32316 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32320 $as_echo "$gcc_cv_ld_pie" >&6; }
32322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32323 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32324 gcc_cv_ld_pie_copyreloc=no
32325 if test $gcc_cv_ld_pie = yes ; then
32326 if test $in_tree_ld = yes ; then
32327 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
32328 gcc_cv_ld_pie_copyreloc=yes
32330 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32331 # Check if linker supports -pie option with copy reloc
32332 case "$target" in
32333 i?86-*-linux* | x86_64-*-linux*)
32334 cat > conftest1.s <<EOF
32335 .globl a_glob
32336 .data
32337 .type a_glob, @object
32338 .size a_glob, 4
32339 a_glob:
32340 .long 2
32342 cat > conftest2.s <<EOF
32343 .text
32344 .globl main
32345 .type main, @function
32346 main:
32347 movl %eax, a_glob(%rip)
32348 .size main, .-main
32349 .globl ptr
32350 .section .data.rel,"aw",@progbits
32351 .type ptr, @object
32352 ptr:
32353 .quad a_glob
32355 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32356 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
32357 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32358 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
32359 gcc_cv_ld_pie_copyreloc=yes
32361 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32363 esac
32367 cat >>confdefs.h <<_ACEOF
32368 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32369 _ACEOF
32371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32372 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32375 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32376 gcc_cv_ld_eh_gc_sections=no
32377 if test $in_tree_ld = yes ; then
32378 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 \
32379 && test $in_tree_ld_is_elf = yes; then
32380 gcc_cv_ld_eh_gc_sections=yes
32382 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
32383 cat > conftest.s <<EOF
32384 .section .text
32385 .globl _start
32386 .type _start, @function
32387 _start:
32388 .long foo
32389 .size _start, .-_start
32390 .section .text.foo,"ax",@progbits
32391 .type foo, @function
32392 foo:
32393 .long 0
32394 .size foo, .-foo
32395 .section .gcc_except_table.foo,"a",@progbits
32396 .L0:
32397 .long 0
32398 .section .eh_frame,"a",@progbits
32399 .long .L0
32401 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32402 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32403 | grep "gc-sections option ignored" > /dev/null; then
32404 gcc_cv_ld_eh_gc_sections=no
32405 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32406 | grep gcc_except_table > /dev/null; then
32407 gcc_cv_ld_eh_gc_sections=yes
32408 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32409 if test x$gcc_cv_as_comdat_group != xyes; then
32410 gcc_cv_ld_eh_gc_sections=no
32411 cat > conftest.s <<EOF
32412 .section .text
32413 .globl _start
32414 .type _start, @function
32415 _start:
32416 .long foo
32417 .size _start, .-_start
32418 .section .gnu.linkonce.t.foo,"ax",@progbits
32419 .type foo, @function
32420 foo:
32421 .long 0
32422 .size foo, .-foo
32423 .section .gcc_except_table.foo,"a",@progbits
32424 .L0:
32425 .long 0
32426 .section .eh_frame,"a",@progbits
32427 .long .L0
32429 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32430 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32431 | grep "gc-sections option ignored" > /dev/null; then
32432 gcc_cv_ld_eh_gc_sections=no
32433 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32434 | grep gcc_except_table > /dev/null; then
32435 gcc_cv_ld_eh_gc_sections=yes
32441 rm -f conftest.s conftest.o conftest
32443 case "$target" in
32444 hppa*-*-linux*)
32445 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32446 gcc_cv_ld_eh_gc_sections=no
32448 esac
32449 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
32451 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32455 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32458 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32459 gcc_cv_ld_eh_gc_sections_bug=no
32460 if test $in_tree_ld = yes ; then
32461 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 \
32462 && test $in_tree_ld_is_elf = yes; then
32463 gcc_cv_ld_eh_gc_sections_bug=yes
32465 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
32466 gcc_cv_ld_eh_gc_sections_bug=yes
32467 cat > conftest.s <<EOF
32468 .section .text
32469 .globl _start
32470 .type _start, @function
32471 _start:
32472 .long foo
32473 .size _start, .-_start
32474 .section .text.startup.foo,"ax",@progbits
32475 .type foo, @function
32476 foo:
32477 .long 0
32478 .size foo, .-foo
32479 .section .gcc_except_table.foo,"a",@progbits
32480 .L0:
32481 .long 0
32482 .section .eh_frame,"a",@progbits
32483 .long .L0
32485 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32486 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32487 | grep "gc-sections option ignored" > /dev/null; then
32489 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32490 | grep gcc_except_table > /dev/null; then
32491 gcc_cv_ld_eh_gc_sections_bug=no
32494 rm -f conftest.s conftest.o conftest
32496 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
32498 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32502 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32505 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32506 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32507 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
32508 gcc_cv_ld_compress_debug=1
32509 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
32510 # Detect zstd debug section compression support
32511 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
32512 gcc_cv_ld_compress_debug=2
32514 else
32515 case "${target}" in
32516 *-*-solaris2*)
32517 # Introduced in Solaris 11.2.
32518 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
32519 gcc_cv_ld_compress_debug=1
32520 gcc_cv_ld_compress_debug_option="-z compress-sections"
32521 else
32522 gcc_cv_ld_compress_debug=0
32526 # Assume linkers other than GNU ld don't support compessed debug
32527 # sections.
32528 gcc_cv_ld_compress_debug=0
32530 esac
32533 cat >>confdefs.h <<_ACEOF
32534 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32535 _ACEOF
32538 cat >>confdefs.h <<_ACEOF
32539 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32540 _ACEOF
32542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32543 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32545 if test x"$ld64_flag" = x"yes"; then
32547 # Set defaults for possibly untestable items.
32548 gcc_cv_ld64_export_dynamic=0
32549 gcc_cv_ld64_platform_version=0
32550 gcc_cv_ld64_demangle=0
32552 if test "$build" = "$host"; then
32553 darwin_try_test=1
32554 else
32555 darwin_try_test=0
32558 # On Darwin, because of FAT library support, it is often possible to execute
32559 # exes from compatible archs even when the host differs from the build system.
32560 case "$build","$host" in
32561 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
32562 darwin_try_test=1;;
32563 *) ;;
32564 esac
32566 # If the configurer specified a minimum ld64 version to be supported, then use
32567 # that to determine feature support.
32568 if test x"${gcc_cv_ld64_version}" != x; then
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32570 $as_echo_n "checking ld64 specified version... " >&6; }
32571 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32573 $as_echo "$gcc_cv_ld64_major" >&6; }
32574 if test "$gcc_cv_ld64_major" -ge 97; then
32575 gcc_cv_ld64_demangle=1
32577 if test "$gcc_cv_ld64_major" -ge 236; then
32578 gcc_cv_ld64_export_dynamic=1
32580 if test "$gcc_cv_ld64_major" -ge 512; then
32581 gcc_cv_ld64_platform_version=1
32583 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32584 # If the version was not specified, try to find it.
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32586 $as_echo_n "checking linker version... " >&6; }
32587 if test x"${gcc_cv_ld64_version}" = x; then
32588 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32589 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32592 $as_echo "$gcc_cv_ld64_version" >&6; }
32594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32595 $as_echo_n "checking linker for -demangle support... " >&6; }
32596 gcc_cv_ld64_demangle=1
32597 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32598 gcc_cv_ld64_demangle=0
32600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32601 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32604 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32605 gcc_cv_ld64_export_dynamic=1
32606 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32607 gcc_cv_ld64_export_dynamic=0
32609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32610 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32613 $as_echo_n "checking linker for -platform_version support... " >&6; }
32614 gcc_cv_ld64_platform_version=1
32615 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32616 gcc_cv_ld64_platform_version=0
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32619 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32622 if test x"${gcc_cv_ld64_version}" != x; then
32624 cat >>confdefs.h <<_ACEOF
32625 #define LD64_VERSION "${gcc_cv_ld64_version}"
32626 _ACEOF
32631 cat >>confdefs.h <<_ACEOF
32632 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32633 _ACEOF
32637 cat >>confdefs.h <<_ACEOF
32638 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32639 _ACEOF
32643 cat >>confdefs.h <<_ACEOF
32644 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32645 _ACEOF
32649 if test x"$dsymutil_flag" = x"yes"; then
32651 # If the user specified a dsymutil path, then we will already have the
32652 # version string, otherwise, pick it up.
32653 if test x"$gcc_cv_dsymutil" = x; then
32654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32655 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32656 dsymutil_vers="tool unspecified"
32657 elif test x"$dsymutil_vers" = x; then
32658 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32661 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
32662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32663 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32664 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
32665 dsymutil_kind=DWARFUTILS
32666 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32667 elif echo $dsymutil_temp | grep clang- > /dev/null; then
32668 dsymutil_kind=CLANG
32669 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32670 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
32671 dsymutil_kind=LLVM
32672 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32673 else
32674 dsymutil_kind=DET_UNKNOWN
32675 dsymutil_vers="0.0"
32677 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32678 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32679 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32680 if test x"${dsymutil_minor}" = x; then
32681 dsymutil_minor=0
32683 if test x"${dsymutil_tiny}" = x; then
32684 dsymutil_tiny=0
32687 cat >>confdefs.h <<_ACEOF
32688 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32689 _ACEOF
32691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32692 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32695 case $target_os in
32696 win32 | pe | cygwin* | mingw32*)
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
32698 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
32699 gcc_cv_ld_broken_pe_dwarf5=yes
32700 if test $in_tree_ld = yes ; then
32701 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32702 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32703 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32704 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32705 gcc_cv_ld_broken_pe_dwarf5=no
32707 else
32708 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32709 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32710 gcc_cv_ld_broken_pe_dwarf5=no
32713 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32715 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32719 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32722 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32723 gcc_cv_ld_disable_dynamicbase=no
32724 if test $in_tree_ld = yes; then
32725 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 36 -o "$gcc_cv_gld_major_version" -gt 2; then \
32726 gcc_cv_ld_disable_dynamicbase=yes
32728 else
32729 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
32730 gcc_cv_ld_disable_dynamicbase=yes
32733 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
32735 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32739 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32741 esac
32743 # --------
32744 # UNSORTED
32745 # --------
32747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32748 $as_echo_n "checking linker --as-needed support... " >&6; }
32749 if ${gcc_cv_ld_as_needed+:} false; then :
32750 $as_echo_n "(cached) " >&6
32751 else
32752 gcc_cv_ld_as_needed=no
32753 gcc_cv_ld_as_needed_option='--as-needed'
32754 gcc_cv_ld_no_as_needed_option='--no-as-needed'
32755 if test $in_tree_ld = yes ; then
32756 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 \
32757 && test $in_tree_ld_is_elf = yes; then
32758 gcc_cv_ld_as_needed=yes
32759 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32760 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32761 gcc_cv_ld_no_as_needed_option='--pop-state'
32764 elif test x$gcc_cv_ld != x; then
32765 # Check if linker supports --as-needed and --no-as-needed options
32766 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
32767 gcc_cv_ld_as_needed=yes
32768 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
32769 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
32770 && echo "$ld_ver" | grep GNU > /dev/null \
32771 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32772 # Use these options only when both ld.bfd and ld.gold support
32773 # --push-state/--pop-state, which unfortunately wasn't added
32774 # at the same time.
32775 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32776 gcc_cv_ld_no_as_needed_option='--pop-state'
32779 case "$target:$gnu_ld" in
32780 *-*-solaris2*:no)
32781 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32782 # forms.
32783 gcc_cv_ld_as_needed=yes
32784 gcc_cv_ld_as_needed_option="-z ignore"
32785 gcc_cv_ld_no_as_needed_option="-z record"
32787 esac
32789 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32790 # dl_iterate_phdr, i.e. since Solaris 11.
32791 case "$target" in
32792 *-*-solaris2.1[1-9]*)
32793 case "$target" in
32794 i?86-*-* | x86_64-*-*)
32795 if echo "$ld_ver" | grep GNU > /dev/null; then
32796 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32797 gcc_cv_ld_as_needed=no
32800 esac
32802 *-*-solaris2*)
32803 gcc_cv_ld_as_needed=no
32805 esac
32808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32809 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32810 if test x"$gcc_cv_ld_as_needed" = xyes; then
32812 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32815 cat >>confdefs.h <<_ACEOF
32816 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32817 _ACEOF
32820 cat >>confdefs.h <<_ACEOF
32821 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32822 _ACEOF
32826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32827 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32828 saved_LDFLAGS="$LDFLAGS"
32829 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
32830 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32832 /* end confdefs.h. */
32833 int main(void) {return 0;}
32834 _ACEOF
32835 if ac_fn_cxx_try_link "$LINENO"; then :
32836 gcc_cv_ld_clearcap=yes; break
32837 else
32838 gcc_cv_ld_clearcap=no
32840 rm -f core conftest.err conftest.$ac_objext \
32841 conftest$ac_exeext conftest.$ac_ext
32842 done
32843 LDFLAGS="$saved_LDFLAGS"
32844 if test "x$gcc_cv_ld_clearcap" = xyes; then
32846 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
32848 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
32852 $as_echo "$gcc_cv_ld_clearcap" >&6; }
32854 case "$target" in
32855 powerpc*-*-*)
32856 case "$target" in
32857 *le-*-linux*)
32858 emul_name="-melf32lppc"
32861 emul_name="-melf32ppc"
32863 esac
32864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
32865 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
32866 if ${gcc_cv_ld_ppc_attr+:} false; then :
32867 $as_echo_n "(cached) " >&6
32868 else
32869 gcc_cv_ld_ppc_attr=no
32870 if test x"$ld_is_gold" = xyes; then
32871 gcc_cv_ld_ppc_attr=yes
32872 elif test $in_tree_ld = yes ; then
32873 if test "$gcc_cv_gld_major_version" -eq 2 \
32874 -a "$gcc_cv_gld_minor_version" -ge 28 \
32875 -o "$gcc_cv_gld_major_version" -gt 2; then
32876 gcc_cv_ld_ppc_attr=yes
32878 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32879 # check that merging the long double .gnu_attribute doesn't warn
32880 cat > conftest1.s <<EOF
32881 .gnu_attribute 4,1
32883 cat > conftest2.s <<EOF
32884 .gnu_attribute 4,9
32886 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32887 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32888 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
32889 && test ! -s conftest.err; then
32890 gcc_cv_ld_ppc_attr=yes
32892 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
32896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
32897 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
32898 if test x$gcc_cv_ld_ppc_attr = xyes; then
32900 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
32904 esac
32906 case "$target:$tm_file" in
32907 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
32908 case "$target" in
32909 *le-*-linux*)
32910 emul_name="-melf64lppc"
32912 *-*-linux*)
32913 emul_name="-melf64ppc"
32915 *le-*-freebsd*)
32916 emul_name="-melf64lppc_fbsd"
32918 *-*-freebsd*)
32919 emul_name="-melf64ppc_fbsd"
32921 esac
32922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
32923 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
32924 if ${gcc_cv_ld_no_dot_syms+:} false; then :
32925 $as_echo_n "(cached) " >&6
32926 else
32927 gcc_cv_ld_no_dot_syms=no
32928 if test x"$ld_is_gold" = xyes; then
32929 gcc_cv_ld_no_dot_syms=yes
32930 elif test $in_tree_ld = yes ; then
32931 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
32932 gcc_cv_ld_no_dot_syms=yes
32934 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32935 cat > conftest1.s <<EOF
32936 .text
32937 bl .foo
32939 cat > conftest2.s <<EOF
32940 .section ".opd","aw"
32941 .align 3
32942 .globl foo
32943 .type foo,@function
32944 foo:
32945 .quad .LEfoo,.TOC.@tocbase,0
32946 .text
32947 .LEfoo:
32949 .size foo,.-.LEfoo
32951 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32952 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32953 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
32954 gcc_cv_ld_no_dot_syms=yes
32956 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
32960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
32961 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
32962 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
32964 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
32968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
32969 $as_echo_n "checking linker large toc support... " >&6; }
32970 if ${gcc_cv_ld_large_toc+:} false; then :
32971 $as_echo_n "(cached) " >&6
32972 else
32973 gcc_cv_ld_large_toc=no
32974 if test x"$ld_is_gold" = xyes; then
32975 gcc_cv_ld_large_toc=yes
32976 elif test $in_tree_ld = yes ; then
32977 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
32978 gcc_cv_ld_large_toc=yes
32980 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32981 cat > conftest.s <<EOF
32982 .section ".tbss","awT",@nobits
32983 .align 3
32984 ie0: .space 8
32985 .global _start
32986 .text
32987 _start:
32988 addis 9,13,ie0@got@tprel@ha
32989 ld 9,ie0@got@tprel@l(9)
32991 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
32992 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
32993 gcc_cv_ld_large_toc=yes
32995 rm -f conftest conftest.o conftest.s
32999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33000 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33001 if test x"$gcc_cv_ld_large_toc" = xyes; then
33003 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
33008 $as_echo_n "checking linker toc pointer alignment... " >&6; }
33009 if ${gcc_cv_ld_toc_align+:} false; then :
33010 $as_echo_n "(cached) " >&6
33011 else
33012 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
33013 cat > conftest.s <<EOF
33014 .global _start
33015 .text
33016 _start:
33017 addis 9,2,x@got@ha
33018 .section .data.rel.ro,"aw",@progbits
33019 .p2align 16
33020 .space 32768
33021 x: .quad .TOC.
33023 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33024 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
33025 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)) }'`
33027 rm -f conftest conftest.o conftest.s
33031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
33032 $as_echo "$gcc_cv_ld_toc_align" >&6; }
33033 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
33035 cat >>confdefs.h <<_ACEOF
33036 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
33037 _ACEOF
33041 esac
33043 case "$target" in
33044 *-*-aix*)
33045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33046 $as_echo_n "checking linker large toc support... " >&6; }
33047 if ${gcc_cv_ld_large_toc+:} false; then :
33048 $as_echo_n "(cached) " >&6
33049 else
33050 gcc_cv_ld_large_toc=no
33051 if test x$gcc_cv_as != x ; then
33052 cat > conftest.s <<EOF
33053 .toc
33054 LC..1:
33055 .tc a[TC],a[RW]
33056 .extern a[RW]
33057 .csect .text[PR]
33058 .largetoctest:
33059 addis 9,LC..1@u(2)
33060 ld 3,LC..1@l(9)
33062 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
33063 gcc_cv_ld_large_toc=yes
33065 rm -f conftest conftest.o conftest.s
33069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33070 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33071 if test x"$gcc_cv_ld_large_toc" = xyes; then
33073 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33077 esac
33079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33080 $as_echo_n "checking linker --build-id support... " >&6; }
33081 if ${gcc_cv_ld_buildid+:} false; then :
33082 $as_echo_n "(cached) " >&6
33083 else
33084 gcc_cv_ld_buildid=no
33085 if test $in_tree_ld = yes ; then
33086 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33087 "$gcc_cv_gld_minor_version" -ge 18 -o \
33088 "$gcc_cv_gld_major_version" -gt 2 \
33089 && test $in_tree_ld_is_elf = yes; then
33090 gcc_cv_ld_buildid=yes
33092 elif test x$gcc_cv_ld != x; then
33093 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
33094 gcc_cv_ld_buildid=yes
33098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33099 $as_echo "$gcc_cv_ld_buildid" >&6; }
33100 if test x"$gcc_cv_ld_buildid" = xyes; then
33102 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33106 # Check whether --enable-linker-build-id was given.
33107 if test "${enable_linker_build_id+set}" = set; then :
33108 enableval=$enable_linker_build_id;
33109 else
33110 enable_linker_build_id=no
33114 if test x"$enable_linker_build_id" = xyes; then
33115 if test x"$gcc_cv_ld_buildid" = xyes; then
33117 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33119 else
33120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33121 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33125 # In binutils 2.21, GNU ld gained support for new emulations fully
33126 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33128 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33129 if ${gcc_cv_ld_sol2_emulation+:} false; then :
33130 $as_echo_n "(cached) " >&6
33131 else
33132 gcc_cv_ld_sol2_emulation=no
33133 if test $in_tree_ld = yes ; then
33134 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33135 "$gcc_cv_gld_minor_version" -ge 21 -o \
33136 "$gcc_cv_gld_major_version" -gt 2 \
33137 && test $in_tree_ld_is_elf = yes; then
33138 gcc_cv_ld_sol2_emulation=yes
33140 elif test x$gcc_cv_ld != x; then
33141 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
33142 grep _sol2 > /dev/null; then
33143 gcc_cv_ld_sol2_emulation=yes
33147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33148 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33149 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
33151 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33156 $as_echo_n "checking linker --sysroot support... " >&6; }
33157 if ${gcc_cv_ld_sysroot+:} false; then :
33158 $as_echo_n "(cached) " >&6
33159 else
33160 gcc_cv_ld_sysroot=no
33161 if test $in_tree_ld = yes ; then
33162 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
33163 gcc_cv_ld_sysroot=yes
33165 elif test x$gcc_cv_ld != x; then
33166 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
33167 gcc_cv_ld_sysroot=yes
33171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33172 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33173 if test x"$gcc_cv_ld_sysroot" = xyes; then
33175 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33179 case $target in
33180 *-*-solaris2*)
33181 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33183 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33184 if ${gcc_cv_solaris_crts+:} false; then :
33185 $as_echo_n "(cached) " >&6
33186 else
33187 gcc_cv_solaris_crts=no
33188 if test x$host != x$target; then
33189 if test "x$with_sysroot" = xyes; then
33190 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
33191 else
33192 target_sysroot="${with_sysroot}"
33195 target_libdir="$target_sysroot/usr/lib"
33196 # At the time they were added, gcrt1.o became a symlink for backwards
33197 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33198 case $target in
33199 i?86-*-solaris2* | x86_64-*-solaris2*)
33200 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
33202 sparc*-*-solaris2*)
33203 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
33205 esac
33207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33208 $as_echo "$gcc_cv_solaris_crts" >&6; }
33210 esac
33211 if test x$gcc_cv_solaris_crts = xyes; then
33213 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33217 # Check whether --enable-libssp was given.
33218 if test "${enable_libssp+set}" = set; then :
33219 enableval=$enable_libssp; case "${enableval}" in
33220 yes|no)
33223 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
33225 esac
33229 # Test for stack protector support in target C library.
33230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33231 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33232 if ${gcc_cv_libc_provides_ssp+:} false; then :
33233 $as_echo_n "(cached) " >&6
33234 else
33235 gcc_cv_libc_provides_ssp=no
33236 if test "x$enable_libssp" = "xno"; then
33237 gcc_cv_libc_provides_ssp=yes
33238 elif test "x$enable_libssp" = "xyes"; then
33239 gcc_cv_libc_provides_ssp=no
33240 else
33241 case "$target" in
33242 *-*-musl*)
33243 # All versions of musl provide stack protector
33244 gcc_cv_libc_provides_ssp=yes;;
33245 *-*-linux* | *-*-kfreebsd*-gnu)
33246 # glibc 2.4 and later provides __stack_chk_fail and
33247 # either __stack_chk_guard, or TLS access to stack guard canary.
33249 if test $glibc_version_major -gt 2 \
33250 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33251 gcc_cv_libc_provides_ssp=yes
33252 else
33254 if test -f $target_header_dir/features.h \
33255 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33256 $target_header_dir/features.h > /dev/null; then
33257 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33258 $target_header_dir/features.h > /dev/null && \
33259 test -f $target_header_dir/bits/uClibc_config.h && \
33260 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33261 $target_header_dir/bits/uClibc_config.h > /dev/null; then
33262 gcc_cv_libc_provides_ssp=yes
33264 # all versions of Bionic support stack protector
33265 elif test -f $target_header_dir/sys/cdefs.h \
33266 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33267 $target_header_dir/sys/cdefs.h > /dev/null; then
33268 gcc_cv_libc_provides_ssp=yes
33272 *-*-gnu*)
33273 # Avoid complicated tests (see
33274 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33275 # simply assert that glibc does provide this, which is true for all
33276 # realistically usable GNU/Hurd configurations.
33277 # All supported versions of musl provide it as well
33278 gcc_cv_libc_provides_ssp=yes;;
33279 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
33280 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33281 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
33282 gcc_cv_libc_provides_ssp=yes
33283 else
33284 echo "no __stack_chk_fail on this target"
33288 *) gcc_cv_libc_provides_ssp=no ;;
33289 esac
33292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33293 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33295 if test x$gcc_cv_libc_provides_ssp = xyes; then
33297 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33301 # Check whether --enable-default-ssp was given.
33302 # Check whether --enable-default-ssp was given.
33303 if test "${enable_default_ssp+set}" = set; then :
33304 enableval=$enable_default_ssp;
33305 if test x$gcc_cv_libc_provides_ssp = xyes; then
33306 case "$target" in
33307 ia64*-*-*) enable_default_ssp=no ;;
33308 *) enable_default_ssp=$enableval ;;
33309 esac
33310 else
33311 enable_default_ssp=no
33313 else
33314 enable_default_ssp=no
33317 if test x$enable_default_ssp = xyes ; then
33319 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33324 # Test for <sys/sdt.h> on the target.
33326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33327 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33328 if ${gcc_cv_sys_sdt_h+:} false; then :
33329 $as_echo_n "(cached) " >&6
33330 else
33332 gcc_cv_sys_sdt_h=no
33333 if test -f $target_header_dir/sys/sdt.h; then
33334 gcc_cv_sys_sdt_h=yes
33338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33339 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33340 if test x$gcc_cv_sys_sdt_h = xyes; then :
33343 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33348 # Check if TFmode long double should be used by default or not.
33349 # Some glibc targets used DFmode long double, but with glibc 2.4
33350 # and later they can use TFmode.
33351 case "$target" in
33352 powerpc*-*-linux* | \
33353 sparc*-*-linux* | \
33354 s390*-*-linux* | \
33355 alpha*-*-linux*)
33357 # Check whether --with-long-double-128 was given.
33358 if test "${with_long_double_128+set}" = set; then :
33359 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
33360 else
33362 case "$target" in
33363 s390*-*-linux-musl*)
33364 gcc_cv_target_ldbl128=yes
33366 powerpc*-*-linux-musl*)
33367 gcc_cv_target_ldbl128=no
33371 if test $glibc_version_major -gt 2 \
33372 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33373 gcc_cv_target_ldbl128=yes
33374 else
33376 gcc_cv_target_ldbl128=no
33377 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33378 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
33379 && gcc_cv_target_ldbl128=yes
33384 esac
33389 esac
33390 if test x$gcc_cv_target_ldbl128 = xyes; then
33392 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33396 # Check if TFmode long double target should use the IBM extended double or IEEE
33397 # 128-bit floating point formats if long doubles are 128-bits long. The long
33398 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33399 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33400 # libgcc.
33402 # Check whether --with-long-double-format was given.
33403 if test "${with_long_double_format+set}" = set; then :
33404 withval=$with_long_double_format;
33405 case "$target:$with_long_double_format" in
33406 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
33409 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
33410 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33411 case "$with_cpu" in
33412 power7 | power8 | power9 | power1*)
33416 as_fn_error $? "Configuration option --with-long-double-format is only \
33417 supported if the default cpu is power7 or newer" "$LINENO" 5
33418 with_long_double_format=""
33420 esac
33422 powerpc64*-*-linux*:*)
33423 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33424 with_long_double_format=""
33427 as_fn_error $? "Configure option --with-long-double-format is only supported \
33428 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33429 with_long_double_format=""
33431 esac
33435 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33436 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33437 gcc_cv_libc_provides_hwcap_in_tcb=no
33438 case "$target" in
33439 powerpc*-*-linux*)
33441 if test $glibc_version_major -gt 2 \
33442 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33443 gcc_cv_libc_provides_hwcap_in_tcb=yes
33446 esac
33447 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
33449 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33453 # Check if the target LIBC handles PT_GNU_STACK.
33454 gcc_cv_libc_gnustack=unknown
33455 case "$target" in
33456 mips*-*-linux-musl*)
33457 gcc_cv_libc_gnustack=yes
33459 mips*-*-linux*)
33461 if test $glibc_version_major -gt 2 \
33462 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33463 gcc_cv_libc_gnustack=yes
33466 esac
33467 if test x$gcc_cv_libc_gnustack = xyes; then
33469 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33474 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33475 gcc_cv_target_dl_iterate_phdr=unknown
33476 case "$target" in
33477 *-*-solaris2*)
33478 # <link.h> needs both a dl_iterate_phdr declaration and support for
33479 # compilation with largefile support.
33480 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
33481 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
33482 gcc_cv_target_dl_iterate_phdr=yes
33483 else
33484 gcc_cv_target_dl_iterate_phdr=no
33487 *-*-dragonfly* | *-*-freebsd*)
33488 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
33489 gcc_cv_target_dl_iterate_phdr=yes
33490 else
33491 gcc_cv_target_dl_iterate_phdr=no
33494 *-linux-musl*)
33495 gcc_cv_target_dl_iterate_phdr=yes
33497 esac
33499 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
33501 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33505 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33507 # We no longer support different GC mechanisms. Emit an error if
33508 # the user configures with --with-gc.
33510 # Check whether --with-gc was given.
33511 if test "${with_gc+set}" = set; then :
33512 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33516 # Libraries to use on the host. This will normally be set by the top
33517 # level Makefile. Here we simply capture the value for our Makefile.
33518 if test -z "${HOST_LIBS+set}"; then
33519 HOST_LIBS=
33523 # Use the system's zlib library.
33525 # Use the system's zlib library.
33526 zlibdir="-L\$(top_builddir)/../zlib"
33527 zlibinc="-I\$(top_srcdir)/../zlib"
33529 # Check whether --with-system-zlib was given.
33530 if test "${with_system_zlib+set}" = set; then :
33531 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
33532 zlibdir=
33533 zlibinc=
33543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33544 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33545 # Check whether --enable-maintainer-mode was given.
33546 if test "${enable_maintainer_mode+set}" = set; then :
33547 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
33548 else
33549 maintainer_mode=no
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33554 $as_echo "$maintainer_mode" >&6; }
33556 if test "$maintainer_mode" = "yes"; then
33557 MAINT=''
33558 else
33559 MAINT='#'
33562 if test -z "$CTAGS"; then
33563 CTAGS=ctags
33566 if test -z "$ETAGS"; then
33567 ETAGS=etags
33570 if test -z "$CSCOPE"; then
33571 CSCOPE=cscope
33576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33577 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33578 # Check whether --enable-link-mutex was given.
33579 if test "${enable_link_mutex+set}" = set; then :
33580 enableval=$enable_link_mutex; do_link_mutex=$enableval
33581 else
33582 do_link_mutex=no
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33586 $as_echo "$do_link_mutex" >&6; }
33588 if test "$do_link_mutex" = "yes"; then
33589 DO_LINK_MUTEX=true
33590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&5
33591 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33592 else
33593 DO_LINK_MUTEX=false
33598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33599 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33600 # Check whether --enable-link-serialization was given.
33601 if test "${enable_link_serialization+set}" = set; then :
33602 enableval=$enable_link_serialization; do_link_serialization=$enableval
33603 else
33604 do_link_serialization=no
33607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33608 $as_echo "$do_link_serialization" >&6; }
33610 case "$do_link_serialization" in
33611 yes)
33612 DO_LINK_SERIALIZATION=1;;
33613 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
33614 DO_LINK_SERIALIZATION=$do_link_serialization;;
33616 DO_LINK_SERIALIZATION=;;
33618 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33619 esac
33622 # --------------
33623 # Language hooks
33624 # --------------
33626 # Make empty files to contain the specs and options for each language.
33627 # Then add #include lines to for a compiler that has specs and/or options.
33629 subdirs=
33630 lang_opt_files=
33631 lang_specs_files=
33632 lang_tree_files=
33633 # These (without "all_") are set in each config-lang.in.
33634 # `language' must be a single word so is spelled singularly.
33635 all_languages=
33636 all_compilers=
33637 all_outputs='Makefile'
33638 # List of language configure and makefile fragments.
33639 all_lang_configurefrags=
33640 all_lang_makefrags=
33641 # Additional files for gengtype
33642 all_gtfiles="$target_gtfiles"
33644 # These are the languages that are set in --enable-languages,
33645 # and are available in the GCC tree.
33646 all_selected_languages=
33648 # Add the language fragments.
33649 # Languages are added via two mechanisms. Some information must be
33650 # recorded in makefile variables, these are defined in config-lang.in.
33651 # We accumulate them and plug them into the main Makefile.
33652 # The other mechanism is a set of hooks for each of the main targets
33653 # like `clean', `install', etc.
33655 language_hooks="Make-hooks"
33657 for lang in ${srcdir}/*/config-lang.in
33659 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33661 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33662 if test "x$lang_alias" = x
33663 then
33664 echo "$lang doesn't set \$language." 1>&2
33665 exit 1
33667 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33668 subdirs="$subdirs $subdir"
33670 # $gcc_subdir is where the gcc integration files are to be found
33671 # for a language, both for internal compiler purposes (compiler
33672 # sources implementing front-end to GCC tree converters), and for
33673 # build infrastructure purposes (Make-lang.in, etc.)
33675 # This will be <subdir> (relative to $srcdir) if a line like
33676 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33677 # is found in <langdir>/config-lang.in, and will remain <langdir>
33678 # otherwise.
33680 # Except for the language alias (fetched above), the regular
33681 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33682 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33683 # only this and the language alias.
33685 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33686 if [ "$gcc_subdir" = "" ]; then
33687 gcc_subdir="$subdir"
33690 case ",$enable_languages," in
33691 *,$lang_alias,*)
33692 all_selected_languages="$all_selected_languages $lang_alias"
33693 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
33694 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33697 esac
33699 language=
33700 boot_language=
33701 compilers=
33702 outputs=
33703 gtfiles=
33704 subdir_requires=
33705 . ${srcdir}/$gcc_subdir/config-lang.in
33706 if test "x$language" = x
33707 then
33708 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33709 exit 1
33712 ok=:
33713 case ",$enable_languages," in
33714 *,$lang_alias,*) ;;
33716 for i in $subdir_requires; do
33717 test -f "${srcdir}/$i/config-lang.in" && continue
33718 ok=false
33719 break
33720 done
33722 esac
33723 $ok || continue
33725 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33726 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
33727 # Put c/Make-lang.in fragment first to match serialization languages order.
33728 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33729 else
33730 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33732 if test -f $srcdir/$gcc_subdir/lang.opt; then
33733 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33734 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33736 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
33737 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33739 all_languages="$all_languages $language"
33740 all_compilers="$all_compilers $compilers"
33741 all_outputs="$all_outputs $outputs"
33742 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
33743 case ",$enable_languages," in
33744 *,lto,*)
33746 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33748 enable_lto=yes
33751 *) ;;
33752 esac
33753 done
33755 check_languages=
33756 for language in $all_selected_languages
33758 check_languages="$check_languages check-$language"
33759 done
33761 selftest_languages=
33762 for language in $all_selected_languages
33764 selftest_languages="$selftest_languages selftest-$language"
33765 done
33767 # We link each language in with a set of hooks, reached indirectly via
33768 # lang.${target}. Only do so for selected languages.
33770 rm -f Make-hooks
33771 touch Make-hooks
33772 target_list="all.cross start.encap rest.encap tags \
33773 install-common install-man install-info install-dvi install-pdf \
33774 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33775 mostlyclean clean distclean maintainer-clean install-plugin"
33777 for t in $target_list
33780 for lang in $all_selected_languages
33782 x="$x $lang.$t"
33783 done
33784 echo "lang.$t: $x" >> Make-hooks
33785 done
33787 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33788 echo "SERIAL_LIST =" >> Make-hooks
33789 echo else >> Make-hooks
33790 lang_cnt=0
33791 lang_list=
33792 prev=c
33793 serialization_languages=c
33794 for lang in $all_selected_languages
33796 test $lang = c && continue
33797 if test $lang = lto; then
33798 serialization_languages="$serialization_languages lto1 lto2"
33799 else
33800 serialization_languages="$serialization_languages $lang"
33802 done
33803 for lang in $serialization_languages
33805 test $lang = c && continue
33806 lang_cnt=`expr $lang_cnt + 1`
33807 lang_list=" $prev$lang_list"
33808 prev=${lang}
33809 done
33810 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33811 echo endif >> Make-hooks
33812 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33813 echo "INDEX.c = 0" >> Make-hooks
33814 lang_idx=1
33815 for lang in $serialization_languages
33817 test $lang = c && continue
33818 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33819 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33820 lang_cnt=`expr $lang_cnt - 1`
33821 lang_idx=`expr $lang_idx + 1`
33822 done
33824 # --------
33825 # Option include files
33826 # --------
33828 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
33829 option_includes="option-includes.mk"
33832 # --------
33833 # UNSORTED
33834 # --------
33836 # Create .gdbinit.
33838 echo "dir ." > .gdbinit
33839 echo "dir ${srcdir}" >> .gdbinit
33840 if test x$gdb_needs_out_file_path = xyes
33841 then
33842 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
33844 if test "x$subdirs" != x; then
33845 for s in $subdirs
33847 echo "dir ${srcdir}/$s" >> .gdbinit
33848 done
33850 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
33851 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
33853 # Put a breakpoint on __asan_report_error to help with debugging buffer
33854 # overflow.
33855 case "$CFLAGS" in
33856 *-fsanitize=address*)
33857 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
33859 esac
33861 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
33865 # Find a directory in which to install a shared libgcc.
33867 # Check whether --enable-version-specific-runtime-libs was given.
33868 if test "${enable_version_specific_runtime_libs+set}" = set; then :
33869 enableval=$enable_version_specific_runtime_libs;
33873 # Substitute configuration variables
33946 # Echo link setup.
33947 if test x${build} = x${host} ; then
33948 if test x${host} = x${target} ; then
33949 echo "Links are now set up to build a native compiler for ${target}." 1>&2
33950 else
33951 echo "Links are now set up to build a cross-compiler" 1>&2
33952 echo " from ${host} to ${target}." 1>&2
33954 else
33955 if test x${host} = x${target} ; then
33956 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
33957 echo " for ${target}." 1>&2
33958 else
33959 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
33960 echo " from ${host} to ${target}." 1>&2
33969 if test "x${ISLLIBS}" != "x" ; then
33971 $as_echo "#define HAVE_isl 1" >>confdefs.h
33975 # Check for plugin support
33976 # Check whether --enable-plugin was given.
33977 if test "${enable_plugin+set}" = set; then :
33978 enableval=$enable_plugin; enable_plugin=$enableval
33979 else
33980 enable_plugin=yes; default_plugin=yes
33984 pluginlibs=
33985 plugin_check=yes
33987 case "${host}" in
33988 *-*-mingw*)
33989 # Since plugin support under MinGW is not as straightforward as on
33990 # other platforms (e.g., we have to link import library, etc), we
33991 # only enable it if explicitly requested.
33992 if test x"$default_plugin" = x"yes"; then
33993 enable_plugin=no
33994 elif test x"$enable_plugin" = x"yes"; then
33995 # Use make's target variable to derive import library name.
33996 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
33997 plugin_check=no
34000 *-*-darwin*)
34001 if test x$build = x$host; then
34002 export_sym_check="nm${exeext} -g"
34003 elif test x$host = x$target; then
34004 export_sym_check="$gcc_cv_nm -g"
34005 else
34006 export_sym_check=
34010 if test x$build = x$host; then
34011 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34012 elif test x$host = x$target; then
34013 export_sym_check="$gcc_cv_objdump -T"
34014 else
34015 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34018 esac
34020 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
34022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
34023 $as_echo_n "checking for exported symbols... " >&6; }
34024 if test "x$export_sym_check" != x; then
34025 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
34026 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34027 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34028 : # No need to use a flag
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34030 $as_echo "yes" >&6; }
34031 else
34032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34033 $as_echo "yes" >&6; }
34034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
34035 $as_echo_n "checking for -rdynamic... " >&6; }
34036 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34037 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34038 plugin_rdynamic=yes
34039 pluginlibs="-rdynamic"
34040 else
34041 plugin_rdynamic=no
34042 enable_plugin=no
34044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
34045 $as_echo "$plugin_rdynamic" >&6; }
34047 else
34048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
34049 $as_echo "unable to check" >&6; }
34052 # Check -ldl
34053 saved_LIBS="$LIBS"
34054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34055 $as_echo_n "checking for library containing dlopen... " >&6; }
34056 if ${ac_cv_search_dlopen+:} false; then :
34057 $as_echo_n "(cached) " >&6
34058 else
34059 ac_func_search_save_LIBS=$LIBS
34060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34061 /* end confdefs.h. */
34063 /* Override any GCC internal prototype to avoid an error.
34064 Use char because int might match the return type of a GCC
34065 builtin and then its argument prototype would still apply. */
34066 #ifdef __cplusplus
34067 extern "C"
34068 #endif
34069 char dlopen ();
34071 main ()
34073 return dlopen ();
34075 return 0;
34077 _ACEOF
34078 for ac_lib in '' dl; do
34079 if test -z "$ac_lib"; then
34080 ac_res="none required"
34081 else
34082 ac_res=-l$ac_lib
34083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34085 if ac_fn_cxx_try_link "$LINENO"; then :
34086 ac_cv_search_dlopen=$ac_res
34088 rm -f core conftest.err conftest.$ac_objext \
34089 conftest$ac_exeext
34090 if ${ac_cv_search_dlopen+:} false; then :
34091 break
34093 done
34094 if ${ac_cv_search_dlopen+:} false; then :
34096 else
34097 ac_cv_search_dlopen=no
34099 rm conftest.$ac_ext
34100 LIBS=$ac_func_search_save_LIBS
34102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34103 $as_echo "$ac_cv_search_dlopen" >&6; }
34104 ac_res=$ac_cv_search_dlopen
34105 if test "$ac_res" != no; then :
34106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34110 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
34111 pluginlibs="$pluginlibs -ldl"
34113 LIBS="$saved_LIBS"
34115 # Check that we can build shared objects with -fPIC -shared
34116 saved_LDFLAGS="$LDFLAGS"
34117 saved_CFLAGS="$CFLAGS"
34118 saved_CXXFLAGS="$CXXFLAGS"
34119 case "${host}" in
34120 *-*-darwin*)
34121 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34122 CFLAGS="$CFLAGS -fPIC"
34123 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34124 CXXFLAGS="$CXXFLAGS -fPIC"
34125 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
34128 CFLAGS="$CFLAGS -fPIC"
34129 CXXFLAGS="$CXXFLAGS -fPIC"
34130 LDFLAGS="$LDFLAGS -fPIC -shared"
34132 esac
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34134 $as_echo_n "checking for -fPIC -shared... " >&6; }
34135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34136 /* end confdefs.h. */
34137 extern int X;
34139 main ()
34141 return X == 0;
34143 return 0;
34145 _ACEOF
34146 if ac_fn_cxx_try_link "$LINENO"; then :
34147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34148 $as_echo "yes" >&6; }; have_pic_shared=yes
34149 else
34150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34151 $as_echo "no" >&6; }; have_pic_shared=no
34153 rm -f core conftest.err conftest.$ac_objext \
34154 conftest$ac_exeext conftest.$ac_ext
34155 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
34156 pluginlibs=
34157 enable_plugin=no
34159 LDFLAGS="$saved_LDFLAGS"
34160 CFLAGS="$saved_CFLAGS"
34161 CXXFLAGS="$saved_CXXFLAGS"
34163 # If plugin support had been requested but not available, fail.
34164 if test x"$enable_plugin" = x"no" ; then
34165 if test x"$default_plugin" != x"yes"; then
34166 as_fn_error $? "
34167 Building GCC with plugin support requires a host that supports
34168 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34175 if test x"$enable_plugin" = x"yes"; then
34177 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34182 # Enable --enable-host-shared
34183 # Check whether --enable-host-shared was given.
34184 if test "${enable_host_shared+set}" = set; then :
34185 enableval=$enable_host_shared;
34190 # Enable --enable-host-pie
34191 # Check whether --enable-host-pie was given.
34192 if test "${enable_host_pie+set}" = set; then :
34193 enableval=$enable_host_pie;
34198 # Enable --enable-host-bind-now
34199 # Check whether --enable-host-bind-now was given.
34200 if test "${enable_host_bind_now+set}" = set; then :
34201 enableval=$enable_host_bind_now;
34206 # Check whether --enable-libquadmath-support was given.
34207 if test "${enable_libquadmath_support+set}" = set; then :
34208 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
34209 else
34210 ENABLE_LIBQUADMATH_SUPPORT=yes
34213 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34215 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34220 # Specify what hash style to use by default.
34222 # Check whether --with-linker-hash-style was given.
34223 if test "${with_linker_hash_style+set}" = set; then :
34224 withval=$with_linker_hash_style; case x"$withval" in
34225 xsysv)
34226 LINKER_HASH_STYLE=sysv
34228 xgnu)
34229 LINKER_HASH_STYLE=gnu
34231 xboth)
34232 LINKER_HASH_STYLE=both
34235 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34237 esac
34238 else
34239 LINKER_HASH_STYLE=''
34242 if test x"${LINKER_HASH_STYLE}" != x; then
34244 cat >>confdefs.h <<_ACEOF
34245 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34246 _ACEOF
34250 # Specify what should be the default of -fdiagnostics-color option.
34252 # Check whether --with-diagnostics-color was given.
34253 if test "${with_diagnostics_color+set}" = set; then :
34254 withval=$with_diagnostics_color; case x"$withval" in
34255 xnever)
34256 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
34258 xauto)
34259 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34261 xauto-if-env)
34262 DIAGNOSTICS_COLOR_DEFAULT=-1
34264 xalways)
34265 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
34268 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34270 esac
34271 else
34272 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34276 cat >>confdefs.h <<_ACEOF
34277 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34278 _ACEOF
34281 # Specify what should be the default of -fdiagnostics-urls option.
34283 # Check whether --with-diagnostics-urls was given.
34284 if test "${with_diagnostics_urls+set}" = set; then :
34285 withval=$with_diagnostics_urls; case x"$withval" in
34286 xnever)
34287 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
34289 xauto)
34290 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34292 xauto-if-env)
34293 DIAGNOSTICS_URLS_DEFAULT=-1
34295 xalways)
34296 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
34299 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34301 esac
34302 else
34303 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34307 cat >>confdefs.h <<_ACEOF
34308 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34309 _ACEOF
34312 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34313 # of jit/jit-playback.cc.
34314 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34315 echo "gcc_driver_version: ${gcc_driver_version}"
34316 cat > gcc-driver-name.h <<EOF
34317 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34320 # Check whether --enable-default-pie was given.
34321 # Check whether --enable-default-pie was given.
34322 if test "${enable_default_pie+set}" = set; then :
34323 enableval=$enable_default_pie; enable_default_pie=$enableval
34324 else
34325 enable_default_pie=no
34328 if test x$enable_default_pie = xyes ; then
34330 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34335 # Check if -fno-PIE works.
34336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34337 $as_echo_n "checking for -fno-PIE option... " >&6; }
34338 if ${gcc_cv_c_no_fpie+:} false; then :
34339 $as_echo_n "(cached) " >&6
34340 else
34341 saved_CXXFLAGS="$CXXFLAGS"
34342 CXXFLAGS="$CXXFLAGS -fno-PIE"
34343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34344 /* end confdefs.h. */
34345 int main(void) {return 0;}
34346 _ACEOF
34347 if ac_fn_cxx_try_compile "$LINENO"; then :
34348 gcc_cv_c_no_fpie=yes
34349 else
34350 gcc_cv_c_no_fpie=no
34352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34353 CXXFLAGS="$saved_CXXFLAGS"
34355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34356 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34358 # Check if -no-pie works.
34359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34360 $as_echo_n "checking for -no-pie option... " >&6; }
34361 if ${gcc_cv_no_pie+:} false; then :
34362 $as_echo_n "(cached) " >&6
34363 else
34364 saved_LDFLAGS="$LDFLAGS"
34365 LDFLAGS="$LDFLAGS -no-pie"
34366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34367 /* end confdefs.h. */
34368 int main(void) {return 0;}
34369 _ACEOF
34370 if ac_fn_cxx_try_link "$LINENO"; then :
34371 gcc_cv_no_pie=yes
34372 else
34373 gcc_cv_no_pie=no
34375 rm -f core conftest.err conftest.$ac_objext \
34376 conftest$ac_exeext conftest.$ac_ext
34377 LDFLAGS="$saved_LDFLAGS"
34379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34380 $as_echo "$gcc_cv_no_pie" >&6; }
34382 if test x$enable_host_shared = xyes; then
34383 PICFLAG=-fPIC
34384 elif test x$enable_host_pie = xyes; then
34385 PICFLAG=-fPIE
34386 elif test x$gcc_cv_c_no_fpie = xyes; then
34387 PICFLAG=-fno-PIE
34388 else
34389 PICFLAG=
34394 if test x$enable_host_pie = xyes; then
34395 LD_PICFLAG=-pie
34396 elif test x$gcc_cv_no_pie = xyes; then
34397 LD_PICFLAG=-no-pie
34398 else
34399 LD_PICFLAG=
34402 if test x$enable_host_bind_now = xyes; then
34403 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
34408 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34409 # Check whether --enable-cet was given.
34410 if test "${enable_cet+set}" = set; then :
34411 enableval=$enable_cet;
34412 case "$enableval" in
34413 yes|no|auto) ;;
34414 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34415 esac
34417 else
34418 enable_cet=auto
34422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34423 $as_echo_n "checking for CET support... " >&6; }
34425 case "$host" in
34426 i[34567]86-*-linux* | x86_64-*-linux*)
34427 may_have_cet=yes
34428 cet_save_CFLAGS="$CFLAGS"
34429 CFLAGS="$CFLAGS -fcf-protection"
34430 case "$enable_cet" in
34431 auto)
34432 # Check if target supports multi-byte NOPs
34433 # and if compiler and assembler support CET.
34434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34435 /* end confdefs.h. */
34438 main ()
34441 #if !defined(__SSE2__)
34442 #error target does not support multi-byte NOPs
34443 #else
34444 asm ("setssbsy");
34445 #endif
34448 return 0;
34450 _ACEOF
34451 if ac_fn_cxx_try_compile "$LINENO"; then :
34452 enable_cet=yes
34453 else
34454 enable_cet=no
34456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34458 yes)
34459 # Check if compiler and assembler support CET.
34460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34461 /* end confdefs.h. */
34464 main ()
34466 asm ("setssbsy");
34468 return 0;
34470 _ACEOF
34471 if ac_fn_cxx_try_compile "$LINENO"; then :
34472 support_cet=yes
34473 else
34474 support_cet=no
34476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34477 if test $support_cet = "no"; then
34478 if test x$enable_bootstrap != xno \
34479 && test -z "${with_build_subdir}" \
34480 && (test ! -f ../stage_current \
34481 || test `cat ../stage_current` != "stage1"); then
34482 # Require CET support only for the final GCC build.
34483 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34484 else
34485 # Don't enable CET without CET support for non-bootstrap
34486 # build, in stage1 nor for build support.
34487 enable_cet=no
34491 esac
34492 CFLAGS="$cet_save_CFLAGS"
34495 may_have_cet=no
34496 enable_cet=no
34498 esac
34500 cet_save_CFLAGS="$CFLAGS"
34501 CFLAGS="$CFLAGS -fcf-protection=none"
34502 cet_save_LDFLAGS="$LDFLAGS"
34503 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34504 if test x$may_have_cet = xyes; then
34505 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34507 /* end confdefs.h. */
34510 main ()
34512 return 0;
34514 return 0;
34516 _ACEOF
34517 if ac_fn_cxx_try_link "$LINENO"; then :
34518 may_have_cet=yes
34519 else
34520 may_have_cet=no
34522 rm -f core conftest.err conftest.$ac_objext \
34523 conftest$ac_exeext conftest.$ac_ext
34526 if test x$may_have_cet = xyes; then
34527 if test x$cross_compiling = xno; then
34528 if test "$cross_compiling" = yes; then :
34529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34531 as_fn_error $? "cannot run test program while cross compiling
34532 See \`config.log' for more details" "$LINENO" 5; }
34533 else
34534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34535 /* end confdefs.h. */
34538 main ()
34540 asm ("endbr32");
34541 return 0;
34544 _ACEOF
34545 if ac_fn_cxx_try_run "$LINENO"; then :
34546 have_multi_byte_nop=yes
34547 else
34548 have_multi_byte_nop=no
34550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34551 conftest.$ac_objext conftest.beam conftest.$ac_ext
34554 have_cet=no
34555 if test x$have_multi_byte_nop = xyes; then
34556 if test "$cross_compiling" = yes; then :
34557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34559 as_fn_error $? "cannot run test program while cross compiling
34560 See \`config.log' for more details" "$LINENO" 5; }
34561 else
34562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34563 /* end confdefs.h. */
34565 static void
34566 foo (void)
34570 static void
34571 __attribute__ ((noinline, noclone))
34572 xxx (void (*f) (void))
34574 f ();
34577 static void
34578 __attribute__ ((noinline, noclone))
34579 bar (void)
34581 xxx (foo);
34585 main ()
34587 bar ();
34588 return 0;
34591 _ACEOF
34592 if ac_fn_cxx_try_run "$LINENO"; then :
34593 have_cet=no
34594 else
34595 have_cet=yes
34597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34598 conftest.$ac_objext conftest.beam conftest.$ac_ext
34602 if test x$enable_cet = xno -a x$have_cet = xyes; then
34603 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34606 else
34607 # Enable CET in cross compiler if possible so that it will run on both
34608 # CET and non-CET hosts.
34609 have_cet=yes
34611 if test x$enable_cet = xyes; then
34612 CET_HOST_FLAGS="-fcf-protection"
34613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34614 $as_echo "yes" >&6; }
34615 else
34616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34617 $as_echo "no" >&6; }
34619 CFLAGS="$cet_save_CFLAGS"
34620 LDFLAGS="$cet_save_LDFLAGS"
34622 case x$enable_languages in
34623 *jit*)
34626 CET_HOST_FLAGS=
34628 esac
34631 # Check linker supports '-z bndplt'
34632 ld_bndplt_support=no
34633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34634 $as_echo_n "checking linker -z bndplt option... " >&6; }
34635 if test x"$ld_is_gold" = xno; then
34636 if test $in_tree_ld = yes ; then
34637 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
34638 ld_bndplt_support=yes
34640 elif test x$gcc_cv_ld != x; then
34641 # Check if linker supports -z bndplt option
34642 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
34643 ld_bndplt_support=yes
34647 if test x"$ld_bndplt_support" = xyes; then
34649 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34653 $as_echo "$ld_bndplt_support" >&6; }
34655 # Check linker supports '--push-state'/'--pop-state'
34656 ld_pushpopstate_support=no
34657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34658 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34659 if test x"$ld_is_gold" = xno; then
34660 if test $in_tree_ld = yes ; then
34661 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
34662 ld_pushpopstate_support=yes
34664 elif test x$gcc_cv_ld != x; then
34665 # Check if linker supports --push-state/--pop-state options
34666 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
34667 ld_pushpopstate_support=yes
34671 if test x"$ld_pushpopstate_support" = xyes; then
34673 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34677 $as_echo "$ld_pushpopstate_support" >&6; }
34679 # On s390, float_t has historically been statically defined as double for no
34680 # good reason. To comply with the C standard in the light of this definition,
34681 # gcc has evaluated float expressions in double precision when in
34682 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34683 # a smooth transition towards the new model used by most architectures, where
34684 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34685 # float_t from that, this behavior can be configured with
34686 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34687 # the old model. When omitted, native builds and cross compiles that have target
34688 # libc headers will detect whether libc clamps float_t to double and in that
34689 # case maintain the old model. Otherwise, they will default to the new model.
34690 # Check whether --enable-s390-excess-float-precision was given.
34691 if test "${enable_s390_excess_float_precision+set}" = set; then :
34692 enableval=$enable_s390_excess_float_precision;
34693 else
34694 enable_s390_excess_float_precision=auto
34698 case $target in
34699 s390*-linux*)
34700 if test x"$enable_s390_excess_float_precision" = xauto; then
34701 # Can we autodetect the behavior of the target libc?
34702 if test "$target" = "$host" -a "$host" = "$build"; then
34703 enable_s390_excess_float_precision=autodetect
34704 elif test "x$with_headers" != xno; then
34705 # cross build. are target headers available?
34706 # carefully coerce the build-system compiler to use target headers
34707 saved_CXXFLAGS="$CXXFLAGS"
34708 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34709 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34710 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34712 /* end confdefs.h. */
34714 #include <math.h>
34716 _ACEOF
34717 if ac_fn_cxx_try_compile "$LINENO"; then :
34718 enable_s390_excess_float_precision=autodetect
34720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34721 CXXFLAGS="$saved_CXXFLAGS"
34724 if test x"$enable_s390_excess_float_precision" = xautodetect; then
34725 saved_CXXFLAGS="$CXXFLAGS"
34726 if ! test "$target" = "$host" -a "$host" = "$build"; then
34727 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34728 unset CROSS_TEST_CXXFLAGS
34730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34731 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34732 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
34733 $as_echo_n "(cached) " >&6
34734 else
34736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34737 /* end confdefs.h. */
34739 #define __FLT_EVAL_METHOD__ 0
34740 #include <math.h>
34741 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34743 _ACEOF
34744 if ac_fn_cxx_try_compile "$LINENO"; then :
34745 gcc_cv_float_t_clamped_to_double=yes
34746 else
34747 gcc_cv_float_t_clamped_to_double=no
34749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34752 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34753 CXXFLAGS="$saved_CXXFLAGS"
34754 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
34755 else
34756 # no way to detect behavior of target libc, default to new model
34757 enable_s390_excess_float_precision=no
34762 if test x"$enable_s390_excess_float_precision" = xyes; then
34764 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34768 esac
34770 # Check if the linker supports '-z now'
34771 ld_now_support=no
34772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34773 $as_echo_n "checking linker -z now option... " >&6; }
34774 if test x"$ld_is_gold" = xyes; then
34775 ld_now_support=yes
34776 elif test $in_tree_ld = yes ; then
34777 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
34778 ld_now_support=yes
34780 elif test x$gcc_cv_ld != x; then
34781 # Check if linker supports -z now
34782 if $gcc_cv_ld --help 2>&1 | grep -- '-z now' > /dev/null; then
34783 ld_now_support=yes
34787 cat >>confdefs.h <<_ACEOF
34788 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
34789 _ACEOF
34791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
34792 $as_echo "$ld_now_support" >&6; }
34794 # Check if the linker supports '-z relro'
34795 ld_relro_support=no
34796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
34797 $as_echo_n "checking linker -z relro option... " >&6; }
34798 if test x"$ld_is_gold" = xyes; then
34799 ld_relro_support=yes
34800 elif test $in_tree_ld = yes ; then
34801 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2; then
34802 ld_relro_support=yes
34804 elif test x$gcc_cv_ld != x; then
34805 # Check if linker supports -z relro
34806 if $gcc_cv_ld --help 2>&1 | grep -- '-z relro' > /dev/null; then
34807 ld_relro_support=yes
34811 cat >>confdefs.h <<_ACEOF
34812 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
34813 _ACEOF
34815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
34816 $as_echo "$ld_relro_support" >&6; }
34818 case $target_os in
34819 linux* | gnu*)
34820 # -fhardened is only supported on GNU/Linux.
34821 fhardened_support=yes
34824 fhardened_support=no
34826 esac
34829 cat >>confdefs.h <<_ACEOF
34830 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
34831 _ACEOF
34833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
34834 $as_echo "$fhardened_support" >&6; }
34836 # Configure the subdirectories
34837 # AC_CONFIG_SUBDIRS($subdirs)
34839 # Create the Makefile
34840 # and configure language subdirectories
34841 ac_config_files="$ac_config_files $all_outputs"
34844 ac_config_commands="$ac_config_commands default"
34846 cat >confcache <<\_ACEOF
34847 # This file is a shell script that caches the results of configure
34848 # tests run on this system so they can be shared between configure
34849 # scripts and configure runs, see configure's option --config-cache.
34850 # It is not useful on other systems. If it contains results you don't
34851 # want to keep, you may remove or edit it.
34853 # config.status only pays attention to the cache file if you give it
34854 # the --recheck option to rerun configure.
34856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34858 # following values.
34860 _ACEOF
34862 # The following way of writing the cache mishandles newlines in values,
34863 # but we know of no workaround that is simple, portable, and efficient.
34864 # So, we kill variables containing newlines.
34865 # Ultrix sh set writes to stderr and can't be redirected directly,
34866 # and sets the high bit in the cache file unless we assign to the vars.
34868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34869 eval ac_val=\$$ac_var
34870 case $ac_val in #(
34871 *${as_nl}*)
34872 case $ac_var in #(
34873 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34875 esac
34876 case $ac_var in #(
34877 _ | IFS | as_nl) ;; #(
34878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34879 *) { eval $ac_var=; unset $ac_var;} ;;
34880 esac ;;
34881 esac
34882 done
34884 (set) 2>&1 |
34885 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34886 *${as_nl}ac_space=\ *)
34887 # `set' does not quote correctly, so add quotes: double-quote
34888 # substitution turns \\\\ into \\, and sed turns \\ into \.
34889 sed -n \
34890 "s/'/'\\\\''/g;
34891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34892 ;; #(
34894 # `set' quotes correctly as required by POSIX, so do not add quotes.
34895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34897 esac |
34898 sort
34900 sed '
34901 /^ac_cv_env_/b end
34902 t clear
34903 :clear
34904 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34905 t end
34906 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34907 :end' >>confcache
34908 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34909 if test -w "$cache_file"; then
34910 if test "x$cache_file" != "x/dev/null"; then
34911 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34912 $as_echo "$as_me: updating cache $cache_file" >&6;}
34913 if test ! -f "$cache_file" || test -h "$cache_file"; then
34914 cat confcache >"$cache_file"
34915 else
34916 case $cache_file in #(
34917 */* | ?:*)
34918 mv -f confcache "$cache_file"$$ &&
34919 mv -f "$cache_file"$$ "$cache_file" ;; #(
34921 mv -f confcache "$cache_file" ;;
34922 esac
34925 else
34926 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34927 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34930 rm -f confcache
34932 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34933 # Let make expand exec_prefix.
34934 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34936 DEFS=-DHAVE_CONFIG_H
34938 ac_libobjs=
34939 ac_ltlibobjs=
34941 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34942 # 1. Remove the extension, and $U if already installed.
34943 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34944 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34945 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34946 # will be set to the directory where LIBOBJS objects are built.
34947 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34948 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34949 done
34950 LIBOBJS=$ac_libobjs
34952 LTLIBOBJS=$ac_ltlibobjs
34956 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
34957 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
34958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34961 : "${CONFIG_STATUS=./config.status}"
34962 ac_write_fail=0
34963 ac_clean_files_save=$ac_clean_files
34964 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34965 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34966 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34967 as_write_fail=0
34968 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34969 #! $SHELL
34970 # Generated by $as_me.
34971 # Run this file to recreate the current configuration.
34972 # Compiler output produced by configure, useful for debugging
34973 # configure, is in config.log if it exists.
34975 debug=false
34976 ac_cs_recheck=false
34977 ac_cs_silent=false
34979 SHELL=\${CONFIG_SHELL-$SHELL}
34980 export SHELL
34981 _ASEOF
34982 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34983 ## -------------------- ##
34984 ## M4sh Initialization. ##
34985 ## -------------------- ##
34987 # Be more Bourne compatible
34988 DUALCASE=1; export DUALCASE # for MKS sh
34989 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
34990 emulate sh
34991 NULLCMD=:
34992 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34993 # is contrary to our usage. Disable this feature.
34994 alias -g '${1+"$@"}'='"$@"'
34995 setopt NO_GLOB_SUBST
34996 else
34997 case `(set -o) 2>/dev/null` in #(
34998 *posix*) :
34999 set -o posix ;; #(
35000 *) :
35002 esac
35006 as_nl='
35008 export as_nl
35009 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35010 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35011 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35012 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35013 # Prefer a ksh shell builtin over an external printf program on Solaris,
35014 # but without wasting forks for bash or zsh.
35015 if test -z "$BASH_VERSION$ZSH_VERSION" \
35016 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35017 as_echo='print -r --'
35018 as_echo_n='print -rn --'
35019 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35020 as_echo='printf %s\n'
35021 as_echo_n='printf %s'
35022 else
35023 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35024 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35025 as_echo_n='/usr/ucb/echo -n'
35026 else
35027 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35028 as_echo_n_body='eval
35029 arg=$1;
35030 case $arg in #(
35031 *"$as_nl"*)
35032 expr "X$arg" : "X\\(.*\\)$as_nl";
35033 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35034 esac;
35035 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35037 export as_echo_n_body
35038 as_echo_n='sh -c $as_echo_n_body as_echo'
35040 export as_echo_body
35041 as_echo='sh -c $as_echo_body as_echo'
35044 # The user is always right.
35045 if test "${PATH_SEPARATOR+set}" != set; then
35046 PATH_SEPARATOR=:
35047 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35048 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35049 PATH_SEPARATOR=';'
35054 # IFS
35055 # We need space, tab and new line, in precisely that order. Quoting is
35056 # there to prevent editors from complaining about space-tab.
35057 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35058 # splitting by setting IFS to empty value.)
35059 IFS=" "" $as_nl"
35061 # Find who we are. Look in the path if we contain no directory separator.
35062 as_myself=
35063 case $0 in #((
35064 *[\\/]* ) as_myself=$0 ;;
35065 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35066 for as_dir in $PATH
35068 IFS=$as_save_IFS
35069 test -z "$as_dir" && as_dir=.
35070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35071 done
35072 IFS=$as_save_IFS
35075 esac
35076 # We did not find ourselves, most probably we were run as `sh COMMAND'
35077 # in which case we are not to be found in the path.
35078 if test "x$as_myself" = x; then
35079 as_myself=$0
35081 if test ! -f "$as_myself"; then
35082 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35083 exit 1
35086 # Unset variables that we do not need and which cause bugs (e.g. in
35087 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35088 # suppresses any "Segmentation fault" message there. '((' could
35089 # trigger a bug in pdksh 5.2.14.
35090 for as_var in BASH_ENV ENV MAIL MAILPATH
35091 do eval test x\${$as_var+set} = xset \
35092 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35093 done
35094 PS1='$ '
35095 PS2='> '
35096 PS4='+ '
35098 # NLS nuisances.
35099 LC_ALL=C
35100 export LC_ALL
35101 LANGUAGE=C
35102 export LANGUAGE
35104 # CDPATH.
35105 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35108 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35109 # ----------------------------------------
35110 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35111 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35112 # script with STATUS, using 1 if that was 0.
35113 as_fn_error ()
35115 as_status=$1; test $as_status -eq 0 && as_status=1
35116 if test "$4"; then
35117 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35118 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35120 $as_echo "$as_me: error: $2" >&2
35121 as_fn_exit $as_status
35122 } # as_fn_error
35125 # as_fn_set_status STATUS
35126 # -----------------------
35127 # Set $? to STATUS, without forking.
35128 as_fn_set_status ()
35130 return $1
35131 } # as_fn_set_status
35133 # as_fn_exit STATUS
35134 # -----------------
35135 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35136 as_fn_exit ()
35138 set +e
35139 as_fn_set_status $1
35140 exit $1
35141 } # as_fn_exit
35143 # as_fn_unset VAR
35144 # ---------------
35145 # Portably unset VAR.
35146 as_fn_unset ()
35148 { eval $1=; unset $1;}
35150 as_unset=as_fn_unset
35151 # as_fn_append VAR VALUE
35152 # ----------------------
35153 # Append the text in VALUE to the end of the definition contained in VAR. Take
35154 # advantage of any shell optimizations that allow amortized linear growth over
35155 # repeated appends, instead of the typical quadratic growth present in naive
35156 # implementations.
35157 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35158 eval 'as_fn_append ()
35160 eval $1+=\$2
35162 else
35163 as_fn_append ()
35165 eval $1=\$$1\$2
35167 fi # as_fn_append
35169 # as_fn_arith ARG...
35170 # ------------------
35171 # Perform arithmetic evaluation on the ARGs, and store the result in the
35172 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35173 # must be portable across $(()) and expr.
35174 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35175 eval 'as_fn_arith ()
35177 as_val=$(( $* ))
35179 else
35180 as_fn_arith ()
35182 as_val=`expr "$@" || test $? -eq 1`
35184 fi # as_fn_arith
35187 if expr a : '\(a\)' >/dev/null 2>&1 &&
35188 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35189 as_expr=expr
35190 else
35191 as_expr=false
35194 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35195 as_basename=basename
35196 else
35197 as_basename=false
35200 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35201 as_dirname=dirname
35202 else
35203 as_dirname=false
35206 as_me=`$as_basename -- "$0" ||
35207 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35208 X"$0" : 'X\(//\)$' \| \
35209 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35210 $as_echo X/"$0" |
35211 sed '/^.*\/\([^/][^/]*\)\/*$/{
35212 s//\1/
35215 /^X\/\(\/\/\)$/{
35216 s//\1/
35219 /^X\/\(\/\).*/{
35220 s//\1/
35223 s/.*/./; q'`
35225 # Avoid depending upon Character Ranges.
35226 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35227 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35228 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35229 as_cr_digits='0123456789'
35230 as_cr_alnum=$as_cr_Letters$as_cr_digits
35232 ECHO_C= ECHO_N= ECHO_T=
35233 case `echo -n x` in #(((((
35234 -n*)
35235 case `echo 'xy\c'` in
35236 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35237 xy) ECHO_C='\c';;
35238 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35239 ECHO_T=' ';;
35240 esac;;
35242 ECHO_N='-n';;
35243 esac
35245 rm -f conf$$ conf$$.exe conf$$.file
35246 if test -d conf$$.dir; then
35247 rm -f conf$$.dir/conf$$.file
35248 else
35249 rm -f conf$$.dir
35250 mkdir conf$$.dir 2>/dev/null
35252 if (echo >conf$$.file) 2>/dev/null; then
35253 if ln -s conf$$.file conf$$ 2>/dev/null; then
35254 as_ln_s='ln -s'
35255 # ... but there are two gotchas:
35256 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35257 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35258 # In both cases, we have to default to `cp -pR'.
35259 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35260 as_ln_s='cp -pR'
35261 elif ln conf$$.file conf$$ 2>/dev/null; then
35262 as_ln_s=ln
35263 else
35264 as_ln_s='cp -pR'
35266 else
35267 as_ln_s='cp -pR'
35269 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35270 rmdir conf$$.dir 2>/dev/null
35273 # as_fn_mkdir_p
35274 # -------------
35275 # Create "$as_dir" as a directory, including parents if necessary.
35276 as_fn_mkdir_p ()
35279 case $as_dir in #(
35280 -*) as_dir=./$as_dir;;
35281 esac
35282 test -d "$as_dir" || eval $as_mkdir_p || {
35283 as_dirs=
35284 while :; do
35285 case $as_dir in #(
35286 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35287 *) as_qdir=$as_dir;;
35288 esac
35289 as_dirs="'$as_qdir' $as_dirs"
35290 as_dir=`$as_dirname -- "$as_dir" ||
35291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35292 X"$as_dir" : 'X\(//\)[^/]' \| \
35293 X"$as_dir" : 'X\(//\)$' \| \
35294 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35295 $as_echo X"$as_dir" |
35296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35297 s//\1/
35300 /^X\(\/\/\)[^/].*/{
35301 s//\1/
35304 /^X\(\/\/\)$/{
35305 s//\1/
35308 /^X\(\/\).*/{
35309 s//\1/
35312 s/.*/./; q'`
35313 test -d "$as_dir" && break
35314 done
35315 test -z "$as_dirs" || eval "mkdir $as_dirs"
35316 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35319 } # as_fn_mkdir_p
35320 if mkdir -p . 2>/dev/null; then
35321 as_mkdir_p='mkdir -p "$as_dir"'
35322 else
35323 test -d ./-p && rmdir ./-p
35324 as_mkdir_p=false
35328 # as_fn_executable_p FILE
35329 # -----------------------
35330 # Test if FILE is an executable regular file.
35331 as_fn_executable_p ()
35333 test -f "$1" && test -x "$1"
35334 } # as_fn_executable_p
35335 as_test_x='test -x'
35336 as_executable_p=as_fn_executable_p
35338 # Sed expression to map a string onto a valid CPP name.
35339 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35341 # Sed expression to map a string onto a valid variable name.
35342 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35345 exec 6>&1
35346 ## ----------------------------------- ##
35347 ## Main body of $CONFIG_STATUS script. ##
35348 ## ----------------------------------- ##
35349 _ASEOF
35350 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35353 # Save the log message, to keep $0 and so on meaningful, and to
35354 # report actual input values of CONFIG_FILES etc. instead of their
35355 # values after options handling.
35356 ac_log="
35357 This file was extended by $as_me, which was
35358 generated by GNU Autoconf 2.69. Invocation command line was
35360 CONFIG_FILES = $CONFIG_FILES
35361 CONFIG_HEADERS = $CONFIG_HEADERS
35362 CONFIG_LINKS = $CONFIG_LINKS
35363 CONFIG_COMMANDS = $CONFIG_COMMANDS
35364 $ $0 $@
35366 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35369 _ACEOF
35371 case $ac_config_files in *"
35372 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35373 esac
35375 case $ac_config_headers in *"
35376 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35377 esac
35380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35381 # Files that config.status was made for.
35382 config_files="$ac_config_files"
35383 config_headers="$ac_config_headers"
35384 config_links="$ac_config_links"
35385 config_commands="$ac_config_commands"
35387 _ACEOF
35389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35390 ac_cs_usage="\
35391 \`$as_me' instantiates files and other configuration actions
35392 from templates according to the current configuration. Unless the files
35393 and actions are specified as TAGs, all are instantiated by default.
35395 Usage: $0 [OPTION]... [TAG]...
35397 -h, --help print this help, then exit
35398 -V, --version print version number and configuration settings, then exit
35399 --config print configuration, then exit
35400 -q, --quiet, --silent
35401 do not print progress messages
35402 -d, --debug don't remove temporary files
35403 --recheck update $as_me by reconfiguring in the same conditions
35404 --file=FILE[:TEMPLATE]
35405 instantiate the configuration file FILE
35406 --header=FILE[:TEMPLATE]
35407 instantiate the configuration header FILE
35409 Configuration files:
35410 $config_files
35412 Configuration headers:
35413 $config_headers
35415 Configuration links:
35416 $config_links
35418 Configuration commands:
35419 $config_commands
35421 Report bugs to the package provider."
35423 _ACEOF
35424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35425 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35426 ac_cs_version="\\
35427 config.status
35428 configured by $0, generated by GNU Autoconf 2.69,
35429 with options \\"\$ac_cs_config\\"
35431 Copyright (C) 2012 Free Software Foundation, Inc.
35432 This config.status script is free software; the Free Software Foundation
35433 gives unlimited permission to copy, distribute and modify it."
35435 ac_pwd='$ac_pwd'
35436 srcdir='$srcdir'
35437 INSTALL='$INSTALL'
35438 AWK='$AWK'
35439 test -n "\$AWK" || AWK=awk
35440 _ACEOF
35442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35443 # The default lists apply if the user does not specify any file.
35444 ac_need_defaults=:
35445 while test $# != 0
35447 case $1 in
35448 --*=?*)
35449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35450 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35451 ac_shift=:
35453 --*=)
35454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35455 ac_optarg=
35456 ac_shift=:
35459 ac_option=$1
35460 ac_optarg=$2
35461 ac_shift=shift
35463 esac
35465 case $ac_option in
35466 # Handling of the options.
35467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35468 ac_cs_recheck=: ;;
35469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35470 $as_echo "$ac_cs_version"; exit ;;
35471 --config | --confi | --conf | --con | --co | --c )
35472 $as_echo "$ac_cs_config"; exit ;;
35473 --debug | --debu | --deb | --de | --d | -d )
35474 debug=: ;;
35475 --file | --fil | --fi | --f )
35476 $ac_shift
35477 case $ac_optarg in
35478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35479 '') as_fn_error $? "missing file argument" ;;
35480 esac
35481 as_fn_append CONFIG_FILES " '$ac_optarg'"
35482 ac_need_defaults=false;;
35483 --header | --heade | --head | --hea )
35484 $ac_shift
35485 case $ac_optarg in
35486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35487 esac
35488 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35489 ac_need_defaults=false;;
35490 --he | --h)
35491 # Conflict between --help and --header
35492 as_fn_error $? "ambiguous option: \`$1'
35493 Try \`$0 --help' for more information.";;
35494 --help | --hel | -h )
35495 $as_echo "$ac_cs_usage"; exit ;;
35496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35497 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35498 ac_cs_silent=: ;;
35500 # This is an error.
35501 -*) as_fn_error $? "unrecognized option: \`$1'
35502 Try \`$0 --help' for more information." ;;
35504 *) as_fn_append ac_config_targets " $1"
35505 ac_need_defaults=false ;;
35507 esac
35508 shift
35509 done
35511 ac_configure_extra_args=
35513 if $ac_cs_silent; then
35514 exec 6>/dev/null
35515 ac_configure_extra_args="$ac_configure_extra_args --silent"
35518 _ACEOF
35519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35520 if \$ac_cs_recheck; then
35521 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35522 shift
35523 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35524 CONFIG_SHELL='$SHELL'
35525 export CONFIG_SHELL
35526 exec "\$@"
35529 _ACEOF
35530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35531 exec 5>>config.log
35533 echo
35534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35535 ## Running $as_me. ##
35536 _ASBOX
35537 $as_echo "$ac_log"
35538 } >&5
35540 _ACEOF
35541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35543 # INIT-COMMANDS
35545 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35546 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35547 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35548 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35549 # from automake.
35550 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35551 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35552 LINGUAS="${LINGUAS-%UNSET%}"
35554 subdirs='$subdirs'
35556 _ACEOF
35558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35560 # Handling of arguments.
35561 for ac_config_target in $ac_config_targets
35563 case $ac_config_target in
35564 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
35565 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
35566 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
35567 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35568 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
35569 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35570 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
35571 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35572 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35573 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
35574 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35576 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35577 esac
35578 done
35581 # If the user did not use the arguments to specify the items to instantiate,
35582 # then the envvar interface is used. Set only those that are not.
35583 # We use the long form for the default assignment because of an extremely
35584 # bizarre bug on SunOS 4.1.3.
35585 if $ac_need_defaults; then
35586 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35587 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35588 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
35589 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35592 # Have a temporary directory for convenience. Make it in the build tree
35593 # simply because there is no reason against having it here, and in addition,
35594 # creating and moving files from /tmp can sometimes cause problems.
35595 # Hook for its removal unless debugging.
35596 # Note that there is a small window in which the directory will not be cleaned:
35597 # after its creation but before its name has been assigned to `$tmp'.
35598 $debug ||
35600 tmp= ac_tmp=
35601 trap 'exit_status=$?
35602 : "${ac_tmp:=$tmp}"
35603 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35605 trap 'as_fn_exit 1' 1 2 13 15
35607 # Create a (secure) tmp directory for tmp files.
35610 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35611 test -d "$tmp"
35612 } ||
35614 tmp=./conf$$-$RANDOM
35615 (umask 077 && mkdir "$tmp")
35616 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35617 ac_tmp=$tmp
35619 # Set up the scripts for CONFIG_FILES section.
35620 # No need to generate them if there are no CONFIG_FILES.
35621 # This happens for instance with `./config.status config.h'.
35622 if test -n "$CONFIG_FILES"; then
35624 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35625 ac_cs_awk_getline=:
35626 ac_cs_awk_pipe_init=
35627 ac_cs_awk_read_file='
35628 while ((getline aline < (F[key])) > 0)
35629 print(aline)
35630 close(F[key])'
35631 ac_cs_awk_pipe_fini=
35632 else
35633 ac_cs_awk_getline=false
35634 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35635 ac_cs_awk_read_file='
35636 print "|#_!!_#|"
35637 print "cat " F[key] " &&"
35638 '$ac_cs_awk_pipe_init
35639 # The final `:' finishes the AND list.
35640 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35642 ac_cr=`echo X | tr X '\015'`
35643 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35644 # But we know of no other shell where ac_cr would be empty at this
35645 # point, so we can use a bashism as a fallback.
35646 if test "x$ac_cr" = x; then
35647 eval ac_cr=\$\'\\r\'
35649 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35650 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35651 ac_cs_awk_cr='\\r'
35652 else
35653 ac_cs_awk_cr=$ac_cr
35656 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35657 _ACEOF
35659 # Create commands to substitute file output variables.
35661 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35662 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35663 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35664 echo "_ACAWK" &&
35665 echo "_ACEOF"
35666 } >conf$$files.sh &&
35667 . ./conf$$files.sh ||
35668 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35669 rm -f conf$$files.sh
35672 echo "cat >conf$$subs.awk <<_ACEOF" &&
35673 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35674 echo "_ACEOF"
35675 } >conf$$subs.sh ||
35676 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35677 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35678 ac_delim='%!_!# '
35679 for ac_last_try in false false false false false :; do
35680 . ./conf$$subs.sh ||
35681 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35683 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35684 if test $ac_delim_n = $ac_delim_num; then
35685 break
35686 elif $ac_last_try; then
35687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35688 else
35689 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35691 done
35692 rm -f conf$$subs.sh
35694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35695 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35696 _ACEOF
35697 sed -n '
35699 s/^/S["/; s/!.*/"]=/
35702 s/^[^!]*!//
35703 :repl
35704 t repl
35705 s/'"$ac_delim"'$//
35706 t delim
35709 s/\(.\{148\}\)..*/\1/
35710 t more1
35711 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35714 b repl
35715 :more1
35716 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35719 s/.\{148\}//
35720 t nl
35721 :delim
35723 s/\(.\{148\}\)..*/\1/
35724 t more2
35725 s/["\\]/\\&/g; s/^/"/; s/$/"/
35728 :more2
35729 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35732 s/.\{148\}//
35733 t delim
35734 ' <conf$$subs.awk | sed '
35735 /^[^""]/{
35737 s/\n//
35739 ' >>$CONFIG_STATUS || ac_write_fail=1
35740 rm -f conf$$subs.awk
35741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35742 _ACAWK
35743 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35744 for (key in S) S_is_set[key] = 1
35745 FS = "\a"
35746 \$ac_cs_awk_pipe_init
35749 line = $ 0
35750 nfields = split(line, field, "@")
35751 substed = 0
35752 len = length(field[1])
35753 for (i = 2; i < nfields; i++) {
35754 key = field[i]
35755 keylen = length(key)
35756 if (S_is_set[key]) {
35757 value = S[key]
35758 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35759 len += length(value) + length(field[++i])
35760 substed = 1
35761 } else
35762 len += 1 + keylen
35764 if (nfields == 3 && !substed) {
35765 key = field[2]
35766 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35767 \$ac_cs_awk_read_file
35768 next
35771 print line
35773 \$ac_cs_awk_pipe_fini
35774 _ACAWK
35775 _ACEOF
35776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35777 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35778 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35779 else
35781 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35782 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35783 _ACEOF
35785 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35786 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35787 # trailing colons and then remove the whole line if VPATH becomes empty
35788 # (actually we leave an empty line to preserve line numbers).
35789 if test "x$srcdir" = x.; then
35790 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35792 s///
35793 s/^/:/
35794 s/[ ]*$/:/
35795 s/:\$(srcdir):/:/g
35796 s/:\${srcdir}:/:/g
35797 s/:@srcdir@:/:/g
35798 s/^:*//
35799 s/:*$//
35801 s/\(=[ ]*\).*/\1/
35803 s/\n//
35804 s/^[^=]*=[ ]*$//
35808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35809 fi # test -n "$CONFIG_FILES"
35811 # Set up the scripts for CONFIG_HEADERS section.
35812 # No need to generate them if there are no CONFIG_HEADERS.
35813 # This happens for instance with `./config.status Makefile'.
35814 if test -n "$CONFIG_HEADERS"; then
35815 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35816 BEGIN {
35817 _ACEOF
35819 # Transform confdefs.h into an awk script `defines.awk', embedded as
35820 # here-document in config.status, that substitutes the proper values into
35821 # config.h.in to produce config.h.
35823 # Create a delimiter string that does not exist in confdefs.h, to ease
35824 # handling of long lines.
35825 ac_delim='%!_!# '
35826 for ac_last_try in false false :; do
35827 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35828 if test -z "$ac_tt"; then
35829 break
35830 elif $ac_last_try; then
35831 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35832 else
35833 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35835 done
35837 # For the awk script, D is an array of macro values keyed by name,
35838 # likewise P contains macro parameters if any. Preserve backslash
35839 # newline sequences.
35841 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35842 sed -n '
35843 s/.\{148\}/&'"$ac_delim"'/g
35844 t rset
35845 :rset
35846 s/^[ ]*#[ ]*define[ ][ ]*/ /
35847 t def
35849 :def
35850 s/\\$//
35851 t bsnl
35852 s/["\\]/\\&/g
35853 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35854 D["\1"]=" \3"/p
35855 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35857 :bsnl
35858 s/["\\]/\\&/g
35859 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35860 D["\1"]=" \3\\\\\\n"\\/p
35861 t cont
35862 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35863 t cont
35865 :cont
35867 s/.\{148\}/&'"$ac_delim"'/g
35868 t clear
35869 :clear
35870 s/\\$//
35871 t bsnlc
35872 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35874 :bsnlc
35875 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35876 b cont
35877 ' <confdefs.h | sed '
35878 s/'"$ac_delim"'/"\\\
35879 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35882 for (key in D) D_is_set[key] = 1
35883 FS = "\a"
35885 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35886 line = \$ 0
35887 split(line, arg, " ")
35888 if (arg[1] == "#") {
35889 defundef = arg[2]
35890 mac1 = arg[3]
35891 } else {
35892 defundef = substr(arg[1], 2)
35893 mac1 = arg[2]
35895 split(mac1, mac2, "(") #)
35896 macro = mac2[1]
35897 prefix = substr(line, 1, index(line, defundef) - 1)
35898 if (D_is_set[macro]) {
35899 # Preserve the white space surrounding the "#".
35900 print prefix "define", macro P[macro] D[macro]
35901 next
35902 } else {
35903 # Replace #undef with comments. This is necessary, for example,
35904 # in the case of _POSIX_SOURCE, which is predefined and required
35905 # on some systems where configure will not decide to define it.
35906 if (defundef == "undef") {
35907 print "/*", prefix defundef, macro, "*/"
35908 next
35912 { print }
35913 _ACAWK
35914 _ACEOF
35915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35916 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35917 fi # test -n "$CONFIG_HEADERS"
35920 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35921 shift
35922 for ac_tag
35924 case $ac_tag in
35925 :[FHLC]) ac_mode=$ac_tag; continue;;
35926 esac
35927 case $ac_mode$ac_tag in
35928 :[FHL]*:*);;
35929 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35930 :[FH]-) ac_tag=-:-;;
35931 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35932 esac
35933 ac_save_IFS=$IFS
35934 IFS=:
35935 set x $ac_tag
35936 IFS=$ac_save_IFS
35937 shift
35938 ac_file=$1
35939 shift
35941 case $ac_mode in
35942 :L) ac_source=$1;;
35943 :[FH])
35944 ac_file_inputs=
35945 for ac_f
35947 case $ac_f in
35948 -) ac_f="$ac_tmp/stdin";;
35949 *) # Look for the file first in the build tree, then in the source tree
35950 # (if the path is not absolute). The absolute path cannot be DOS-style,
35951 # because $ac_f cannot contain `:'.
35952 test -f "$ac_f" ||
35953 case $ac_f in
35954 [\\/$]*) false;;
35955 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35956 esac ||
35957 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35958 esac
35959 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35960 as_fn_append ac_file_inputs " '$ac_f'"
35961 done
35963 # Let's still pretend it is `configure' which instantiates (i.e., don't
35964 # use $as_me), people would be surprised to read:
35965 # /* config.h. Generated by config.status. */
35966 configure_input='Generated from '`
35967 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35968 `' by configure.'
35969 if test x"$ac_file" != x-; then
35970 configure_input="$ac_file. $configure_input"
35971 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35972 $as_echo "$as_me: creating $ac_file" >&6;}
35974 # Neutralize special characters interpreted by sed in replacement strings.
35975 case $configure_input in #(
35976 *\&* | *\|* | *\\* )
35977 ac_sed_conf_input=`$as_echo "$configure_input" |
35978 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35979 *) ac_sed_conf_input=$configure_input;;
35980 esac
35982 case $ac_tag in
35983 *:-:* | *:-) cat >"$ac_tmp/stdin" \
35984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35985 esac
35987 esac
35989 ac_dir=`$as_dirname -- "$ac_file" ||
35990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35991 X"$ac_file" : 'X\(//\)[^/]' \| \
35992 X"$ac_file" : 'X\(//\)$' \| \
35993 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35994 $as_echo X"$ac_file" |
35995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35996 s//\1/
35999 /^X\(\/\/\)[^/].*/{
36000 s//\1/
36003 /^X\(\/\/\)$/{
36004 s//\1/
36007 /^X\(\/\).*/{
36008 s//\1/
36011 s/.*/./; q'`
36012 as_dir="$ac_dir"; as_fn_mkdir_p
36013 ac_builddir=.
36015 case "$ac_dir" in
36016 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36018 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36019 # A ".." for each directory in $ac_dir_suffix.
36020 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36021 case $ac_top_builddir_sub in
36022 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36023 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36024 esac ;;
36025 esac
36026 ac_abs_top_builddir=$ac_pwd
36027 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36028 # for backward compatibility:
36029 ac_top_builddir=$ac_top_build_prefix
36031 case $srcdir in
36032 .) # We are building in place.
36033 ac_srcdir=.
36034 ac_top_srcdir=$ac_top_builddir_sub
36035 ac_abs_top_srcdir=$ac_pwd ;;
36036 [\\/]* | ?:[\\/]* ) # Absolute name.
36037 ac_srcdir=$srcdir$ac_dir_suffix;
36038 ac_top_srcdir=$srcdir
36039 ac_abs_top_srcdir=$srcdir ;;
36040 *) # Relative name.
36041 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36042 ac_top_srcdir=$ac_top_build_prefix$srcdir
36043 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36044 esac
36045 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36048 case $ac_mode in
36051 # CONFIG_FILE
36054 case $INSTALL in
36055 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36056 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36057 esac
36058 _ACEOF
36060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36061 # If the template does not know about datarootdir, expand it.
36062 # FIXME: This hack should be removed a few years after 2.60.
36063 ac_datarootdir_hack=; ac_datarootdir_seen=
36064 ac_sed_dataroot='
36065 /datarootdir/ {
36069 /@datadir@/p
36070 /@docdir@/p
36071 /@infodir@/p
36072 /@localedir@/p
36073 /@mandir@/p'
36074 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36075 *datarootdir*) ac_datarootdir_seen=yes;;
36076 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36078 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36079 _ACEOF
36080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36081 ac_datarootdir_hack='
36082 s&@datadir@&$datadir&g
36083 s&@docdir@&$docdir&g
36084 s&@infodir@&$infodir&g
36085 s&@localedir@&$localedir&g
36086 s&@mandir@&$mandir&g
36087 s&\\\${datarootdir}&$datarootdir&g' ;;
36088 esac
36089 _ACEOF
36091 # Neutralize VPATH when `$srcdir' = `.'.
36092 # Shell code in configure.ac might set extrasub.
36093 # FIXME: do we really want to maintain this feature?
36094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36095 ac_sed_extra="$ac_vpsub
36096 $extrasub
36097 _ACEOF
36098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36101 s|@configure_input@|$ac_sed_conf_input|;t t
36102 s&@top_builddir@&$ac_top_builddir_sub&;t t
36103 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36104 s&@srcdir@&$ac_srcdir&;t t
36105 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36106 s&@top_srcdir@&$ac_top_srcdir&;t t
36107 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36108 s&@builddir@&$ac_builddir&;t t
36109 s&@abs_builddir@&$ac_abs_builddir&;t t
36110 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36111 s&@INSTALL@&$ac_INSTALL&;t t
36112 $ac_datarootdir_hack
36114 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36115 if $ac_cs_awk_getline; then
36116 $AWK -f "$ac_tmp/subs.awk"
36117 else
36118 $AWK -f "$ac_tmp/subs.awk" | $SHELL
36119 fi \
36120 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36122 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36123 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36124 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36125 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36127 which seems to be undefined. Please make sure it is defined" >&5
36128 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36129 which seems to be undefined. Please make sure it is defined" >&2;}
36131 rm -f "$ac_tmp/stdin"
36132 case $ac_file in
36133 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36134 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36135 esac \
36136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36140 # CONFIG_HEADER
36142 if test x"$ac_file" != x-; then
36144 $as_echo "/* $configure_input */" \
36145 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36146 } >"$ac_tmp/config.h" \
36147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36148 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36149 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36150 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36151 else
36152 rm -f "$ac_file"
36153 mv "$ac_tmp/config.h" "$ac_file" \
36154 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36156 else
36157 $as_echo "/* $configure_input */" \
36158 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36159 || as_fn_error $? "could not create -" "$LINENO" 5
36164 # CONFIG_LINK
36167 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
36169 else
36170 # Prefer the file from the source tree if names are identical.
36171 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36172 ac_source=$srcdir/$ac_source
36175 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36176 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36178 if test ! -r "$ac_source"; then
36179 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36181 rm -f "$ac_file"
36183 # Try a relative symlink, then a hard link, then a copy.
36184 case $ac_source in
36185 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36186 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36187 esac
36188 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36189 ln "$ac_source" "$ac_file" 2>/dev/null ||
36190 cp -p "$ac_source" "$ac_file" ||
36191 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36194 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36195 $as_echo "$as_me: executing $ac_file commands" >&6;}
36197 esac
36200 case $ac_file$ac_mode in
36201 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36202 "gccdepdir":C)
36203 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36204 for lang in $subdirs c-family common analyzer text-art rtl-ssa
36206 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36207 done ;;
36208 "default-1":C)
36209 for ac_file in $CONFIG_FILES; do
36210 # Support "outfile[:infile[:infile...]]"
36211 case "$ac_file" in
36212 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36213 esac
36214 # PO directories have a Makefile.in generated from Makefile.in.in.
36215 case "$ac_file" in */Makefile.in)
36216 # Adjust a relative srcdir.
36217 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36218 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36219 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36220 # In autoconf-2.13 it is called $ac_given_srcdir.
36221 # In autoconf-2.50 it is called $srcdir.
36222 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36223 case "$ac_given_srcdir" in
36224 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36225 /*) top_srcdir="$ac_given_srcdir" ;;
36226 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36227 esac
36228 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36229 rm -f "$ac_dir/POTFILES"
36230 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36231 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36232 POMAKEFILEDEPS="POTFILES.in"
36233 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36234 # on $ac_dir but don't depend on user-specified configuration
36235 # parameters.
36236 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36237 # The LINGUAS file contains the set of available languages.
36238 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36239 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36241 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36242 # Hide the ALL_LINGUAS assigment from automake.
36243 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36244 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36245 else
36246 # The set of available languages was given in configure.ac.
36247 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36249 case "$ac_given_srcdir" in
36250 .) srcdirpre= ;;
36251 *) srcdirpre='$(srcdir)/' ;;
36252 esac
36253 POFILES=
36254 GMOFILES=
36255 UPDATEPOFILES=
36256 DUMMYPOFILES=
36257 for lang in $ALL_LINGUAS; do
36258 POFILES="$POFILES $srcdirpre$lang.po"
36259 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36260 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36261 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36262 done
36263 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36264 # environment variable.
36265 INST_LINGUAS=
36266 if test -n "$ALL_LINGUAS"; then
36267 for presentlang in $ALL_LINGUAS; do
36268 useit=no
36269 if test "%UNSET%" != "$LINGUAS"; then
36270 desiredlanguages="$LINGUAS"
36271 else
36272 desiredlanguages="$ALL_LINGUAS"
36274 for desiredlang in $desiredlanguages; do
36275 # Use the presentlang catalog if desiredlang is
36276 # a. equal to presentlang, or
36277 # b. a variant of presentlang (because in this case,
36278 # presentlang can be used as a fallback for messages
36279 # which are not translated in the desiredlang catalog).
36280 case "$desiredlang" in
36281 "$presentlang"*) useit=yes;;
36282 esac
36283 done
36284 if test $useit = yes; then
36285 INST_LINGUAS="$INST_LINGUAS $presentlang"
36287 done
36289 CATALOGS=
36290 if test -n "$INST_LINGUAS"; then
36291 for lang in $INST_LINGUAS; do
36292 CATALOGS="$CATALOGS $lang.gmo"
36293 done
36295 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36296 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36297 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36298 if test -f "$f"; then
36299 case "$f" in
36300 *.orig | *.bak | *~) ;;
36301 *) cat "$f" >> "$ac_dir/Makefile" ;;
36302 esac
36304 done
36307 esac
36308 done ;;
36309 "as":F) chmod +x as ;;
36310 "collect-ld":F) chmod +x collect-ld ;;
36311 "nm":F) chmod +x nm ;;
36312 "dsymutil":F) chmod +x dsymutil ;;
36313 "default":C)
36314 case ${CONFIG_HEADERS} in
36315 *auto-host.h:config.in*)
36316 echo > cstamp-h ;;
36317 esac
36318 # Make sure all the subdirs exist.
36319 for d in $subdirs doc build common c-family
36321 test -d $d || mkdir $d
36322 done
36325 esac
36326 done # for ac_tag
36329 as_fn_exit 0
36330 _ACEOF
36331 ac_clean_files=$ac_clean_files_save
36333 test $ac_write_fail = 0 ||
36334 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36337 # configure is writing to config.log, and then calls config.status.
36338 # config.status does its own redirection, appending to config.log.
36339 # Unfortunately, on DOS this fails, as config.log is still kept open
36340 # by configure, so config.status won't be able to write to it; its
36341 # output is simply discarded. So we exec the FD to /dev/null,
36342 # effectively closing config.log, so it can be properly (re)opened and
36343 # appended to by config.status. When coming back to configure, we
36344 # need to make the FD available again.
36345 if test "$no_create" != yes; then
36346 ac_cs_success=:
36347 ac_config_status_args=
36348 test "$silent" = yes &&
36349 ac_config_status_args="$ac_config_status_args --quiet"
36350 exec 5>/dev/null
36351 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36352 exec 5>>config.log
36353 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36354 # would make configure fail if this is the last instruction.
36355 $ac_cs_success || as_fn_exit 1
36357 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36359 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}