hppa: Always enable PIE on 64-bit target
[official-gcc.git] / gcc / configure
blob4acb254d830074b22bafc83e980b7e7bdbfdceb0
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=
7688 if test x$ac_valgrind_checking != x ; then
7690 # Prepare PATH_SEPARATOR.
7691 # The user is always right.
7692 if test "${PATH_SEPARATOR+set}" != set; then
7693 echo "#! /bin/sh" >conf$$.sh
7694 echo "exit 0" >>conf$$.sh
7695 chmod +x conf$$.sh
7696 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7697 PATH_SEPARATOR=';'
7698 else
7699 PATH_SEPARATOR=:
7701 rm -f conf$$.sh
7704 # Find out how to test for executable files. Don't use a zero-byte file,
7705 # as systems may use methods other than mode bits to determine executability.
7706 cat >conf$$.file <<_ASEOF
7707 #! /bin/sh
7708 exit 0
7709 _ASEOF
7710 chmod +x conf$$.file
7711 if test -x conf$$.file >/dev/null 2>&1; then
7712 ac_executable_p="test -x"
7713 else
7714 ac_executable_p="test -f"
7716 rm -f conf$$.file
7718 # Extract the first word of "valgrind", so it can be a program name with args.
7719 set dummy valgrind; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if ${ac_cv_path_valgrind_path+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 case "$valgrind_path" in
7726 [\\/]* | ?:[\\/]*)
7727 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7730 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7731 for ac_dir in $PATH; do
7732 IFS="$ac_save_IFS"
7733 test -z "$ac_dir" && ac_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7736 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7737 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7738 break 2
7741 done
7742 done
7743 IFS="$ac_save_IFS"
7745 esac
7747 valgrind_path="$ac_cv_path_valgrind_path"
7748 if test -n "$valgrind_path"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7750 $as_echo "$valgrind_path" >&6; }
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7756 if test "x$valgrind_path" = "x"; then
7757 as_fn_error $? "*** Cannot find valgrind" "$LINENO" 5
7759 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7760 valgrind_command="$valgrind_path -q"
7762 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7768 # Enable code coverage collection
7769 # Check whether --enable-coverage was given.
7770 if test "${enable_coverage+set}" = set; then :
7771 enableval=$enable_coverage; case "${enableval}" in
7772 yes|noopt)
7773 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7775 opt)
7776 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7779 # a.k.a. --disable-coverage
7780 coverage_flags=""
7783 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7785 esac
7786 else
7787 coverage_flags=""
7792 # Check whether --enable-gather-detailed-mem-stats was given.
7793 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7794 enableval=$enable_gather_detailed_mem_stats;
7795 else
7796 enable_gather_detailed_mem_stats=no
7799 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7801 cat >>confdefs.h <<_ACEOF
7802 #define GATHER_STATISTICS $gather_stats
7803 _ACEOF
7806 # Check whether --enable-valgrind-annotations was given.
7807 if test "${enable_valgrind_annotations+set}" = set; then :
7808 enableval=$enable_valgrind_annotations;
7809 else
7810 enable_valgrind_annotations=no
7813 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
7814 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
7819 if test x$enable_valgrind_annotations != xno \
7820 || test x$ac_valgrind_checking != x; then
7821 if test $ac_cv_header_valgrind_memcheck_h = no; then
7822 as_fn_error $? "*** Cannot find valgrind/memcheck.h" "$LINENO" 5
7825 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7829 # -------------------------------
7830 # Miscenalleous configure options
7831 # -------------------------------
7833 # Determine whether or not multilibs are enabled.
7834 # Check whether --enable-multilib was given.
7835 if test "${enable_multilib+set}" = set; then :
7836 enableval=$enable_multilib;
7837 else
7838 enable_multilib=yes
7843 # Determine whether or not multiarch is enabled.
7844 # Check whether --enable-multiarch was given.
7845 if test "${enable_multiarch+set}" = set; then :
7846 enableval=$enable_multiarch; case "${enableval}" in
7847 yes|no|auto) enable_multiarch=$enableval;;
7848 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7849 esac
7850 else
7851 enable_multiarch=auto
7854 if test x${enable_multiarch} = xauto; then
7855 if test x${with_native_system_header_dir} != x; then
7856 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7857 enable_multiarch=no
7859 if test x$host != x$target && test "x$with_sysroot" = x; then
7860 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7861 enable_multiarch=no
7864 if test x${enable_multiarch} = xyes; then
7866 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7870 $as_echo_n "checking for multiarch configuration... " >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7873 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7875 # needed for setting the multiarch name for soft-float/hard-float ABIs
7879 # default stack clash protection guard size as power of twos in bytes.
7880 # Please keep these in sync with params.def.
7881 stk_clash_min=12
7882 stk_clash_max=30
7884 # Keep the default value when the option is not used to 0, this allows us to
7885 # distinguish between the cases where the user specifially set a value via
7886 # configure and when the normal default value is used.
7888 # Check whether --with-stack-clash-protection-guard-size was given.
7889 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7890 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7891 else
7892 DEFAULT_STK_CLASH_GUARD_SIZE=0
7895 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7896 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7897 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7898 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
7902 cat >>confdefs.h <<_ACEOF
7903 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7904 _ACEOF
7907 # Specify the number of splits of match.pd to generate.
7909 # Check whether --with-matchpd-partitions was given.
7910 if test "${with_matchpd_partitions+set}" = set; then :
7911 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7912 else
7913 DEFAULT_MATCHPD_PARTITIONS=10
7916 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7917 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7922 # Specify the number of splits of insn-emit.cc to generate.
7924 # Check whether --with-insnemit-partitions was given.
7925 if test "${with_insnemit_partitions+set}" = set; then :
7926 withval=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS="$with_insnemit_partitions"
7927 else
7928 DEFAULT_INSNEMIT_PARTITIONS=10
7931 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7932 as_fn_error $? "Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7937 # Enable __cxa_atexit for C++.
7938 # Check whether --enable-__cxa_atexit was given.
7939 if test "${enable___cxa_atexit+set}" = set; then :
7940 enableval=$enable___cxa_atexit;
7944 # Enable C extension for decimal float if target supports it.
7946 # Check whether --enable-decimal-float was given.
7947 if test "${enable_decimal_float+set}" = set; then :
7948 enableval=$enable_decimal_float;
7949 case $enable_decimal_float in
7950 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7951 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7952 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7953 esac
7955 else
7957 case $target in
7958 aarch64* | \
7959 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7960 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7961 i?86*-*-mingw* | x86_64*-*-mingw* | \
7962 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7963 enable_decimal_float=yes
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7967 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7968 enable_decimal_float=no
7970 esac
7975 # x86's use BID format instead of DPD
7976 case x$enable_decimal_float in
7977 xyes)
7978 case $target in
7979 aarch64* | i?86*-*-* | x86_64*-*-*)
7980 enable_decimal_float=bid
7983 enable_decimal_float=dpd
7985 esac
7986 default_decimal_float=$enable_decimal_float
7988 xno)
7989 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7990 # dependency on libdecnumber.
7991 default_decimal_float=dpd
7993 esac
7998 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8000 cat >>confdefs.h <<_ACEOF
8001 #define ENABLE_DECIMAL_FLOAT $dfp
8002 _ACEOF
8005 # Use default_decimal_float for dependency.
8006 enable_decimal_float=$default_decimal_float
8008 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8010 cat >>confdefs.h <<_ACEOF
8011 #define ENABLE_DECIMAL_BID_FORMAT $bid
8012 _ACEOF
8015 # Enable C extension for fixed-point arithmetic.
8016 # Check whether --enable-fixed-point was given.
8017 if test "${enable_fixed_point+set}" = set; then :
8018 enableval=$enable_fixed_point;
8019 else
8021 case $target in
8022 arm*)
8023 enable_fixed_point=yes
8026 mips*-*-*)
8027 enable_fixed_point=yes
8029 loongarch*-*-*)
8030 enable_fixed_point=yes
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8034 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8035 enable_fixed_point=no
8037 esac
8043 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8045 cat >>confdefs.h <<_ACEOF
8046 #define ENABLE_FIXED_POINT $fixedpoint
8047 _ACEOF
8050 # Enable threads
8051 # Pass with no value to take the default
8052 # Pass with a value to specify a thread package
8053 # Check whether --enable-threads was given.
8054 if test "${enable_threads+set}" = set; then :
8055 enableval=$enable_threads;
8056 else
8057 enable_threads=''
8061 # Check whether --enable-tls was given.
8062 if test "${enable_tls+set}" = set; then :
8063 enableval=$enable_tls;
8064 case $enable_tls in
8065 yes | no) ;;
8066 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8067 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8068 esac
8070 else
8071 enable_tls=''
8075 # Check whether --enable-vtable-verify was given.
8076 if test "${enable_vtable_verify+set}" = set; then :
8077 enableval=$enable_vtable_verify;
8078 else
8079 enable_vtable_verify=no
8082 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8084 cat >>confdefs.h <<_ACEOF
8085 #define ENABLE_VTABLE_VERIFY $vtable_verify
8086 _ACEOF
8089 # Check whether --enable-analyzer was given.
8090 if test "${enable_analyzer+set}" = set; then :
8091 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8092 analyzer=0
8093 else
8094 analyzer=1
8096 else
8097 analyzer=1
8101 cat >>confdefs.h <<_ACEOF
8102 #define ENABLE_ANALYZER $analyzer
8103 _ACEOF
8106 # Check whether --enable-objc-gc was given.
8107 if test "${enable_objc_gc+set}" = set; then :
8108 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8109 objc_boehm_gc=''
8110 else
8111 objc_boehm_gc=1
8113 else
8114 objc_boehm_gc=''
8119 # Check whether --with-dwarf2 was given.
8120 if test "${with_dwarf2+set}" = set; then :
8121 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8122 else
8123 dwarf2=no
8127 # Check whether --enable-shared was given.
8128 if test "${enable_shared+set}" = set; then :
8129 enableval=$enable_shared;
8130 case $enable_shared in
8131 yes | no) ;;
8133 enable_shared=no
8134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8135 for pkg in $enableval; do
8136 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8137 enable_shared=yes
8139 done
8140 IFS="$ac_save_ifs"
8142 esac
8144 else
8145 enable_shared=yes
8150 # Check whether --enable-gcov was given.
8151 if test "${enable_gcov+set}" = set; then :
8152 enableval=$enable_gcov;
8153 else
8154 case $target in
8155 bpf-*-*)
8156 enable_gcov=no
8159 enable_gcov=yes
8161 esac
8168 # Check whether --with-specs was given.
8169 if test "${with_specs+set}" = set; then :
8170 withval=$with_specs; CONFIGURE_SPECS=$withval
8171 else
8172 CONFIGURE_SPECS=
8180 # Check whether --with-pkgversion was given.
8181 if test "${with_pkgversion+set}" = set; then :
8182 withval=$with_pkgversion; case "$withval" in
8183 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8184 no) PKGVERSION= ;;
8185 *) PKGVERSION="($withval) " ;;
8186 esac
8187 else
8188 PKGVERSION="(GCC) "
8196 # Check whether --with-bugurl was given.
8197 if test "${with_bugurl+set}" = set; then :
8198 withval=$with_bugurl; case "$withval" in
8199 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8200 no) BUGURL=
8202 *) BUGURL="$withval"
8204 esac
8205 else
8206 BUGURL="https://gcc.gnu.org/bugs/"
8210 case ${BUGURL} in
8212 REPORT_BUGS_TO=
8213 REPORT_BUGS_TEXI=
8216 REPORT_BUGS_TO="<$BUGURL>"
8217 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8219 esac;
8224 # Allow overriding the default URL for documentation
8226 # Check whether --with-documentation-root-url was given.
8227 if test "${with_documentation_root_url+set}" = set; then :
8228 withval=$with_documentation_root_url; case "$withval" in
8229 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8230 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8231 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8232 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8233 esac
8234 else
8235 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8240 cat >>confdefs.h <<_ACEOF
8241 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8242 _ACEOF
8245 # Allow overriding the default URL for GCC changes
8247 # Check whether --with-changes-root-url was given.
8248 if test "${with_changes_root_url+set}" = set; then :
8249 withval=$with_changes_root_url; case "$withval" in
8250 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8251 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8252 */) CHANGES_ROOT_URL="$withval" ;;
8253 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8254 esac
8255 else
8256 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8261 cat >>confdefs.h <<_ACEOF
8262 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8263 _ACEOF
8266 # Sanity check enable_languages in case someone does not run the toplevel
8267 # configure # script.
8268 # Check whether --enable-languages was given.
8269 if test "${enable_languages+set}" = set; then :
8270 enableval=$enable_languages; case ,${enable_languages}, in
8271 ,,|,yes,)
8272 # go safe -- we cannot be much sure without the toplevel
8273 # configure's
8274 # analysis of which target libs are present and usable
8275 enable_languages=c
8277 *,all,*)
8278 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8280 *,c,*)
8283 enable_languages=c,${enable_languages}
8285 esac
8286 else
8287 enable_languages=c
8291 # If top-level libada has been disabled, then wire in install-gnatlib
8292 # invocation with `make install', so that one can build and install
8293 # the library manually with `make -C gcc all gnatlib gnattools install'.
8294 if test x"$enable_libada" = xno; then
8295 gnat_install_lib=gnat-install-lib
8296 else
8297 gnat_install_lib=
8301 if test x"$enable_as_accelerator_for" != x; then
8303 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8305 enable_as_accelerator=yes
8306 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8307 program_transform_name=`echo $program_transform_name | sed $sedscript`
8308 accel_dir_suffix=/accel/${target_noncanonical}
8309 real_target_noncanonical=${enable_as_accelerator_for}
8315 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8316 tgt=`echo $tgt | sed 's/=.*//'`
8318 enable_offloading=1
8319 case "$tgt" in
8320 amdgcn*)
8321 omp_device_property=omp-device-properties-gcn
8322 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8324 nvptx*)
8325 omp_device_property=omp-device-properties-nvptx
8326 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8329 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8331 esac
8332 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8333 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8335 if test x"$offload_targets" = x; then
8336 offload_targets=$tgt
8337 else
8338 offload_targets="$offload_targets,$tgt"
8340 done
8345 cat >>confdefs.h <<_ACEOF
8346 #define OFFLOAD_TARGETS "$offload_targets"
8347 _ACEOF
8349 if test x"$enable_offloading" != x; then
8351 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8353 else
8355 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8359 if test "x$enable_offload_defaulted" = xyes; then
8361 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8366 # Check whether --with-multilib-list was given.
8367 if test "${with_multilib_list+set}" = set; then :
8368 withval=$with_multilib_list; :
8369 else
8370 with_multilib_list=default
8375 # Check whether --with-multilib-generator was given.
8376 if test "${with_multilib_generator+set}" = set; then :
8377 withval=$with_multilib_generator; :
8378 else
8379 with_multilib_generator=default
8383 # -------------------------
8384 # Checks for other programs
8385 # -------------------------
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8388 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8389 set x ${MAKE-make}
8390 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8391 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 cat >conftest.make <<\_ACEOF
8395 SHELL = /bin/sh
8396 all:
8397 @echo '@@@%%%=$(MAKE)=@@@%%%'
8398 _ACEOF
8399 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8400 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8401 *@@@%%%=?*=@@@%%%*)
8402 eval ac_cv_prog_make_${ac_make}_set=yes;;
8404 eval ac_cv_prog_make_${ac_make}_set=no;;
8405 esac
8406 rm -f conftest.make
8408 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8410 $as_echo "yes" >&6; }
8411 SET_MAKE=
8412 else
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8415 SET_MAKE="MAKE=${MAKE-make}"
8419 # Find some useful tools
8420 for ac_prog in gawk mawk nawk awk
8422 # Extract the first word of "$ac_prog", so it can be a program name with args.
8423 set dummy $ac_prog; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if ${ac_cv_prog_AWK+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test -n "$AWK"; then
8430 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_AWK="$ac_prog"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8443 done
8444 done
8445 IFS=$as_save_IFS
8449 AWK=$ac_cv_prog_AWK
8450 if test -n "$AWK"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8452 $as_echo "$AWK" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8459 test -n "$AWK" && break
8460 done
8462 # We need awk to create options.cc and options.h.
8463 # Bail out if it's missing.
8464 case ${AWK} in
8465 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8466 esac
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8469 $as_echo_n "checking whether ln -s works... " >&6; }
8470 if ${gcc_cv_prog_LN_S+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 rm -f conftestdata_t
8474 echo >conftestdata_f
8475 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8476 then
8477 gcc_cv_prog_LN_S="ln -s"
8478 else
8479 if ln conftestdata_f conftestdata_t 2>/dev/null
8480 then
8481 gcc_cv_prog_LN_S=ln
8482 else
8483 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8484 then
8485 gcc_cv_prog_LN_S="cp -p"
8486 else
8487 gcc_cv_prog_LN_S=cp
8491 rm -f conftestdata_f conftestdata_t
8494 LN_S="$gcc_cv_prog_LN_S"
8495 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8497 $as_echo "yes" >&6; }
8498 else
8499 if test "$gcc_cv_prog_LN_S" = "ln"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8501 $as_echo "no, using ln" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8504 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8509 $as_echo_n "checking whether ln works... " >&6; }
8510 if ${acx_cv_prog_LN+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 rm -f conftestdata_t
8514 echo >conftestdata_f
8515 if ln conftestdata_f conftestdata_t 2>/dev/null
8516 then
8517 acx_cv_prog_LN=ln
8518 else
8519 acx_cv_prog_LN=no
8521 rm -f conftestdata_f conftestdata_t
8524 if test $acx_cv_prog_LN = no; then
8525 LN="$LN_S"
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8527 $as_echo "no, using $LN" >&6; }
8528 else
8529 LN="$acx_cv_prog_LN"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8531 $as_echo "yes" >&6; }
8534 if test -n "$ac_tool_prefix"; then
8535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8536 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if ${ac_cv_prog_RANLIB+:} false; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 if test -n "$RANLIB"; then
8543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8544 else
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8556 done
8557 done
8558 IFS=$as_save_IFS
8562 RANLIB=$ac_cv_prog_RANLIB
8563 if test -n "$RANLIB"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8565 $as_echo "$RANLIB" >&6; }
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8573 if test -z "$ac_cv_prog_RANLIB"; then
8574 ac_ct_RANLIB=$RANLIB
8575 # Extract the first word of "ranlib", so it can be a program name with args.
8576 set dummy ranlib; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 if test -n "$ac_ct_RANLIB"; then
8583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_ac_ct_RANLIB="ranlib"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8596 done
8597 done
8598 IFS=$as_save_IFS
8602 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8603 if test -n "$ac_ct_RANLIB"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8605 $as_echo "$ac_ct_RANLIB" >&6; }
8606 else
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8611 if test "x$ac_ct_RANLIB" = x; then
8612 RANLIB=":"
8613 else
8614 case $cross_compiling:$ac_tool_warned in
8615 yes:)
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618 ac_tool_warned=yes ;;
8619 esac
8620 RANLIB=$ac_ct_RANLIB
8622 else
8623 RANLIB="$ac_cv_prog_RANLIB"
8626 ranlib_flags=""
8629 # Find a good install program. We prefer a C program (faster),
8630 # so one script is as good as another. But avoid the broken or
8631 # incompatible versions:
8632 # SysV /etc/install, /usr/sbin/install
8633 # SunOS /usr/etc/install
8634 # IRIX /sbin/install
8635 # AIX /bin/install
8636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8638 # ./install, which can be erroneously created by make from ./install.sh.
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8640 $as_echo_n "checking for a BSD compatible install... " >&6; }
8641 if test -z "$INSTALL"; then
8642 if ${ac_cv_path_install+:} false; then :
8643 $as_echo_n "(cached) " >&6
8644 else
8645 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8646 for ac_dir in $PATH; do
8647 # Account for people who put trailing slashes in PATH elements.
8648 case "$ac_dir/" in
8649 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8651 # OSF1 and SCO ODT 3.0 have their own names for install.
8652 for ac_prog in ginstall scoinst install; do
8653 if test -f $ac_dir/$ac_prog; then
8654 if test $ac_prog = install &&
8655 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8656 # AIX install. It has an incompatible calling convention.
8657 # OSF/1 installbsd also uses dspmsg, but is usable.
8659 else
8660 ac_cv_path_install="$ac_dir/$ac_prog -c"
8661 break 2
8664 done
8666 esac
8667 done
8668 IFS="$ac_save_IFS"
8671 if test "${ac_cv_path_install+set}" = set; then
8672 INSTALL="$ac_cv_path_install"
8673 else
8674 # As a last resort, use the slow shell script. We don't cache a
8675 # path for INSTALL within a source directory, because that will
8676 # break other packages using the cache if that directory is
8677 # removed, or if the path is relative.
8678 INSTALL="$ac_install_sh"
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8682 $as_echo "$INSTALL" >&6; }
8684 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8685 # It thinks the first close brace ends the variable substitution.
8686 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8691 # See if cmp has --ignore-initial.
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8693 $as_echo_n "checking for cmp's capabilities... " >&6; }
8694 if ${gcc_cv_prog_cmp_skip+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 echo abfoo >t1
8698 echo cdfoo >t2
8699 gcc_cv_prog_cmp_skip=slowcompare
8700 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8701 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8703 else
8704 gcc_cv_prog_cmp_skip=gnucompare
8707 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8708 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8709 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8711 else
8712 gcc_cv_prog_cmp_skip=fastcompare
8716 rm t1 t2
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8720 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8721 make_compare_target=$gcc_cv_prog_cmp_skip
8725 # See if we have the mktemp command.
8726 # Extract the first word of "mktemp", so it can be a program name with args.
8727 set dummy mktemp; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 if test -n "$have_mktemp_command"; then
8734 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8735 else
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_prog_have_mktemp_command="yes"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8747 done
8748 done
8749 IFS=$as_save_IFS
8751 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8754 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8755 if test -n "$have_mktemp_command"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8757 $as_echo "$have_mktemp_command" >&6; }
8758 else
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8765 # See if makeinfo has been installed and is modern enough
8766 # that we can use it.
8768 # Extract the first word of "makeinfo", so it can be a program name with args.
8769 set dummy makeinfo; ac_word=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if ${ac_cv_prog_MAKEINFO+:} false; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 if test -n "$MAKEINFO"; then
8776 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8777 else
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 for as_dir in $PATH
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785 ac_cv_prog_MAKEINFO="makeinfo"
8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787 break 2
8789 done
8790 done
8791 IFS=$as_save_IFS
8795 MAKEINFO=$ac_cv_prog_MAKEINFO
8796 if test -n "$MAKEINFO"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8798 $as_echo "$MAKEINFO" >&6; }
8799 else
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8805 if test -n "$MAKEINFO"; then
8806 # Found it, now check the version.
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8808 $as_echo_n "checking for modern makeinfo... " >&6; }
8809 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8813 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8815 case $ac_prog_version in
8816 '') gcc_cv_prog_makeinfo_modern=no;;
8817 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8818 *) gcc_cv_prog_makeinfo_modern=no;;
8819 esac
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8823 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8824 else
8825 gcc_cv_prog_makeinfo_modern=no
8827 if test $gcc_cv_prog_makeinfo_modern = no; then
8828 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8831 if test $gcc_cv_prog_makeinfo_modern = no; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8833 *** Makeinfo is missing or too old.
8834 *** Info documentation will not be built." >&5
8835 $as_echo "$as_me: WARNING:
8836 *** Makeinfo is missing or too old.
8837 *** Info documentation will not be built." >&2;}
8838 BUILD_INFO=
8839 else
8840 BUILD_INFO=info
8844 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8845 # If it does, we want to pass it to makeinfo in order to restore the old
8846 # behavior of @{summary,}contents placement.
8847 MAKEINFO_TOC_INLINE_FLAG=
8848 if test x"$MAKEINFO" != x; then :
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8851 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8852 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8856 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8857 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8858 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8859 gcc_cv_texi_add_toc_inline_flags=no
8860 else
8861 gcc_cv_texi_add_toc_inline_flags=yes
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8866 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8867 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8868 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8874 # Is pod2man recent enough to regenerate manpages?
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8876 $as_echo_n "checking for recent Pod::Man... " >&6; }
8877 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8879 $as_echo "yes" >&6; }
8880 GENERATED_MANPAGES=generated-manpages
8881 else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8884 GENERATED_MANPAGES=
8888 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8890 # How about lex?
8891 for ac_prog in flex
8893 # Extract the first word of "$ac_prog", so it can be a program name with args.
8894 set dummy $ac_prog; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_prog_FLEX+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 if test -n "$FLEX"; then
8901 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_FLEX="$ac_prog"
8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8914 done
8915 done
8916 IFS=$as_save_IFS
8920 FLEX=$ac_cv_prog_FLEX
8921 if test -n "$FLEX"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8923 $as_echo "$FLEX" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8930 test -n "$FLEX" && break
8931 done
8932 test -n "$FLEX" || FLEX="$MISSING flex"
8935 # Bison?
8936 for ac_prog in bison
8938 # Extract the first word of "$ac_prog", so it can be a program name with args.
8939 set dummy $ac_prog; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if ${ac_cv_prog_BISON+:} false; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 if test -n "$BISON"; then
8946 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955 ac_cv_prog_BISON="$ac_prog"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8959 done
8960 done
8961 IFS=$as_save_IFS
8965 BISON=$ac_cv_prog_BISON
8966 if test -n "$BISON"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8968 $as_echo "$BISON" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8975 test -n "$BISON" && break
8976 done
8977 test -n "$BISON" || BISON="$MISSING bison"
8980 # Python3?
8982 # Extract the first word of "python3", so it can be a program name with args.
8983 set dummy python3; ac_word=$2
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985 $as_echo_n "checking for $ac_word... " >&6; }
8986 if ${ac_cv_prog_PYTHON+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 if test -n "$PYTHON"; then
8990 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8991 else
8992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993 for as_dir in $PATH
8995 IFS=$as_save_IFS
8996 test -z "$as_dir" && as_dir=.
8997 for ac_exec_ext in '' $ac_executable_extensions; do
8998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8999 ac_cv_prog_PYTHON="python3"
9000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9001 break 2
9003 done
9004 done
9005 IFS=$as_save_IFS
9009 PYTHON=$ac_cv_prog_PYTHON
9010 if test -n "$PYTHON"; then
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9012 $as_echo "$PYTHON" >&6; }
9013 else
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015 $as_echo "no" >&6; }
9019 if test -n "$PYTHON"; then
9020 # Found it, now check the version.
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9022 $as_echo_n "checking for modern python3... " >&6; }
9023 if ${gcc_cv_prog_python3_modern+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 ac_prog_version=`eval $PYTHON --version 2>&1 |
9027 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9029 case $ac_prog_version in
9030 '') gcc_cv_prog_python3_modern=no;;
9031 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9032 *) gcc_cv_prog_python3_modern=no;;
9033 esac
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9037 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9038 else
9039 gcc_cv_prog_python3_modern=no
9041 if test $gcc_cv_prog_python3_modern = no; then
9042 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9045 if test $gcc_cv_prog_python3_modern = no; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9047 *** Python3 is missing.
9048 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9049 $as_echo "$as_me: WARNING:
9050 *** Python3 is missing.
9051 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9052 HAVE_PYTHON=no
9053 else
9054 HAVE_PYTHON=yes
9058 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9059 # check for build == host before using them.
9061 # NM
9062 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9063 && test -d ../binutils ; then
9064 NM='${objdir}/../binutils/nm-new'
9065 else
9066 # Extract the first word of "nm", so it can be a program name with args.
9067 set dummy nm; ac_word=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if ${ac_cv_prog_NM+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 if test -n "$NM"; then
9074 ac_cv_prog_NM="$NM" # Let the user override the test.
9075 else
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9083 ac_cv_prog_NM="nm"
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085 break 2
9087 done
9088 done
9089 IFS=$as_save_IFS
9091 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9094 NM=$ac_cv_prog_NM
9095 if test -n "$NM"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9097 $as_echo "$NM" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9106 # AR
9107 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9108 && test -d ../binutils ; then
9109 AR='${objdir}/../binutils/ar'
9110 else
9111 # Extract the first word of "ar", so it can be a program name with args.
9112 set dummy ar; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if ${ac_cv_prog_AR+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 if test -n "$AR"; then
9119 ac_cv_prog_AR="$AR" # Let the user override the test.
9120 else
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in $PATH
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_prog_AR="ar"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9132 done
9133 done
9134 IFS=$as_save_IFS
9136 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9139 AR=$ac_cv_prog_AR
9140 if test -n "$AR"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9142 $as_echo "$AR" >&6; }
9143 else
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9151 # The jit documentation looks better if built with sphinx, but can be
9152 # built with texinfo if sphinx is not available.
9153 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9154 # Extract the first word of "sphinx-build", so it can be a program name with args.
9155 set dummy sphinx-build; ac_word=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if ${ac_cv_prog_doc_build_sys+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 if test -n "$doc_build_sys"; then
9162 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9163 else
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9171 ac_cv_prog_doc_build_sys="sphinx"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9175 done
9176 done
9177 IFS=$as_save_IFS
9179 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9182 doc_build_sys=$ac_cv_prog_doc_build_sys
9183 if test -n "$doc_build_sys"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9185 $as_echo "$doc_build_sys" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9193 # --------------------
9194 # Checks for C headers
9195 # --------------------
9197 # Need to reject headers which give warnings, so that the -Werror bootstrap
9198 # works later. *sigh* This needs to come before all header checks.
9200 ac_c_preproc_warn_flag=yes
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9203 $as_echo_n "checking for ANSI C header files... " >&6; }
9204 if ${ac_cv_header_stdc+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9209 #include <stdlib.h>
9210 #include <stdarg.h>
9211 #include <string.h>
9212 #include <float.h>
9215 main ()
9219 return 0;
9221 _ACEOF
9222 if ac_fn_cxx_try_compile "$LINENO"; then :
9223 ac_cv_header_stdc=yes
9224 else
9225 ac_cv_header_stdc=no
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 if test $ac_cv_header_stdc = yes; then
9230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <string.h>
9235 _ACEOF
9236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9237 $EGREP "memchr" >/dev/null 2>&1; then :
9239 else
9240 ac_cv_header_stdc=no
9242 rm -f conftest*
9246 if test $ac_cv_header_stdc = yes; then
9247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 #include <stdlib.h>
9252 _ACEOF
9253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9254 $EGREP "free" >/dev/null 2>&1; then :
9256 else
9257 ac_cv_header_stdc=no
9259 rm -f conftest*
9263 if test $ac_cv_header_stdc = yes; then
9264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9265 if test "$cross_compiling" = yes; then :
9267 else
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9270 #include <ctype.h>
9271 #include <stdlib.h>
9272 #if ((' ' & 0x0FF) == 0x020)
9273 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9274 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9275 #else
9276 # define ISLOWER(c) \
9277 (('a' <= (c) && (c) <= 'i') \
9278 || ('j' <= (c) && (c) <= 'r') \
9279 || ('s' <= (c) && (c) <= 'z'))
9280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9281 #endif
9283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9285 main ()
9287 int i;
9288 for (i = 0; i < 256; i++)
9289 if (XOR (islower (i), ISLOWER (i))
9290 || toupper (i) != TOUPPER (i))
9291 return 2;
9292 return 0;
9294 _ACEOF
9295 if ac_fn_cxx_try_run "$LINENO"; then :
9297 else
9298 ac_cv_header_stdc=no
9300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9301 conftest.$ac_objext conftest.beam conftest.$ac_ext
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9307 $as_echo "$ac_cv_header_stdc" >&6; }
9308 if test $ac_cv_header_stdc = yes; then
9310 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9315 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9316 if ${ac_cv_header_time+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321 #include <sys/types.h>
9322 #include <sys/time.h>
9323 #include <time.h>
9326 main ()
9328 if ((struct tm *) 0)
9329 return 0;
9331 return 0;
9333 _ACEOF
9334 if ac_fn_cxx_try_compile "$LINENO"; then :
9335 ac_cv_header_time=yes
9336 else
9337 ac_cv_header_time=no
9339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9342 $as_echo "$ac_cv_header_time" >&6; }
9343 if test $ac_cv_header_time = yes; then
9345 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9350 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9351 if ${gcc_cv_header_string+:} false; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 #include <string.h>
9357 #include <strings.h>
9359 main ()
9363 return 0;
9365 _ACEOF
9366 if ac_fn_cxx_try_compile "$LINENO"; then :
9367 gcc_cv_header_string=yes
9368 else
9369 gcc_cv_header_string=no
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9374 $as_echo "$gcc_cv_header_string" >&6; }
9375 if test $gcc_cv_header_string = yes; then
9377 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9382 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9383 if ${ac_cv_header_sys_wait_h+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <sys/types.h>
9389 #include <sys/wait.h>
9390 #ifndef WEXITSTATUS
9391 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9392 #endif
9393 #ifndef WIFEXITED
9394 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9395 #endif
9398 main ()
9400 int s;
9401 wait (&s);
9402 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9404 return 0;
9406 _ACEOF
9407 if ac_fn_cxx_try_compile "$LINENO"; then :
9408 ac_cv_header_sys_wait_h=yes
9409 else
9410 ac_cv_header_sys_wait_h=no
9412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9415 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9416 if test $ac_cv_header_sys_wait_h = yes; then
9418 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9423 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9424 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429 #include <sys/types.h>
9430 #include <termios.h>
9431 #ifdef TIOCGWINSZ
9433 #endif
9435 _ACEOF
9436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9437 $EGREP "yes" >/dev/null 2>&1; then :
9438 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9439 else
9440 ac_cv_sys_tiocgwinsz_in_termios_h=no
9442 rm -f conftest*
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9446 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9448 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9450 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9451 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 #include <sys/types.h>
9457 #include <sys/ioctl.h>
9458 #ifdef TIOCGWINSZ
9460 #endif
9462 _ACEOF
9463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9464 $EGREP "yes" >/dev/null 2>&1; then :
9465 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9466 else
9467 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9469 rm -f conftest*
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9473 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9475 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9477 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9482 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9483 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9484 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9485 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9486 do :
9487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9488 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9489 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9490 cat >>confdefs.h <<_ACEOF
9491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9492 _ACEOF
9495 done
9498 # Check for thread headers.
9499 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9500 if test "x$ac_cv_header_thread_h" = xyes; then :
9501 have_thread_h=yes
9502 else
9503 have_thread_h=
9506 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9507 if test "x$ac_cv_header_pthread_h" = xyes; then :
9508 have_pthread_h=yes
9509 else
9510 have_pthread_h=
9514 # These tests can't be done till we know if we have limits.h.
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9516 $as_echo_n "checking for CHAR_BIT... " >&6; }
9517 if ${gcc_cv_decl_char_bit+:} false; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522 #ifdef HAVE_LIMITS_H
9523 #include <limits.h>
9524 #endif
9525 #ifdef CHAR_BIT
9526 found
9527 #endif
9528 _ACEOF
9529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9530 $EGREP "found" >/dev/null 2>&1; then :
9531 gcc_cv_decl_char_bit=yes
9532 else
9533 gcc_cv_decl_char_bit=no
9535 rm -f conftest*
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9540 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9541 if test $gcc_cv_decl_char_bit = no; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9543 $as_echo_n "checking number of bits in a byte... " >&6; }
9544 if ${gcc_cv_c_nbby+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9548 gcc_cv_c_nbby=
9549 while test $i -lt 65; do
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9554 main ()
9556 switch(0) {
9557 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9558 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9561 return 0;
9563 _ACEOF
9564 if ac_fn_cxx_try_compile "$LINENO"; then :
9565 gcc_cv_c_nbby=$i; break
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568 i=`expr $i + 1`
9569 done
9570 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9574 $as_echo "$gcc_cv_c_nbby" >&6; }
9575 if test $gcc_cv_c_nbby = failed; then
9576 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9577 else
9579 cat >>confdefs.h <<_ACEOF
9580 #define CHAR_BIT $gcc_cv_c_nbby
9581 _ACEOF
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9586 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9587 if ${ac_cv_c_bigendian+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 ac_cv_c_bigendian=unknown
9591 # See if we're dealing with a universal compiler.
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 #ifndef __APPLE_CC__
9595 not a universal capable compiler
9596 #endif
9597 typedef int dummy;
9599 _ACEOF
9600 if ac_fn_cxx_try_compile "$LINENO"; then :
9602 # Check for potential -arch flags. It is not universal unless
9603 # there are at least two -arch flags with different values.
9604 ac_arch=
9605 ac_prev=
9606 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9607 if test -n "$ac_prev"; then
9608 case $ac_word in
9609 i?86 | x86_64 | ppc | ppc64)
9610 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9611 ac_arch=$ac_word
9612 else
9613 ac_cv_c_bigendian=universal
9614 break
9617 esac
9618 ac_prev=
9619 elif test "x$ac_word" = "x-arch"; then
9620 ac_prev=arch
9622 done
9624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625 if test $ac_cv_c_bigendian = unknown; then
9626 # See if sys/param.h defines the BYTE_ORDER macro.
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 #include <sys/types.h>
9630 #include <sys/param.h>
9633 main ()
9635 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9636 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9637 && LITTLE_ENDIAN)
9638 bogus endian macros
9639 #endif
9642 return 0;
9644 _ACEOF
9645 if ac_fn_cxx_try_compile "$LINENO"; then :
9646 # It does; now see whether it defined to BIG_ENDIAN or not.
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649 #include <sys/types.h>
9650 #include <sys/param.h>
9653 main ()
9655 #if BYTE_ORDER != BIG_ENDIAN
9656 not big endian
9657 #endif
9660 return 0;
9662 _ACEOF
9663 if ac_fn_cxx_try_compile "$LINENO"; then :
9664 ac_cv_c_bigendian=yes
9665 else
9666 ac_cv_c_bigendian=no
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672 if test $ac_cv_c_bigendian = unknown; then
9673 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 #include <limits.h>
9679 main ()
9681 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9682 bogus endian macros
9683 #endif
9686 return 0;
9688 _ACEOF
9689 if ac_fn_cxx_try_compile "$LINENO"; then :
9690 # It does; now see whether it defined to _BIG_ENDIAN or not.
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 #include <limits.h>
9696 main ()
9698 #ifndef _BIG_ENDIAN
9699 not big endian
9700 #endif
9703 return 0;
9705 _ACEOF
9706 if ac_fn_cxx_try_compile "$LINENO"; then :
9707 ac_cv_c_bigendian=yes
9708 else
9709 ac_cv_c_bigendian=no
9711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 if test $ac_cv_c_bigendian = unknown; then
9716 # Compile a test program.
9717 if test "$cross_compiling" = yes; then :
9718 # Try to guess by grepping values from an object file.
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 short int ascii_mm[] =
9722 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9723 short int ascii_ii[] =
9724 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9725 int use_ascii (int i) {
9726 return ascii_mm[i] + ascii_ii[i];
9728 short int ebcdic_ii[] =
9729 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9730 short int ebcdic_mm[] =
9731 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9732 int use_ebcdic (int i) {
9733 return ebcdic_mm[i] + ebcdic_ii[i];
9735 extern int foo;
9738 main ()
9740 return use_ascii (foo) == use_ebcdic (foo);
9742 return 0;
9744 _ACEOF
9745 if ac_fn_cxx_try_compile "$LINENO"; then :
9746 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9747 ac_cv_c_bigendian=yes
9749 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9750 if test "$ac_cv_c_bigendian" = unknown; then
9751 ac_cv_c_bigendian=no
9752 else
9753 # finding both strings is unlikely to happen, but who knows?
9754 ac_cv_c_bigendian=unknown
9758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759 else
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762 $ac_includes_default
9764 main ()
9767 /* Are we little or big endian? From Harbison&Steele. */
9768 union
9770 long int l;
9771 char c[sizeof (long int)];
9772 } u;
9773 u.l = 1;
9774 return u.c[sizeof (long int) - 1] == 1;
9777 return 0;
9779 _ACEOF
9780 if ac_fn_cxx_try_run "$LINENO"; then :
9781 ac_cv_c_bigendian=no
9782 else
9783 ac_cv_c_bigendian=yes
9785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9786 conftest.$ac_objext conftest.beam conftest.$ac_ext
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9792 $as_echo "$ac_cv_c_bigendian" >&6; }
9793 case $ac_cv_c_bigendian in #(
9794 yes)
9795 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9796 ;; #(
9798 ;; #(
9799 universal)
9801 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9803 ;; #(
9805 as_fn_error $? "unknown endianness
9806 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9807 esac
9810 # ----------------------
9811 # Checks for C++ headers
9812 # ----------------------
9814 ac_ext=cpp
9815 ac_cpp='$CXXCPP $CPPFLAGS'
9816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9820 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9821 if test -z "$CXXCPP"; then
9822 if ${ac_cv_prog_CXXCPP+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 # Double quotes because CXXCPP needs to be expanded
9826 for CXXCPP in "$CXX -E" "/lib/cpp"
9828 ac_preproc_ok=false
9829 for ac_cxx_preproc_warn_flag in '' yes
9831 # Use a header file that comes with gcc, so configuring glibc
9832 # with a fresh cross-compiler works.
9833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834 # <limits.h> exists even on freestanding compilers.
9835 # On the NeXT, cc -E runs the code through the compiler's parser,
9836 # not just through cpp. "Syntax error" is here to catch this case.
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9839 #ifdef __STDC__
9840 # include <limits.h>
9841 #else
9842 # include <assert.h>
9843 #endif
9844 Syntax error
9845 _ACEOF
9846 if ac_fn_cxx_try_cpp "$LINENO"; then :
9848 else
9849 # Broken: fails on valid input.
9850 continue
9852 rm -f conftest.err conftest.i conftest.$ac_ext
9854 # OK, works on sane cases. Now check whether nonexistent headers
9855 # can be detected and how.
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 #include <ac_nonexistent.h>
9859 _ACEOF
9860 if ac_fn_cxx_try_cpp "$LINENO"; then :
9861 # Broken: success on invalid input.
9862 continue
9863 else
9864 # Passes both tests.
9865 ac_preproc_ok=:
9866 break
9868 rm -f conftest.err conftest.i conftest.$ac_ext
9870 done
9871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9872 rm -f conftest.i conftest.err conftest.$ac_ext
9873 if $ac_preproc_ok; then :
9874 break
9877 done
9878 ac_cv_prog_CXXCPP=$CXXCPP
9881 CXXCPP=$ac_cv_prog_CXXCPP
9882 else
9883 ac_cv_prog_CXXCPP=$CXXCPP
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9886 $as_echo "$CXXCPP" >&6; }
9887 ac_preproc_ok=false
9888 for ac_cxx_preproc_warn_flag in '' yes
9890 # Use a header file that comes with gcc, so configuring glibc
9891 # with a fresh cross-compiler works.
9892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 # <limits.h> exists even on freestanding compilers.
9894 # On the NeXT, cc -E runs the code through the compiler's parser,
9895 # not just through cpp. "Syntax error" is here to catch this case.
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898 #ifdef __STDC__
9899 # include <limits.h>
9900 #else
9901 # include <assert.h>
9902 #endif
9903 Syntax error
9904 _ACEOF
9905 if ac_fn_cxx_try_cpp "$LINENO"; then :
9907 else
9908 # Broken: fails on valid input.
9909 continue
9911 rm -f conftest.err conftest.i conftest.$ac_ext
9913 # OK, works on sane cases. Now check whether nonexistent headers
9914 # can be detected and how.
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 #include <ac_nonexistent.h>
9918 _ACEOF
9919 if ac_fn_cxx_try_cpp "$LINENO"; then :
9920 # Broken: success on invalid input.
9921 continue
9922 else
9923 # Passes both tests.
9924 ac_preproc_ok=:
9925 break
9927 rm -f conftest.err conftest.i conftest.$ac_ext
9929 done
9930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9931 rm -f conftest.i conftest.err conftest.$ac_ext
9932 if $ac_preproc_ok; then :
9934 else
9935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9938 See \`config.log' for more details" >&5
9939 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9940 See \`config.log' for more details" >&2;}; }
9943 ac_ext=cpp
9944 ac_cpp='$CXXCPP $CPPFLAGS'
9945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9950 for ac_header in unordered_map
9951 do :
9952 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9953 if test "x$ac_cv_header_unordered_map" = xyes; then :
9954 cat >>confdefs.h <<_ACEOF
9955 #define HAVE_UNORDERED_MAP 1
9956 _ACEOF
9959 done
9961 for ac_header in tr1/unordered_map
9962 do :
9963 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9964 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_TR1_UNORDERED_MAP 1
9967 _ACEOF
9970 done
9972 for ac_header in ext/hash_map
9973 do :
9974 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9975 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9976 cat >>confdefs.h <<_ACEOF
9977 #define HAVE_EXT_HASH_MAP 1
9978 _ACEOF
9981 done
9984 # --------
9985 # Dependency checking.
9986 # --------
9988 rm -rf .tst 2>/dev/null
9989 mkdir .tst 2>/dev/null
9990 if test -d .tst; then
9991 am__leading_dot=.
9992 else
9993 am__leading_dot=_
9995 rmdir .tst 2>/dev/null
9997 DEPDIR="${am__leading_dot}deps"
9999 ac_config_commands="$ac_config_commands depdir"
10002 ac_config_commands="$ac_config_commands gccdepdir"
10005 depcc="$CXX" am_compiler_list=
10007 am_depcomp=$ac_aux_dir/depcomp
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10009 $as_echo_n "checking dependency style of $depcc... " >&6; }
10010 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 if test -f "$am_depcomp"; then
10014 # We make a subdir and do the tests there. Otherwise we can end up
10015 # making bogus files that we don't know about and never remove. For
10016 # instance it was reported that on HP-UX the gcc test will end up
10017 # making a dummy file named `D' -- because `-MD' means `put the output
10018 # in D'.
10019 mkdir conftest.dir
10020 # Copy depcomp to subdir because otherwise we won't find it if we're
10021 # using a relative directory.
10022 cp "$am_depcomp" conftest.dir
10023 cd conftest.dir
10024 # We will build objects and dependencies in a subdirectory because
10025 # it helps to detect inapplicable dependency modes. For instance
10026 # both Tru64's cc and ICC support -MD to output dependencies as a
10027 # side effect of compilation, but ICC will put the dependencies in
10028 # the current directory while Tru64 will put them in the object
10029 # directory.
10030 mkdir sub
10032 am_cv_CXX_dependencies_compiler_type=none
10033 if test "$am_compiler_list" = ""; then
10034 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10036 for depmode in $am_compiler_list; do
10037 if test $depmode = none; then break; fi
10039 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10040 # Setup a source with many dependencies, because some compilers
10041 # like to wrap large dependency lists on column 80 (with \), and
10042 # we should not choose a depcomp mode which is confused by this.
10044 # We need to recreate these files for each test, as the compiler may
10045 # overwrite some of them when testing with obscure command lines.
10046 # This happens at least with the AIX C compiler.
10047 : > sub/conftest.c
10048 for i in 1 2 3 4 5 6; do
10049 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10050 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10051 # Solaris 8's {/usr,}/bin/sh.
10052 touch sub/conftst$i.h
10053 done
10054 echo "include sub/conftest.Po" > confmf
10056 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10057 # mode. It turns out that the SunPro C++ compiler does not properly
10058 # handle `-M -o', and we need to detect this.
10059 depcmd="depmode=$depmode \
10060 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10061 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10062 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10063 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10064 if env $depcmd > conftest.err 2>&1 &&
10065 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10066 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10067 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10068 # icc doesn't choke on unknown options, it will just issue warnings
10069 # or remarks (even with -Werror). So we grep stderr for any message
10070 # that says an option was ignored or not supported.
10071 # When given -MP, icc 7.0 and 7.1 complain thusly:
10072 # icc: Command line warning: ignoring option '-M'; no argument required
10073 # The diagnosis changed in icc 8.0:
10074 # icc: Command line remark: option '-MP' not supported
10075 if (grep 'ignoring option' conftest.err ||
10076 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10077 am_cv_CXX_dependencies_compiler_type=$depmode
10078 $as_echo "$as_me:$LINENO: success" >&5
10079 break
10082 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10083 sed -e 's/^/| /' < conftest.err >&5
10084 done
10086 cd ..
10087 rm -rf conftest.dir
10088 else
10089 am_cv_CXX_dependencies_compiler_type=none
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10094 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10095 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10096 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10097 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10102 # --------
10103 # UNSORTED
10104 # --------
10107 # These libraries may be used by collect2.
10108 # We may need a special search path to get them linked.
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10110 $as_echo_n "checking for collect2 libraries... " >&6; }
10111 if ${gcc_cv_collect2_libs+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 save_LIBS="$LIBS"
10115 for libs in '' -lld -lmld \
10116 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10117 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10119 LIBS="$libs"
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10123 /* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10126 #ifdef __cplusplus
10127 extern "C"
10128 #endif
10129 char ldopen ();
10131 main ()
10133 return ldopen ();
10135 return 0;
10137 _ACEOF
10138 if ac_fn_cxx_try_link "$LINENO"; then :
10139 gcc_cv_collect2_libs="$libs"; break
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 done
10144 LIBS="$save_LIBS"
10145 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10148 $as_echo "$gcc_cv_collect2_libs" >&6; }
10149 case $gcc_cv_collect2_libs in
10150 "none required") ;;
10151 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10152 esac
10155 # When building Ada code on Alpha, we need exc_resume which is usually in
10156 # -lexc. So test for it.
10157 save_LIBS="$LIBS"
10158 LIBS=
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10160 $as_echo_n "checking for library containing exc_resume... " >&6; }
10161 if ${ac_cv_search_exc_resume+:} false; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 ac_func_search_save_LIBS=$LIBS
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10168 /* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
10171 #ifdef __cplusplus
10172 extern "C"
10173 #endif
10174 char exc_resume ();
10176 main ()
10178 return exc_resume ();
10180 return 0;
10182 _ACEOF
10183 for ac_lib in '' exc; do
10184 if test -z "$ac_lib"; then
10185 ac_res="none required"
10186 else
10187 ac_res=-l$ac_lib
10188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10190 if ac_fn_cxx_try_link "$LINENO"; then :
10191 ac_cv_search_exc_resume=$ac_res
10193 rm -f core conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext
10195 if ${ac_cv_search_exc_resume+:} false; then :
10196 break
10198 done
10199 if ${ac_cv_search_exc_resume+:} false; then :
10201 else
10202 ac_cv_search_exc_resume=no
10204 rm conftest.$ac_ext
10205 LIBS=$ac_func_search_save_LIBS
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10208 $as_echo "$ac_cv_search_exc_resume" >&6; }
10209 ac_res=$ac_cv_search_exc_resume
10210 if test "$ac_res" != no; then :
10211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10215 GNAT_LIBEXC="$LIBS"
10216 LIBS="$save_LIBS"
10219 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10220 save_LIBS="$LIBS"
10221 LIBS=
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10223 $as_echo_n "checking for library containing kstat_open... " >&6; }
10224 if ${ac_cv_search_kstat_open+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 ac_func_search_save_LIBS=$LIBS
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 char kstat_open ();
10239 main ()
10241 return kstat_open ();
10243 return 0;
10245 _ACEOF
10246 for ac_lib in '' kstat; do
10247 if test -z "$ac_lib"; then
10248 ac_res="none required"
10249 else
10250 ac_res=-l$ac_lib
10251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10253 if ac_fn_cxx_try_link "$LINENO"; then :
10254 ac_cv_search_kstat_open=$ac_res
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext
10258 if ${ac_cv_search_kstat_open+:} false; then :
10259 break
10261 done
10262 if ${ac_cv_search_kstat_open+:} false; then :
10264 else
10265 ac_cv_search_kstat_open=no
10267 rm conftest.$ac_ext
10268 LIBS=$ac_func_search_save_LIBS
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10271 $as_echo "$ac_cv_search_kstat_open" >&6; }
10272 ac_res=$ac_cv_search_kstat_open
10273 if test "$ac_res" != no; then :
10274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10278 EXTRA_GCC_LIBS="$LIBS"
10279 LIBS="$save_LIBS"
10282 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10283 # C++ needs those for libcody.
10284 save_LIBS="$LIBS"
10285 LIBS=
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10288 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10289 if ${ac_cv_search_gethostbyname+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 ac_func_search_save_LIBS=$LIBS
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10299 #ifdef __cplusplus
10300 extern "C"
10301 #endif
10302 char gethostbyname ();
10304 main ()
10306 return gethostbyname ();
10308 return 0;
10310 _ACEOF
10311 for ac_lib in '' nsl; do
10312 if test -z "$ac_lib"; then
10313 ac_res="none required"
10314 else
10315 ac_res=-l$ac_lib
10316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10318 if ac_fn_cxx_try_link "$LINENO"; then :
10319 ac_cv_search_gethostbyname=$ac_res
10321 rm -f core conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext
10323 if ${ac_cv_search_gethostbyname+:} false; then :
10324 break
10326 done
10327 if ${ac_cv_search_gethostbyname+:} false; then :
10329 else
10330 ac_cv_search_gethostbyname=no
10332 rm conftest.$ac_ext
10333 LIBS=$ac_func_search_save_LIBS
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10336 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10337 ac_res=$ac_cv_search_gethostbyname
10338 if test "$ac_res" != no; then :
10339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10344 $as_echo_n "checking for library containing socket... " >&6; }
10345 if ${ac_cv_search_socket+:} 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 socket ();
10360 main ()
10362 return socket ();
10364 return 0;
10366 _ACEOF
10367 for ac_lib in '' socket; 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_socket=$ac_res
10377 rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext
10379 if ${ac_cv_search_socket+:} false; then :
10380 break
10382 done
10383 if ${ac_cv_search_socket+:} false; then :
10385 else
10386 ac_cv_search_socket=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_socket" >&5
10392 $as_echo "$ac_cv_search_socket" >&6; }
10393 ac_res=$ac_cv_search_socket
10394 if test "$ac_res" != no; then :
10395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10397 else
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10400 $as_echo_n "checking for socket in -lsocket... " >&6; }
10401 if ${ac_cv_lib_socket_socket+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 ac_check_lib_save_LIBS=$LIBS
10405 LIBS="-lsocket -lnsl $LIBS"
10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h. */
10409 /* Override any GCC internal prototype to avoid an error.
10410 Use char because int might match the return type of a GCC
10411 builtin and then its argument prototype would still apply. */
10412 #ifdef __cplusplus
10413 extern "C"
10414 #endif
10415 char socket ();
10417 main ()
10419 return socket ();
10421 return 0;
10423 _ACEOF
10424 if ac_fn_cxx_try_link "$LINENO"; then :
10425 ac_cv_lib_socket_socket=yes
10426 else
10427 ac_cv_lib_socket_socket=no
10429 rm -f core conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10431 LIBS=$ac_check_lib_save_LIBS
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10434 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10435 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10436 LIBS="-lsocket -lnsl $LIBS"
10442 NETLIBS="$LIBS"
10443 LIBS="$save_LIBS"
10446 # Some systems put ldexp and frexp in libm instead of libc; assume
10447 # they're both in the same place. jcf-dump needs them.
10448 save_LIBS="$LIBS"
10449 LIBS=
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10451 $as_echo_n "checking for library containing ldexp... " >&6; }
10452 if ${ac_cv_search_ldexp+:} false; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 ac_func_search_save_LIBS=$LIBS
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10459 /* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
10462 #ifdef __cplusplus
10463 extern "C"
10464 #endif
10465 char ldexp ();
10467 main ()
10469 return ldexp ();
10471 return 0;
10473 _ACEOF
10474 for ac_lib in '' m; do
10475 if test -z "$ac_lib"; then
10476 ac_res="none required"
10477 else
10478 ac_res=-l$ac_lib
10479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10481 if ac_fn_cxx_try_link "$LINENO"; then :
10482 ac_cv_search_ldexp=$ac_res
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext
10486 if ${ac_cv_search_ldexp+:} false; then :
10487 break
10489 done
10490 if ${ac_cv_search_ldexp+:} false; then :
10492 else
10493 ac_cv_search_ldexp=no
10495 rm conftest.$ac_ext
10496 LIBS=$ac_func_search_save_LIBS
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10499 $as_echo "$ac_cv_search_ldexp" >&6; }
10500 ac_res=$ac_cv_search_ldexp
10501 if test "$ac_res" != no; then :
10502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10506 LDEXP_LIB="$LIBS"
10507 LIBS="$save_LIBS"
10510 # Some systems need dlopen
10511 save_LIBS="$LIBS"
10512 LIBS=
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10514 $as_echo_n "checking for library containing dlopen... " >&6; }
10515 if ${ac_cv_search_dlopen+:} false; then :
10516 $as_echo_n "(cached) " >&6
10517 else
10518 ac_func_search_save_LIBS=$LIBS
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10522 /* Override any GCC internal prototype to avoid an error.
10523 Use char because int might match the return type of a GCC
10524 builtin and then its argument prototype would still apply. */
10525 #ifdef __cplusplus
10526 extern "C"
10527 #endif
10528 char dlopen ();
10530 main ()
10532 return dlopen ();
10534 return 0;
10536 _ACEOF
10537 for ac_lib in '' dl; do
10538 if test -z "$ac_lib"; then
10539 ac_res="none required"
10540 else
10541 ac_res=-l$ac_lib
10542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10544 if ac_fn_cxx_try_link "$LINENO"; then :
10545 ac_cv_search_dlopen=$ac_res
10547 rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext
10549 if ${ac_cv_search_dlopen+:} false; then :
10550 break
10552 done
10553 if ${ac_cv_search_dlopen+:} false; then :
10555 else
10556 ac_cv_search_dlopen=no
10558 rm conftest.$ac_ext
10559 LIBS=$ac_func_search_save_LIBS
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10562 $as_echo "$ac_cv_search_dlopen" >&6; }
10563 ac_res=$ac_cv_search_dlopen
10564 if test "$ac_res" != no; then :
10565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10569 DL_LIB="$LIBS"
10570 LIBS="$save_LIBS"
10573 # Use <inttypes.h> only if it exists,
10574 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10575 # PRId64
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10577 $as_echo_n "checking for inttypes.h... " >&6; }
10578 if ${gcc_cv_header_inttypes_h+:} false; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10583 #define __STDC_FORMAT_MACROS
10584 #include <sys/types.h>
10585 #include <inttypes.h>
10587 main ()
10589 intmax_t i = -1;
10590 #ifndef PRId64
10591 choke me
10592 #endif
10594 return 0;
10596 _ACEOF
10597 if ac_fn_cxx_try_compile "$LINENO"; then :
10598 gcc_cv_header_inttypes_h=yes
10599 else
10600 gcc_cv_header_inttypes_h=no
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10606 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10607 if test $gcc_cv_header_inttypes_h = yes; then
10609 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10613 # Look for the ZSTD package.
10614 ZSTD_INCLUDE=
10615 ZSTD_LIB=
10618 ZSTD_CPPFLAGS=
10619 ZSTD_LDFLAGS=
10623 # Check whether --with-zstd was given.
10624 if test "${with_zstd+set}" = set; then :
10625 withval=$with_zstd;
10629 # Check whether --with-zstd-include was given.
10630 if test "${with_zstd_include+set}" = set; then :
10631 withval=$with_zstd_include;
10635 # Check whether --with-zstd-lib was given.
10636 if test "${with_zstd_lib+set}" = set; then :
10637 withval=$with_zstd_lib;
10640 case "x$with_zstd" in
10641 x) ;;
10642 xno)
10643 ZSTD_INCLUDE=
10644 ZSTD_LIB=
10646 *) ZSTD_INCLUDE=$with_zstd/include
10647 ZSTD_LIB=$with_zstd/lib
10649 esac
10651 if test "x$with_zstd" != xno; then
10652 if test "x$with_zstd_include" != x; then
10653 ZSTD_INCLUDE=$with_zstd_include
10655 if test "x$with_zstd_lib" != x; then
10656 ZSTD_LIB=$with_zstd_lib
10658 if test "x$ZSTD_INCLUDE" != x \
10659 && test "x$ZSTD_INCLUDE" != xno; then
10660 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10662 if test "x$ZSTD_LIB" != x \
10663 && test "x$ZSTD_LIB" != xno; then
10664 ZSTD_LDFLAGS=-L$ZSTD_LIB
10667 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10668 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10670 # LTO can use zstd compression algorithm
10671 save_LIBS="$LIBS"
10672 LIBS=
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10674 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10675 if ${ac_cv_search_ZSTD_compress+:} false; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 ac_func_search_save_LIBS=$LIBS
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10682 /* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 char ZSTD_compress ();
10690 main ()
10692 return ZSTD_compress ();
10694 return 0;
10696 _ACEOF
10697 for ac_lib in '' zstd; do
10698 if test -z "$ac_lib"; then
10699 ac_res="none required"
10700 else
10701 ac_res=-l$ac_lib
10702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10704 if ac_fn_cxx_try_link "$LINENO"; then :
10705 ac_cv_search_ZSTD_compress=$ac_res
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext
10709 if ${ac_cv_search_ZSTD_compress+:} false; then :
10710 break
10712 done
10713 if ${ac_cv_search_ZSTD_compress+:} false; then :
10715 else
10716 ac_cv_search_ZSTD_compress=no
10718 rm conftest.$ac_ext
10719 LIBS=$ac_func_search_save_LIBS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10722 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10723 ac_res=$ac_cv_search_ZSTD_compress
10724 if test "$ac_res" != no; then :
10725 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10727 else
10728 gcc_cv_header_zstd_h=no
10731 ZSTD_LIB="$LIBS"
10732 LIBS="$save_LIBS"
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10736 $as_echo_n "checking for zstd.h... " >&6; }
10737 if ${gcc_cv_header_zstd_h+:} false; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 # We require version 1.3.0 or later. This is the first version that has
10741 # ZSTD_getFrameContentSize.
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 #include <zstd.h>
10745 #if ZSTD_VERSION_NUMBER < 10300
10746 #error "need zstd 1.3.0 or better"
10747 #endif
10749 main ()
10753 return 0;
10755 _ACEOF
10756 if ac_fn_cxx_try_compile "$LINENO"; then :
10757 gcc_cv_header_zstd_h=yes
10758 else
10759 gcc_cv_header_zstd_h=no
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10765 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10766 if test $gcc_cv_header_zstd_h = yes; then
10768 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10770 elif test "x$with_zstd" != x; then
10771 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10777 for ac_func in times clock kill getrlimit setrlimit atoq \
10778 popen sysconf strsignal getrusage nl_langinfo \
10779 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10780 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
10781 do :
10782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10783 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10784 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10785 cat >>confdefs.h <<_ACEOF
10786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10787 _ACEOF
10790 done
10793 if test x$ac_cv_func_mbstowcs = xyes; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10795 $as_echo_n "checking whether mbstowcs works... " >&6; }
10796 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 if test "$cross_compiling" = yes; then :
10800 gcc_cv_func_mbstowcs_works=yes
10801 else
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 #include <stdlib.h>
10805 int main()
10807 mbstowcs(0, "", 0);
10808 return 0;
10810 _ACEOF
10811 if ac_fn_cxx_try_run "$LINENO"; then :
10812 gcc_cv_func_mbstowcs_works=yes
10813 else
10814 gcc_cv_func_mbstowcs_works=no
10816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10817 conftest.$ac_objext conftest.beam conftest.$ac_ext
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10822 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10823 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10825 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10830 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10831 if test "x$ac_cv_type_ssize_t" = xyes; then :
10833 else
10835 cat >>confdefs.h <<_ACEOF
10836 #define ssize_t int
10837 _ACEOF
10841 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10842 if test "x$ac_cv_type_caddr_t" = xyes; then :
10844 else
10846 cat >>confdefs.h <<_ACEOF
10847 #define caddr_t char *
10848 _ACEOF
10852 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10854 if test "x$ac_cv_type_sighander_t" = xyes; then :
10856 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10862 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10863 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10864 gcc_header_sys_mman_h=yes
10865 else
10866 gcc_header_sys_mman_h=no
10869 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10870 if test "x$ac_cv_func_mmap" = xyes; then :
10871 gcc_func_mmap=yes
10872 else
10873 gcc_func_mmap=no
10876 if test "$gcc_header_sys_mman_h" != yes \
10877 || test "$gcc_func_mmap" != yes; then
10878 gcc_cv_func_mmap_file=no
10879 gcc_cv_func_mmap_dev_zero=no
10880 gcc_cv_func_mmap_anon=no
10881 else
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10883 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10884 if ${gcc_cv_func_mmap_file+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 # Add a system to this blacklist if
10888 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10889 # memory area containing the same data that you'd get if you applied
10890 # read() to the same fd. The only system known to have a problem here
10891 # is VMS, where text files have record structure.
10892 case "$host_os" in
10893 *vms* | ultrix*)
10894 gcc_cv_func_mmap_file=no ;;
10896 gcc_cv_func_mmap_file=yes;;
10897 esac
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10900 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10902 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10903 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 # Add a system to this blacklist if it has mmap() but /dev/zero
10907 # does not exist, or if mmapping /dev/zero does not give anonymous
10908 # zeroed pages with both the following properties:
10909 # 1. If you map N consecutive pages in with one call, and then
10910 # unmap any subset of those pages, the pages that were not
10911 # explicitly unmapped remain accessible.
10912 # 2. If you map two adjacent blocks of memory and then unmap them
10913 # both at once, they must both go away.
10914 # Systems known to be in this category are Windows (all variants),
10915 # VMS, and Darwin.
10916 case "$host_os" in
10917 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10918 gcc_cv_func_mmap_dev_zero=no ;;
10920 gcc_cv_func_mmap_dev_zero=yes;;
10921 esac
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10924 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10926 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10928 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10929 if ${gcc_cv_decl_map_anon+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10934 #include <sys/types.h>
10935 #include <sys/mman.h>
10936 #include <unistd.h>
10938 #ifndef MAP_ANONYMOUS
10939 #define MAP_ANONYMOUS MAP_ANON
10940 #endif
10943 main ()
10945 int n = MAP_ANONYMOUS;
10947 return 0;
10949 _ACEOF
10950 if ac_fn_cxx_try_compile "$LINENO"; then :
10951 gcc_cv_decl_map_anon=yes
10952 else
10953 gcc_cv_decl_map_anon=no
10955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10958 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10960 if test $gcc_cv_decl_map_anon = no; then
10961 gcc_cv_func_mmap_anon=no
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10964 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10965 if ${gcc_cv_func_mmap_anon+:} false; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10969 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10970 # doesn't give anonymous zeroed pages with the same properties listed
10971 # above for use of /dev/zero.
10972 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10973 case "$host_os" in
10974 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10975 gcc_cv_func_mmap_anon=no ;;
10977 gcc_cv_func_mmap_anon=yes;;
10978 esac
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10981 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10985 if test $gcc_cv_func_mmap_file = yes; then
10987 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10990 if test $gcc_cv_func_mmap_dev_zero = yes; then
10992 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10995 if test $gcc_cv_func_mmap_anon = yes; then
10997 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11002 case "${host}" in
11003 *-*-*vms*)
11004 # Under VMS, vfork works very differently than on Unix. The standard test
11005 # won't work, and it isn't easily adaptable. It makes more sense to
11006 # just force it.
11007 ac_cv_func_vfork_works=yes
11009 esac
11010 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11011 if test "x$ac_cv_type_pid_t" = xyes; then :
11013 else
11015 cat >>confdefs.h <<_ACEOF
11016 #define pid_t int
11017 _ACEOF
11021 for ac_header in vfork.h
11022 do :
11023 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11024 if test "x$ac_cv_header_vfork_h" = xyes; then :
11025 cat >>confdefs.h <<_ACEOF
11026 #define HAVE_VFORK_H 1
11027 _ACEOF
11030 done
11032 for ac_func in fork vfork
11033 do :
11034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11035 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11036 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11037 cat >>confdefs.h <<_ACEOF
11038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11039 _ACEOF
11042 done
11044 if test "x$ac_cv_func_fork" = xyes; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11046 $as_echo_n "checking for working fork... " >&6; }
11047 if ${ac_cv_func_fork_works+:} false; then :
11048 $as_echo_n "(cached) " >&6
11049 else
11050 if test "$cross_compiling" = yes; then :
11051 ac_cv_func_fork_works=cross
11052 else
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11055 $ac_includes_default
11057 main ()
11060 /* By Ruediger Kuhlmann. */
11061 return fork () < 0;
11064 return 0;
11066 _ACEOF
11067 if ac_fn_cxx_try_run "$LINENO"; then :
11068 ac_cv_func_fork_works=yes
11069 else
11070 ac_cv_func_fork_works=no
11072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11073 conftest.$ac_objext conftest.beam conftest.$ac_ext
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11078 $as_echo "$ac_cv_func_fork_works" >&6; }
11080 else
11081 ac_cv_func_fork_works=$ac_cv_func_fork
11083 if test "x$ac_cv_func_fork_works" = xcross; then
11084 case $host in
11085 *-*-amigaos* | *-*-msdosdjgpp*)
11086 # Override, as these systems have only a dummy fork() stub
11087 ac_cv_func_fork_works=no
11090 ac_cv_func_fork_works=yes
11092 esac
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11094 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11096 ac_cv_func_vfork_works=$ac_cv_func_vfork
11097 if test "x$ac_cv_func_vfork" = xyes; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11099 $as_echo_n "checking for working vfork... " >&6; }
11100 if ${ac_cv_func_vfork_works+:} false; then :
11101 $as_echo_n "(cached) " >&6
11102 else
11103 if test "$cross_compiling" = yes; then :
11104 ac_cv_func_vfork_works=cross
11105 else
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11108 /* Thanks to Paul Eggert for this test. */
11109 $ac_includes_default
11110 #include <sys/wait.h>
11111 #ifdef HAVE_VFORK_H
11112 # include <vfork.h>
11113 #endif
11114 /* On some sparc systems, changes by the child to local and incoming
11115 argument registers are propagated back to the parent. The compiler
11116 is told about this with #include <vfork.h>, but some compilers
11117 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11118 static variable whose address is put into a register that is
11119 clobbered by the vfork. */
11120 static void
11121 #ifdef __cplusplus
11122 sparc_address_test (int arg)
11123 # else
11124 sparc_address_test (arg) int arg;
11125 #endif
11127 static pid_t child;
11128 if (!child) {
11129 child = vfork ();
11130 if (child < 0) {
11131 perror ("vfork");
11132 _exit(2);
11134 if (!child) {
11135 arg = getpid();
11136 write(-1, "", 0);
11137 _exit (arg);
11143 main ()
11145 pid_t parent = getpid ();
11146 pid_t child;
11148 sparc_address_test (0);
11150 child = vfork ();
11152 if (child == 0) {
11153 /* Here is another test for sparc vfork register problems. This
11154 test uses lots of local variables, at least as many local
11155 variables as main has allocated so far including compiler
11156 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11157 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11158 reuse the register of parent for one of the local variables,
11159 since it will think that parent can't possibly be used any more
11160 in this routine. Assigning to the local variable will thus
11161 munge parent in the parent process. */
11162 pid_t
11163 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11164 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11165 /* Convince the compiler that p..p7 are live; otherwise, it might
11166 use the same hardware register for all 8 local variables. */
11167 if (p != p1 || p != p2 || p != p3 || p != p4
11168 || p != p5 || p != p6 || p != p7)
11169 _exit(1);
11171 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11172 from child file descriptors. If the child closes a descriptor
11173 before it execs or exits, this munges the parent's descriptor
11174 as well. Test for this by closing stdout in the child. */
11175 _exit(close(fileno(stdout)) != 0);
11176 } else {
11177 int status;
11178 struct stat st;
11180 while (wait(&status) != child)
11182 return (
11183 /* Was there some problem with vforking? */
11184 child < 0
11186 /* Did the child fail? (This shouldn't happen.) */
11187 || status
11189 /* Did the vfork/compiler bug occur? */
11190 || parent != getpid()
11192 /* Did the file descriptor bug occur? */
11193 || fstat(fileno(stdout), &st) != 0
11197 _ACEOF
11198 if ac_fn_cxx_try_run "$LINENO"; then :
11199 ac_cv_func_vfork_works=yes
11200 else
11201 ac_cv_func_vfork_works=no
11203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11204 conftest.$ac_objext conftest.beam conftest.$ac_ext
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11209 $as_echo "$ac_cv_func_vfork_works" >&6; }
11212 if test "x$ac_cv_func_fork_works" = xcross; then
11213 ac_cv_func_vfork_works=$ac_cv_func_vfork
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11215 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11218 if test "x$ac_cv_func_vfork_works" = xyes; then
11220 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11222 else
11224 $as_echo "#define vfork fork" >>confdefs.h
11227 if test "x$ac_cv_func_fork_works" = xyes; then
11229 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11235 if test "X$prefix" = "XNONE"; then
11236 acl_final_prefix="$ac_default_prefix"
11237 else
11238 acl_final_prefix="$prefix"
11240 if test "X$exec_prefix" = "XNONE"; then
11241 acl_final_exec_prefix='${prefix}'
11242 else
11243 acl_final_exec_prefix="$exec_prefix"
11245 acl_save_prefix="$prefix"
11246 prefix="$acl_final_prefix"
11247 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11248 prefix="$acl_save_prefix"
11251 # Check whether --with-gnu-ld was given.
11252 if test "${with_gnu_ld+set}" = set; then :
11253 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11254 else
11255 with_gnu_ld=no
11258 # Prepare PATH_SEPARATOR.
11259 # The user is always right.
11260 if test "${PATH_SEPARATOR+set}" != set; then
11261 echo "#! /bin/sh" >conf$$.sh
11262 echo "exit 0" >>conf$$.sh
11263 chmod +x conf$$.sh
11264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11265 PATH_SEPARATOR=';'
11266 else
11267 PATH_SEPARATOR=:
11269 rm -f conf$$.sh
11271 ac_prog=ld
11272 if test "$GCC" = yes; then
11273 # Check if gcc -print-prog-name=ld gives a path.
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11275 $as_echo_n "checking for ld used by GCC... " >&6; }
11276 case $host in
11277 *-*-mingw*)
11278 # gcc leaves a trailing carriage return which upsets mingw
11279 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11281 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11282 esac
11283 case $ac_prog in
11284 # Accept absolute paths.
11285 [\\/]* | [A-Za-z]:[\\/]*)
11286 re_direlt='/[^/][^/]*/\.\./'
11287 # Canonicalize the path of ld
11288 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11289 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11290 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11291 done
11292 test -z "$LD" && LD="$ac_prog"
11295 # If it fails, then pretend we aren't using GCC.
11296 ac_prog=ld
11299 # If it is relative, then search for the first ld in PATH.
11300 with_gnu_ld=unknown
11302 esac
11303 elif test "$with_gnu_ld" = yes; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11305 $as_echo_n "checking for GNU ld... " >&6; }
11306 else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11308 $as_echo_n "checking for non-GNU ld... " >&6; }
11310 if ${acl_cv_path_LD+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 if test -z "$LD"; then
11314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11315 for ac_dir in $PATH; do
11316 test -z "$ac_dir" && ac_dir=.
11317 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11318 acl_cv_path_LD="$ac_dir/$ac_prog"
11319 # Check to see if the program is GNU ld. I'd rather use --version,
11320 # but apparently some GNU ld's only accept -v.
11321 # Break only if it was the GNU/non-GNU ld that we prefer.
11322 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11323 test "$with_gnu_ld" != no && break
11324 else
11325 test "$with_gnu_ld" != yes && break
11328 done
11329 IFS="$ac_save_ifs"
11330 else
11331 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11335 LD="$acl_cv_path_LD"
11336 if test -n "$LD"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11338 $as_echo "$LD" >&6; }
11339 else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11343 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11345 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11346 if ${acl_cv_prog_gnu_ld+:} false; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11350 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11351 acl_cv_prog_gnu_ld=yes
11352 else
11353 acl_cv_prog_gnu_ld=no
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11357 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11358 with_gnu_ld=$acl_cv_prog_gnu_ld
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11363 $as_echo_n "checking for shared library run path origin... " >&6; }
11364 if ${acl_cv_rpath+:} false; then :
11365 $as_echo_n "(cached) " >&6
11366 else
11368 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11369 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11370 . ./conftest.sh
11371 rm -f ./conftest.sh
11372 acl_cv_rpath=done
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11376 $as_echo "$acl_cv_rpath" >&6; }
11377 wl="$acl_cv_wl"
11378 libext="$acl_cv_libext"
11379 shlibext="$acl_cv_shlibext"
11380 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11381 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11382 hardcode_direct="$acl_cv_hardcode_direct"
11383 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11384 # Check whether --enable-rpath was given.
11385 if test "${enable_rpath+set}" = set; then :
11386 enableval=$enable_rpath; :
11387 else
11388 enable_rpath=yes
11398 use_additional=yes
11400 acl_save_prefix="$prefix"
11401 prefix="$acl_final_prefix"
11402 acl_save_exec_prefix="$exec_prefix"
11403 exec_prefix="$acl_final_exec_prefix"
11405 eval additional_includedir=\"$includedir\"
11406 eval additional_libdir=\"$libdir\"
11408 exec_prefix="$acl_save_exec_prefix"
11409 prefix="$acl_save_prefix"
11412 # Check whether --with-libiconv-prefix was given.
11413 if test "${with_libiconv_prefix+set}" = set; then :
11414 withval=$with_libiconv_prefix;
11415 if test "X$withval" = "Xno"; then
11416 use_additional=no
11417 else
11418 if test "X$withval" = "X"; then
11420 acl_save_prefix="$prefix"
11421 prefix="$acl_final_prefix"
11422 acl_save_exec_prefix="$exec_prefix"
11423 exec_prefix="$acl_final_exec_prefix"
11425 eval additional_includedir=\"$includedir\"
11426 eval additional_libdir=\"$libdir\"
11428 exec_prefix="$acl_save_exec_prefix"
11429 prefix="$acl_save_prefix"
11431 else
11432 additional_includedir="$withval/include"
11433 additional_libdir="$withval/lib"
11440 # Check whether --with-libiconv-type was given.
11441 if test "${with_libiconv_type+set}" = set; then :
11442 withval=$with_libiconv_type; with_libiconv_type=$withval
11443 else
11444 with_libiconv_type=auto
11447 lib_type=`eval echo \$with_libiconv_type`
11449 LIBICONV=
11450 LTLIBICONV=
11451 INCICONV=
11452 rpathdirs=
11453 ltrpathdirs=
11454 names_already_handled=
11455 names_next_round='iconv '
11456 while test -n "$names_next_round"; do
11457 names_this_round="$names_next_round"
11458 names_next_round=
11459 for name in $names_this_round; do
11460 already_handled=
11461 for n in $names_already_handled; do
11462 if test "$n" = "$name"; then
11463 already_handled=yes
11464 break
11466 done
11467 if test -z "$already_handled"; then
11468 names_already_handled="$names_already_handled $name"
11469 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11470 eval value=\"\$HAVE_LIB$uppername\"
11471 if test -n "$value"; then
11472 if test "$value" = yes; then
11473 eval value=\"\$LIB$uppername\"
11474 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11475 eval value=\"\$LTLIB$uppername\"
11476 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11477 else
11480 else
11481 found_dir=
11482 found_la=
11483 found_so=
11484 found_a=
11485 if test $use_additional = yes; then
11486 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11487 found_dir="$additional_libdir"
11488 found_so="$additional_libdir/lib$name.$shlibext"
11489 if test -f "$additional_libdir/lib$name.la"; then
11490 found_la="$additional_libdir/lib$name.la"
11492 elif test x$lib_type != xshared; then
11493 if test -f "$additional_libdir/lib$name.$libext"; then
11494 found_dir="$additional_libdir"
11495 found_a="$additional_libdir/lib$name.$libext"
11496 if test -f "$additional_libdir/lib$name.la"; then
11497 found_la="$additional_libdir/lib$name.la"
11502 if test "X$found_dir" = "X"; then
11503 for x in $LDFLAGS $LTLIBICONV; do
11505 acl_save_prefix="$prefix"
11506 prefix="$acl_final_prefix"
11507 acl_save_exec_prefix="$exec_prefix"
11508 exec_prefix="$acl_final_exec_prefix"
11509 eval x=\"$x\"
11510 exec_prefix="$acl_save_exec_prefix"
11511 prefix="$acl_save_prefix"
11513 case "$x" in
11514 -L*)
11515 dir=`echo "X$x" | sed -e 's/^X-L//'`
11516 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11517 found_dir="$dir"
11518 found_so="$dir/lib$name.$shlibext"
11519 if test -f "$dir/lib$name.la"; then
11520 found_la="$dir/lib$name.la"
11522 elif test x$lib_type != xshared; then
11523 if test -f "$dir/lib$name.$libext"; then
11524 found_dir="$dir"
11525 found_a="$dir/lib$name.$libext"
11526 if test -f "$dir/lib$name.la"; then
11527 found_la="$dir/lib$name.la"
11532 esac
11533 if test "X$found_dir" != "X"; then
11534 break
11536 done
11538 if test "X$found_dir" != "X"; then
11539 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11540 if test "X$found_so" != "X"; then
11541 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11542 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11543 else
11544 haveit=
11545 for x in $ltrpathdirs; do
11546 if test "X$x" = "X$found_dir"; then
11547 haveit=yes
11548 break
11550 done
11551 if test -z "$haveit"; then
11552 ltrpathdirs="$ltrpathdirs $found_dir"
11554 if test "$hardcode_direct" = yes; then
11555 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11556 else
11557 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11558 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11559 haveit=
11560 for x in $rpathdirs; do
11561 if test "X$x" = "X$found_dir"; then
11562 haveit=yes
11563 break
11565 done
11566 if test -z "$haveit"; then
11567 rpathdirs="$rpathdirs $found_dir"
11569 else
11570 haveit=
11571 for x in $LDFLAGS $LIBICONV; do
11573 acl_save_prefix="$prefix"
11574 prefix="$acl_final_prefix"
11575 acl_save_exec_prefix="$exec_prefix"
11576 exec_prefix="$acl_final_exec_prefix"
11577 eval x=\"$x\"
11578 exec_prefix="$acl_save_exec_prefix"
11579 prefix="$acl_save_prefix"
11581 if test "X$x" = "X-L$found_dir"; then
11582 haveit=yes
11583 break
11585 done
11586 if test -z "$haveit"; then
11587 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11589 if test "$hardcode_minus_L" != no; then
11590 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11591 else
11592 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11597 else
11598 if test "X$found_a" != "X"; then
11599 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11600 else
11601 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11604 additional_includedir=
11605 case "$found_dir" in
11606 */lib | */lib/)
11607 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11608 additional_includedir="$basedir/include"
11610 esac
11611 if test "X$additional_includedir" != "X"; then
11612 if test "X$additional_includedir" != "X/usr/include"; then
11613 haveit=
11614 if test "X$additional_includedir" = "X/usr/local/include"; then
11615 if test -n "$GCC"; then
11616 case $host_os in
11617 linux*) haveit=yes;;
11618 esac
11621 if test -z "$haveit"; then
11622 for x in $CPPFLAGS $INCICONV; do
11624 acl_save_prefix="$prefix"
11625 prefix="$acl_final_prefix"
11626 acl_save_exec_prefix="$exec_prefix"
11627 exec_prefix="$acl_final_exec_prefix"
11628 eval x=\"$x\"
11629 exec_prefix="$acl_save_exec_prefix"
11630 prefix="$acl_save_prefix"
11632 if test "X$x" = "X-I$additional_includedir"; then
11633 haveit=yes
11634 break
11636 done
11637 if test -z "$haveit"; then
11638 if test -d "$additional_includedir"; then
11639 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11645 if test -n "$found_la"; then
11646 save_libdir="$libdir"
11647 case "$found_la" in
11648 */* | *\\*) . "$found_la" ;;
11649 *) . "./$found_la" ;;
11650 esac
11651 libdir="$save_libdir"
11652 for dep in $dependency_libs; do
11653 case "$dep" in
11654 -L*)
11655 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11656 if test "X$additional_libdir" != "X/usr/lib"; then
11657 haveit=
11658 if test "X$additional_libdir" = "X/usr/local/lib"; then
11659 if test -n "$GCC"; then
11660 case $host_os in
11661 linux*) haveit=yes;;
11662 esac
11665 if test -z "$haveit"; then
11666 haveit=
11667 for x in $LDFLAGS $LIBICONV; do
11669 acl_save_prefix="$prefix"
11670 prefix="$acl_final_prefix"
11671 acl_save_exec_prefix="$exec_prefix"
11672 exec_prefix="$acl_final_exec_prefix"
11673 eval x=\"$x\"
11674 exec_prefix="$acl_save_exec_prefix"
11675 prefix="$acl_save_prefix"
11677 if test "X$x" = "X-L$additional_libdir"; then
11678 haveit=yes
11679 break
11681 done
11682 if test -z "$haveit"; then
11683 if test -d "$additional_libdir"; then
11684 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11687 haveit=
11688 for x in $LDFLAGS $LTLIBICONV; do
11690 acl_save_prefix="$prefix"
11691 prefix="$acl_final_prefix"
11692 acl_save_exec_prefix="$exec_prefix"
11693 exec_prefix="$acl_final_exec_prefix"
11694 eval x=\"$x\"
11695 exec_prefix="$acl_save_exec_prefix"
11696 prefix="$acl_save_prefix"
11698 if test "X$x" = "X-L$additional_libdir"; then
11699 haveit=yes
11700 break
11702 done
11703 if test -z "$haveit"; then
11704 if test -d "$additional_libdir"; then
11705 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11711 -R*)
11712 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11713 if test "$enable_rpath" != no; then
11714 haveit=
11715 for x in $rpathdirs; do
11716 if test "X$x" = "X$dir"; then
11717 haveit=yes
11718 break
11720 done
11721 if test -z "$haveit"; then
11722 rpathdirs="$rpathdirs $dir"
11724 haveit=
11725 for x in $ltrpathdirs; do
11726 if test "X$x" = "X$dir"; then
11727 haveit=yes
11728 break
11730 done
11731 if test -z "$haveit"; then
11732 ltrpathdirs="$ltrpathdirs $dir"
11736 -l*)
11737 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11739 *.la)
11740 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11743 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11744 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11746 esac
11747 done
11749 else
11750 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11751 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11752 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11753 else
11754 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11755 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11760 done
11761 done
11762 if test "X$rpathdirs" != "X"; then
11763 if test -n "$hardcode_libdir_separator"; then
11764 alldirs=
11765 for found_dir in $rpathdirs; do
11766 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11767 done
11768 acl_save_libdir="$libdir"
11769 libdir="$alldirs"
11770 eval flag=\"$hardcode_libdir_flag_spec\"
11771 libdir="$acl_save_libdir"
11772 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11773 else
11774 for found_dir in $rpathdirs; do
11775 acl_save_libdir="$libdir"
11776 libdir="$found_dir"
11777 eval flag=\"$hardcode_libdir_flag_spec\"
11778 libdir="$acl_save_libdir"
11779 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11780 done
11783 if test "X$ltrpathdirs" != "X"; then
11784 for found_dir in $ltrpathdirs; do
11785 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11786 done
11795 am_save_CPPFLAGS="$CPPFLAGS"
11797 for element in $INCICONV; do
11798 haveit=
11799 for x in $CPPFLAGS; do
11801 acl_save_prefix="$prefix"
11802 prefix="$acl_final_prefix"
11803 acl_save_exec_prefix="$exec_prefix"
11804 exec_prefix="$acl_final_exec_prefix"
11805 eval x=\"$x\"
11806 exec_prefix="$acl_save_exec_prefix"
11807 prefix="$acl_save_prefix"
11809 if test "X$x" = "X$element"; then
11810 haveit=yes
11811 break
11813 done
11814 if test -z "$haveit"; then
11815 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11817 done
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11821 $as_echo_n "checking for iconv... " >&6; }
11822 if ${am_cv_func_iconv+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11826 am_cv_func_iconv="no, consider installing GNU libiconv"
11827 am_cv_lib_iconv=no
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11831 #include <stdlib.h>
11832 #include <iconv.h>
11835 main ()
11837 iconv_t cd = iconv_open("","");
11838 iconv(cd,NULL,NULL,NULL,NULL);
11839 iconv_close(cd);
11841 return 0;
11843 _ACEOF
11844 if ac_fn_cxx_try_link "$LINENO"; then :
11845 am_cv_func_iconv=yes
11847 rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11849 if test "$am_cv_func_iconv" != yes; then
11850 am_save_LIBS="$LIBS"
11851 LIBS="$LIBS $LIBICONV"
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11855 #include <stdlib.h>
11856 #include <iconv.h>
11859 main ()
11861 iconv_t cd = iconv_open("","");
11862 iconv(cd,NULL,NULL,NULL,NULL);
11863 iconv_close(cd);
11865 return 0;
11867 _ACEOF
11868 if ac_fn_cxx_try_link "$LINENO"; then :
11869 am_cv_lib_iconv=yes
11870 am_cv_func_iconv=yes
11872 rm -f core conftest.err conftest.$ac_objext \
11873 conftest$ac_exeext conftest.$ac_ext
11874 LIBS="$am_save_LIBS"
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11879 $as_echo "$am_cv_func_iconv" >&6; }
11880 if test "$am_cv_func_iconv" = yes; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11882 $as_echo_n "checking for working iconv... " >&6; }
11883 if ${am_cv_func_iconv_works+:} false; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11887 am_save_LIBS="$LIBS"
11888 if test $am_cv_lib_iconv = yes; then
11889 LIBS="$LIBS $LIBICONV"
11891 am_cv_func_iconv_works=no
11892 for ac_iconv_const in '' 'const'; do
11893 if test "$cross_compiling" = yes; then :
11894 case "$host_os" in
11895 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11896 *) am_cv_func_iconv_works="guessing yes" ;;
11897 esac
11898 else
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11902 #include <iconv.h>
11903 #include <string.h>
11905 #ifndef ICONV_CONST
11906 # define ICONV_CONST $ac_iconv_const
11907 #endif
11910 main ()
11912 int result = 0;
11913 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11914 successful returns. This is even documented in
11915 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11917 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11918 if (cd_utf8_to_88591 != (iconv_t)(-1))
11920 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11921 char buf[10];
11922 ICONV_CONST char *inptr = input;
11923 size_t inbytesleft = strlen (input);
11924 char *outptr = buf;
11925 size_t outbytesleft = sizeof (buf);
11926 size_t res = iconv (cd_utf8_to_88591,
11927 &inptr, &inbytesleft,
11928 &outptr, &outbytesleft);
11929 if (res == 0)
11930 result |= 1;
11931 iconv_close (cd_utf8_to_88591);
11934 /* Test against Solaris 10 bug: Failures are not distinguishable from
11935 successful returns. */
11937 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11938 if (cd_ascii_to_88591 != (iconv_t)(-1))
11940 static ICONV_CONST char input[] = "\263";
11941 char buf[10];
11942 ICONV_CONST char *inptr = input;
11943 size_t inbytesleft = strlen (input);
11944 char *outptr = buf;
11945 size_t outbytesleft = sizeof (buf);
11946 size_t res = iconv (cd_ascii_to_88591,
11947 &inptr, &inbytesleft,
11948 &outptr, &outbytesleft);
11949 if (res == 0)
11950 result |= 2;
11951 iconv_close (cd_ascii_to_88591);
11954 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11956 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11957 if (cd_88591_to_utf8 != (iconv_t)(-1))
11959 static ICONV_CONST char input[] = "\304";
11960 static char buf[2] = { (char)0xDE, (char)0xAD };
11961 ICONV_CONST char *inptr = input;
11962 size_t inbytesleft = 1;
11963 char *outptr = buf;
11964 size_t outbytesleft = 1;
11965 size_t res = iconv (cd_88591_to_utf8,
11966 &inptr, &inbytesleft,
11967 &outptr, &outbytesleft);
11968 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11969 result |= 4;
11970 iconv_close (cd_88591_to_utf8);
11973 #if 0 /* This bug could be worked around by the caller. */
11974 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11976 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11977 if (cd_88591_to_utf8 != (iconv_t)(-1))
11979 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11980 char buf[50];
11981 ICONV_CONST char *inptr = input;
11982 size_t inbytesleft = strlen (input);
11983 char *outptr = buf;
11984 size_t outbytesleft = sizeof (buf);
11985 size_t res = iconv (cd_88591_to_utf8,
11986 &inptr, &inbytesleft,
11987 &outptr, &outbytesleft);
11988 if ((int)res > 0)
11989 result |= 8;
11990 iconv_close (cd_88591_to_utf8);
11993 #endif
11994 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11995 provided. */
11997 /* Try standardized names. */
11998 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11999 /* Try IRIX, OSF/1 names. */
12000 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12001 /* Try AIX names. */
12002 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12003 /* Try HP-UX names. */
12004 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12005 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12006 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12007 result |= 16;
12008 if (cd1 != (iconv_t)(-1))
12009 iconv_close (cd1);
12010 if (cd2 != (iconv_t)(-1))
12011 iconv_close (cd2);
12012 if (cd3 != (iconv_t)(-1))
12013 iconv_close (cd3);
12014 if (cd4 != (iconv_t)(-1))
12015 iconv_close (cd4);
12017 return result;
12020 return 0;
12022 _ACEOF
12023 if ac_fn_cxx_try_run "$LINENO"; then :
12024 am_cv_func_iconv_works=yes
12026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12027 conftest.$ac_objext conftest.beam conftest.$ac_ext
12030 test "$am_cv_func_iconv_works" = no || break
12031 done
12032 LIBS="$am_save_LIBS"
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12036 $as_echo "$am_cv_func_iconv_works" >&6; }
12037 case "$am_cv_func_iconv_works" in
12038 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12039 *) am_func_iconv=yes ;;
12040 esac
12041 else
12042 am_func_iconv=no am_cv_lib_iconv=no
12044 if test "$am_func_iconv" = yes; then
12046 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12049 if test "$am_cv_lib_iconv" = yes; then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12051 $as_echo_n "checking how to link with libiconv... " >&6; }
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12053 $as_echo "$LIBICONV" >&6; }
12054 else
12055 CPPFLAGS="$am_save_CPPFLAGS"
12056 LIBICONV=
12057 LTLIBICONV=
12062 if test "$am_cv_func_iconv" = yes; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
12064 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
12065 if ${gl_cv_iconv_nonconst+:} false; then :
12066 $as_echo_n "(cached) " >&6
12067 else
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12071 #include <stdlib.h>
12072 #include <iconv.h>
12073 extern
12074 #ifdef __cplusplus
12076 #endif
12077 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12080 main ()
12084 return 0;
12086 _ACEOF
12087 if ac_fn_cxx_try_compile "$LINENO"; then :
12088 gl_cv_iconv_nonconst=yes
12089 else
12090 gl_cv_iconv_nonconst=no
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
12096 $as_echo "$gl_cv_iconv_nonconst" >&6; }
12097 else
12098 gl_cv_iconv_nonconst=yes
12100 if test $gl_cv_iconv_nonconst = yes; then
12101 iconv_arg1=""
12102 else
12103 iconv_arg1="const"
12106 cat >>confdefs.h <<_ACEOF
12107 #define ICONV_CONST $iconv_arg1
12108 _ACEOF
12112 if test "$am_func_iconv" = yes; then
12113 if test -n "$LIBICONV"; then
12114 am_cv_func_iconv_summary='yes, in libiconv'
12115 else
12116 am_cv_func_iconv_summary='yes, in libc'
12118 else
12119 if test "$am_cv_func_iconv" = yes; then
12120 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
12121 else
12122 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
12127 # Until we have in-tree GNU iconv:
12128 LIBICONV_DEP=
12129 if test -f "$LTLIBICONV"; then
12130 LIBICONV_DEP=$LTLIBICONV
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12136 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12137 if ${am_cv_val_LC_MESSAGES+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12142 #include <locale.h>
12144 main ()
12146 return LC_MESSAGES
12148 return 0;
12150 _ACEOF
12151 if ac_fn_cxx_try_link "$LINENO"; then :
12152 am_cv_val_LC_MESSAGES=yes
12153 else
12154 am_cv_val_LC_MESSAGES=no
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12160 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12161 if test $am_cv_val_LC_MESSAGES = yes; then
12163 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12170 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12171 if ${am_cv_langinfo_codeset+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176 #include <langinfo.h>
12178 main ()
12180 char* cs = nl_langinfo(CODESET);
12182 return 0;
12184 _ACEOF
12185 if ac_fn_cxx_try_link "$LINENO"; then :
12186 am_cv_langinfo_codeset=yes
12187 else
12188 am_cv_langinfo_codeset=no
12190 rm -f core conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12195 $as_echo "$am_cv_langinfo_codeset" >&6; }
12196 if test $am_cv_langinfo_codeset = yes; then
12198 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12203 # We will need to find libiberty.h and ansidecl.h
12204 saved_CFLAGS="$CFLAGS"
12205 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12206 saved_CXXFLAGS="$CXXFLAGS"
12207 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12209 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12210 # normal autoconf function for these. But force definition of
12211 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12212 # basename handling in libiberty.h.
12213 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12214 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12215 #undef HAVE_DECL_BASENAME
12216 #define HAVE_DECL_BASENAME 1
12217 #include \"ansidecl.h\"
12218 #include \"system.h\"
12220 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12221 ac_have_decl=1
12222 else
12223 ac_have_decl=0
12226 cat >>confdefs.h <<_ACEOF
12227 #define HAVE_DECL_BASENAME $ac_have_decl
12228 _ACEOF
12229 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12230 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12231 #undef HAVE_DECL_BASENAME
12232 #define HAVE_DECL_BASENAME 1
12233 #include \"ansidecl.h\"
12234 #include \"system.h\"
12236 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12237 ac_have_decl=1
12238 else
12239 ac_have_decl=0
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_DECL_STRSTR $ac_have_decl
12244 _ACEOF
12247 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12248 madvise stpcpy strnlen strsignal strverscmp \
12249 strtol strtoul strtoll strtoull setenv unsetenv \
12250 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12251 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
12253 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12255 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12256 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261 #undef $ac_tr_decl
12262 #define $ac_tr_decl 1
12264 #include "ansidecl.h"
12265 #include "system.h"
12268 main ()
12270 #ifndef $ac_func
12271 char *(*pfn) = (char *(*)) $ac_func ;
12272 #endif
12274 return 0;
12276 _ACEOF
12277 if ac_fn_cxx_try_compile "$LINENO"; then :
12278 eval "gcc_cv_have_decl_$ac_func=yes"
12279 else
12280 eval "gcc_cv_have_decl_$ac_func=no"
12282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12287 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12288 #define $ac_tr_decl 1
12289 _ACEOF
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12294 #define $ac_tr_decl 0
12295 _ACEOF
12299 done
12302 for ac_func in getrlimit setrlimit getrusage
12304 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12306 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12307 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312 #undef $ac_tr_decl
12313 #define $ac_tr_decl 1
12315 #include "ansidecl.h"
12316 #include "system.h"
12317 #ifdef HAVE_SYS_RESOURCE_H
12318 #include <sys/resource.h>
12319 #endif
12323 main ()
12325 #ifndef $ac_func
12326 char *(*pfn) = (char *(*)) $ac_func ;
12327 #endif
12329 return 0;
12331 _ACEOF
12332 if ac_fn_cxx_try_compile "$LINENO"; then :
12333 eval "gcc_cv_have_decl_$ac_func=yes"
12334 else
12335 eval "gcc_cv_have_decl_$ac_func=no"
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12342 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12343 #define $ac_tr_decl 1
12344 _ACEOF
12346 else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12349 #define $ac_tr_decl 0
12350 _ACEOF
12354 done
12357 for ac_func in mallinfo mallinfo2
12359 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12361 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12362 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12367 #undef $ac_tr_decl
12368 #define $ac_tr_decl 1
12370 #include "ansidecl.h"
12371 #include "system.h"
12372 #ifdef HAVE_MALLOC_H
12373 #include <malloc.h>
12374 #endif
12378 main ()
12380 #ifndef $ac_func
12381 char *(*pfn) = (char *(*)) $ac_func ;
12382 #endif
12384 return 0;
12386 _ACEOF
12387 if ac_fn_cxx_try_compile "$LINENO"; then :
12388 eval "gcc_cv_have_decl_$ac_func=yes"
12389 else
12390 eval "gcc_cv_have_decl_$ac_func=no"
12392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12397 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12398 #define $ac_tr_decl 1
12399 _ACEOF
12401 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12404 #define $ac_tr_decl 0
12405 _ACEOF
12409 done
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12415 #include "ansidecl.h"
12416 #include "system.h"
12417 #ifdef HAVE_SYS_RESOURCE_H
12418 #include <sys/resource.h>
12419 #endif
12422 main ()
12424 rlim_t l = 0;
12426 return 0;
12428 _ACEOF
12429 if ac_fn_cxx_try_compile "$LINENO"; then :
12431 else
12433 $as_echo "#define rlim_t long" >>confdefs.h
12436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12439 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12440 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12441 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12442 for ac_func in ldgetname
12444 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12446 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12447 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452 #undef $ac_tr_decl
12453 #define $ac_tr_decl 1
12455 #include "ansidecl.h"
12456 #include "system.h"
12457 #ifdef HAVE_LDFCN_H
12458 #undef FREAD
12459 #undef FWRITE
12460 #include <ldfcn.h>
12461 #endif
12465 main ()
12467 #ifndef $ac_func
12468 char *(*pfn) = (char *(*)) $ac_func ;
12469 #endif
12471 return 0;
12473 _ACEOF
12474 if ac_fn_cxx_try_compile "$LINENO"; then :
12475 eval "gcc_cv_have_decl_$ac_func=yes"
12476 else
12477 eval "gcc_cv_have_decl_$ac_func=no"
12479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12484 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12485 #define $ac_tr_decl 1
12486 _ACEOF
12488 else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12491 #define $ac_tr_decl 0
12492 _ACEOF
12496 done
12499 for ac_func in times
12501 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12503 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12504 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h. */
12509 #undef $ac_tr_decl
12510 #define $ac_tr_decl 1
12512 #include "ansidecl.h"
12513 #include "system.h"
12514 #ifdef HAVE_SYS_TIMES_H
12515 #include <sys/times.h>
12516 #endif
12520 main ()
12522 #ifndef $ac_func
12523 char *(*pfn) = (char *(*)) $ac_func ;
12524 #endif
12526 return 0;
12528 _ACEOF
12529 if ac_fn_cxx_try_compile "$LINENO"; then :
12530 eval "gcc_cv_have_decl_$ac_func=yes"
12531 else
12532 eval "gcc_cv_have_decl_$ac_func=no"
12534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12539 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12540 #define $ac_tr_decl 1
12541 _ACEOF
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12546 #define $ac_tr_decl 0
12547 _ACEOF
12551 done
12554 for ac_func in sigaltstack
12556 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12558 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12559 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564 #undef $ac_tr_decl
12565 #define $ac_tr_decl 1
12567 #include "ansidecl.h"
12568 #include "system.h"
12569 #include <signal.h>
12573 main ()
12575 #ifndef $ac_func
12576 char *(*pfn) = (char *(*)) $ac_func ;
12577 #endif
12579 return 0;
12581 _ACEOF
12582 if ac_fn_cxx_try_compile "$LINENO"; then :
12583 eval "gcc_cv_have_decl_$ac_func=yes"
12584 else
12585 eval "gcc_cv_have_decl_$ac_func=no"
12587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12592 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12593 #define $ac_tr_decl 1
12594 _ACEOF
12596 else
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12599 #define $ac_tr_decl 0
12600 _ACEOF
12604 done
12607 # More time-related stuff.
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12609 $as_echo_n "checking for struct tms... " >&6; }
12610 if ${ac_cv_struct_tms+:} false; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12617 #include "ansidecl.h"
12618 #include "system.h"
12619 #ifdef HAVE_SYS_TIMES_H
12620 #include <sys/times.h>
12621 #endif
12624 main ()
12626 struct tms tms;
12628 return 0;
12630 _ACEOF
12631 if ac_fn_cxx_try_compile "$LINENO"; then :
12632 ac_cv_struct_tms=yes
12633 else
12634 ac_cv_struct_tms=no
12636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12639 $as_echo "$ac_cv_struct_tms" >&6; }
12640 if test $ac_cv_struct_tms = yes; then
12642 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12646 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12647 # revisit after autoconf 2.50.
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12649 $as_echo_n "checking for clock_t... " >&6; }
12650 if ${gcc_cv_type_clock_t+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12657 #include "ansidecl.h"
12658 #include "system.h"
12661 main ()
12663 clock_t x;
12665 return 0;
12667 _ACEOF
12668 if ac_fn_cxx_try_compile "$LINENO"; then :
12669 gcc_cv_type_clock_t=yes
12670 else
12671 gcc_cv_type_clock_t=no
12673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12676 $as_echo "$gcc_cv_type_clock_t" >&6; }
12677 if test $gcc_cv_type_clock_t = yes; then
12679 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12683 # Check if F_SETLKW is supported by fcntl.
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12685 $as_echo_n "checking for F_SETLKW... " >&6; }
12686 if ${ac_cv_f_setlkw+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12693 #include <fcntl.h>
12695 main ()
12698 struct flock fl;
12699 fl.l_whence = 0;
12700 fl.l_start = 0;
12701 fl.l_len = 0;
12702 fl.l_pid = 0;
12703 return fcntl (1, F_SETLKW, &fl);
12705 return 0;
12707 _ACEOF
12708 if ac_fn_cxx_try_compile "$LINENO"; then :
12709 ac_cv_f_setlkw=yes
12710 else
12711 ac_cv_f_setlkw=no
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12716 $as_echo "$ac_cv_f_setlkw" >&6; }
12717 if test $ac_cv_f_setlkw = yes; then
12719 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12723 # Check if O_CLOEXEC is defined by fcntl
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12725 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12726 if ${ac_cv_o_cloexec+:} false; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12733 #include <fcntl.h>
12735 main ()
12738 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12740 return 0;
12742 _ACEOF
12743 if ac_fn_cxx_try_compile "$LINENO"; then :
12744 ac_cv_o_cloexec=yes
12745 else
12746 ac_cv_o_cloexec=no
12748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12751 $as_echo "$ac_cv_o_cloexec" >&6; }
12752 if test $ac_cv_o_cloexec = yes; then
12754 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12758 # Check if O_NONBLOCK is defined by fcntl
12759 for ac_header in fcntl.h
12760 do :
12761 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12762 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12763 cat >>confdefs.h <<_ACEOF
12764 #define HAVE_FCNTL_H 1
12765 _ACEOF
12768 done
12770 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12772 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12776 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12778 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12783 # C++ Modules would like some networking features to provide the mapping
12784 # server. You can still use modules without them though.
12785 # The following network-related checks could probably do with some
12786 # Windows and other non-linux defenses and checking.
12788 # Local socket connectivity wants AF_UNIX networking
12789 # Check for AF_UNIX networking
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12791 $as_echo_n "checking for AF_UNIX... " >&6; }
12792 if ${ac_cv_af_unix+:} false; then :
12793 $as_echo_n "(cached) " >&6
12794 else
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12799 #include <sys/types.h>
12800 #include <sys/socket.h>
12801 #include <sys/un.h>
12802 #include <netinet/in.h>
12804 main ()
12807 sockaddr_un un;
12808 un.sun_family = AF_UNSPEC;
12809 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12810 connect (fd, (sockaddr *)&un, sizeof (un));
12812 return 0;
12814 _ACEOF
12815 if ac_fn_cxx_try_compile "$LINENO"; then :
12816 ac_cv_af_unix=yes
12817 else
12818 ac_cv_af_unix=no
12820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12823 $as_echo "$ac_cv_af_unix" >&6; }
12824 if test $ac_cv_af_unix = yes; then
12826 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12830 # Remote socket connectivity wants AF_INET6 networking
12831 # Check for AF_INET6 networking
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12833 $as_echo_n "checking for AF_INET6... " >&6; }
12834 if ${ac_cv_af_inet6+:} false; then :
12835 $as_echo_n "(cached) " >&6
12836 else
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12841 #include <sys/types.h>
12842 #include <sys/socket.h>
12843 #include <netinet/in.h>
12844 #include <netdb.h>
12846 main ()
12849 sockaddr_in6 in6;
12850 in6.sin6_family = AF_UNSPEC;
12851 struct addrinfo *addrs = 0;
12852 struct addrinfo hints;
12853 hints.ai_flags = 0;
12854 hints.ai_family = AF_INET6;
12855 hints.ai_socktype = SOCK_STREAM;
12856 hints.ai_protocol = 0;
12857 hints.ai_canonname = 0;
12858 hints.ai_addr = 0;
12859 hints.ai_next = 0;
12860 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12861 const char *str = gai_strerror (e);
12862 freeaddrinfo (addrs);
12863 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12864 connect (fd, (sockaddr *)&in6, sizeof (in6));
12866 return 0;
12868 _ACEOF
12869 if ac_fn_cxx_try_compile "$LINENO"; then :
12870 ac_cv_af_inet6=yes
12871 else
12872 ac_cv_af_inet6=no
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12877 $as_echo "$ac_cv_af_inet6" >&6; }
12878 if test $ac_cv_af_inet6 = yes; then
12880 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12884 # Check if _LK_LOCK is supported by _locking
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12886 $as_echo_n "checking for _LK_LOCK... " >&6; }
12887 if ${ac_cv_lk_lock+:} false; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12894 #include <io.h>
12895 #include <sys/locking.h>
12897 main ()
12900 int fd;
12901 return _locking (fd, _LK_LOCK, 0);
12903 return 0;
12905 _ACEOF
12906 if ac_fn_cxx_try_compile "$LINENO"; then :
12907 ac_cv_lk_lock=yes
12908 else
12909 ac_cv_lk_lock=no
12911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12914 $as_echo "$ac_cv_lk_lock" >&6; }
12915 if test $ac_cv_lk_lock = yes; then
12917 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12921 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12922 CFLAGS="$saved_CFLAGS"
12923 CXXFLAGS="$saved_CXXFLAGS"
12925 # mkdir takes a single argument on some systems.
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12927 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12928 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12934 #include <sys/types.h>
12935 #ifdef HAVE_SYS_STAT_H
12936 # include <sys/stat.h>
12937 #endif
12938 #ifdef HAVE_UNISTD_H
12939 # include <unistd.h>
12940 #endif
12941 #ifdef HAVE_DIRECT_H
12942 # include <direct.h>
12943 #endif
12945 main ()
12947 mkdir ("foo", 0);
12949 return 0;
12951 _ACEOF
12952 if ac_fn_cxx_try_compile "$LINENO"; then :
12953 gcc_cv_mkdir_takes_one_arg=no
12954 else
12955 gcc_cv_mkdir_takes_one_arg=yes
12957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12960 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12961 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12963 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12968 # File extensions
12969 manext='.1'
12970 objext='.o'
12974 # With Setjmp/Longjmp based exception handling.
12975 # Check whether --enable-sjlj-exceptions was given.
12976 if test "${enable_sjlj_exceptions+set}" = set; then :
12977 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12978 else
12979 case $target in
12980 lm32*-*-*)
12981 force_sjlj_exceptions=yes
12982 enableval=yes
12985 force_sjlj_exceptions=no
12987 esac
12990 if test $force_sjlj_exceptions = yes; then
12991 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12993 cat >>confdefs.h <<_ACEOF
12994 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12995 _ACEOF
12999 # Windows32 UTF-8 manifest support for running the driver and compiler
13000 # executables with the UTF-8 active code page on mingw hosts.
13001 # Non-mingw hosts ignore this option.
13002 # The shell variables this sets are picked up from the mingw branches
13003 # of config.host so they have to be set before it gets sourced.
13004 # Check whether --enable-win32-utf8-manifest was given.
13005 if test "${enable_win32_utf8_manifest+set}" = set; then :
13006 enableval=$enable_win32_utf8_manifest;
13010 if test "x$enable_win32_utf8_manifest" != xno; then
13011 host_xmake_mingw=i386/x-mingw32-utf8
13012 host_extra_gcc_objs_mingw=utf8rc-mingw32.o
13013 host_extra_objs_mingw=utf8-mingw32.o
13016 # --------------------------------------------------------
13017 # Build, host, and target specific configuration fragments
13018 # --------------------------------------------------------
13020 # Collect build-machine-specific information.
13021 . ${srcdir}/config.build || exit 1
13023 # Collect host-machine-specific information.
13024 . ${srcdir}/config.host || exit 1
13026 target_gtfiles=
13028 # Collect target-machine-specific information.
13029 . ${srcdir}/config.gcc || exit 1
13031 extra_objs="${host_extra_objs} ${extra_objs}"
13032 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13034 # Default the target-machine variables that were not explicitly set.
13035 if test x"$tm_file" = x
13036 then tm_file=$cpu_type/$cpu_type.h; fi
13038 if test x"$extra_headers" = x
13039 then extra_headers=; fi
13041 if test x$md_file = x
13042 then md_file=$cpu_type/$cpu_type.md; fi
13044 if test x$out_file = x
13045 then out_file=$cpu_type/$cpu_type.cc; fi
13047 if test x"$tmake_file" = x
13048 then tmake_file=$cpu_type/t-$cpu_type
13051 # Support --enable-initfini-array.
13052 if test x$enable_initfini_array != xno; then
13053 tm_file="${tm_file} initfini-array.h"
13056 if test x"$dwarf2" = xyes
13057 then tm_file="$tm_file tm-dwarf2.h"
13060 # Say what files are being used for the output code and MD file.
13061 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13062 echo "Using \`$srcdir/config/$md_file' as machine description file."
13064 # If any of the xm_file variables contain nonexistent files, warn
13065 # about them and drop them.
13068 for x in $build_xm_file; do
13069 if test -f $srcdir/config/$x
13070 then bx="$bx $x"
13071 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13072 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13074 done
13075 build_xm_file="$bx"
13078 for x in $host_xm_file; do
13079 if test -f $srcdir/config/$x
13080 then hx="$hx $x"
13081 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13082 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13084 done
13085 host_xm_file="$hx"
13088 for x in $xm_file; do
13089 if test -f $srcdir/config/$x
13090 then tx="$tx $x"
13091 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13092 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13094 done
13095 xm_file="$tx"
13097 count=a
13098 for f in $tm_file; do
13099 count=${count}x
13100 done
13101 if test $count = ax; then
13102 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13103 else
13104 echo "Using the following target machine macro files:"
13105 for f in $tm_file; do
13106 echo " $srcdir/config/$f"
13107 done
13110 if test x$use_long_long_for_widest_fast_int = xyes; then
13112 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
13116 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
13118 cat >>confdefs.h <<_ACEOF
13119 #define HAVE_GNU_LD $gnu_ld_bool
13120 _ACEOF
13123 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13125 cat >>confdefs.h <<_ACEOF
13126 #define HAVE_GNU_AS $gnu_as_bool
13127 _ACEOF
13130 count=a
13131 for f in $host_xm_file; do
13132 count=${count}x
13133 done
13134 if test $count = a; then
13136 elif test $count = ax; then
13137 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13138 else
13139 echo "Using the following host machine macro files:"
13140 for f in $host_xm_file; do
13141 echo " $srcdir/config/$f"
13142 done
13144 echo "Using ${out_host_hook_obj} for host machine hooks."
13146 if test "$host_xm_file" != "$build_xm_file"; then
13147 count=a
13148 for f in $build_xm_file; do
13149 count=${count}x
13150 done
13151 if test $count = a; then
13153 elif test $count = ax; then
13154 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13155 else
13156 echo "Using the following build machine macro files:"
13157 for f in $build_xm_file; do
13158 echo " $srcdir/config/$f"
13159 done
13163 if test -n "$configured_native_system_header_dir"; then
13164 native_system_header_dir=$configured_native_system_header_dir
13166 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13169 case ${host} in
13170 powerpc*-*-darwin*)
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13172 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13173 if ${gcc_cv_mcontext_underscores+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13179 #include <sys/cdefs.h>
13180 #include <sys/signal.h>
13181 #include <ucontext.h>
13182 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13184 _ACEOF
13185 if ac_fn_cxx_try_compile "$LINENO"; then :
13186 gcc_cv_mcontext_underscores=no
13187 else
13188 gcc_cv_mcontext_underscores=yes
13190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13193 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13194 if test $gcc_cv_mcontext_underscores = yes; then
13196 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13200 esac
13202 # ---------
13203 # Threading
13204 # ---------
13206 # Check if a valid thread package
13207 case ${enable_threads} in
13208 "" | no)
13209 # No threads
13210 target_thread_file='single'
13212 yes)
13213 # default
13214 target_thread_file='single'
13216 aix | dce | lynx | mipssde | posix | rtems | \
13217 single | tpf | vxworks | win32 | mcf)
13218 target_thread_file=${enable_threads}
13221 echo "${enable_threads} is an unknown thread package" 1>&2
13222 exit 1
13224 esac
13226 if test x${thread_file} = x; then
13227 # No thread file set by target-specific clauses in config.gcc,
13228 # so use file chosen by default logic above
13229 thread_file=${target_thread_file}
13232 # --------
13233 # UNSORTED
13234 # --------
13236 use_cxa_atexit=no
13237 if test x$enable___cxa_atexit = xyes || \
13238 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13239 if test x$host = x$target; then
13240 case $host in
13241 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13242 # keyed to flag_use_cxa_atexit
13243 *-*-mingw32*)
13244 use_cxa_atexit=yes
13246 powerpc-ibm-aix*)
13247 use_cxa_atexit=yes
13250 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13251 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13252 use_cxa_atexit=yes
13253 else
13254 echo "__cxa_atexit can't be enabled on this target"
13258 esac
13259 else
13260 # We can't check for __cxa_atexit when building a cross, so assume
13261 # it is available
13262 use_cxa_atexit=yes
13264 if test x$use_cxa_atexit = xyes; then
13266 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13271 # Look for a file containing extra machine modes.
13272 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13273 extra_modes_file='$(srcdir)'/config/${extra_modes}
13276 cat >>confdefs.h <<_ACEOF
13277 #define EXTRA_MODES_FILE "config/$extra_modes"
13278 _ACEOF
13282 # Convert extra_options into a form suitable for Makefile use.
13283 extra_opt_files=
13284 all_opt_files=
13285 for f in $extra_options; do
13286 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13287 all_opt_files="$all_opt_files $srcdir/config/$f"
13288 done
13291 # auto-host.h is the file containing items generated by autoconf and is
13292 # the first file included by config.h.
13293 # If host=build, it is correct to have bconfig include auto-host.h
13294 # as well. If host!=build, we are in error and need to do more
13295 # work to find out the build config parameters.
13296 if test x$host = x$build
13297 then
13298 build_auto=auto-host.h
13299 HAVE_AUTO_BUILD='# '
13300 else
13301 # We create a subdir, then run autoconf in the subdir.
13302 # To prevent recursion we set host and build for the new
13303 # invocation of configure to the build for this invocation
13304 # of configure.
13305 tempdir=build.$$
13306 rm -rf $tempdir
13307 mkdir $tempdir
13308 cd $tempdir
13309 case ${srcdir} in
13310 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13311 *) realsrcdir=../${srcdir};;
13312 esac
13313 # Clearing GMPINC is necessary to prevent host headers being
13314 # used by the build compiler. Defining GENERATOR_FILE stops
13315 # system.h from including gmp.h.
13316 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13317 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13318 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13319 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13320 ${realsrcdir}/configure \
13321 --enable-languages=${enable_languages-all} \
13322 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13323 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13324 --target=$target_alias --host=$build_alias \
13325 --build=$build_alias || exit # retaining $tempdir
13327 # We just finished tests for the build machine, so rename
13328 # the file auto-build.h in the gcc directory.
13329 mv auto-host.h ../auto-build.h
13330 cd ..
13331 rm -rf $tempdir
13332 build_auto=auto-build.h
13333 HAVE_AUTO_BUILD=
13338 tm_file="${tm_file} defaults.h"
13339 tm_p_file="${tm_p_file} tm-preds.h"
13340 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13341 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13342 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13343 # put this back in temporarily.
13344 xm_file="auto-host.h ansidecl.h ${xm_file}"
13346 # --------
13347 # UNSORTED
13348 # --------
13350 # Compile in configure arguments.
13351 if test -f configargs.h ; then
13352 # Being re-configured.
13353 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13354 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13355 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13356 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13358 else
13359 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13362 # Double all backslashes and backslash all quotes to turn
13363 # gcc_config_arguments into a C string.
13364 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13365 $gcc_config_arguments
13367 gcc_config_arguments_str=`cat conftest.out`
13368 rm -f conftest.out
13370 cat > configargs.h <<EOF
13371 /* Generated automatically. */
13372 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13373 static const char thread_model[] = "$thread_file";
13375 static const struct {
13376 const char *name, *value;
13377 } configure_default_options[] = $configure_default_options;
13380 gcc_BASEVER=`cat $srcdir/BASE-VER`
13381 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13382 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13383 if test -f $srcdir/REVISION ; then
13384 gcc_REVISION=`cat $srcdir/REVISION`
13385 else
13386 gcc_REVISION=""
13388 cat > plugin-version.h <<EOF
13389 #include "configargs.h"
13391 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13392 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13393 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13394 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13396 static char basever[] = "$gcc_BASEVER";
13397 static char datestamp[] = "$gcc_DATESTAMP";
13398 static char devphase[] = "$gcc_DEVPHASE";
13399 static char revision[] = "$gcc_REVISION";
13401 /* FIXME plugins: We should make the version information more precise.
13402 One way to do is to add a checksum. */
13404 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13405 devphase, revision,
13406 configuration_arguments};
13409 # Determine what GCC version number to use in filesystem paths.
13411 get_gcc_base_ver="cat"
13413 # Check whether --with-gcc-major-version-only was given.
13414 if test "${with_gcc_major_version_only+set}" = set; then :
13415 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13416 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13424 # Internationalization
13425 # Find a good install program. We prefer a C program (faster),
13426 # so one script is as good as another. But avoid the broken or
13427 # incompatible versions:
13428 # SysV /etc/install, /usr/sbin/install
13429 # SunOS /usr/etc/install
13430 # IRIX /sbin/install
13431 # AIX /bin/install
13432 # AmigaOS /C/install, which installs bootblocks on floppy discs
13433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13436 # OS/2's system install, which has a completely different semantic
13437 # ./install, which can be erroneously created by make from ./install.sh.
13438 # Reject install programs that cannot install multiple files.
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13440 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13441 if test -z "$INSTALL"; then
13442 if ${ac_cv_path_install+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446 for as_dir in $PATH
13448 IFS=$as_save_IFS
13449 test -z "$as_dir" && as_dir=.
13450 # Account for people who put trailing slashes in PATH elements.
13451 case $as_dir/ in #((
13452 ./ | .// | /[cC]/* | \
13453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13454 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13455 /usr/ucb/* ) ;;
13457 # OSF1 and SCO ODT 3.0 have their own names for install.
13458 # Don't use installbsd from OSF since it installs stuff as root
13459 # by default.
13460 for ac_prog in ginstall scoinst install; do
13461 for ac_exec_ext in '' $ac_executable_extensions; do
13462 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13463 if test $ac_prog = install &&
13464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13465 # AIX install. It has an incompatible calling convention.
13467 elif test $ac_prog = install &&
13468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13469 # program-specific install script used by HP pwplus--don't use.
13471 else
13472 rm -rf conftest.one conftest.two conftest.dir
13473 echo one > conftest.one
13474 echo two > conftest.two
13475 mkdir conftest.dir
13476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13477 test -s conftest.one && test -s conftest.two &&
13478 test -s conftest.dir/conftest.one &&
13479 test -s conftest.dir/conftest.two
13480 then
13481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13482 break 3
13486 done
13487 done
13489 esac
13491 done
13492 IFS=$as_save_IFS
13494 rm -rf conftest.one conftest.two conftest.dir
13497 if test "${ac_cv_path_install+set}" = set; then
13498 INSTALL=$ac_cv_path_install
13499 else
13500 # As a last resort, use the slow shell script. Don't cache a
13501 # value for INSTALL within a source directory, because that will
13502 # break other packages using the cache if that directory is
13503 # removed, or if the value is a relative name.
13504 INSTALL=$ac_install_sh
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13508 $as_echo "$INSTALL" >&6; }
13510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13511 # It thinks the first close brace ends the variable substitution.
13512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13519 MKINSTALLDIRS=
13520 if test -n "$ac_aux_dir"; then
13521 case "$ac_aux_dir" in
13522 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13523 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13524 esac
13526 if test -z "$MKINSTALLDIRS"; then
13527 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13533 $as_echo_n "checking whether NLS is requested... " >&6; }
13534 # Check whether --enable-nls was given.
13535 if test "${enable_nls+set}" = set; then :
13536 enableval=$enable_nls; USE_NLS=$enableval
13537 else
13538 USE_NLS=yes
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13542 $as_echo "$USE_NLS" >&6; }
13549 # Prepare PATH_SEPARATOR.
13550 # The user is always right.
13551 if test "${PATH_SEPARATOR+set}" != set; then
13552 echo "#! /bin/sh" >conf$$.sh
13553 echo "exit 0" >>conf$$.sh
13554 chmod +x conf$$.sh
13555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13556 PATH_SEPARATOR=';'
13557 else
13558 PATH_SEPARATOR=:
13560 rm -f conf$$.sh
13563 # Find out how to test for executable files. Don't use a zero-byte file,
13564 # as systems may use methods other than mode bits to determine executability.
13565 cat >conf$$.file <<_ASEOF
13566 #! /bin/sh
13567 exit 0
13568 _ASEOF
13569 chmod +x conf$$.file
13570 if test -x conf$$.file >/dev/null 2>&1; then
13571 ac_executable_p="test -x"
13572 else
13573 ac_executable_p="test -f"
13575 rm -f conf$$.file
13577 # Extract the first word of "msgfmt", so it can be a program name with args.
13578 set dummy msgfmt; ac_word=$2
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580 $as_echo_n "checking for $ac_word... " >&6; }
13581 if ${ac_cv_path_MSGFMT+:} false; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 case "$MSGFMT" in
13585 [\\/]* | ?:[\\/]*)
13586 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13589 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13590 for ac_dir in $PATH; do
13591 IFS="$ac_save_IFS"
13592 test -z "$ac_dir" && ac_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do
13594 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13595 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13596 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13597 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13598 break 2
13601 done
13602 done
13603 IFS="$ac_save_IFS"
13604 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13606 esac
13608 MSGFMT="$ac_cv_path_MSGFMT"
13609 if test "$MSGFMT" != ":"; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13611 $as_echo "$MSGFMT" >&6; }
13612 else
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13617 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13618 set dummy gmsgfmt; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if ${ac_cv_path_GMSGFMT+:} false; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 case $GMSGFMT in
13625 [\\/]* | ?:[\\/]*)
13626 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13632 IFS=$as_save_IFS
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13636 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13638 break 2
13640 done
13641 done
13642 IFS=$as_save_IFS
13644 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13646 esac
13648 GMSGFMT=$ac_cv_path_GMSGFMT
13649 if test -n "$GMSGFMT"; then
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13651 $as_echo "$GMSGFMT" >&6; }
13652 else
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 $as_echo "no" >&6; }
13660 # Prepare PATH_SEPARATOR.
13661 # The user is always right.
13662 if test "${PATH_SEPARATOR+set}" != set; then
13663 echo "#! /bin/sh" >conf$$.sh
13664 echo "exit 0" >>conf$$.sh
13665 chmod +x conf$$.sh
13666 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13667 PATH_SEPARATOR=';'
13668 else
13669 PATH_SEPARATOR=:
13671 rm -f conf$$.sh
13674 # Find out how to test for executable files. Don't use a zero-byte file,
13675 # as systems may use methods other than mode bits to determine executability.
13676 cat >conf$$.file <<_ASEOF
13677 #! /bin/sh
13678 exit 0
13679 _ASEOF
13680 chmod +x conf$$.file
13681 if test -x conf$$.file >/dev/null 2>&1; then
13682 ac_executable_p="test -x"
13683 else
13684 ac_executable_p="test -f"
13686 rm -f conf$$.file
13688 # Extract the first word of "xgettext", so it can be a program name with args.
13689 set dummy xgettext; ac_word=$2
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13691 $as_echo_n "checking for $ac_word... " >&6; }
13692 if ${ac_cv_path_XGETTEXT+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 case "$XGETTEXT" in
13696 [\\/]* | ?:[\\/]*)
13697 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13700 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13701 for ac_dir in $PATH; do
13702 IFS="$ac_save_IFS"
13703 test -z "$ac_dir" && ac_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
13705 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13706 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13707 (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
13708 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13709 break 2
13712 done
13713 done
13714 IFS="$ac_save_IFS"
13715 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13717 esac
13719 XGETTEXT="$ac_cv_path_XGETTEXT"
13720 if test "$XGETTEXT" != ":"; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13722 $as_echo "$XGETTEXT" >&6; }
13723 else
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13728 rm -f messages.po
13731 # Prepare PATH_SEPARATOR.
13732 # The user is always right.
13733 if test "${PATH_SEPARATOR+set}" != set; then
13734 echo "#! /bin/sh" >conf$$.sh
13735 echo "exit 0" >>conf$$.sh
13736 chmod +x conf$$.sh
13737 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13738 PATH_SEPARATOR=';'
13739 else
13740 PATH_SEPARATOR=:
13742 rm -f conf$$.sh
13745 # Find out how to test for executable files. Don't use a zero-byte file,
13746 # as systems may use methods other than mode bits to determine executability.
13747 cat >conf$$.file <<_ASEOF
13748 #! /bin/sh
13749 exit 0
13750 _ASEOF
13751 chmod +x conf$$.file
13752 if test -x conf$$.file >/dev/null 2>&1; then
13753 ac_executable_p="test -x"
13754 else
13755 ac_executable_p="test -f"
13757 rm -f conf$$.file
13759 # Extract the first word of "msgmerge", so it can be a program name with args.
13760 set dummy msgmerge; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762 $as_echo_n "checking for $ac_word... " >&6; }
13763 if ${ac_cv_path_MSGMERGE+:} false; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 case "$MSGMERGE" in
13767 [\\/]* | ?:[\\/]*)
13768 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13771 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13772 for ac_dir in $PATH; do
13773 IFS="$ac_save_IFS"
13774 test -z "$ac_dir" && ac_dir=.
13775 for ac_exec_ext in '' $ac_executable_extensions; do
13776 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13777 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13778 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13779 break 2
13782 done
13783 done
13784 IFS="$ac_save_IFS"
13785 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13787 esac
13789 MSGMERGE="$ac_cv_path_MSGMERGE"
13790 if test "$MSGMERGE" != ":"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13792 $as_echo "$MSGMERGE" >&6; }
13793 else
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795 $as_echo "no" >&6; }
13799 if test "$GMSGFMT" != ":"; then
13800 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13801 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13803 else
13804 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13806 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13807 GMSGFMT=":"
13811 if test "$XGETTEXT" != ":"; then
13812 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13813 (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
13815 else
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13817 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13818 XGETTEXT=":"
13820 rm -f messages.po
13823 ac_config_commands="$ac_config_commands default-1"
13829 if test -f ../gettext/uninstalled-config.sh; then
13830 relative_builddir='$(top_builddir)/../gettext'
13831 . ../gettext/uninstalled-config.sh
13832 else
13833 # The sister gettext directory doesn't exist and won't collect information on
13834 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13859 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13860 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863 gt_save_LIBS="$LIBS"
13864 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13867 #include <CoreFoundation/CFPreferences.h>
13869 main ()
13871 CFPreferencesCopyAppValue(NULL, NULL)
13873 return 0;
13875 _ACEOF
13876 if ac_fn_cxx_try_link "$LINENO"; then :
13877 gt_cv_func_CFPreferencesCopyAppValue=yes
13878 else
13879 gt_cv_func_CFPreferencesCopyAppValue=no
13881 rm -f core conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13883 LIBS="$gt_save_LIBS"
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13886 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13887 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13889 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13893 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13894 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13895 $as_echo_n "(cached) " >&6
13896 else
13897 gt_save_LIBS="$LIBS"
13898 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13901 #include <CoreFoundation/CFLocale.h>
13903 main ()
13905 CFLocaleCopyPreferredLanguages();
13907 return 0;
13909 _ACEOF
13910 if ac_fn_cxx_try_link "$LINENO"; then :
13911 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13912 else
13913 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13915 rm -f core conftest.err conftest.$ac_objext \
13916 conftest$ac_exeext conftest.$ac_ext
13917 LIBS="$gt_save_LIBS"
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13920 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13921 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13923 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13926 INTL_MACOSX_LIBS=
13927 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13928 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13929 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13937 LIBINTL=
13938 LTLIBINTL=
13939 POSUB=
13941 case " $gt_needs " in
13942 *" need-formatstring-macros "*) gt_api_version=3 ;;
13943 *" need-ngettext "*) gt_api_version=2 ;;
13944 *) gt_api_version=1 ;;
13945 esac
13946 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13947 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13949 if test "$USE_NLS" = "yes"; then
13950 gt_use_preinstalled_gnugettext=no
13953 if test $gt_api_version -ge 3; then
13954 gt_revision_test_code='
13955 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13956 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13957 #endif
13958 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13960 else
13961 gt_revision_test_code=
13963 if test $gt_api_version -ge 2; then
13964 gt_expression_test_code=' + * ngettext ("", "", 0)'
13965 else
13966 gt_expression_test_code=
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13970 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13971 if eval \${$gt_func_gnugettext_libc+:} false; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13977 #include <libintl.h>
13978 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13979 extern int _nl_msg_cat_cntr;
13980 extern int *_nl_domain_bindings;
13981 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13982 #else
13983 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13984 #endif
13985 $gt_revision_test_code
13988 main ()
13991 bindtextdomain ("", "");
13992 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13995 return 0;
13997 _ACEOF
13998 if ac_fn_cxx_try_link "$LINENO"; then :
13999 eval "$gt_func_gnugettext_libc=yes"
14000 else
14001 eval "$gt_func_gnugettext_libc=no"
14003 rm -f core conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14006 eval ac_res=\$$gt_func_gnugettext_libc
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14008 $as_echo "$ac_res" >&6; }
14010 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14016 am_save_CPPFLAGS="$CPPFLAGS"
14018 for element in $INCICONV; do
14019 haveit=
14020 for x in $CPPFLAGS; do
14022 acl_save_prefix="$prefix"
14023 prefix="$acl_final_prefix"
14024 acl_save_exec_prefix="$exec_prefix"
14025 exec_prefix="$acl_final_exec_prefix"
14026 eval x=\"$x\"
14027 exec_prefix="$acl_save_exec_prefix"
14028 prefix="$acl_save_prefix"
14030 if test "X$x" = "X$element"; then
14031 haveit=yes
14032 break
14034 done
14035 if test -z "$haveit"; then
14036 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14038 done
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14042 $as_echo_n "checking for iconv... " >&6; }
14043 if ${am_cv_func_iconv+:} false; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14047 am_cv_func_iconv="no, consider installing GNU libiconv"
14048 am_cv_lib_iconv=no
14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14052 #include <stdlib.h>
14053 #include <iconv.h>
14056 main ()
14058 iconv_t cd = iconv_open("","");
14059 iconv(cd,NULL,NULL,NULL,NULL);
14060 iconv_close(cd);
14062 return 0;
14064 _ACEOF
14065 if ac_fn_cxx_try_link "$LINENO"; then :
14066 am_cv_func_iconv=yes
14068 rm -f core conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
14070 if test "$am_cv_func_iconv" != yes; then
14071 am_save_LIBS="$LIBS"
14072 LIBS="$LIBS $LIBICONV"
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14076 #include <stdlib.h>
14077 #include <iconv.h>
14080 main ()
14082 iconv_t cd = iconv_open("","");
14083 iconv(cd,NULL,NULL,NULL,NULL);
14084 iconv_close(cd);
14086 return 0;
14088 _ACEOF
14089 if ac_fn_cxx_try_link "$LINENO"; then :
14090 am_cv_lib_iconv=yes
14091 am_cv_func_iconv=yes
14093 rm -f core conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
14095 LIBS="$am_save_LIBS"
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14100 $as_echo "$am_cv_func_iconv" >&6; }
14101 if test "$am_cv_func_iconv" = yes; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14103 $as_echo_n "checking for working iconv... " >&6; }
14104 if ${am_cv_func_iconv_works+:} false; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14108 am_save_LIBS="$LIBS"
14109 if test $am_cv_lib_iconv = yes; then
14110 LIBS="$LIBS $LIBICONV"
14112 am_cv_func_iconv_works=no
14113 for ac_iconv_const in '' 'const'; do
14114 if test "$cross_compiling" = yes; then :
14115 case "$host_os" in
14116 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14117 *) am_cv_func_iconv_works="guessing yes" ;;
14118 esac
14119 else
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14123 #include <iconv.h>
14124 #include <string.h>
14126 #ifndef ICONV_CONST
14127 # define ICONV_CONST $ac_iconv_const
14128 #endif
14131 main ()
14133 int result = 0;
14134 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14135 successful returns. This is even documented in
14136 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14138 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14139 if (cd_utf8_to_88591 != (iconv_t)(-1))
14141 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14142 char buf[10];
14143 ICONV_CONST char *inptr = input;
14144 size_t inbytesleft = strlen (input);
14145 char *outptr = buf;
14146 size_t outbytesleft = sizeof (buf);
14147 size_t res = iconv (cd_utf8_to_88591,
14148 &inptr, &inbytesleft,
14149 &outptr, &outbytesleft);
14150 if (res == 0)
14151 result |= 1;
14152 iconv_close (cd_utf8_to_88591);
14155 /* Test against Solaris 10 bug: Failures are not distinguishable from
14156 successful returns. */
14158 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14159 if (cd_ascii_to_88591 != (iconv_t)(-1))
14161 static ICONV_CONST char input[] = "\263";
14162 char buf[10];
14163 ICONV_CONST char *inptr = input;
14164 size_t inbytesleft = strlen (input);
14165 char *outptr = buf;
14166 size_t outbytesleft = sizeof (buf);
14167 size_t res = iconv (cd_ascii_to_88591,
14168 &inptr, &inbytesleft,
14169 &outptr, &outbytesleft);
14170 if (res == 0)
14171 result |= 2;
14172 iconv_close (cd_ascii_to_88591);
14175 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14177 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14178 if (cd_88591_to_utf8 != (iconv_t)(-1))
14180 static ICONV_CONST char input[] = "\304";
14181 static char buf[2] = { (char)0xDE, (char)0xAD };
14182 ICONV_CONST char *inptr = input;
14183 size_t inbytesleft = 1;
14184 char *outptr = buf;
14185 size_t outbytesleft = 1;
14186 size_t res = iconv (cd_88591_to_utf8,
14187 &inptr, &inbytesleft,
14188 &outptr, &outbytesleft);
14189 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14190 result |= 4;
14191 iconv_close (cd_88591_to_utf8);
14194 #if 0 /* This bug could be worked around by the caller. */
14195 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14197 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14198 if (cd_88591_to_utf8 != (iconv_t)(-1))
14200 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14201 char buf[50];
14202 ICONV_CONST char *inptr = input;
14203 size_t inbytesleft = strlen (input);
14204 char *outptr = buf;
14205 size_t outbytesleft = sizeof (buf);
14206 size_t res = iconv (cd_88591_to_utf8,
14207 &inptr, &inbytesleft,
14208 &outptr, &outbytesleft);
14209 if ((int)res > 0)
14210 result |= 8;
14211 iconv_close (cd_88591_to_utf8);
14214 #endif
14215 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14216 provided. */
14218 /* Try standardized names. */
14219 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14220 /* Try IRIX, OSF/1 names. */
14221 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14222 /* Try AIX names. */
14223 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14224 /* Try HP-UX names. */
14225 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14226 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14227 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14228 result |= 16;
14229 if (cd1 != (iconv_t)(-1))
14230 iconv_close (cd1);
14231 if (cd2 != (iconv_t)(-1))
14232 iconv_close (cd2);
14233 if (cd3 != (iconv_t)(-1))
14234 iconv_close (cd3);
14235 if (cd4 != (iconv_t)(-1))
14236 iconv_close (cd4);
14238 return result;
14241 return 0;
14243 _ACEOF
14244 if ac_fn_cxx_try_run "$LINENO"; then :
14245 am_cv_func_iconv_works=yes
14247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14248 conftest.$ac_objext conftest.beam conftest.$ac_ext
14251 test "$am_cv_func_iconv_works" = no || break
14252 done
14253 LIBS="$am_save_LIBS"
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14257 $as_echo "$am_cv_func_iconv_works" >&6; }
14258 case "$am_cv_func_iconv_works" in
14259 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14260 *) am_func_iconv=yes ;;
14261 esac
14262 else
14263 am_func_iconv=no am_cv_lib_iconv=no
14265 if test "$am_func_iconv" = yes; then
14267 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14270 if test "$am_cv_lib_iconv" = yes; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14272 $as_echo_n "checking how to link with libiconv... " >&6; }
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14274 $as_echo "$LIBICONV" >&6; }
14275 else
14276 CPPFLAGS="$am_save_CPPFLAGS"
14277 LIBICONV=
14278 LTLIBICONV=
14286 use_additional=yes
14288 acl_save_prefix="$prefix"
14289 prefix="$acl_final_prefix"
14290 acl_save_exec_prefix="$exec_prefix"
14291 exec_prefix="$acl_final_exec_prefix"
14293 eval additional_includedir=\"$includedir\"
14294 eval additional_libdir=\"$libdir\"
14296 exec_prefix="$acl_save_exec_prefix"
14297 prefix="$acl_save_prefix"
14300 # Check whether --with-libintl-prefix was given.
14301 if test "${with_libintl_prefix+set}" = set; then :
14302 withval=$with_libintl_prefix;
14303 if test "X$withval" = "Xno"; then
14304 use_additional=no
14305 else
14306 if test "X$withval" = "X"; then
14308 acl_save_prefix="$prefix"
14309 prefix="$acl_final_prefix"
14310 acl_save_exec_prefix="$exec_prefix"
14311 exec_prefix="$acl_final_exec_prefix"
14313 eval additional_includedir=\"$includedir\"
14314 eval additional_libdir=\"$libdir\"
14316 exec_prefix="$acl_save_exec_prefix"
14317 prefix="$acl_save_prefix"
14319 else
14320 additional_includedir="$withval/include"
14321 additional_libdir="$withval/lib"
14328 # Check whether --with-libintl-type was given.
14329 if test "${with_libintl_type+set}" = set; then :
14330 withval=$with_libintl_type; with_libintl_type=$withval
14331 else
14332 with_libintl_type=auto
14335 lib_type=`eval echo \$with_libintl_type`
14337 LIBINTL=
14338 LTLIBINTL=
14339 INCINTL=
14340 rpathdirs=
14341 ltrpathdirs=
14342 names_already_handled=
14343 names_next_round='intl '
14344 while test -n "$names_next_round"; do
14345 names_this_round="$names_next_round"
14346 names_next_round=
14347 for name in $names_this_round; do
14348 already_handled=
14349 for n in $names_already_handled; do
14350 if test "$n" = "$name"; then
14351 already_handled=yes
14352 break
14354 done
14355 if test -z "$already_handled"; then
14356 names_already_handled="$names_already_handled $name"
14357 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14358 eval value=\"\$HAVE_LIB$uppername\"
14359 if test -n "$value"; then
14360 if test "$value" = yes; then
14361 eval value=\"\$LIB$uppername\"
14362 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14363 eval value=\"\$LTLIB$uppername\"
14364 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14365 else
14368 else
14369 found_dir=
14370 found_la=
14371 found_so=
14372 found_a=
14373 if test $use_additional = yes; then
14374 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14375 found_dir="$additional_libdir"
14376 found_so="$additional_libdir/lib$name.$shlibext"
14377 if test -f "$additional_libdir/lib$name.la"; then
14378 found_la="$additional_libdir/lib$name.la"
14380 elif test x$lib_type != xshared; then
14381 if test -f "$additional_libdir/lib$name.$libext"; then
14382 found_dir="$additional_libdir"
14383 found_a="$additional_libdir/lib$name.$libext"
14384 if test -f "$additional_libdir/lib$name.la"; then
14385 found_la="$additional_libdir/lib$name.la"
14390 if test "X$found_dir" = "X"; then
14391 for x in $LDFLAGS $LTLIBINTL; do
14393 acl_save_prefix="$prefix"
14394 prefix="$acl_final_prefix"
14395 acl_save_exec_prefix="$exec_prefix"
14396 exec_prefix="$acl_final_exec_prefix"
14397 eval x=\"$x\"
14398 exec_prefix="$acl_save_exec_prefix"
14399 prefix="$acl_save_prefix"
14401 case "$x" in
14402 -L*)
14403 dir=`echo "X$x" | sed -e 's/^X-L//'`
14404 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14405 found_dir="$dir"
14406 found_so="$dir/lib$name.$shlibext"
14407 if test -f "$dir/lib$name.la"; then
14408 found_la="$dir/lib$name.la"
14410 elif test x$lib_type != xshared; then
14411 if test -f "$dir/lib$name.$libext"; then
14412 found_dir="$dir"
14413 found_a="$dir/lib$name.$libext"
14414 if test -f "$dir/lib$name.la"; then
14415 found_la="$dir/lib$name.la"
14420 esac
14421 if test "X$found_dir" != "X"; then
14422 break
14424 done
14426 if test "X$found_dir" != "X"; then
14427 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14428 if test "X$found_so" != "X"; then
14429 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14430 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14431 else
14432 haveit=
14433 for x in $ltrpathdirs; do
14434 if test "X$x" = "X$found_dir"; then
14435 haveit=yes
14436 break
14438 done
14439 if test -z "$haveit"; then
14440 ltrpathdirs="$ltrpathdirs $found_dir"
14442 if test "$hardcode_direct" = yes; then
14443 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14444 else
14445 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14446 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14447 haveit=
14448 for x in $rpathdirs; do
14449 if test "X$x" = "X$found_dir"; then
14450 haveit=yes
14451 break
14453 done
14454 if test -z "$haveit"; then
14455 rpathdirs="$rpathdirs $found_dir"
14457 else
14458 haveit=
14459 for x in $LDFLAGS $LIBINTL; do
14461 acl_save_prefix="$prefix"
14462 prefix="$acl_final_prefix"
14463 acl_save_exec_prefix="$exec_prefix"
14464 exec_prefix="$acl_final_exec_prefix"
14465 eval x=\"$x\"
14466 exec_prefix="$acl_save_exec_prefix"
14467 prefix="$acl_save_prefix"
14469 if test "X$x" = "X-L$found_dir"; then
14470 haveit=yes
14471 break
14473 done
14474 if test -z "$haveit"; then
14475 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14477 if test "$hardcode_minus_L" != no; then
14478 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14479 else
14480 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14485 else
14486 if test "X$found_a" != "X"; then
14487 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14488 else
14489 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14492 additional_includedir=
14493 case "$found_dir" in
14494 */lib | */lib/)
14495 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14496 additional_includedir="$basedir/include"
14498 esac
14499 if test "X$additional_includedir" != "X"; then
14500 if test "X$additional_includedir" != "X/usr/include"; then
14501 haveit=
14502 if test "X$additional_includedir" = "X/usr/local/include"; then
14503 if test -n "$GCC"; then
14504 case $host_os in
14505 linux*) haveit=yes;;
14506 esac
14509 if test -z "$haveit"; then
14510 for x in $CPPFLAGS $INCINTL; do
14512 acl_save_prefix="$prefix"
14513 prefix="$acl_final_prefix"
14514 acl_save_exec_prefix="$exec_prefix"
14515 exec_prefix="$acl_final_exec_prefix"
14516 eval x=\"$x\"
14517 exec_prefix="$acl_save_exec_prefix"
14518 prefix="$acl_save_prefix"
14520 if test "X$x" = "X-I$additional_includedir"; then
14521 haveit=yes
14522 break
14524 done
14525 if test -z "$haveit"; then
14526 if test -d "$additional_includedir"; then
14527 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14533 if test -n "$found_la"; then
14534 save_libdir="$libdir"
14535 case "$found_la" in
14536 */* | *\\*) . "$found_la" ;;
14537 *) . "./$found_la" ;;
14538 esac
14539 libdir="$save_libdir"
14540 for dep in $dependency_libs; do
14541 case "$dep" in
14542 -L*)
14543 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14544 if test "X$additional_libdir" != "X/usr/lib"; then
14545 haveit=
14546 if test "X$additional_libdir" = "X/usr/local/lib"; then
14547 if test -n "$GCC"; then
14548 case $host_os in
14549 linux*) haveit=yes;;
14550 esac
14553 if test -z "$haveit"; then
14554 haveit=
14555 for x in $LDFLAGS $LIBINTL; do
14557 acl_save_prefix="$prefix"
14558 prefix="$acl_final_prefix"
14559 acl_save_exec_prefix="$exec_prefix"
14560 exec_prefix="$acl_final_exec_prefix"
14561 eval x=\"$x\"
14562 exec_prefix="$acl_save_exec_prefix"
14563 prefix="$acl_save_prefix"
14565 if test "X$x" = "X-L$additional_libdir"; then
14566 haveit=yes
14567 break
14569 done
14570 if test -z "$haveit"; then
14571 if test -d "$additional_libdir"; then
14572 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14575 haveit=
14576 for x in $LDFLAGS $LTLIBINTL; do
14578 acl_save_prefix="$prefix"
14579 prefix="$acl_final_prefix"
14580 acl_save_exec_prefix="$exec_prefix"
14581 exec_prefix="$acl_final_exec_prefix"
14582 eval x=\"$x\"
14583 exec_prefix="$acl_save_exec_prefix"
14584 prefix="$acl_save_prefix"
14586 if test "X$x" = "X-L$additional_libdir"; then
14587 haveit=yes
14588 break
14590 done
14591 if test -z "$haveit"; then
14592 if test -d "$additional_libdir"; then
14593 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14599 -R*)
14600 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14601 if test "$enable_rpath" != no; then
14602 haveit=
14603 for x in $rpathdirs; do
14604 if test "X$x" = "X$dir"; then
14605 haveit=yes
14606 break
14608 done
14609 if test -z "$haveit"; then
14610 rpathdirs="$rpathdirs $dir"
14612 haveit=
14613 for x in $ltrpathdirs; do
14614 if test "X$x" = "X$dir"; then
14615 haveit=yes
14616 break
14618 done
14619 if test -z "$haveit"; then
14620 ltrpathdirs="$ltrpathdirs $dir"
14624 -l*)
14625 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14627 *.la)
14628 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14631 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14632 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14634 esac
14635 done
14637 else
14638 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14639 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14640 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14641 else
14642 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14643 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14648 done
14649 done
14650 if test "X$rpathdirs" != "X"; then
14651 if test -n "$hardcode_libdir_separator"; then
14652 alldirs=
14653 for found_dir in $rpathdirs; do
14654 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14655 done
14656 acl_save_libdir="$libdir"
14657 libdir="$alldirs"
14658 eval flag=\"$hardcode_libdir_flag_spec\"
14659 libdir="$acl_save_libdir"
14660 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14661 else
14662 for found_dir in $rpathdirs; do
14663 acl_save_libdir="$libdir"
14664 libdir="$found_dir"
14665 eval flag=\"$hardcode_libdir_flag_spec\"
14666 libdir="$acl_save_libdir"
14667 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14668 done
14671 if test "X$ltrpathdirs" != "X"; then
14672 for found_dir in $ltrpathdirs; do
14673 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14674 done
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14678 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14679 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14680 $as_echo_n "(cached) " >&6
14681 else
14682 gt_save_CPPFLAGS="$CPPFLAGS"
14683 CPPFLAGS="$CPPFLAGS $INCINTL"
14684 gt_save_LIBS="$LIBS"
14685 LIBS="$LIBS $LIBINTL"
14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h. */
14689 #include <libintl.h>
14690 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14691 extern int _nl_msg_cat_cntr;
14692 extern
14693 #ifdef __cplusplus
14695 #endif
14696 const char *_nl_expand_alias (const char *);
14697 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14698 #else
14699 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14700 #endif
14701 $gt_revision_test_code
14704 main ()
14707 bindtextdomain ("", "");
14708 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14711 return 0;
14713 _ACEOF
14714 if ac_fn_cxx_try_link "$LINENO"; then :
14715 eval "$gt_func_gnugettext_libintl=yes"
14716 else
14717 eval "$gt_func_gnugettext_libintl=no"
14719 rm -f core conftest.err conftest.$ac_objext \
14720 conftest$ac_exeext conftest.$ac_ext
14721 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14722 LIBS="$LIBS $LIBICONV"
14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14726 #include <libintl.h>
14727 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14728 extern int _nl_msg_cat_cntr;
14729 extern
14730 #ifdef __cplusplus
14732 #endif
14733 const char *_nl_expand_alias (const char *);
14734 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14735 #else
14736 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14737 #endif
14738 $gt_revision_test_code
14741 main ()
14744 bindtextdomain ("", "");
14745 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14748 return 0;
14750 _ACEOF
14751 if ac_fn_cxx_try_link "$LINENO"; then :
14752 LIBINTL="$LIBINTL $LIBICONV"
14753 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14754 eval "$gt_func_gnugettext_libintl=yes"
14757 rm -f core conftest.err conftest.$ac_objext \
14758 conftest$ac_exeext conftest.$ac_ext
14760 CPPFLAGS="$gt_save_CPPFLAGS"
14761 LIBS="$gt_save_LIBS"
14763 eval ac_res=\$$gt_func_gnugettext_libintl
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14765 $as_echo "$ac_res" >&6; }
14768 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14769 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14770 && test "$PACKAGE" != gettext-runtime \
14771 && test "$PACKAGE" != gettext-tools; }; then
14772 gt_use_preinstalled_gnugettext=yes
14773 else
14774 LIBINTL=
14775 LTLIBINTL=
14776 INCINTL=
14781 if test -n "$INTL_MACOSX_LIBS"; then
14782 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14783 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14784 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14785 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14789 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14790 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14792 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14794 else
14795 USE_NLS=no
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14800 $as_echo_n "checking whether to use NLS... " >&6; }
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14802 $as_echo "$USE_NLS" >&6; }
14803 if test "$USE_NLS" = "yes"; then
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14805 $as_echo_n "checking where the gettext function comes from... " >&6; }
14806 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14807 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14808 gt_source="external libintl"
14809 else
14810 gt_source="libc"
14812 else
14813 gt_source="included intl directory"
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14816 $as_echo "$gt_source" >&6; }
14819 if test "$USE_NLS" = "yes"; then
14821 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14822 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14824 $as_echo_n "checking how to link with libintl... " >&6; }
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14826 $as_echo "$LIBINTL" >&6; }
14828 for element in $INCINTL; do
14829 haveit=
14830 for x in $CPPFLAGS; do
14832 acl_save_prefix="$prefix"
14833 prefix="$acl_final_prefix"
14834 acl_save_exec_prefix="$exec_prefix"
14835 exec_prefix="$acl_final_exec_prefix"
14836 eval x=\"$x\"
14837 exec_prefix="$acl_save_exec_prefix"
14838 prefix="$acl_save_prefix"
14840 if test "X$x" = "X$element"; then
14841 haveit=yes
14842 break
14844 done
14845 if test -z "$haveit"; then
14846 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14848 done
14853 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14856 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14860 POSUB=po
14865 INTLLIBS="$LIBINTL"
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14885 $as_echo_n "checking whether NLS is requested... " >&6; }
14886 if test x"$USE_NLS" != xyes; then
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14888 $as_echo "no" >&6; }
14889 else
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891 $as_echo "yes" >&6; }
14893 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14897 $as_echo_n "checking for catalogs to be installed... " >&6; }
14898 # Look for .po and .gmo files in the source directory.
14899 CATALOGS=
14900 XLINGUAS=
14901 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14902 # If there aren't any .gmo files the shell will give us the
14903 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14904 # weeded out.
14905 case "$cat" in *\**)
14906 continue;;
14907 esac
14908 # The quadruple backslash is collapsed to a double backslash
14909 # by the backticks, then collapsed again by the double quotes,
14910 # leaving us with one backslash in the sed expression (right
14911 # before the dot that mustn't act as a wildcard).
14912 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14913 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14914 # The user is allowed to set LINGUAS to a list of languages to
14915 # install catalogs for. If it's empty that means "all of them."
14916 if test "x$LINGUAS" = x; then
14917 CATALOGS="$CATALOGS $cat"
14918 XLINGUAS="$XLINGUAS $lang"
14919 else
14920 case "$LINGUAS" in *$lang*)
14921 CATALOGS="$CATALOGS $cat"
14922 XLINGUAS="$XLINGUAS $lang"
14924 esac
14926 done
14927 LINGUAS="$XLINGUAS"
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14929 $as_echo "$LINGUAS" >&6; }
14932 DATADIRNAME=share
14934 INSTOBJEXT=.mo
14936 GENCAT=gencat
14938 CATOBJEXT=.gmo
14942 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14943 # -liconv on the link line twice.
14944 case "$LIBINTL" in *$LIBICONV*)
14945 LIBICONV= ;;
14946 esac
14948 # Check whether --enable-secureplt was given.
14949 if test "${enable_secureplt+set}" = set; then :
14950 enableval=$enable_secureplt;
14954 # Check whether --enable-mingw-wildcard was given.
14955 if test "${enable_mingw_wildcard+set}" = set; then :
14956 enableval=$enable_mingw_wildcard;
14957 else
14958 enable_mingw_wildcard=platform
14961 if test x"$enable_mingw_wildcard" != xplatform ; then :
14963 cat >>confdefs.h <<_ACEOF
14964 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
14965 _ACEOF
14969 # Check whether --enable-large-address-aware was given.
14970 if test "${enable_large_address_aware+set}" = set; then :
14971 enableval=$enable_large_address_aware;
14974 if test x"$enable_large_address_aware" = xyes; then :
14976 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
14980 # Check whether --enable-leading-mingw64-underscores was given.
14981 if test "${enable_leading_mingw64_underscores+set}" = set; then :
14982 enableval=$enable_leading_mingw64_underscores;
14985 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
14987 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
14991 # Check whether --enable-cld was given.
14992 if test "${enable_cld+set}" = set; then :
14993 enableval=$enable_cld;
14994 else
14995 enable_cld=no
14999 # Check whether --enable-frame-pointer was given.
15000 if test "${enable_frame_pointer+set}" = set; then :
15001 enableval=$enable_frame_pointer;
15002 else
15004 case $target_os in
15005 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
15006 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
15007 enable_frame_pointer=no
15010 enable_frame_pointer=yes
15012 esac
15017 case $target in
15018 i[34567]86-*-* | x86_64-*-*)
15019 if test "x$enable_cld" = xyes; then
15020 tm_defines="${tm_defines} USE_IX86_CLD=1"
15022 if test "x$enable_frame_pointer" = xyes; then
15023 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
15026 esac
15028 # Windows32 Registry support for specifying GCC installation paths.
15029 # Check whether --enable-win32-registry was given.
15030 if test "${enable_win32_registry+set}" = set; then :
15031 enableval=$enable_win32_registry;
15035 case $host_os in
15036 win32 | pe | cygwin* | mingw32*)
15037 if test "x$enable_win32_registry" != xno; then
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
15039 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
15040 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15041 $as_echo_n "(cached) " >&6
15042 else
15043 ac_func_search_save_LIBS=$LIBS
15044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045 /* end confdefs.h. */
15047 /* Override any GCC internal prototype to avoid an error.
15048 Use char because int might match the return type of a GCC
15049 builtin and then its argument prototype would still apply. */
15050 #ifdef __cplusplus
15051 extern "C"
15052 #endif
15053 char RegOpenKeyExA ();
15055 main ()
15057 return RegOpenKeyExA ();
15059 return 0;
15061 _ACEOF
15062 for ac_lib in '' advapi32; do
15063 if test -z "$ac_lib"; then
15064 ac_res="none required"
15065 else
15066 ac_res=-l$ac_lib
15067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15069 if ac_fn_cxx_try_link "$LINENO"; then :
15070 ac_cv_search_RegOpenKeyExA=$ac_res
15072 rm -f core conftest.err conftest.$ac_objext \
15073 conftest$ac_exeext
15074 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15075 break
15077 done
15078 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15080 else
15081 ac_cv_search_RegOpenKeyExA=no
15083 rm conftest.$ac_ext
15084 LIBS=$ac_func_search_save_LIBS
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
15087 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
15088 ac_res=$ac_cv_search_RegOpenKeyExA
15089 if test "$ac_res" != no; then :
15090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15092 else
15093 enable_win32_registry=no
15098 if test "x$enable_win32_registry" != xno; then
15100 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
15103 if test "x$enable_win32_registry" != xyes \
15104 && test "x$enable_win32_registry" != x; then
15106 cat >>confdefs.h <<_ACEOF
15107 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
15108 _ACEOF
15113 esac
15115 # Get an absolute path to the GCC top-level source directory
15116 holddir=`${PWDCMD-pwd}`
15117 cd $srcdir
15118 topdir=`${PWDCMD-pwd}`
15119 cd $holddir
15121 # Conditionalize the makefile for this host machine.
15122 xmake_file=
15123 for f in ${host_xmake_file}
15125 if test -f ${srcdir}/config/$f
15126 then
15127 xmake_file="${xmake_file} \$(srcdir)/config/$f"
15129 done
15131 # Conditionalize the makefile for this target machine.
15132 tmake_file_=
15133 for f in ${tmake_file}
15135 if test -f ${srcdir}/config/$f
15136 then
15137 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15139 done
15140 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
15142 out_object_file=`basename $out_file .cc`.o
15143 common_out_object_file=`basename $common_out_file .cc`.o
15145 tm_file_list="options.h"
15146 tm_include_list="options.h insn-constants.h"
15147 for f in $tm_file; do
15148 case $f in
15149 ./* )
15150 f=`echo $f | sed 's/^..//'`
15151 tm_file_list="${tm_file_list} $f"
15152 tm_include_list="${tm_include_list} $f"
15154 defaults.h )
15155 tm_file_list="${tm_file_list} \$(srcdir)/$f"
15156 tm_include_list="${tm_include_list} $f"
15159 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
15160 tm_include_list="${tm_include_list} config/$f"
15162 esac
15163 done
15165 tm_p_file_list=
15166 tm_p_include_list=
15167 for f in $tm_p_file; do
15168 case $f in
15169 tm-preds.h )
15170 tm_p_file_list="${tm_p_file_list} $f"
15171 tm_p_include_list="${tm_p_include_list} $f"
15174 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
15175 tm_p_include_list="${tm_p_include_list} config/$f"
15176 esac
15177 done
15179 tm_d_file_list=
15180 tm_d_include_list=
15181 for f in $tm_d_file; do
15182 case $f in
15184 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
15185 tm_d_include_list="${tm_d_include_list} config/$f"
15187 esac
15188 done
15190 tm_rust_file_list=
15191 tm_rust_include_list=
15192 for f in $tm_rust_file; do
15193 case $f in
15195 tm_rust_file_list="${tm_rust_file_list} \$(srcdir)/config/$f"
15196 tm_rust_include_list="${tm_rust_include_list} config/$f"
15198 esac
15199 done
15201 xm_file_list=
15202 xm_include_list=
15203 for f in $xm_file; do
15204 case $f in
15205 ansidecl.h )
15206 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
15207 xm_include_list="${xm_include_list} $f"
15209 auto-host.h )
15210 xm_file_list="${xm_file_list} $f"
15211 xm_include_list="${xm_include_list} $f"
15214 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
15215 xm_include_list="${xm_include_list} config/$f"
15217 esac
15218 done
15220 host_xm_file_list=
15221 host_xm_include_list=
15222 for f in $host_xm_file; do
15223 case $f in
15224 ansidecl.h )
15225 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
15226 host_xm_include_list="${host_xm_include_list} $f"
15228 auto-host.h )
15229 host_xm_file_list="${host_xm_file_list} $f"
15230 host_xm_include_list="${host_xm_include_list} $f"
15233 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
15234 host_xm_include_list="${host_xm_include_list} config/$f"
15236 esac
15237 done
15239 build_xm_file_list=
15240 for f in $build_xm_file; do
15241 case $f in
15242 ansidecl.h )
15243 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
15244 build_xm_include_list="${build_xm_include_list} $f"
15246 auto-build.h | auto-host.h )
15247 build_xm_file_list="${build_xm_file_list} $f"
15248 build_xm_include_list="${build_xm_include_list} $f"
15251 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
15252 build_xm_include_list="${build_xm_include_list} config/$f"
15254 esac
15255 done
15257 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15258 # cross-compiler which does not use the native headers and libraries.
15259 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15260 CROSS=
15261 ALL=all.internal
15262 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
15263 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
15265 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
15266 test x$build != x$host || test "x$with_build_sysroot" != x; then
15267 if test "x$with_build_sysroot" != x; then
15268 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15269 else
15270 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15273 if test x$host != x$target
15274 then
15275 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
15276 ALL=all.cross
15277 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
15278 elif test "x$TARGET_SYSTEM_ROOT" != x; then
15279 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15282 if test "x$with_build_sysroot" != "x"; then
15283 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
15284 elif test "x$with_sysroot" = x; then
15285 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
15286 elif test "x$with_sysroot" = xyes; then
15287 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15288 else
15289 target_header_dir="${with_sysroot}${native_system_header_dir}"
15291 else
15292 target_header_dir=${native_system_header_dir}
15295 # If this is a cross-compiler that does not
15296 # have its own set of headers then define
15297 # inhibit_libc
15299 # If this is using newlib, without having the headers available now,
15300 # then define inhibit_libc in LIBGCC2_CFLAGS.
15301 # This prevents libgcc2 from containing any code which requires libc
15302 # support.
15303 : ${inhibit_libc=false}
15304 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
15305 test x$with_newlib = xyes ; } &&
15306 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
15307 inhibit_libc=true
15311 # When building gcc with a cross-compiler, we need to adjust things so
15312 # that the generator programs are still built with the native compiler.
15313 # Also, we cannot run fixincludes.
15315 # These are the normal (build=host) settings:
15316 CC_FOR_BUILD='$(CC)'
15317 CXX_FOR_BUILD='$(CXX)'
15318 BUILD_CFLAGS='$(ALL_CFLAGS)'
15319 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
15320 BUILD_LDFLAGS='$(LDFLAGS)'
15321 STMP_FIXINC=stmp-fixinc
15323 # And these apply if build != host, or we are generating coverage data
15324 if test x$build != x$host || test "x$coverage_flags" != x
15325 then
15326 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15327 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15328 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
15332 if test x$enable_fixincludes = xno;
15333 then
15334 STMP_FIXINC=''
15337 # Expand extra_headers to include complete path.
15338 # This substitutes for lots of t-* files.
15339 extra_headers_list=
15340 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15341 for file in ${extra_headers} ; do
15342 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15343 done
15345 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15346 if test x"$use_gcc_tgmath" = xyes
15347 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15350 # Define collect2 in Makefile.
15351 case $host_can_use_collect2 in
15352 no) collect2= ;;
15353 *) collect2='collect2$(exeext)' ;;
15354 esac
15357 # Add a definition of USE_COLLECT2 if system wants one.
15358 case $use_collect2 in
15359 no) use_collect2= ;;
15360 "") ;;
15362 host_xm_defines="${host_xm_defines} USE_COLLECT2"
15363 xm_defines="${xm_defines} USE_COLLECT2"
15364 case $host_can_use_collect2 in
15366 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
15368 esac
15370 esac
15373 cat >>confdefs.h <<_ACEOF
15374 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15375 _ACEOF
15378 # ---------------------------
15379 # Assembler & linker features
15380 # ---------------------------
15382 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15383 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15384 # However when ld-new is first executed from the build tree, libtool will
15385 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15386 # to the build tree. While doing this we need to use the previous-stage
15387 # linker, or we have an infinite loop. The presence of a shell script as
15388 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15389 # the gcc/collect-ld script. So we need to know how libtool works, or
15390 # exec-tool will fail.
15393 case `pwd` in
15394 *\ * | *\ *)
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15396 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15397 esac
15401 macro_version='2.2.7a'
15402 macro_revision='1.3134'
15416 ltmain="$ac_aux_dir/ltmain.sh"
15418 # Backslashify metacharacters that are still active within
15419 # double-quoted strings.
15420 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15422 # Same as above, but do not quote variable references.
15423 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15425 # Sed substitution to delay expansion of an escaped shell variable in a
15426 # double_quote_subst'ed string.
15427 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15429 # Sed substitution to delay expansion of an escaped single quote.
15430 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15432 # Sed substitution to avoid accidental globbing in evaled expressions
15433 no_glob_subst='s/\*/\\\*/g'
15435 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15436 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15437 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15440 $as_echo_n "checking how to print strings... " >&6; }
15441 # Test print first, because it will be a builtin if present.
15442 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15443 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15444 ECHO='print -r --'
15445 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15446 ECHO='printf %s\n'
15447 else
15448 # Use this function as a fallback that always works.
15449 func_fallback_echo ()
15451 eval 'cat <<_LTECHO_EOF
15453 _LTECHO_EOF'
15455 ECHO='func_fallback_echo'
15458 # func_echo_all arg...
15459 # Invoke $ECHO with all args, space-separated.
15460 func_echo_all ()
15462 $ECHO ""
15465 case "$ECHO" in
15466 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15467 $as_echo "printf" >&6; } ;;
15468 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15469 $as_echo "print -r" >&6; } ;;
15470 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15471 $as_echo "cat" >&6; } ;;
15472 esac
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15488 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15489 if ${ac_cv_path_SED+:} false; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15493 for ac_i in 1 2 3 4 5 6 7; do
15494 ac_script="$ac_script$as_nl$ac_script"
15495 done
15496 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15497 { ac_script=; unset ac_script;}
15498 if test -z "$SED"; then
15499 ac_path_SED_found=false
15500 # Loop through the user's path and test for each of PROGNAME-LIST
15501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15502 for as_dir in $PATH
15504 IFS=$as_save_IFS
15505 test -z "$as_dir" && as_dir=.
15506 for ac_prog in sed gsed; do
15507 for ac_exec_ext in '' $ac_executable_extensions; do
15508 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15509 as_fn_executable_p "$ac_path_SED" || continue
15510 # Check for GNU ac_path_SED and select it if it is found.
15511 # Check for GNU $ac_path_SED
15512 case `"$ac_path_SED" --version 2>&1` in
15513 *GNU*)
15514 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15516 ac_count=0
15517 $as_echo_n 0123456789 >"conftest.in"
15518 while :
15520 cat "conftest.in" "conftest.in" >"conftest.tmp"
15521 mv "conftest.tmp" "conftest.in"
15522 cp "conftest.in" "conftest.nl"
15523 $as_echo '' >> "conftest.nl"
15524 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15526 as_fn_arith $ac_count + 1 && ac_count=$as_val
15527 if test $ac_count -gt ${ac_path_SED_max-0}; then
15528 # Best one so far, save it but keep looking for a better one
15529 ac_cv_path_SED="$ac_path_SED"
15530 ac_path_SED_max=$ac_count
15532 # 10*(2^10) chars as input seems more than enough
15533 test $ac_count -gt 10 && break
15534 done
15535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15536 esac
15538 $ac_path_SED_found && break 3
15539 done
15540 done
15541 done
15542 IFS=$as_save_IFS
15543 if test -z "$ac_cv_path_SED"; then
15544 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15546 else
15547 ac_cv_path_SED=$SED
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15552 $as_echo "$ac_cv_path_SED" >&6; }
15553 SED="$ac_cv_path_SED"
15554 rm -f conftest.sed
15556 test -z "$SED" && SED=sed
15557 Xsed="$SED -e 1s/^X//"
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15570 $as_echo_n "checking for fgrep... " >&6; }
15571 if ${ac_cv_path_FGREP+:} false; then :
15572 $as_echo_n "(cached) " >&6
15573 else
15574 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
15575 then ac_cv_path_FGREP="$GREP -F"
15576 else
15577 if test -z "$FGREP"; then
15578 ac_path_FGREP_found=false
15579 # Loop through the user's path and test for each of PROGNAME-LIST
15580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15583 IFS=$as_save_IFS
15584 test -z "$as_dir" && as_dir=.
15585 for ac_prog in fgrep; do
15586 for ac_exec_ext in '' $ac_executable_extensions; do
15587 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
15588 as_fn_executable_p "$ac_path_FGREP" || continue
15589 # Check for GNU ac_path_FGREP and select it if it is found.
15590 # Check for GNU $ac_path_FGREP
15591 case `"$ac_path_FGREP" --version 2>&1` in
15592 *GNU*)
15593 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
15595 ac_count=0
15596 $as_echo_n 0123456789 >"conftest.in"
15597 while :
15599 cat "conftest.in" "conftest.in" >"conftest.tmp"
15600 mv "conftest.tmp" "conftest.in"
15601 cp "conftest.in" "conftest.nl"
15602 $as_echo 'FGREP' >> "conftest.nl"
15603 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
15604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15605 as_fn_arith $ac_count + 1 && ac_count=$as_val
15606 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15607 # Best one so far, save it but keep looking for a better one
15608 ac_cv_path_FGREP="$ac_path_FGREP"
15609 ac_path_FGREP_max=$ac_count
15611 # 10*(2^10) chars as input seems more than enough
15612 test $ac_count -gt 10 && break
15613 done
15614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15615 esac
15617 $ac_path_FGREP_found && break 3
15618 done
15619 done
15620 done
15621 IFS=$as_save_IFS
15622 if test -z "$ac_cv_path_FGREP"; then
15623 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15625 else
15626 ac_cv_path_FGREP=$FGREP
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15632 $as_echo "$ac_cv_path_FGREP" >&6; }
15633 FGREP="$ac_cv_path_FGREP"
15636 test -z "$GREP" && GREP=grep
15656 # Check whether --with-gnu-ld was given.
15657 if test "${with_gnu_ld+set}" = set; then :
15658 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15659 else
15660 with_gnu_ld=no
15663 ac_prog=ld
15664 if test "$GCC" = yes; then
15665 # Check if gcc -print-prog-name=ld gives a path.
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15667 $as_echo_n "checking for ld used by $CC... " >&6; }
15668 case $host in
15669 *-*-mingw*)
15670 # gcc leaves a trailing carriage return which upsets mingw
15671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15674 esac
15675 case $ac_prog in
15676 # Accept absolute paths.
15677 [\\/]* | ?:[\\/]*)
15678 re_direlt='/[^/][^/]*/\.\./'
15679 # Canonicalize the pathname of ld
15680 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15681 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15682 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15683 done
15684 test -z "$LD" && LD="$ac_prog"
15687 # If it fails, then pretend we aren't using GCC.
15688 ac_prog=ld
15691 # If it is relative, then search for the first ld in PATH.
15692 with_gnu_ld=unknown
15694 esac
15695 elif test "$with_gnu_ld" = yes; then
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15697 $as_echo_n "checking for GNU ld... " >&6; }
15698 else
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15700 $as_echo_n "checking for non-GNU ld... " >&6; }
15702 if ${lt_cv_path_LD+:} false; then :
15703 $as_echo_n "(cached) " >&6
15704 else
15705 if test -z "$LD"; then
15706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15707 for ac_dir in $PATH; do
15708 IFS="$lt_save_ifs"
15709 test -z "$ac_dir" && ac_dir=.
15710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15711 lt_cv_path_LD="$ac_dir/$ac_prog"
15712 # Check to see if the program is GNU ld. I'd rather use --version,
15713 # but apparently some variants of GNU ld only accept -v.
15714 # Break only if it was the GNU/non-GNU ld that we prefer.
15715 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15716 *GNU* | *'with BFD'*)
15717 test "$with_gnu_ld" != no && break
15720 test "$with_gnu_ld" != yes && break
15722 esac
15724 done
15725 IFS="$lt_save_ifs"
15726 else
15727 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15731 LD="$lt_cv_path_LD"
15732 if test -n "$LD"; then
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15734 $as_echo "$LD" >&6; }
15735 else
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15737 $as_echo "no" >&6; }
15739 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15741 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15742 if ${lt_cv_prog_gnu_ld+:} false; then :
15743 $as_echo_n "(cached) " >&6
15744 else
15745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15746 case `$LD -v 2>&1 </dev/null` in
15747 *GNU* | *'with BFD'*)
15748 lt_cv_prog_gnu_ld=yes
15751 lt_cv_prog_gnu_ld=no
15753 esac
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15756 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15757 with_gnu_ld=$lt_cv_prog_gnu_ld
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15768 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15769 if ${lt_cv_path_NM+:} false; then :
15770 $as_echo_n "(cached) " >&6
15771 else
15772 if test -n "$NM"; then
15773 # Let the user override the nm to test.
15774 lt_nm_to_check="$NM"
15775 else
15776 lt_nm_to_check="${ac_tool_prefix}nm"
15777 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15778 lt_nm_to_check="$lt_nm_to_check nm"
15781 for lt_tmp_nm in "$lt_nm_to_check"; do
15782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15783 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15784 IFS="$lt_save_ifs"
15785 test -z "$ac_dir" && ac_dir=.
15786 # Strip out any user-provided options from the nm to test twice,
15787 # the first time to test to see if nm (rather than its options) has
15788 # an explicit path, the second time to yield a file which can be
15789 # nm'ed itself.
15790 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15791 case "$tmp_nm_path" in
15792 */*|*\\*) tmp_nm="$lt_tmp_nm";;
15793 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
15794 esac
15795 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15796 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
15797 # Check to see if the nm accepts a BSD-compat flag.
15798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15799 # nm: unknown option "B" ignored
15800 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15801 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
15802 break
15805 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15806 *$tmp_nm*)
15807 lt_cv_path_NM="$tmp_nm -p"
15808 break
15811 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15812 continue # so that we can try to find one that supports BSD flags
15814 esac
15816 esac
15818 done
15819 IFS="$lt_save_ifs"
15820 done
15821 : ${lt_cv_path_NM=no}
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15824 $as_echo "$lt_cv_path_NM" >&6; }
15825 if test "$lt_cv_path_NM" != "no"; then
15826 NM="$lt_cv_path_NM"
15827 else
15828 # Didn't find any BSD compatible name lister, look for dumpbin.
15829 if test -n "$DUMPBIN"; then :
15830 # Let the user override the test.
15831 else
15832 if test -n "$ac_tool_prefix"; then
15833 for ac_prog in dumpbin "link -dump"
15835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15838 $as_echo_n "checking for $ac_word... " >&6; }
15839 if ${ac_cv_prog_DUMPBIN+:} false; then :
15840 $as_echo_n "(cached) " >&6
15841 else
15842 if test -n "$DUMPBIN"; then
15843 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15844 else
15845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15846 for as_dir in $PATH
15848 IFS=$as_save_IFS
15849 test -z "$as_dir" && as_dir=.
15850 for ac_exec_ext in '' $ac_executable_extensions; do
15851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15852 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15854 break 2
15856 done
15857 done
15858 IFS=$as_save_IFS
15862 DUMPBIN=$ac_cv_prog_DUMPBIN
15863 if test -n "$DUMPBIN"; then
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15865 $as_echo "$DUMPBIN" >&6; }
15866 else
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15868 $as_echo "no" >&6; }
15872 test -n "$DUMPBIN" && break
15873 done
15875 if test -z "$DUMPBIN"; then
15876 ac_ct_DUMPBIN=$DUMPBIN
15877 for ac_prog in dumpbin "link -dump"
15879 # Extract the first word of "$ac_prog", so it can be a program name with args.
15880 set dummy $ac_prog; ac_word=$2
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15882 $as_echo_n "checking for $ac_word... " >&6; }
15883 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 if test -n "$ac_ct_DUMPBIN"; then
15887 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15888 else
15889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890 for as_dir in $PATH
15892 IFS=$as_save_IFS
15893 test -z "$as_dir" && as_dir=.
15894 for ac_exec_ext in '' $ac_executable_extensions; do
15895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15896 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15898 break 2
15900 done
15901 done
15902 IFS=$as_save_IFS
15906 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15907 if test -n "$ac_ct_DUMPBIN"; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15909 $as_echo "$ac_ct_DUMPBIN" >&6; }
15910 else
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912 $as_echo "no" >&6; }
15916 test -n "$ac_ct_DUMPBIN" && break
15917 done
15919 if test "x$ac_ct_DUMPBIN" = x; then
15920 DUMPBIN=":"
15921 else
15922 case $cross_compiling:$ac_tool_warned in
15923 yes:)
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15926 ac_tool_warned=yes ;;
15927 esac
15928 DUMPBIN=$ac_ct_DUMPBIN
15932 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15933 *COFF*)
15934 DUMPBIN="$DUMPBIN -symbols"
15937 DUMPBIN=:
15939 esac
15942 if test "$DUMPBIN" != ":"; then
15943 NM="$DUMPBIN"
15946 test -z "$NM" && NM=nm
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15954 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15955 if ${lt_cv_nm_interface+:} false; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15958 lt_cv_nm_interface="BSD nm"
15959 echo "int some_variable = 0;" > conftest.$ac_ext
15960 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15961 (eval "$ac_compile" 2>conftest.err)
15962 cat conftest.err >&5
15963 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15964 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15965 cat conftest.err >&5
15966 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15967 cat conftest.out >&5
15968 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15969 lt_cv_nm_interface="MS dumpbin"
15971 rm -f conftest*
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15974 $as_echo "$lt_cv_nm_interface" >&6; }
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15977 $as_echo_n "checking whether ln -s works... " >&6; }
15978 LN_S=$as_ln_s
15979 if test "$LN_S" = "ln -s"; then
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15981 $as_echo "yes" >&6; }
15982 else
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15984 $as_echo "no, using $LN_S" >&6; }
15987 # find the maximum length of command line arguments
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15989 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15990 if ${lt_cv_sys_max_cmd_len+:} false; then :
15991 $as_echo_n "(cached) " >&6
15992 else
15994 teststring="ABCD"
15996 case $build_os in
15997 msdosdjgpp*)
15998 # On DJGPP, this test can blow up pretty badly due to problems in libc
15999 # (any single argument exceeding 2000 bytes causes a buffer overrun
16000 # during glob expansion). Even if it were fixed, the result of this
16001 # check would be larger than it should be.
16002 lt_cv_sys_max_cmd_len=12288; # 12K is about right
16005 gnu*)
16006 # Under GNU Hurd, this test is not required because there is
16007 # no limit to the length of command line arguments.
16008 # Libtool will interpret -1 as no limit whatsoever
16009 lt_cv_sys_max_cmd_len=-1;
16012 cygwin* | mingw* | cegcc*)
16013 # On Win9x/ME, this test blows up -- it succeeds, but takes
16014 # about 5 minutes as the teststring grows exponentially.
16015 # Worse, since 9x/ME are not pre-emptively multitasking,
16016 # you end up with a "frozen" computer, even though with patience
16017 # the test eventually succeeds (with a max line length of 256k).
16018 # Instead, let's just punt: use the minimum linelength reported by
16019 # all of the supported platforms: 8192 (on NT/2K/XP).
16020 lt_cv_sys_max_cmd_len=8192;
16023 mint*)
16024 # On MiNT this can take a long time and run out of memory.
16025 lt_cv_sys_max_cmd_len=8192;
16028 amigaos*)
16029 # On AmigaOS with pdksh, this test takes hours, literally.
16030 # So we just punt and use a minimum line length of 8192.
16031 lt_cv_sys_max_cmd_len=8192;
16034 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16035 # This has been around since 386BSD, at least. Likely further.
16036 if test -x /sbin/sysctl; then
16037 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16038 elif test -x /usr/sbin/sysctl; then
16039 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16040 else
16041 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16043 # And add a safety zone
16044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16045 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16048 interix*)
16049 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16050 lt_cv_sys_max_cmd_len=196608
16053 osf*)
16054 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16055 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16056 # nice to cause kernel panics so lets avoid the loop below.
16057 # First set a reasonable default.
16058 lt_cv_sys_max_cmd_len=16384
16060 if test -x /sbin/sysconfig; then
16061 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16062 *1*) lt_cv_sys_max_cmd_len=-1 ;;
16063 esac
16066 sco3.2v5*)
16067 lt_cv_sys_max_cmd_len=102400
16069 sysv5* | sco5v6* | sysv4.2uw2*)
16070 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16071 if test -n "$kargmax"; then
16072 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
16073 else
16074 lt_cv_sys_max_cmd_len=32768
16078 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16079 if test -n "$lt_cv_sys_max_cmd_len"; then
16080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16082 else
16083 # Make teststring a little bigger before we do anything with it.
16084 # a 1K string should be a reasonable start.
16085 for i in 1 2 3 4 5 6 7 8 ; do
16086 teststring=$teststring$teststring
16087 done
16088 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16089 # If test is not a shell built-in, we'll probably end up computing a
16090 # maximum length that is only half of the actual maximum length, but
16091 # we can't tell.
16092 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16093 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16094 test $i != 17 # 1/2 MB should be enough
16096 i=`expr $i + 1`
16097 teststring=$teststring$teststring
16098 done
16099 # Only check the string length outside the loop.
16100 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16101 teststring=
16102 # Add a significant safety factor because C++ compilers can tack on
16103 # massive amounts of additional arguments before passing them to the
16104 # linker. It appears as though 1/2 is a usable value.
16105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16108 esac
16112 if test -n $lt_cv_sys_max_cmd_len ; then
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16114 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16115 else
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16117 $as_echo "none" >&6; }
16119 max_cmd_len=$lt_cv_sys_max_cmd_len
16126 : ${CP="cp -f"}
16127 : ${MV="mv -f"}
16128 : ${RM="rm -f"}
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16131 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16132 # Try some XSI features
16133 xsi_shell=no
16134 ( _lt_dummy="a/b/c"
16135 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
16136 = c,a/b,, \
16137 && eval 'test $(( 1 + 1 )) -eq 2 \
16138 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16139 && xsi_shell=yes
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
16141 $as_echo "$xsi_shell" >&6; }
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
16145 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
16146 lt_shell_append=no
16147 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
16148 >/dev/null 2>&1 \
16149 && lt_shell_append=yes
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
16151 $as_echo "$lt_shell_append" >&6; }
16154 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16155 lt_unset=unset
16156 else
16157 lt_unset=false
16164 # test EBCDIC or ASCII
16165 case `echo X|tr X '\101'` in
16166 A) # ASCII based system
16167 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16168 lt_SP2NL='tr \040 \012'
16169 lt_NL2SP='tr \015\012 \040\040'
16171 *) # EBCDIC based system
16172 lt_SP2NL='tr \100 \n'
16173 lt_NL2SP='tr \r\n \100\100'
16175 esac
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16186 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16187 if ${lt_cv_ld_reload_flag+:} false; then :
16188 $as_echo_n "(cached) " >&6
16189 else
16190 lt_cv_ld_reload_flag='-r'
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16193 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16194 reload_flag=$lt_cv_ld_reload_flag
16195 case $reload_flag in
16196 "" | " "*) ;;
16197 *) reload_flag=" $reload_flag" ;;
16198 esac
16199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16200 case $host_os in
16201 darwin*)
16202 if test "$GCC" = yes; then
16203 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16204 else
16205 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16208 esac
16218 if test -n "$ac_tool_prefix"; then
16219 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16220 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16222 $as_echo_n "checking for $ac_word... " >&6; }
16223 if ${ac_cv_prog_OBJDUMP+:} false; then :
16224 $as_echo_n "(cached) " >&6
16225 else
16226 if test -n "$OBJDUMP"; then
16227 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16228 else
16229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16230 for as_dir in $PATH
16232 IFS=$as_save_IFS
16233 test -z "$as_dir" && as_dir=.
16234 for ac_exec_ext in '' $ac_executable_extensions; do
16235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16236 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16238 break 2
16240 done
16241 done
16242 IFS=$as_save_IFS
16246 OBJDUMP=$ac_cv_prog_OBJDUMP
16247 if test -n "$OBJDUMP"; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16249 $as_echo "$OBJDUMP" >&6; }
16250 else
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252 $as_echo "no" >&6; }
16257 if test -z "$ac_cv_prog_OBJDUMP"; then
16258 ac_ct_OBJDUMP=$OBJDUMP
16259 # Extract the first word of "objdump", so it can be a program name with args.
16260 set dummy objdump; ac_word=$2
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16262 $as_echo_n "checking for $ac_word... " >&6; }
16263 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16264 $as_echo_n "(cached) " >&6
16265 else
16266 if test -n "$ac_ct_OBJDUMP"; then
16267 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16268 else
16269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16270 for as_dir in $PATH
16272 IFS=$as_save_IFS
16273 test -z "$as_dir" && as_dir=.
16274 for ac_exec_ext in '' $ac_executable_extensions; do
16275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16276 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16278 break 2
16280 done
16281 done
16282 IFS=$as_save_IFS
16286 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16287 if test -n "$ac_ct_OBJDUMP"; then
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16289 $as_echo "$ac_ct_OBJDUMP" >&6; }
16290 else
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16292 $as_echo "no" >&6; }
16295 if test "x$ac_ct_OBJDUMP" = x; then
16296 OBJDUMP="false"
16297 else
16298 case $cross_compiling:$ac_tool_warned in
16299 yes:)
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16302 ac_tool_warned=yes ;;
16303 esac
16304 OBJDUMP=$ac_ct_OBJDUMP
16306 else
16307 OBJDUMP="$ac_cv_prog_OBJDUMP"
16310 test -z "$OBJDUMP" && OBJDUMP=objdump
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16321 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16322 if ${lt_cv_deplibs_check_method+:} false; then :
16323 $as_echo_n "(cached) " >&6
16324 else
16325 lt_cv_file_magic_cmd='$MAGIC_CMD'
16326 lt_cv_file_magic_test_file=
16327 lt_cv_deplibs_check_method='unknown'
16328 # Need to set the preceding variable on all platforms that support
16329 # interlibrary dependencies.
16330 # 'none' -- dependencies not supported.
16331 # `unknown' -- same as none, but documents that we really don't know.
16332 # 'pass_all' -- all dependencies passed with no checks.
16333 # 'test_compile' -- check by making test program.
16334 # 'file_magic [[regex]]' -- check by looking for files in library path
16335 # which responds to the $file_magic_cmd with a given extended regex.
16336 # If you have `file' or equivalent on your system and you're not sure
16337 # whether `pass_all' will *always* work, you probably want this one.
16339 case $host_os in
16340 aix[4-9]*)
16341 lt_cv_deplibs_check_method=pass_all
16344 beos*)
16345 lt_cv_deplibs_check_method=pass_all
16348 bsdi[45]*)
16349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16350 lt_cv_file_magic_cmd='/usr/bin/file -L'
16351 lt_cv_file_magic_test_file=/shlib/libc.so
16354 cygwin*)
16355 # func_win32_libid is a shell function defined in ltmain.sh
16356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16357 lt_cv_file_magic_cmd='func_win32_libid'
16360 mingw* | pw32*)
16361 # Base MSYS/MinGW do not provide the 'file' command needed by
16362 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16363 # unless we find 'file', for example because we are cross-compiling.
16364 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16365 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
16366 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16367 lt_cv_file_magic_cmd='func_win32_libid'
16368 else
16369 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16370 lt_cv_file_magic_cmd='$OBJDUMP -f'
16374 cegcc*)
16375 # use the weaker test based on 'objdump'. See mingw*.
16376 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16377 lt_cv_file_magic_cmd='$OBJDUMP -f'
16380 darwin* | rhapsody*)
16381 lt_cv_deplibs_check_method=pass_all
16384 freebsd* | dragonfly*)
16385 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16386 case $host_cpu in
16387 i*86 )
16388 # Not sure whether the presence of OpenBSD here was a mistake.
16389 # Let's accept both of them until this is cleared up.
16390 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16391 lt_cv_file_magic_cmd=/usr/bin/file
16392 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16394 esac
16395 else
16396 lt_cv_deplibs_check_method=pass_all
16400 gnu*)
16401 lt_cv_deplibs_check_method=pass_all
16404 haiku*)
16405 lt_cv_deplibs_check_method=pass_all
16408 hpux10.20* | hpux11*)
16409 lt_cv_file_magic_cmd=/usr/bin/file
16410 case $host_cpu in
16411 ia64*)
16412 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16413 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16415 hppa*64*)
16416 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]'
16417 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16420 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16421 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16423 esac
16426 interix[3-9]*)
16427 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16431 irix5* | irix6* | nonstopux*)
16432 case $LD in
16433 *-32|*"-32 ") libmagic=32-bit;;
16434 *-n32|*"-n32 ") libmagic=N32;;
16435 *-64|*"-64 ") libmagic=64-bit;;
16436 *) libmagic=never-match;;
16437 esac
16438 lt_cv_deplibs_check_method=pass_all
16441 # This must be Linux ELF.
16442 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16443 lt_cv_deplibs_check_method=pass_all
16446 netbsd*)
16447 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16449 else
16450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16454 newos6*)
16455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16456 lt_cv_file_magic_cmd=/usr/bin/file
16457 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16460 *nto* | *qnx*)
16461 lt_cv_deplibs_check_method=pass_all
16464 openbsd*)
16465 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16467 else
16468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16472 osf3* | osf4* | osf5*)
16473 lt_cv_deplibs_check_method=pass_all
16476 rdos*)
16477 lt_cv_deplibs_check_method=pass_all
16480 solaris*)
16481 lt_cv_deplibs_check_method=pass_all
16484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16485 lt_cv_deplibs_check_method=pass_all
16488 sysv4 | sysv4.3*)
16489 case $host_vendor in
16490 motorola)
16491 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]'
16492 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16494 ncr)
16495 lt_cv_deplibs_check_method=pass_all
16497 sequent)
16498 lt_cv_file_magic_cmd='/bin/file'
16499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16501 sni)
16502 lt_cv_file_magic_cmd='/bin/file'
16503 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16504 lt_cv_file_magic_test_file=/lib/libc.so
16506 siemens)
16507 lt_cv_deplibs_check_method=pass_all
16510 lt_cv_deplibs_check_method=pass_all
16512 esac
16515 tpf*)
16516 lt_cv_deplibs_check_method=pass_all
16518 vxworks*)
16519 # Assume VxWorks cross toolchains are built on Linux, possibly
16520 # as canadian for Windows hosts.
16521 lt_cv_deplibs_check_method=pass_all
16523 esac
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16527 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16528 file_magic_cmd=$lt_cv_file_magic_cmd
16529 deplibs_check_method=$lt_cv_deplibs_check_method
16530 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16543 plugin_option=
16544 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
16545 for plugin in $plugin_names; do
16546 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16547 if test x$plugin_so = x$plugin; then
16548 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16550 if test x$plugin_so != x$plugin; then
16551 plugin_option="--plugin $plugin_so"
16552 break
16554 done
16556 if test -n "$ac_tool_prefix"; then
16557 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16558 set dummy ${ac_tool_prefix}ar; ac_word=$2
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16560 $as_echo_n "checking for $ac_word... " >&6; }
16561 if ${ac_cv_prog_AR+:} false; then :
16562 $as_echo_n "(cached) " >&6
16563 else
16564 if test -n "$AR"; then
16565 ac_cv_prog_AR="$AR" # Let the user override the test.
16566 else
16567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568 for as_dir in $PATH
16570 IFS=$as_save_IFS
16571 test -z "$as_dir" && as_dir=.
16572 for ac_exec_ext in '' $ac_executable_extensions; do
16573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16574 ac_cv_prog_AR="${ac_tool_prefix}ar"
16575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16576 break 2
16578 done
16579 done
16580 IFS=$as_save_IFS
16584 AR=$ac_cv_prog_AR
16585 if test -n "$AR"; then
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16587 $as_echo "$AR" >&6; }
16588 else
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16590 $as_echo "no" >&6; }
16595 if test -z "$ac_cv_prog_AR"; then
16596 ac_ct_AR=$AR
16597 # Extract the first word of "ar", so it can be a program name with args.
16598 set dummy ar; ac_word=$2
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16600 $as_echo_n "checking for $ac_word... " >&6; }
16601 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16602 $as_echo_n "(cached) " >&6
16603 else
16604 if test -n "$ac_ct_AR"; then
16605 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16606 else
16607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16608 for as_dir in $PATH
16610 IFS=$as_save_IFS
16611 test -z "$as_dir" && as_dir=.
16612 for ac_exec_ext in '' $ac_executable_extensions; do
16613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16614 ac_cv_prog_ac_ct_AR="ar"
16615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16616 break 2
16618 done
16619 done
16620 IFS=$as_save_IFS
16624 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16625 if test -n "$ac_ct_AR"; then
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16627 $as_echo "$ac_ct_AR" >&6; }
16628 else
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630 $as_echo "no" >&6; }
16633 if test "x$ac_ct_AR" = x; then
16634 AR="false"
16635 else
16636 case $cross_compiling:$ac_tool_warned in
16637 yes:)
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16640 ac_tool_warned=yes ;;
16641 esac
16642 AR=$ac_ct_AR
16644 else
16645 AR="$ac_cv_prog_AR"
16648 test -z "$AR" && AR=ar
16649 if test -n "$plugin_option"; then
16650 if $AR --help 2>&1 | grep -q "\--plugin"; then
16651 touch conftest.c
16652 $AR $plugin_option rc conftest.a conftest.c
16653 if test "$?" != 0; then
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16655 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
16656 else
16657 AR="$AR $plugin_option"
16659 rm -f conftest.*
16662 test -z "$AR_FLAGS" && AR_FLAGS=cru
16674 if test -n "$ac_tool_prefix"; then
16675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16676 set dummy ${ac_tool_prefix}strip; ac_word=$2
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16678 $as_echo_n "checking for $ac_word... " >&6; }
16679 if ${ac_cv_prog_STRIP+:} false; then :
16680 $as_echo_n "(cached) " >&6
16681 else
16682 if test -n "$STRIP"; then
16683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16684 else
16685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16686 for as_dir in $PATH
16688 IFS=$as_save_IFS
16689 test -z "$as_dir" && as_dir=.
16690 for ac_exec_ext in '' $ac_executable_extensions; do
16691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16692 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16694 break 2
16696 done
16697 done
16698 IFS=$as_save_IFS
16702 STRIP=$ac_cv_prog_STRIP
16703 if test -n "$STRIP"; then
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16705 $as_echo "$STRIP" >&6; }
16706 else
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16708 $as_echo "no" >&6; }
16713 if test -z "$ac_cv_prog_STRIP"; then
16714 ac_ct_STRIP=$STRIP
16715 # Extract the first word of "strip", so it can be a program name with args.
16716 set dummy strip; ac_word=$2
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16718 $as_echo_n "checking for $ac_word... " >&6; }
16719 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16720 $as_echo_n "(cached) " >&6
16721 else
16722 if test -n "$ac_ct_STRIP"; then
16723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16724 else
16725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16726 for as_dir in $PATH
16728 IFS=$as_save_IFS
16729 test -z "$as_dir" && as_dir=.
16730 for ac_exec_ext in '' $ac_executable_extensions; do
16731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16732 ac_cv_prog_ac_ct_STRIP="strip"
16733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16734 break 2
16736 done
16737 done
16738 IFS=$as_save_IFS
16742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16743 if test -n "$ac_ct_STRIP"; then
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16745 $as_echo "$ac_ct_STRIP" >&6; }
16746 else
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16748 $as_echo "no" >&6; }
16751 if test "x$ac_ct_STRIP" = x; then
16752 STRIP=":"
16753 else
16754 case $cross_compiling:$ac_tool_warned in
16755 yes:)
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16758 ac_tool_warned=yes ;;
16759 esac
16760 STRIP=$ac_ct_STRIP
16762 else
16763 STRIP="$ac_cv_prog_STRIP"
16766 test -z "$STRIP" && STRIP=:
16773 if test -n "$ac_tool_prefix"; then
16774 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16777 $as_echo_n "checking for $ac_word... " >&6; }
16778 if ${ac_cv_prog_RANLIB+:} false; then :
16779 $as_echo_n "(cached) " >&6
16780 else
16781 if test -n "$RANLIB"; then
16782 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16783 else
16784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16785 for as_dir in $PATH
16787 IFS=$as_save_IFS
16788 test -z "$as_dir" && as_dir=.
16789 for ac_exec_ext in '' $ac_executable_extensions; do
16790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16791 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16793 break 2
16795 done
16796 done
16797 IFS=$as_save_IFS
16801 RANLIB=$ac_cv_prog_RANLIB
16802 if test -n "$RANLIB"; then
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16804 $as_echo "$RANLIB" >&6; }
16805 else
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16807 $as_echo "no" >&6; }
16812 if test -z "$ac_cv_prog_RANLIB"; then
16813 ac_ct_RANLIB=$RANLIB
16814 # Extract the first word of "ranlib", so it can be a program name with args.
16815 set dummy ranlib; ac_word=$2
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16817 $as_echo_n "checking for $ac_word... " >&6; }
16818 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16819 $as_echo_n "(cached) " >&6
16820 else
16821 if test -n "$ac_ct_RANLIB"; then
16822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16823 else
16824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16825 for as_dir in $PATH
16827 IFS=$as_save_IFS
16828 test -z "$as_dir" && as_dir=.
16829 for ac_exec_ext in '' $ac_executable_extensions; do
16830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16831 ac_cv_prog_ac_ct_RANLIB="ranlib"
16832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16833 break 2
16835 done
16836 done
16837 IFS=$as_save_IFS
16841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16842 if test -n "$ac_ct_RANLIB"; then
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16844 $as_echo "$ac_ct_RANLIB" >&6; }
16845 else
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16847 $as_echo "no" >&6; }
16850 if test "x$ac_ct_RANLIB" = x; then
16851 RANLIB=":"
16852 else
16853 case $cross_compiling:$ac_tool_warned in
16854 yes:)
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16857 ac_tool_warned=yes ;;
16858 esac
16859 RANLIB=$ac_ct_RANLIB
16861 else
16862 RANLIB="$ac_cv_prog_RANLIB"
16865 test -z "$RANLIB" && RANLIB=:
16866 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16867 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
16868 RANLIB="$RANLIB $plugin_option"
16877 # Determine commands to create old-style static archives.
16878 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16879 old_postinstall_cmds='chmod 644 $oldlib'
16880 old_postuninstall_cmds=
16882 if test -n "$RANLIB"; then
16883 case $host_os in
16884 openbsd*)
16885 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16888 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16890 esac
16891 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16894 case $host_os in
16895 darwin*)
16896 lock_old_archive_extraction=yes ;;
16898 lock_old_archive_extraction=no ;;
16899 esac
16939 # If no C compiler was specified, use CC.
16940 LTCC=${LTCC-"$CC"}
16942 # If no C compiler flags were specified, use CFLAGS.
16943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16945 # Allow CC to be a program name with arguments.
16946 compiler=$CC
16949 # Check for command to grab the raw symbol name followed by C symbol from nm.
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
16951 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16952 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16953 $as_echo_n "(cached) " >&6
16954 else
16956 # These are sane defaults that work on at least a few old systems.
16957 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16959 # Character class describing NM global symbol codes.
16960 symcode='[BCDEGRST]'
16962 # Regexp to match symbols that can be accessed directly from C.
16963 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16965 # Define system-specific variables.
16966 case $host_os in
16967 aix*)
16968 symcode='[BCDT]'
16970 cygwin* | mingw* | pw32* | cegcc*)
16971 symcode='[ABCDGISTW]'
16973 hpux*)
16974 if test "$host_cpu" = ia64; then
16975 symcode='[ABCDEGRST]'
16978 irix* | nonstopux*)
16979 symcode='[BCDEGRST]'
16981 osf*)
16982 symcode='[BCDEGQRST]'
16984 solaris*)
16985 symcode='[BCDRT]'
16987 sco3.2v5*)
16988 symcode='[DT]'
16990 sysv4.2uw2*)
16991 symcode='[DT]'
16993 sysv5* | sco5v6* | unixware* | OpenUNIX*)
16994 symcode='[ABDT]'
16996 sysv4)
16997 symcode='[DFNSTU]'
16999 esac
17001 # If we're using GNU nm, then use its standard symbol codes.
17002 case `$NM -V 2>&1` in
17003 *GNU* | *'with BFD'*)
17004 symcode='[ABCDGIRSTW]' ;;
17005 esac
17007 # Transform an extracted symbol line into a proper C declaration.
17008 # Some systems (esp. on ia64) link data and code symbols differently,
17009 # so use this general approach.
17010 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
17012 # Transform an extracted symbol line into symbol name and symbol address
17013 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
17014 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'"
17016 # Handle CRLF in mingw tool chain
17017 opt_cr=
17018 case $build_os in
17019 mingw*)
17020 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17022 esac
17024 # Try without a prefix underscore, then with it.
17025 for ac_symprfx in "" "_"; do
17027 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17028 symxfrm="\\1 $ac_symprfx\\2 \\2"
17030 # Write the raw and C identifiers.
17031 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17032 # Fake it for dumpbin and say T for any non-static function
17033 # and D for any global variable.
17034 # Also find C++ and __fastcall symbols from MSVC++,
17035 # which start with @ or ?.
17036 lt_cv_sys_global_symbol_pipe="$AWK '"\
17037 " {last_section=section; section=\$ 3};"\
17038 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17039 " \$ 0!~/External *\|/{next};"\
17040 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17041 " {if(hide[section]) next};"\
17042 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
17043 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
17044 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
17045 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
17046 " ' prfx=^$ac_symprfx"
17047 else
17048 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17051 # Check to see that the pipe works correctly.
17052 pipe_works=no
17054 rm -f conftest*
17055 cat > conftest.$ac_ext <<_LT_EOF
17056 #ifdef __cplusplus
17057 extern "C" {
17058 #endif
17059 char nm_test_var;
17060 void nm_test_func(void);
17061 void nm_test_func(void){}
17062 #ifdef __cplusplus
17064 #endif
17065 int main(){nm_test_var='a';nm_test_func();return(0);}
17066 _LT_EOF
17068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17069 (eval $ac_compile) 2>&5
17070 ac_status=$?
17071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17072 test $ac_status = 0; }; then
17073 # Now try to grab the symbols.
17074 nlist=conftest.nm
17075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
17076 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17077 ac_status=$?
17078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17079 test $ac_status = 0; } && test -s "$nlist"; then
17080 # Try sorting and uniquifying the output.
17081 if sort "$nlist" | uniq > "$nlist"T; then
17082 mv -f "$nlist"T "$nlist"
17083 else
17084 rm -f "$nlist"T
17087 # Make sure that we snagged all the symbols we need.
17088 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17089 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17090 cat <<_LT_EOF > conftest.$ac_ext
17091 #ifdef __cplusplus
17092 extern "C" {
17093 #endif
17095 _LT_EOF
17096 # Now generate the symbol file.
17097 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17099 cat <<_LT_EOF >> conftest.$ac_ext
17101 /* The mapping between symbol names and symbols. */
17102 const struct {
17103 const char *name;
17104 void *address;
17106 lt__PROGRAM__LTX_preloaded_symbols[] =
17108 { "@PROGRAM@", (void *) 0 },
17109 _LT_EOF
17110 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17111 cat <<\_LT_EOF >> conftest.$ac_ext
17112 {0, (void *) 0}
17115 /* This works around a problem in FreeBSD linker */
17116 #ifdef FREEBSD_WORKAROUND
17117 static const void *lt_preloaded_setup() {
17118 return lt__PROGRAM__LTX_preloaded_symbols;
17120 #endif
17122 #ifdef __cplusplus
17124 #endif
17125 _LT_EOF
17126 # Now try linking the two files.
17127 mv conftest.$ac_objext conftstm.$ac_objext
17128 lt_save_LIBS="$LIBS"
17129 lt_save_CFLAGS="$CFLAGS"
17130 LIBS="conftstm.$ac_objext"
17131 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17133 (eval $ac_link) 2>&5
17134 ac_status=$?
17135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17136 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
17137 pipe_works=yes
17139 LIBS="$lt_save_LIBS"
17140 CFLAGS="$lt_save_CFLAGS"
17141 else
17142 echo "cannot find nm_test_func in $nlist" >&5
17144 else
17145 echo "cannot find nm_test_var in $nlist" >&5
17147 else
17148 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
17150 else
17151 echo "$progname: failed program was:" >&5
17152 cat conftest.$ac_ext >&5
17154 rm -rf conftest* conftst*
17156 # Do not use the global_symbol_pipe unless it works.
17157 if test "$pipe_works" = yes; then
17158 break
17159 else
17160 lt_cv_sys_global_symbol_pipe=
17162 done
17166 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17167 lt_cv_sys_global_symbol_to_cdecl=
17169 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17171 $as_echo "failed" >&6; }
17172 else
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17174 $as_echo "ok" >&6; }
17198 # Check whether --enable-libtool-lock was given.
17199 if test "${enable_libtool_lock+set}" = set; then :
17200 enableval=$enable_libtool_lock;
17203 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17205 # Some flags need to be propagated to the compiler or linker for good
17206 # libtool support.
17207 case $host in
17208 ia64-*-hpux*)
17209 # Find out which ABI we are using.
17210 echo 'int i;' > conftest.$ac_ext
17211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17212 (eval $ac_compile) 2>&5
17213 ac_status=$?
17214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17215 test $ac_status = 0; }; then
17216 case `/usr/bin/file conftest.$ac_objext` in
17217 *ELF-32*)
17218 HPUX_IA64_MODE="32"
17220 *ELF-64*)
17221 HPUX_IA64_MODE="64"
17223 esac
17225 rm -rf conftest*
17227 *-*-irix6*)
17228 # Find out which ABI we are using.
17229 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17231 (eval $ac_compile) 2>&5
17232 ac_status=$?
17233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17234 test $ac_status = 0; }; then
17235 if test "$lt_cv_prog_gnu_ld" = yes; then
17236 case `/usr/bin/file conftest.$ac_objext` in
17237 *32-bit*)
17238 LD="${LD-ld} -melf32bsmip"
17240 *N32*)
17241 LD="${LD-ld} -melf32bmipn32"
17243 *64-bit*)
17244 LD="${LD-ld} -melf64bmip"
17246 esac
17247 else
17248 case `/usr/bin/file conftest.$ac_objext` in
17249 *32-bit*)
17250 LD="${LD-ld} -32"
17252 *N32*)
17253 LD="${LD-ld} -n32"
17255 *64-bit*)
17256 LD="${LD-ld} -64"
17258 esac
17261 rm -rf conftest*
17264 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17265 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17266 # Find out which ABI we are using.
17267 echo 'int i;' > conftest.$ac_ext
17268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17269 (eval $ac_compile) 2>&5
17270 ac_status=$?
17271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17272 test $ac_status = 0; }; then
17273 case `/usr/bin/file conftest.o` in
17274 *32-bit*)
17275 case $host in
17276 x86_64-*kfreebsd*-gnu)
17277 LD="${LD-ld} -m elf_i386_fbsd"
17279 x86_64-*linux*)
17280 case `/usr/bin/file conftest.o` in
17281 *x86-64*)
17282 LD="${LD-ld} -m elf32_x86_64"
17285 LD="${LD-ld} -m elf_i386"
17287 esac
17289 powerpc64le-*linux*)
17290 LD="${LD-ld} -m elf32lppclinux"
17292 powerpc64-*linux*)
17293 LD="${LD-ld} -m elf32ppclinux"
17295 s390x-*linux*)
17296 LD="${LD-ld} -m elf_s390"
17298 sparc64-*linux*)
17299 LD="${LD-ld} -m elf32_sparc"
17301 esac
17303 *64-bit*)
17304 case $host in
17305 x86_64-*kfreebsd*-gnu)
17306 LD="${LD-ld} -m elf_x86_64_fbsd"
17308 x86_64-*linux*)
17309 LD="${LD-ld} -m elf_x86_64"
17311 powerpcle-*linux*)
17312 LD="${LD-ld} -m elf64lppc"
17314 powerpc-*linux*)
17315 LD="${LD-ld} -m elf64ppc"
17317 s390*-*linux*|s390*-*tpf*)
17318 LD="${LD-ld} -m elf64_s390"
17320 sparc*-*linux*)
17321 LD="${LD-ld} -m elf64_sparc"
17323 esac
17325 esac
17327 rm -rf conftest*
17330 *-*-sco3.2v5*)
17331 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17332 SAVE_CFLAGS="$CFLAGS"
17333 CFLAGS="$CFLAGS -belf"
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17335 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17336 if ${lt_cv_cc_needs_belf+:} false; then :
17337 $as_echo_n "(cached) " >&6
17338 else
17339 ac_ext=c
17340 ac_cpp='$CPP $CPPFLAGS'
17341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17349 main ()
17353 return 0;
17355 _ACEOF
17356 if ac_fn_c_try_link "$LINENO"; then :
17357 lt_cv_cc_needs_belf=yes
17358 else
17359 lt_cv_cc_needs_belf=no
17361 rm -f core conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17363 ac_ext=c
17364 ac_cpp='$CPP $CPPFLAGS'
17365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17371 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17372 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17373 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17374 CFLAGS="$SAVE_CFLAGS"
17377 sparc*-*solaris*)
17378 # Find out which ABI we are using.
17379 echo 'int i;' > conftest.$ac_ext
17380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17381 (eval $ac_compile) 2>&5
17382 ac_status=$?
17383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17384 test $ac_status = 0; }; then
17385 case `/usr/bin/file conftest.o` in
17386 *64-bit*)
17387 case $lt_cv_prog_gnu_ld in
17388 yes*) LD="${LD-ld} -m elf64_sparc" ;;
17390 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17391 LD="${LD-ld} -64"
17394 esac
17396 esac
17398 rm -rf conftest*
17400 esac
17402 need_locks="$enable_libtool_lock"
17405 case $host_os in
17406 rhapsody* | darwin*)
17407 if test -n "$ac_tool_prefix"; then
17408 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17409 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17411 $as_echo_n "checking for $ac_word... " >&6; }
17412 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17413 $as_echo_n "(cached) " >&6
17414 else
17415 if test -n "$DSYMUTIL"; then
17416 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17417 else
17418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17419 for as_dir in $PATH
17421 IFS=$as_save_IFS
17422 test -z "$as_dir" && as_dir=.
17423 for ac_exec_ext in '' $ac_executable_extensions; do
17424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17425 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17427 break 2
17429 done
17430 done
17431 IFS=$as_save_IFS
17435 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17436 if test -n "$DSYMUTIL"; then
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17438 $as_echo "$DSYMUTIL" >&6; }
17439 else
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17441 $as_echo "no" >&6; }
17446 if test -z "$ac_cv_prog_DSYMUTIL"; then
17447 ac_ct_DSYMUTIL=$DSYMUTIL
17448 # Extract the first word of "dsymutil", so it can be a program name with args.
17449 set dummy dsymutil; ac_word=$2
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17451 $as_echo_n "checking for $ac_word... " >&6; }
17452 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17453 $as_echo_n "(cached) " >&6
17454 else
17455 if test -n "$ac_ct_DSYMUTIL"; then
17456 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17457 else
17458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17459 for as_dir in $PATH
17461 IFS=$as_save_IFS
17462 test -z "$as_dir" && as_dir=.
17463 for ac_exec_ext in '' $ac_executable_extensions; do
17464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17465 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17467 break 2
17469 done
17470 done
17471 IFS=$as_save_IFS
17475 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17476 if test -n "$ac_ct_DSYMUTIL"; then
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17478 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17479 else
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17481 $as_echo "no" >&6; }
17484 if test "x$ac_ct_DSYMUTIL" = x; then
17485 DSYMUTIL=":"
17486 else
17487 case $cross_compiling:$ac_tool_warned in
17488 yes:)
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17491 ac_tool_warned=yes ;;
17492 esac
17493 DSYMUTIL=$ac_ct_DSYMUTIL
17495 else
17496 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17499 if test -n "$ac_tool_prefix"; then
17500 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17501 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17503 $as_echo_n "checking for $ac_word... " >&6; }
17504 if ${ac_cv_prog_NMEDIT+:} false; then :
17505 $as_echo_n "(cached) " >&6
17506 else
17507 if test -n "$NMEDIT"; then
17508 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17509 else
17510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17511 for as_dir in $PATH
17513 IFS=$as_save_IFS
17514 test -z "$as_dir" && as_dir=.
17515 for ac_exec_ext in '' $ac_executable_extensions; do
17516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17517 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17519 break 2
17521 done
17522 done
17523 IFS=$as_save_IFS
17527 NMEDIT=$ac_cv_prog_NMEDIT
17528 if test -n "$NMEDIT"; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17530 $as_echo "$NMEDIT" >&6; }
17531 else
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17533 $as_echo "no" >&6; }
17538 if test -z "$ac_cv_prog_NMEDIT"; then
17539 ac_ct_NMEDIT=$NMEDIT
17540 # Extract the first word of "nmedit", so it can be a program name with args.
17541 set dummy nmedit; ac_word=$2
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17543 $as_echo_n "checking for $ac_word... " >&6; }
17544 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17545 $as_echo_n "(cached) " >&6
17546 else
17547 if test -n "$ac_ct_NMEDIT"; then
17548 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17549 else
17550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17551 for as_dir in $PATH
17553 IFS=$as_save_IFS
17554 test -z "$as_dir" && as_dir=.
17555 for ac_exec_ext in '' $ac_executable_extensions; do
17556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17557 ac_cv_prog_ac_ct_NMEDIT="nmedit"
17558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17559 break 2
17561 done
17562 done
17563 IFS=$as_save_IFS
17567 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17568 if test -n "$ac_ct_NMEDIT"; then
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17570 $as_echo "$ac_ct_NMEDIT" >&6; }
17571 else
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17573 $as_echo "no" >&6; }
17576 if test "x$ac_ct_NMEDIT" = x; then
17577 NMEDIT=":"
17578 else
17579 case $cross_compiling:$ac_tool_warned in
17580 yes:)
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17583 ac_tool_warned=yes ;;
17584 esac
17585 NMEDIT=$ac_ct_NMEDIT
17587 else
17588 NMEDIT="$ac_cv_prog_NMEDIT"
17591 if test -n "$ac_tool_prefix"; then
17592 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17593 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17595 $as_echo_n "checking for $ac_word... " >&6; }
17596 if ${ac_cv_prog_LIPO+:} false; then :
17597 $as_echo_n "(cached) " >&6
17598 else
17599 if test -n "$LIPO"; then
17600 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17601 else
17602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17603 for as_dir in $PATH
17605 IFS=$as_save_IFS
17606 test -z "$as_dir" && as_dir=.
17607 for ac_exec_ext in '' $ac_executable_extensions; do
17608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17609 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17611 break 2
17613 done
17614 done
17615 IFS=$as_save_IFS
17619 LIPO=$ac_cv_prog_LIPO
17620 if test -n "$LIPO"; then
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17622 $as_echo "$LIPO" >&6; }
17623 else
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17625 $as_echo "no" >&6; }
17630 if test -z "$ac_cv_prog_LIPO"; then
17631 ac_ct_LIPO=$LIPO
17632 # Extract the first word of "lipo", so it can be a program name with args.
17633 set dummy lipo; ac_word=$2
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17635 $as_echo_n "checking for $ac_word... " >&6; }
17636 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17637 $as_echo_n "(cached) " >&6
17638 else
17639 if test -n "$ac_ct_LIPO"; then
17640 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17641 else
17642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17643 for as_dir in $PATH
17645 IFS=$as_save_IFS
17646 test -z "$as_dir" && as_dir=.
17647 for ac_exec_ext in '' $ac_executable_extensions; do
17648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17649 ac_cv_prog_ac_ct_LIPO="lipo"
17650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17651 break 2
17653 done
17654 done
17655 IFS=$as_save_IFS
17659 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17660 if test -n "$ac_ct_LIPO"; then
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17662 $as_echo "$ac_ct_LIPO" >&6; }
17663 else
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17665 $as_echo "no" >&6; }
17668 if test "x$ac_ct_LIPO" = x; then
17669 LIPO=":"
17670 else
17671 case $cross_compiling:$ac_tool_warned in
17672 yes:)
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17675 ac_tool_warned=yes ;;
17676 esac
17677 LIPO=$ac_ct_LIPO
17679 else
17680 LIPO="$ac_cv_prog_LIPO"
17683 if test -n "$ac_tool_prefix"; then
17684 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17685 set dummy ${ac_tool_prefix}otool; ac_word=$2
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17687 $as_echo_n "checking for $ac_word... " >&6; }
17688 if ${ac_cv_prog_OTOOL+:} false; then :
17689 $as_echo_n "(cached) " >&6
17690 else
17691 if test -n "$OTOOL"; then
17692 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17693 else
17694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17695 for as_dir in $PATH
17697 IFS=$as_save_IFS
17698 test -z "$as_dir" && as_dir=.
17699 for ac_exec_ext in '' $ac_executable_extensions; do
17700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17701 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17703 break 2
17705 done
17706 done
17707 IFS=$as_save_IFS
17711 OTOOL=$ac_cv_prog_OTOOL
17712 if test -n "$OTOOL"; then
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17714 $as_echo "$OTOOL" >&6; }
17715 else
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17717 $as_echo "no" >&6; }
17722 if test -z "$ac_cv_prog_OTOOL"; then
17723 ac_ct_OTOOL=$OTOOL
17724 # Extract the first word of "otool", so it can be a program name with args.
17725 set dummy otool; ac_word=$2
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17727 $as_echo_n "checking for $ac_word... " >&6; }
17728 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17729 $as_echo_n "(cached) " >&6
17730 else
17731 if test -n "$ac_ct_OTOOL"; then
17732 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17733 else
17734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17735 for as_dir in $PATH
17737 IFS=$as_save_IFS
17738 test -z "$as_dir" && as_dir=.
17739 for ac_exec_ext in '' $ac_executable_extensions; do
17740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17741 ac_cv_prog_ac_ct_OTOOL="otool"
17742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17743 break 2
17745 done
17746 done
17747 IFS=$as_save_IFS
17751 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17752 if test -n "$ac_ct_OTOOL"; then
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17754 $as_echo "$ac_ct_OTOOL" >&6; }
17755 else
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17757 $as_echo "no" >&6; }
17760 if test "x$ac_ct_OTOOL" = x; then
17761 OTOOL=":"
17762 else
17763 case $cross_compiling:$ac_tool_warned in
17764 yes:)
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17767 ac_tool_warned=yes ;;
17768 esac
17769 OTOOL=$ac_ct_OTOOL
17771 else
17772 OTOOL="$ac_cv_prog_OTOOL"
17775 if test -n "$ac_tool_prefix"; then
17776 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17777 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17779 $as_echo_n "checking for $ac_word... " >&6; }
17780 if ${ac_cv_prog_OTOOL64+:} false; then :
17781 $as_echo_n "(cached) " >&6
17782 else
17783 if test -n "$OTOOL64"; then
17784 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17785 else
17786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17787 for as_dir in $PATH
17789 IFS=$as_save_IFS
17790 test -z "$as_dir" && as_dir=.
17791 for ac_exec_ext in '' $ac_executable_extensions; do
17792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17793 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17795 break 2
17797 done
17798 done
17799 IFS=$as_save_IFS
17803 OTOOL64=$ac_cv_prog_OTOOL64
17804 if test -n "$OTOOL64"; then
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17806 $as_echo "$OTOOL64" >&6; }
17807 else
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17809 $as_echo "no" >&6; }
17814 if test -z "$ac_cv_prog_OTOOL64"; then
17815 ac_ct_OTOOL64=$OTOOL64
17816 # Extract the first word of "otool64", so it can be a program name with args.
17817 set dummy otool64; ac_word=$2
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17819 $as_echo_n "checking for $ac_word... " >&6; }
17820 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17821 $as_echo_n "(cached) " >&6
17822 else
17823 if test -n "$ac_ct_OTOOL64"; then
17824 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17825 else
17826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17827 for as_dir in $PATH
17829 IFS=$as_save_IFS
17830 test -z "$as_dir" && as_dir=.
17831 for ac_exec_ext in '' $ac_executable_extensions; do
17832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17833 ac_cv_prog_ac_ct_OTOOL64="otool64"
17834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17835 break 2
17837 done
17838 done
17839 IFS=$as_save_IFS
17843 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17844 if test -n "$ac_ct_OTOOL64"; then
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17846 $as_echo "$ac_ct_OTOOL64" >&6; }
17847 else
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17849 $as_echo "no" >&6; }
17852 if test "x$ac_ct_OTOOL64" = x; then
17853 OTOOL64=":"
17854 else
17855 case $cross_compiling:$ac_tool_warned in
17856 yes:)
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17859 ac_tool_warned=yes ;;
17860 esac
17861 OTOOL64=$ac_ct_OTOOL64
17863 else
17864 OTOOL64="$ac_cv_prog_OTOOL64"
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17894 $as_echo_n "checking for -single_module linker flag... " >&6; }
17895 if ${lt_cv_apple_cc_single_mod+:} false; then :
17896 $as_echo_n "(cached) " >&6
17897 else
17898 lt_cv_apple_cc_single_mod=no
17899 if test -z "${LT_MULTI_MODULE}"; then
17900 # By default we will add the -single_module flag. You can override
17901 # by either setting the environment variable LT_MULTI_MODULE
17902 # non-empty at configure time, or by adding -multi_module to the
17903 # link flags.
17904 rm -rf libconftest.dylib*
17905 echo "int foo(void){return 1;}" > conftest.c
17906 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17907 -dynamiclib -Wl,-single_module conftest.c" >&5
17908 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17909 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17910 _lt_result=$?
17911 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17912 lt_cv_apple_cc_single_mod=yes
17913 else
17914 cat conftest.err >&5
17916 rm -rf libconftest.dylib*
17917 rm -f conftest.*
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17921 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17923 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17924 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17925 $as_echo_n "(cached) " >&6
17926 else
17927 lt_cv_ld_exported_symbols_list=no
17928 save_LDFLAGS=$LDFLAGS
17929 echo "_main" > conftest.sym
17930 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932 /* end confdefs.h. */
17935 main ()
17939 return 0;
17941 _ACEOF
17942 if ac_fn_c_try_link "$LINENO"; then :
17943 lt_cv_ld_exported_symbols_list=yes
17944 else
17945 lt_cv_ld_exported_symbols_list=no
17947 rm -f core conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
17949 LDFLAGS="$save_LDFLAGS"
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17953 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17955 $as_echo_n "checking for -force_load linker flag... " >&6; }
17956 if ${lt_cv_ld_force_load+:} false; then :
17957 $as_echo_n "(cached) " >&6
17958 else
17959 lt_cv_ld_force_load=no
17960 cat > conftest.c << _LT_EOF
17961 int forced_loaded() { return 2;}
17962 _LT_EOF
17963 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17964 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17965 echo "$AR cru libconftest.a conftest.o" >&5
17966 $AR cru libconftest.a conftest.o 2>&5
17967 cat > conftest.c << _LT_EOF
17968 int main() { return 0;}
17969 _LT_EOF
17970 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17971 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17972 _lt_result=$?
17973 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17974 lt_cv_ld_force_load=yes
17975 else
17976 cat conftest.err >&5
17978 rm -f conftest.err libconftest.a conftest conftest.c
17979 rm -rf conftest.dSYM
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17983 $as_echo "$lt_cv_ld_force_load" >&6; }
17984 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
17985 # build without first building modern cctools / linker.
17986 case $host_cpu-$host_os in
17987 *-rhapsody* | *-darwin1.[012])
17988 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17989 *-darwin1.*)
17990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17991 *-darwin*)
17992 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
17993 # deployment target is forced to an earlier version.
17994 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
17995 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
17997 10.[012][,.]*)
17998 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18002 esac
18004 esac
18005 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
18006 _lt_dar_single_mod='$single_module'
18008 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
18009 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
18010 else
18011 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
18013 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
18014 _lt_dsymutil='~$DSYMUTIL $lib || :'
18015 else
18016 _lt_dsymutil=
18019 esac
18022 for ac_header in dlfcn.h
18023 do :
18024 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
18025 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18026 cat >>confdefs.h <<_ACEOF
18027 #define HAVE_DLFCN_H 1
18028 _ACEOF
18031 done
18037 # Set options
18041 enable_dlopen=no
18044 enable_win32_dll=no
18047 # Check whether --enable-shared was given.
18048 if test "${enable_shared+set}" = set; then :
18049 enableval=$enable_shared; p=${PACKAGE-default}
18050 case $enableval in
18051 yes) enable_shared=yes ;;
18052 no) enable_shared=no ;;
18054 enable_shared=no
18055 # Look at the argument we got. We use all the common list separators.
18056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18057 for pkg in $enableval; do
18058 IFS="$lt_save_ifs"
18059 if test "X$pkg" = "X$p"; then
18060 enable_shared=yes
18062 done
18063 IFS="$lt_save_ifs"
18065 esac
18066 else
18067 enable_shared=yes
18078 # Check whether --enable-static was given.
18079 if test "${enable_static+set}" = set; then :
18080 enableval=$enable_static; p=${PACKAGE-default}
18081 case $enableval in
18082 yes) enable_static=yes ;;
18083 no) enable_static=no ;;
18085 enable_static=no
18086 # Look at the argument we got. We use all the common list separators.
18087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18088 for pkg in $enableval; do
18089 IFS="$lt_save_ifs"
18090 if test "X$pkg" = "X$p"; then
18091 enable_static=yes
18093 done
18094 IFS="$lt_save_ifs"
18096 esac
18097 else
18098 enable_static=yes
18110 # Check whether --with-pic was given.
18111 if test "${with_pic+set}" = set; then :
18112 withval=$with_pic; pic_mode="$withval"
18113 else
18114 pic_mode=default
18118 test -z "$pic_mode" && pic_mode=default
18126 # Check whether --enable-fast-install was given.
18127 if test "${enable_fast_install+set}" = set; then :
18128 enableval=$enable_fast_install; p=${PACKAGE-default}
18129 case $enableval in
18130 yes) enable_fast_install=yes ;;
18131 no) enable_fast_install=no ;;
18133 enable_fast_install=no
18134 # Look at the argument we got. We use all the common list separators.
18135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18136 for pkg in $enableval; do
18137 IFS="$lt_save_ifs"
18138 if test "X$pkg" = "X$p"; then
18139 enable_fast_install=yes
18141 done
18142 IFS="$lt_save_ifs"
18144 esac
18145 else
18146 enable_fast_install=yes
18159 # This can be used to rebuild libtool when needed
18160 LIBTOOL_DEPS="$ltmain"
18162 # Always use our own libtool.
18163 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18190 test -z "$LN_S" && LN_S="ln -s"
18205 if test -n "${ZSH_VERSION+set}" ; then
18206 setopt NO_GLOB_SUBST
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18210 $as_echo_n "checking for objdir... " >&6; }
18211 if ${lt_cv_objdir+:} false; then :
18212 $as_echo_n "(cached) " >&6
18213 else
18214 rm -f .libs 2>/dev/null
18215 mkdir .libs 2>/dev/null
18216 if test -d .libs; then
18217 lt_cv_objdir=.libs
18218 else
18219 # MS-DOS does not allow filenames that begin with a dot.
18220 lt_cv_objdir=_libs
18222 rmdir .libs 2>/dev/null
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18225 $as_echo "$lt_cv_objdir" >&6; }
18226 objdir=$lt_cv_objdir
18232 cat >>confdefs.h <<_ACEOF
18233 #define LT_OBJDIR "$lt_cv_objdir/"
18234 _ACEOF
18239 case $host_os in
18240 aix3*)
18241 # AIX sometimes has problems with the GCC collect2 program. For some
18242 # reason, if we set the COLLECT_NAMES environment variable, the problems
18243 # vanish in a puff of smoke.
18244 if test "X${COLLECT_NAMES+set}" != Xset; then
18245 COLLECT_NAMES=
18246 export COLLECT_NAMES
18249 esac
18251 # Global variables:
18252 ofile=libtool
18253 can_build_shared=yes
18255 # All known linkers require a `.a' archive for static linking (except MSVC,
18256 # which needs '.lib').
18257 libext=a
18259 with_gnu_ld="$lt_cv_prog_gnu_ld"
18261 old_CC="$CC"
18262 old_CFLAGS="$CFLAGS"
18264 # Set sane defaults for various variables
18265 test -z "$CC" && CC=cc
18266 test -z "$LTCC" && LTCC=$CC
18267 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18268 test -z "$LD" && LD=ld
18269 test -z "$ac_objext" && ac_objext=o
18271 for cc_temp in $compiler""; do
18272 case $cc_temp in
18273 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18274 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18275 \-*) ;;
18276 *) break;;
18277 esac
18278 done
18279 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18282 # Only perform the check for file, if the check method requires it
18283 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18284 case $deplibs_check_method in
18285 file_magic*)
18286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18288 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18289 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18290 $as_echo_n "(cached) " >&6
18291 else
18292 case $MAGIC_CMD in
18293 [\\/*] | ?:[\\/]*)
18294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18297 lt_save_MAGIC_CMD="$MAGIC_CMD"
18298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18300 for ac_dir in $ac_dummy; do
18301 IFS="$lt_save_ifs"
18302 test -z "$ac_dir" && ac_dir=.
18303 if test -f $ac_dir/${ac_tool_prefix}file; then
18304 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18305 if test -n "$file_magic_test_file"; then
18306 case $deplibs_check_method in
18307 "file_magic "*)
18308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18311 $EGREP "$file_magic_regex" > /dev/null; then
18313 else
18314 cat <<_LT_EOF 1>&2
18316 *** Warning: the command libtool uses to detect shared libraries,
18317 *** $file_magic_cmd, produces output that libtool cannot recognize.
18318 *** The result is that libtool may fail to recognize shared libraries
18319 *** as such. This will affect the creation of libtool libraries that
18320 *** depend on shared libraries, but programs linked with such libtool
18321 *** libraries will work regardless of this problem. Nevertheless, you
18322 *** may want to report the problem to your system manager and/or to
18323 *** bug-libtool@gnu.org
18325 _LT_EOF
18326 fi ;;
18327 esac
18329 break
18331 done
18332 IFS="$lt_save_ifs"
18333 MAGIC_CMD="$lt_save_MAGIC_CMD"
18335 esac
18338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18339 if test -n "$MAGIC_CMD"; then
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18341 $as_echo "$MAGIC_CMD" >&6; }
18342 else
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18344 $as_echo "no" >&6; }
18351 if test -z "$lt_cv_path_MAGIC_CMD"; then
18352 if test -n "$ac_tool_prefix"; then
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18354 $as_echo_n "checking for file... " >&6; }
18355 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18356 $as_echo_n "(cached) " >&6
18357 else
18358 case $MAGIC_CMD in
18359 [\\/*] | ?:[\\/]*)
18360 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18363 lt_save_MAGIC_CMD="$MAGIC_CMD"
18364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18366 for ac_dir in $ac_dummy; do
18367 IFS="$lt_save_ifs"
18368 test -z "$ac_dir" && ac_dir=.
18369 if test -f $ac_dir/file; then
18370 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18371 if test -n "$file_magic_test_file"; then
18372 case $deplibs_check_method in
18373 "file_magic "*)
18374 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18377 $EGREP "$file_magic_regex" > /dev/null; then
18379 else
18380 cat <<_LT_EOF 1>&2
18382 *** Warning: the command libtool uses to detect shared libraries,
18383 *** $file_magic_cmd, produces output that libtool cannot recognize.
18384 *** The result is that libtool may fail to recognize shared libraries
18385 *** as such. This will affect the creation of libtool libraries that
18386 *** depend on shared libraries, but programs linked with such libtool
18387 *** libraries will work regardless of this problem. Nevertheless, you
18388 *** may want to report the problem to your system manager and/or to
18389 *** bug-libtool@gnu.org
18391 _LT_EOF
18392 fi ;;
18393 esac
18395 break
18397 done
18398 IFS="$lt_save_ifs"
18399 MAGIC_CMD="$lt_save_MAGIC_CMD"
18401 esac
18404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18405 if test -n "$MAGIC_CMD"; then
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18407 $as_echo "$MAGIC_CMD" >&6; }
18408 else
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18410 $as_echo "no" >&6; }
18414 else
18415 MAGIC_CMD=:
18421 esac
18423 # Use C for the default configuration in the libtool script
18425 lt_save_CC="$CC"
18426 ac_ext=c
18427 ac_cpp='$CPP $CPPFLAGS'
18428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18433 # Source file extension for C test sources.
18434 ac_ext=c
18436 # Object file extension for compiled C test sources.
18437 objext=o
18438 objext=$objext
18440 # Code to be used in simple compile tests
18441 lt_simple_compile_test_code="int some_variable = 0;"
18443 # Code to be used in simple link tests
18444 lt_simple_link_test_code='int main(){return(0);}'
18452 # If no C compiler was specified, use CC.
18453 LTCC=${LTCC-"$CC"}
18455 # If no C compiler flags were specified, use CFLAGS.
18456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18458 # Allow CC to be a program name with arguments.
18459 compiler=$CC
18461 # Save the default compiler, since it gets overwritten when the other
18462 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18463 compiler_DEFAULT=$CC
18465 # save warnings/boilerplate of simple test code
18466 ac_outfile=conftest.$ac_objext
18467 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18468 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18469 _lt_compiler_boilerplate=`cat conftest.err`
18470 $RM conftest*
18472 ac_outfile=conftest.$ac_objext
18473 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18474 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18475 _lt_linker_boilerplate=`cat conftest.err`
18476 $RM -r conftest*
18479 ## CAVEAT EMPTOR:
18480 ## There is no encapsulation within the following macros, do not change
18481 ## the running order or otherwise move them around unless you know exactly
18482 ## what you are doing...
18483 if test -n "$compiler"; then
18485 lt_prog_compiler_no_builtin_flag=
18487 if test "$GCC" = yes; then
18488 case $cc_basename in
18489 nvcc*)
18490 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18492 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18493 esac
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18496 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18497 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18498 $as_echo_n "(cached) " >&6
18499 else
18500 lt_cv_prog_compiler_rtti_exceptions=no
18501 ac_outfile=conftest.$ac_objext
18502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18503 lt_compiler_flag="-fno-rtti -fno-exceptions"
18504 # Insert the option either (1) after the last *FLAGS variable, or
18505 # (2) before a word containing "conftest.", or (3) at the end.
18506 # Note that $ac_compile itself does not contain backslashes and begins
18507 # with a dollar sign (not a hyphen), so the echo should work correctly.
18508 # The option is referenced via a variable to avoid confusing sed.
18509 lt_compile=`echo "$ac_compile" | $SED \
18510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18512 -e 's:$: $lt_compiler_flag:'`
18513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18514 (eval "$lt_compile" 2>conftest.err)
18515 ac_status=$?
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 if (exit $ac_status) && test -s "$ac_outfile"; then
18519 # The compiler can only warn and ignore the option if not recognized
18520 # So say no if there are warnings other than the usual output.
18521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18524 lt_cv_prog_compiler_rtti_exceptions=yes
18527 $RM conftest*
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18531 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18533 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18534 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18535 else
18546 lt_prog_compiler_wl=
18547 lt_prog_compiler_pic=
18548 lt_prog_compiler_static=
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18551 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18553 if test "$GCC" = yes; then
18554 lt_prog_compiler_wl='-Wl,'
18555 lt_prog_compiler_static='-static'
18557 case $host_os in
18558 aix*)
18559 # All AIX code is PIC.
18560 if test "$host_cpu" = ia64; then
18561 # AIX 5 now supports IA64 processor
18562 lt_prog_compiler_static='-Bstatic'
18564 lt_prog_compiler_pic='-fPIC'
18567 amigaos*)
18568 case $host_cpu in
18569 powerpc)
18570 # see comment about AmigaOS4 .so support
18571 lt_prog_compiler_pic='-fPIC'
18573 m68k)
18574 # FIXME: we need at least 68020 code to build shared libraries, but
18575 # adding the `-m68020' flag to GCC prevents building anything better,
18576 # like `-m68040'.
18577 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18579 esac
18582 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18583 # PIC is the default for these OSes.
18586 mingw* | cygwin* | pw32* | os2* | cegcc*)
18587 # This hack is so that the source file can tell whether it is being
18588 # built for inclusion in a dll (and should export symbols for example).
18589 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18590 # (--disable-auto-import) libraries
18591 lt_prog_compiler_pic='-DDLL_EXPORT'
18594 darwin* | rhapsody*)
18595 # PIC is the default on this platform
18596 # Common symbols not allowed in MH_DYLIB files
18597 lt_prog_compiler_pic='-fno-common'
18600 haiku*)
18601 # PIC is the default for Haiku.
18602 # The "-static" flag exists, but is broken.
18603 lt_prog_compiler_static=
18606 hpux*)
18607 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18608 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18609 # sets the default TLS model and affects inlining.
18610 case $host_cpu in
18611 hppa*64*)
18612 # +Z the default
18615 lt_prog_compiler_pic='-fPIC'
18617 esac
18620 interix[3-9]*)
18621 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18622 # Instead, we relocate shared libraries at runtime.
18625 msdosdjgpp*)
18626 # Just because we use GCC doesn't mean we suddenly get shared libraries
18627 # on systems that don't support them.
18628 lt_prog_compiler_can_build_shared=no
18629 enable_shared=no
18632 *nto* | *qnx*)
18633 # QNX uses GNU C++, but need to define -shared option too, otherwise
18634 # it will coredump.
18635 lt_prog_compiler_pic='-fPIC -shared'
18638 sysv4*MP*)
18639 if test -d /usr/nec; then
18640 lt_prog_compiler_pic=-Kconform_pic
18645 lt_prog_compiler_pic='-fPIC'
18647 esac
18649 case $cc_basename in
18650 nvcc*) # Cuda Compiler Driver 2.2
18651 lt_prog_compiler_wl='-Xlinker '
18652 lt_prog_compiler_pic='-Xcompiler -fPIC'
18654 esac
18655 else
18656 # PORTME Check for flag to pass linker flags through the system compiler.
18657 case $host_os in
18658 aix*)
18659 lt_prog_compiler_wl='-Wl,'
18660 if test "$host_cpu" = ia64; then
18661 # AIX 5 now supports IA64 processor
18662 lt_prog_compiler_static='-Bstatic'
18663 else
18664 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18668 mingw* | cygwin* | pw32* | os2* | cegcc*)
18669 # This hack is so that the source file can tell whether it is being
18670 # built for inclusion in a dll (and should export symbols for example).
18671 lt_prog_compiler_pic='-DDLL_EXPORT'
18674 hpux9* | hpux10* | hpux11*)
18675 lt_prog_compiler_wl='-Wl,'
18676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18677 # not for PA HP-UX.
18678 case $host_cpu in
18679 hppa*64*|ia64*)
18680 # +Z the default
18683 lt_prog_compiler_pic='+Z'
18685 esac
18686 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18687 lt_prog_compiler_static='${wl}-a ${wl}archive'
18690 irix5* | irix6* | nonstopux*)
18691 lt_prog_compiler_wl='-Wl,'
18692 # PIC (with -KPIC) is the default.
18693 lt_prog_compiler_static='-non_shared'
18696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18697 case $cc_basename in
18698 # old Intel for x86_64 which still supported -KPIC.
18699 ecc*)
18700 lt_prog_compiler_wl='-Wl,'
18701 lt_prog_compiler_pic='-KPIC'
18702 lt_prog_compiler_static='-static'
18704 # icc used to be incompatible with GCC.
18705 # ICC 10 doesn't accept -KPIC any more.
18706 icc* | ifort*)
18707 lt_prog_compiler_wl='-Wl,'
18708 lt_prog_compiler_pic='-fPIC'
18709 lt_prog_compiler_static='-static'
18711 # Lahey Fortran 8.1.
18712 lf95*)
18713 lt_prog_compiler_wl='-Wl,'
18714 lt_prog_compiler_pic='--shared'
18715 lt_prog_compiler_static='--static'
18717 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18718 # Portland Group compilers (*not* the Pentium gcc compiler,
18719 # which looks to be a dead project)
18720 lt_prog_compiler_wl='-Wl,'
18721 lt_prog_compiler_pic='-fpic'
18722 lt_prog_compiler_static='-Bstatic'
18724 ccc*)
18725 lt_prog_compiler_wl='-Wl,'
18726 # All Alpha code is PIC.
18727 lt_prog_compiler_static='-non_shared'
18729 xl* | bgxl* | bgf* | mpixl*)
18730 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18731 lt_prog_compiler_wl='-Wl,'
18732 lt_prog_compiler_pic='-qpic'
18733 lt_prog_compiler_static='-qstaticlink'
18736 case `$CC -V 2>&1 | sed 5q` in
18737 *Sun\ F* | *Sun*Fortran*)
18738 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18739 lt_prog_compiler_pic='-KPIC'
18740 lt_prog_compiler_static='-Bstatic'
18741 lt_prog_compiler_wl=''
18743 *Sun\ C*)
18744 # Sun C 5.9
18745 lt_prog_compiler_pic='-KPIC'
18746 lt_prog_compiler_static='-Bstatic'
18747 lt_prog_compiler_wl='-Wl,'
18749 esac
18751 esac
18754 newsos6)
18755 lt_prog_compiler_pic='-KPIC'
18756 lt_prog_compiler_static='-Bstatic'
18759 *nto* | *qnx*)
18760 # QNX uses GNU C++, but need to define -shared option too, otherwise
18761 # it will coredump.
18762 lt_prog_compiler_pic='-fPIC -shared'
18765 osf3* | osf4* | osf5*)
18766 lt_prog_compiler_wl='-Wl,'
18767 # All OSF/1 code is PIC.
18768 lt_prog_compiler_static='-non_shared'
18771 rdos*)
18772 lt_prog_compiler_static='-non_shared'
18775 solaris*)
18776 lt_prog_compiler_pic='-KPIC'
18777 lt_prog_compiler_static='-Bstatic'
18778 case $cc_basename in
18779 f77* | f90* | f95*)
18780 lt_prog_compiler_wl='-Qoption ld ';;
18782 lt_prog_compiler_wl='-Wl,';;
18783 esac
18786 sunos4*)
18787 lt_prog_compiler_wl='-Qoption ld '
18788 lt_prog_compiler_pic='-PIC'
18789 lt_prog_compiler_static='-Bstatic'
18792 sysv4 | sysv4.2uw2* | sysv4.3*)
18793 lt_prog_compiler_wl='-Wl,'
18794 lt_prog_compiler_pic='-KPIC'
18795 lt_prog_compiler_static='-Bstatic'
18798 sysv4*MP*)
18799 if test -d /usr/nec ;then
18800 lt_prog_compiler_pic='-Kconform_pic'
18801 lt_prog_compiler_static='-Bstatic'
18805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18806 lt_prog_compiler_wl='-Wl,'
18807 lt_prog_compiler_pic='-KPIC'
18808 lt_prog_compiler_static='-Bstatic'
18811 unicos*)
18812 lt_prog_compiler_wl='-Wl,'
18813 lt_prog_compiler_can_build_shared=no
18816 uts4*)
18817 lt_prog_compiler_pic='-pic'
18818 lt_prog_compiler_static='-Bstatic'
18822 lt_prog_compiler_can_build_shared=no
18824 esac
18827 case $host_os in
18828 # For platforms which do not support PIC, -DPIC is meaningless:
18829 *djgpp*)
18830 lt_prog_compiler_pic=
18833 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18835 esac
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
18837 $as_echo "$lt_prog_compiler_pic" >&6; }
18845 # Check to make sure the PIC flag actually works.
18847 if test -n "$lt_prog_compiler_pic"; then
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18849 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18850 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18851 $as_echo_n "(cached) " >&6
18852 else
18853 lt_cv_prog_compiler_pic_works=no
18854 ac_outfile=conftest.$ac_objext
18855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18856 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18857 # Insert the option either (1) after the last *FLAGS variable, or
18858 # (2) before a word containing "conftest.", or (3) at the end.
18859 # Note that $ac_compile itself does not contain backslashes and begins
18860 # with a dollar sign (not a hyphen), so the echo should work correctly.
18861 # The option is referenced via a variable to avoid confusing sed.
18862 lt_compile=`echo "$ac_compile" | $SED \
18863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18865 -e 's:$: $lt_compiler_flag:'`
18866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18867 (eval "$lt_compile" 2>conftest.err)
18868 ac_status=$?
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 if (exit $ac_status) && test -s "$ac_outfile"; then
18872 # The compiler can only warn and ignore the option if not recognized
18873 # So say no if there are warnings other than the usual output.
18874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18877 lt_cv_prog_compiler_pic_works=yes
18880 $RM conftest*
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18884 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18886 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18887 case $lt_prog_compiler_pic in
18888 "" | " "*) ;;
18889 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18890 esac
18891 else
18892 lt_prog_compiler_pic=
18893 lt_prog_compiler_can_build_shared=no
18904 # Check to make sure the static flag actually works.
18906 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18908 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18909 if ${lt_cv_prog_compiler_static_works+:} false; then :
18910 $as_echo_n "(cached) " >&6
18911 else
18912 lt_cv_prog_compiler_static_works=no
18913 save_LDFLAGS="$LDFLAGS"
18914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18915 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18917 # The linker can only warn and ignore the option if not recognized
18918 # So say no if there are warnings
18919 if test -s conftest.err; then
18920 # Append any errors to the config.log.
18921 cat conftest.err 1>&5
18922 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18924 if diff conftest.exp conftest.er2 >/dev/null; then
18925 lt_cv_prog_compiler_static_works=yes
18927 else
18928 lt_cv_prog_compiler_static_works=yes
18931 $RM -r conftest*
18932 LDFLAGS="$save_LDFLAGS"
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18936 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18938 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18940 else
18941 lt_prog_compiler_static=
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18951 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18952 if ${lt_cv_prog_compiler_c_o+:} false; then :
18953 $as_echo_n "(cached) " >&6
18954 else
18955 lt_cv_prog_compiler_c_o=no
18956 $RM -r conftest 2>/dev/null
18957 mkdir conftest
18958 cd conftest
18959 mkdir out
18960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18962 lt_compiler_flag="-o out/conftest2.$ac_objext"
18963 # Insert the option either (1) after the last *FLAGS variable, or
18964 # (2) before a word containing "conftest.", or (3) at the end.
18965 # Note that $ac_compile itself does not contain backslashes and begins
18966 # with a dollar sign (not a hyphen), so the echo should work correctly.
18967 lt_compile=`echo "$ac_compile" | $SED \
18968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18970 -e 's:$: $lt_compiler_flag:'`
18971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18972 (eval "$lt_compile" 2>out/conftest.err)
18973 ac_status=$?
18974 cat out/conftest.err >&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18977 then
18978 # The compiler can only warn and ignore the option if not recognized
18979 # So say no if there are warnings
18980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18983 lt_cv_prog_compiler_c_o=yes
18986 chmod u+w . 2>&5
18987 $RM conftest*
18988 # SGI C++ compiler will create directory out/ii_files/ for
18989 # template instantiation
18990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18991 $RM out/* && rmdir out
18992 cd ..
18993 $RM -r conftest
18994 $RM conftest*
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18998 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19006 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19007 if ${lt_cv_prog_compiler_c_o+:} false; then :
19008 $as_echo_n "(cached) " >&6
19009 else
19010 lt_cv_prog_compiler_c_o=no
19011 $RM -r conftest 2>/dev/null
19012 mkdir conftest
19013 cd conftest
19014 mkdir out
19015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19017 lt_compiler_flag="-o out/conftest2.$ac_objext"
19018 # Insert the option either (1) after the last *FLAGS variable, or
19019 # (2) before a word containing "conftest.", or (3) at the end.
19020 # Note that $ac_compile itself does not contain backslashes and begins
19021 # with a dollar sign (not a hyphen), so the echo should work correctly.
19022 lt_compile=`echo "$ac_compile" | $SED \
19023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19025 -e 's:$: $lt_compiler_flag:'`
19026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19027 (eval "$lt_compile" 2>out/conftest.err)
19028 ac_status=$?
19029 cat out/conftest.err >&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19032 then
19033 # The compiler can only warn and ignore the option if not recognized
19034 # So say no if there are warnings
19035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19038 lt_cv_prog_compiler_c_o=yes
19041 chmod u+w . 2>&5
19042 $RM conftest*
19043 # SGI C++ compiler will create directory out/ii_files/ for
19044 # template instantiation
19045 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19046 $RM out/* && rmdir out
19047 cd ..
19048 $RM -r conftest
19049 $RM conftest*
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19053 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19058 hard_links="nottested"
19059 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
19060 # do not overwrite the value of need_locks provided by the user
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19062 $as_echo_n "checking if we can lock with hard links... " >&6; }
19063 hard_links=yes
19064 $RM conftest*
19065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19066 touch conftest.a
19067 ln conftest.a conftest.b 2>&5 || hard_links=no
19068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19070 $as_echo "$hard_links" >&6; }
19071 if test "$hard_links" = no; then
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19073 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19074 need_locks=warn
19076 else
19077 need_locks=no
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19086 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19088 runpath_var=
19089 allow_undefined_flag=
19090 always_export_symbols=no
19091 archive_cmds=
19092 archive_expsym_cmds=
19093 compiler_needs_object=no
19094 enable_shared_with_static_runtimes=no
19095 export_dynamic_flag_spec=
19096 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19097 hardcode_automatic=no
19098 hardcode_direct=no
19099 hardcode_direct_absolute=no
19100 hardcode_libdir_flag_spec=
19101 hardcode_libdir_flag_spec_ld=
19102 hardcode_libdir_separator=
19103 hardcode_minus_L=no
19104 hardcode_shlibpath_var=unsupported
19105 inherit_rpath=no
19106 link_all_deplibs=unknown
19107 module_cmds=
19108 module_expsym_cmds=
19109 old_archive_from_new_cmds=
19110 old_archive_from_expsyms_cmds=
19111 thread_safe_flag_spec=
19112 whole_archive_flag_spec=
19113 # include_expsyms should be a list of space-separated symbols to be *always*
19114 # included in the symbol list
19115 include_expsyms=
19116 # exclude_expsyms can be an extended regexp of symbols to exclude
19117 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19119 # as well as any symbol that contains `d'.
19120 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19122 # platforms (ab)use it in PIC code, but their linkers get confused if
19123 # the symbol is explicitly referenced. Since portable code cannot
19124 # rely on this symbol name, it's probably fine to never include it in
19125 # preloaded symbol tables.
19126 # Exclude shared library initialization/finalization symbols.
19127 extract_expsyms_cmds=
19129 case $host_os in
19130 cygwin* | mingw* | pw32* | cegcc*)
19131 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19132 # When not using gcc, we currently assume that we are using
19133 # Microsoft Visual C++.
19134 if test "$GCC" != yes; then
19135 with_gnu_ld=no
19138 interix*)
19139 # we just hope/assume this is gcc and not c89 (= MSVC++)
19140 with_gnu_ld=yes
19142 openbsd*)
19143 with_gnu_ld=no
19145 esac
19147 ld_shlibs=yes
19149 # On some targets, GNU ld is compatible enough with the native linker
19150 # that we're better off using the native interface for both.
19151 lt_use_gnu_ld_interface=no
19152 if test "$with_gnu_ld" = yes; then
19153 case $host_os in
19154 aix*)
19155 # The AIX port of GNU ld has always aspired to compatibility
19156 # with the native linker. However, as the warning in the GNU ld
19157 # block says, versions before 2.19.5* couldn't really create working
19158 # shared libraries, regardless of the interface used.
19159 case `$LD -v 2>&1` in
19160 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19161 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19162 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19164 lt_use_gnu_ld_interface=yes
19166 esac
19169 lt_use_gnu_ld_interface=yes
19171 esac
19174 if test "$lt_use_gnu_ld_interface" = yes; then
19175 # If archive_cmds runs LD, not CC, wlarc should be empty
19176 wlarc='${wl}'
19178 # Set some defaults for GNU ld with shared library support. These
19179 # are reset later if shared libraries are not supported. Putting them
19180 # here allows them to be overridden if necessary.
19181 runpath_var=LD_RUN_PATH
19182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19183 export_dynamic_flag_spec='${wl}--export-dynamic'
19184 # ancient GNU ld didn't support --whole-archive et. al.
19185 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19186 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19187 else
19188 whole_archive_flag_spec=
19190 supports_anon_versioning=no
19191 case `$LD -v 2>&1` in
19192 *GNU\ gold*) supports_anon_versioning=yes ;;
19193 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19194 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19195 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19196 *\ 2.11.*) ;; # other 2.11 versions
19197 *) supports_anon_versioning=yes ;;
19198 esac
19200 # See if GNU ld supports shared libraries.
19201 case $host_os in
19202 aix[3-9]*)
19203 # On AIX/PPC, the GNU linker is very broken
19204 if test "$host_cpu" != ia64; then
19205 ld_shlibs=no
19206 cat <<_LT_EOF 1>&2
19208 *** Warning: the GNU linker, at least up to release 2.19, is reported
19209 *** to be unable to reliably create shared libraries on AIX.
19210 *** Therefore, libtool is disabling shared libraries support. If you
19211 *** really care for shared libraries, you may want to install binutils
19212 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19213 *** You will then need to restart the configuration process.
19215 _LT_EOF
19219 amigaos*)
19220 case $host_cpu in
19221 powerpc)
19222 # see comment about AmigaOS4 .so support
19223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19224 archive_expsym_cmds=''
19226 m68k)
19227 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)'
19228 hardcode_libdir_flag_spec='-L$libdir'
19229 hardcode_minus_L=yes
19231 esac
19234 beos*)
19235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19236 allow_undefined_flag=unsupported
19237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19238 # support --undefined. This deserves some investigation. FIXME
19239 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19240 else
19241 ld_shlibs=no
19245 cygwin* | mingw* | pw32* | cegcc*)
19246 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19247 # as there is no search path for DLLs.
19248 hardcode_libdir_flag_spec='-L$libdir'
19249 export_dynamic_flag_spec='${wl}--export-all-symbols'
19250 allow_undefined_flag=unsupported
19251 always_export_symbols=no
19252 enable_shared_with_static_runtimes=yes
19253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19255 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19257 # If the export-symbols file already is a .def file (1st line
19258 # is EXPORTS), use it as is; otherwise, prepend...
19259 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19260 cp $export_symbols $output_objdir/$soname.def;
19261 else
19262 echo EXPORTS > $output_objdir/$soname.def;
19263 cat $export_symbols >> $output_objdir/$soname.def;
19265 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19266 else
19267 ld_shlibs=no
19271 haiku*)
19272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19273 link_all_deplibs=yes
19276 interix[3-9]*)
19277 hardcode_direct=no
19278 hardcode_shlibpath_var=no
19279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19280 export_dynamic_flag_spec='${wl}-E'
19281 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19282 # Instead, shared libraries are loaded at an image base (0x10000000 by
19283 # default) and relocated if they conflict, which is a slow very memory
19284 # consuming and fragmenting process. To avoid this, we pick a random,
19285 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19286 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19287 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19288 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'
19291 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
19292 tmp_diet=no
19293 if test "$host_os" = linux-dietlibc; then
19294 case $cc_basename in
19295 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19296 esac
19298 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19299 && test "$tmp_diet" = no
19300 then
19301 tmp_addflag=' $pic_flag'
19302 tmp_sharedflag='-shared'
19303 case $cc_basename,$host_cpu in
19304 pgcc*) # Portland Group C compiler
19305 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'
19306 tmp_addflag=' $pic_flag'
19308 pgf77* | pgf90* | pgf95* | pgfortran*)
19309 # Portland Group f77 and f90 compilers
19310 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'
19311 tmp_addflag=' $pic_flag -Mnomain' ;;
19312 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19313 tmp_addflag=' -i_dynamic' ;;
19314 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19315 tmp_addflag=' -i_dynamic -nofor_main' ;;
19316 ifc* | ifort*) # Intel Fortran compiler
19317 tmp_addflag=' -nofor_main' ;;
19318 lf95*) # Lahey Fortran 8.1
19319 whole_archive_flag_spec=
19320 tmp_sharedflag='--shared' ;;
19321 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19322 tmp_sharedflag='-qmkshrobj'
19323 tmp_addflag= ;;
19324 nvcc*) # Cuda Compiler Driver 2.2
19325 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'
19326 compiler_needs_object=yes
19328 esac
19329 case `$CC -V 2>&1 | sed 5q` in
19330 *Sun\ C*) # Sun C 5.9
19331 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'
19332 compiler_needs_object=yes
19333 tmp_sharedflag='-G' ;;
19334 *Sun\ F*) # Sun Fortran 8.3
19335 tmp_sharedflag='-G' ;;
19336 esac
19337 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19339 if test "x$supports_anon_versioning" = xyes; then
19340 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19342 echo "local: *; };" >> $output_objdir/$libname.ver~
19343 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19346 case $cc_basename in
19347 xlf* | bgf* | bgxlf* | mpixlf*)
19348 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19349 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19350 hardcode_libdir_flag_spec=
19351 hardcode_libdir_flag_spec_ld='-rpath $libdir'
19352 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19353 if test "x$supports_anon_versioning" = xyes; then
19354 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19356 echo "local: *; };" >> $output_objdir/$libname.ver~
19357 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19360 esac
19361 else
19362 ld_shlibs=no
19366 netbsd*)
19367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19368 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19369 wlarc=
19370 else
19371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19376 solaris*)
19377 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19378 ld_shlibs=no
19379 cat <<_LT_EOF 1>&2
19381 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19382 *** create shared libraries on Solaris systems. Therefore, libtool
19383 *** is disabling shared libraries support. We urge you to upgrade GNU
19384 *** binutils to release 2.9.1 or newer. Another option is to modify
19385 *** your PATH or compiler configuration so that the native linker is
19386 *** used, and then restart.
19388 _LT_EOF
19389 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19392 else
19393 ld_shlibs=no
19397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19398 case `$LD -v 2>&1` in
19399 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19400 ld_shlibs=no
19401 cat <<_LT_EOF 1>&2
19403 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19404 *** reliably create shared libraries on SCO systems. Therefore, libtool
19405 *** is disabling shared libraries support. We urge you to upgrade GNU
19406 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19407 *** your PATH or compiler configuration so that the native linker is
19408 *** used, and then restart.
19410 _LT_EOF
19413 # For security reasons, it is highly recommended that you always
19414 # use absolute paths for naming shared libraries, and exclude the
19415 # DT_RUNPATH tag from executables and libraries. But doing so
19416 # requires that you compile everything twice, which is a pain.
19417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19421 else
19422 ld_shlibs=no
19425 esac
19428 sunos4*)
19429 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19430 wlarc=
19431 hardcode_direct=yes
19432 hardcode_shlibpath_var=no
19436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19438 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19439 else
19440 ld_shlibs=no
19443 esac
19445 if test "$ld_shlibs" = no; then
19446 runpath_var=
19447 hardcode_libdir_flag_spec=
19448 export_dynamic_flag_spec=
19449 whole_archive_flag_spec=
19451 else
19452 # PORTME fill in a description of your system's linker (not GNU ld)
19453 case $host_os in
19454 aix3*)
19455 allow_undefined_flag=unsupported
19456 always_export_symbols=yes
19457 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'
19458 # Note: this linker hardcodes the directories in LIBPATH if there
19459 # are no directories specified by -L.
19460 hardcode_minus_L=yes
19461 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19462 # Neither direct hardcoding nor static linking is supported with a
19463 # broken collect2.
19464 hardcode_direct=unsupported
19468 aix[4-9]*)
19469 if test "$host_cpu" = ia64; then
19470 # On IA64, the linker does run time linking by default, so we don't
19471 # have to do anything special.
19472 aix_use_runtimelinking=no
19473 exp_sym_flag='-Bexport'
19474 no_entry_flag=""
19475 else
19476 # If we're using GNU nm, then we don't want the "-C" option.
19477 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19478 # Also, AIX nm treats weak defined symbols like other global
19479 # defined symbols, whereas GNU nm marks them as "W".
19480 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19481 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'
19482 else
19483 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'
19485 aix_use_runtimelinking=no
19487 # Test if we are trying to use run time linking or normal
19488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19489 # need to do runtime linking.
19490 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19491 for ld_flag in $LDFLAGS; do
19492 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19493 aix_use_runtimelinking=yes
19494 break
19496 done
19498 esac
19500 exp_sym_flag='-bexport'
19501 no_entry_flag='-bnoentry'
19504 # When large executables or shared objects are built, AIX ld can
19505 # have problems creating the table of contents. If linking a library
19506 # or program results in "error TOC overflow" add -mminimal-toc to
19507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19510 archive_cmds=''
19511 hardcode_direct=yes
19512 hardcode_direct_absolute=yes
19513 hardcode_libdir_separator=':'
19514 link_all_deplibs=yes
19515 file_list_spec='${wl}-f,'
19517 if test "$GCC" = yes; then
19518 case $host_os in aix4.[012]|aix4.[012].*)
19519 # We only want to do this on AIX 4.2 and lower, the check
19520 # below for broken collect2 doesn't work under 4.3+
19521 collect2name=`${CC} -print-prog-name=collect2`
19522 if test -f "$collect2name" &&
19523 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19524 then
19525 # We have reworked collect2
19527 else
19528 # We have old collect2
19529 hardcode_direct=unsupported
19530 # It fails to find uninstalled libraries when the uninstalled
19531 # path is not listed in the libpath. Setting hardcode_minus_L
19532 # to unsupported forces relinking
19533 hardcode_minus_L=yes
19534 hardcode_libdir_flag_spec='-L$libdir'
19535 hardcode_libdir_separator=
19538 esac
19539 shared_flag='-shared'
19540 if test "$aix_use_runtimelinking" = yes; then
19541 shared_flag="$shared_flag "'${wl}-G'
19543 else
19544 # not using gcc
19545 if test "$host_cpu" = ia64; then
19546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19547 # chokes on -Wl,-G. The following line is correct:
19548 shared_flag='-G'
19549 else
19550 if test "$aix_use_runtimelinking" = yes; then
19551 shared_flag='${wl}-G'
19552 else
19553 shared_flag='${wl}-bM:SRE'
19558 export_dynamic_flag_spec='${wl}-bexpall'
19559 # It seems that -bexpall does not export symbols beginning with
19560 # underscore (_), so it is better to generate a list of symbols to export.
19561 always_export_symbols=yes
19562 if test "$aix_use_runtimelinking" = yes; then
19563 # Warning - without using the other runtime loading flags (-brtl),
19564 # -berok will link without error, but may produce a broken library.
19565 allow_undefined_flag='-berok'
19566 # Determine the default libpath from the value encoded in an
19567 # empty executable.
19568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19569 /* end confdefs.h. */
19572 main ()
19576 return 0;
19578 _ACEOF
19579 if ac_fn_c_try_link "$LINENO"; then :
19581 lt_aix_libpath_sed='
19582 /Import File Strings/,/^$/ {
19583 /^0/ {
19584 s/^0 *\(.*\)$/\1/
19588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19589 # Check for a 64-bit object if we didn't find anything.
19590 if test -z "$aix_libpath"; then
19591 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19594 rm -f core conftest.err conftest.$ac_objext \
19595 conftest$ac_exeext conftest.$ac_ext
19596 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19598 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19599 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"
19600 else
19601 if test "$host_cpu" = ia64; then
19602 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19603 allow_undefined_flag="-z nodefs"
19604 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"
19605 else
19606 # Determine the default libpath from the value encoded in an
19607 # empty executable.
19608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19609 /* end confdefs.h. */
19612 main ()
19616 return 0;
19618 _ACEOF
19619 if ac_fn_c_try_link "$LINENO"; then :
19621 lt_aix_libpath_sed='
19622 /Import File Strings/,/^$/ {
19623 /^0/ {
19624 s/^0 *\(.*\)$/\1/
19628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19629 # Check for a 64-bit object if we didn't find anything.
19630 if test -z "$aix_libpath"; then
19631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19634 rm -f core conftest.err conftest.$ac_objext \
19635 conftest$ac_exeext conftest.$ac_ext
19636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19638 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19639 # Warning - without using the other run time loading flags,
19640 # -berok will link without error, but may produce a broken library.
19641 no_undefined_flag=' ${wl}-bernotok'
19642 allow_undefined_flag=' ${wl}-berok'
19643 if test "$with_gnu_ld" = yes; then
19644 # We only use this code for GNU lds that support --whole-archive.
19645 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19646 else
19647 # Exported symbols can be pulled into shared objects from archives
19648 whole_archive_flag_spec='$convenience'
19650 archive_cmds_need_lc=yes
19651 # This is similar to how AIX traditionally builds its shared libraries.
19652 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'
19657 amigaos*)
19658 case $host_cpu in
19659 powerpc)
19660 # see comment about AmigaOS4 .so support
19661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19662 archive_expsym_cmds=''
19664 m68k)
19665 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)'
19666 hardcode_libdir_flag_spec='-L$libdir'
19667 hardcode_minus_L=yes
19669 esac
19672 bsdi[45]*)
19673 export_dynamic_flag_spec=-rdynamic
19676 cygwin* | mingw* | pw32* | cegcc*)
19677 # When not using gcc, we currently assume that we are using
19678 # Microsoft Visual C++.
19679 # hardcode_libdir_flag_spec is actually meaningless, as there is
19680 # no search path for DLLs.
19681 hardcode_libdir_flag_spec=' '
19682 allow_undefined_flag=unsupported
19683 # Tell ltmain to make .lib files, not .a files.
19684 libext=lib
19685 # Tell ltmain to make .dll files, not .so files.
19686 shrext_cmds=".dll"
19687 # FIXME: Setting linknames here is a bad hack.
19688 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19689 # The linker will automatically build a .lib file if we build a DLL.
19690 old_archive_from_new_cmds='true'
19691 # FIXME: Should let the user specify the lib program.
19692 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19693 fix_srcfile_path='`cygpath -w "$srcfile"`'
19694 enable_shared_with_static_runtimes=yes
19697 darwin* | rhapsody*)
19701 # Publish an arg to allow the user to select that Darwin host (and target)
19702 # libraries should be given install-names like @rpath/libfoo.dylib. This
19703 # requires that the user of the library then adds an 'rpath' to the DSO that
19704 # needs access.
19705 # NOTE: there are defaults below, for systems that support rpaths. The person
19706 # configuring can override the defaults for any system version that supports
19707 # them - they are, however, forced off for system versions without support.
19708 # Check whether --enable-darwin-at-rpath was given.
19709 if test "${enable_darwin_at_rpath+set}" = set; then :
19710 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19711 # This is not supported before macOS 10.5 / Darwin9.
19712 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19713 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19715 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19716 enable_darwin_at_rpath=no
19718 esac
19720 else
19721 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19722 # As above, before 10.5 / Darwin9 this does not work.
19723 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19724 enable_darwin_at_rpath=no
19727 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19728 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19729 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19730 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19732 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19733 enable_darwin_at_rpath=yes
19735 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19736 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19738 esac
19743 archive_cmds_need_lc=no
19744 hardcode_direct=no
19745 hardcode_automatic=yes
19746 hardcode_shlibpath_var=unsupported
19747 if test "$lt_cv_ld_force_load" = "yes"; then
19748 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\"`'
19749 else
19750 whole_archive_flag_spec=''
19752 link_all_deplibs=yes
19753 allow_undefined_flag="$_lt_dar_allow_undefined"
19754 case $cc_basename in
19755 ifort*) _lt_dar_can_shared=yes ;;
19756 *) _lt_dar_can_shared=$GCC ;;
19757 esac
19758 if test "$_lt_dar_can_shared" = "yes"; then
19759 output_verbose_link_cmd=func_echo_all
19760 _lt_install_name='\$rpath/\$soname'
19761 if test "x$enable_darwin_at_rpath" = "xyes"; then
19762 _lt_install_name='@rpath/\$soname'
19764 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19765 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19766 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}"
19767 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}"
19769 else
19770 ld_shlibs=no
19775 dgux*)
19776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19777 hardcode_libdir_flag_spec='-L$libdir'
19778 hardcode_shlibpath_var=no
19781 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19782 # support. Future versions do this automatically, but an explicit c++rt0.o
19783 # does not break anything, and helps significantly (at the cost of a little
19784 # extra space).
19785 freebsd2.2*)
19786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19787 hardcode_libdir_flag_spec='-R$libdir'
19788 hardcode_direct=yes
19789 hardcode_shlibpath_var=no
19792 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19793 freebsd2.*)
19794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19795 hardcode_direct=yes
19796 hardcode_minus_L=yes
19797 hardcode_shlibpath_var=no
19800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19801 freebsd* | dragonfly*)
19802 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19803 hardcode_libdir_flag_spec='-R$libdir'
19804 hardcode_direct=yes
19805 hardcode_shlibpath_var=no
19808 hpux9*)
19809 if test "$GCC" = yes; then
19810 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'
19811 else
19812 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'
19814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19815 hardcode_libdir_separator=:
19816 hardcode_direct=yes
19818 # hardcode_minus_L: Not really in the search PATH,
19819 # but as the default location of the library.
19820 hardcode_minus_L=yes
19821 export_dynamic_flag_spec='${wl}-E'
19824 hpux10*)
19825 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19826 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19827 else
19828 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19830 if test "$with_gnu_ld" = no; then
19831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19832 hardcode_libdir_flag_spec_ld='+b $libdir'
19833 hardcode_libdir_separator=:
19834 hardcode_direct=yes
19835 hardcode_direct_absolute=yes
19836 export_dynamic_flag_spec='${wl}-E'
19837 # hardcode_minus_L: Not really in the search PATH,
19838 # but as the default location of the library.
19839 hardcode_minus_L=yes
19843 hpux11*)
19844 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19845 case $host_cpu in
19846 hppa*64*)
19847 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19849 ia64*)
19850 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19855 esac
19856 else
19857 case $host_cpu in
19858 hppa*64*)
19859 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19861 ia64*)
19862 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19866 # Older versions of the 11.00 compiler do not understand -b yet
19867 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19869 $as_echo_n "checking if $CC understands -b... " >&6; }
19870 if ${lt_cv_prog_compiler__b+:} false; then :
19871 $as_echo_n "(cached) " >&6
19872 else
19873 lt_cv_prog_compiler__b=no
19874 save_LDFLAGS="$LDFLAGS"
19875 LDFLAGS="$LDFLAGS -b"
19876 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19877 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19878 # The linker can only warn and ignore the option if not recognized
19879 # So say no if there are warnings
19880 if test -s conftest.err; then
19881 # Append any errors to the config.log.
19882 cat conftest.err 1>&5
19883 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19885 if diff conftest.exp conftest.er2 >/dev/null; then
19886 lt_cv_prog_compiler__b=yes
19888 else
19889 lt_cv_prog_compiler__b=yes
19892 $RM -r conftest*
19893 LDFLAGS="$save_LDFLAGS"
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19897 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19899 if test x"$lt_cv_prog_compiler__b" = xyes; then
19900 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19901 else
19902 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19906 esac
19908 if test "$with_gnu_ld" = no; then
19909 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19910 hardcode_libdir_separator=:
19912 case $host_cpu in
19913 hppa*64*|ia64*)
19914 hardcode_direct=no
19915 hardcode_shlibpath_var=no
19918 hardcode_direct=yes
19919 hardcode_direct_absolute=yes
19920 export_dynamic_flag_spec='${wl}-E'
19922 # hardcode_minus_L: Not really in the search PATH,
19923 # but as the default location of the library.
19924 hardcode_minus_L=yes
19926 esac
19930 irix5* | irix6* | nonstopux*)
19931 if test "$GCC" = yes; then
19932 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'
19933 # Try to use the -exported_symbol ld option, if it does not
19934 # work, assume that -exports_file does not work either and
19935 # implicitly export all symbols.
19936 save_LDFLAGS="$LDFLAGS"
19937 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h. */
19940 int foo(void) {}
19941 _ACEOF
19942 if ac_fn_c_try_link "$LINENO"; then :
19943 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'
19946 rm -f core conftest.err conftest.$ac_objext \
19947 conftest$ac_exeext conftest.$ac_ext
19948 LDFLAGS="$save_LDFLAGS"
19949 else
19950 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'
19951 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'
19953 archive_cmds_need_lc='no'
19954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19955 hardcode_libdir_separator=:
19956 inherit_rpath=yes
19957 link_all_deplibs=yes
19960 netbsd*)
19961 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19963 else
19964 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19966 hardcode_libdir_flag_spec='-R$libdir'
19967 hardcode_direct=yes
19968 hardcode_shlibpath_var=no
19971 newsos6)
19972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19973 hardcode_direct=yes
19974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19975 hardcode_libdir_separator=:
19976 hardcode_shlibpath_var=no
19979 *nto* | *qnx*)
19982 openbsd*)
19983 if test -f /usr/libexec/ld.so; then
19984 hardcode_direct=yes
19985 hardcode_shlibpath_var=no
19986 hardcode_direct_absolute=yes
19987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19988 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19989 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19990 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19991 export_dynamic_flag_spec='${wl}-E'
19992 else
19993 case $host_os in
19994 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19996 hardcode_libdir_flag_spec='-R$libdir'
19999 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20000 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
20002 esac
20004 else
20005 ld_shlibs=no
20009 os2*)
20010 hardcode_libdir_flag_spec='-L$libdir'
20011 hardcode_minus_L=yes
20012 allow_undefined_flag=unsupported
20013 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'
20014 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20017 osf3*)
20018 if test "$GCC" = yes; then
20019 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
20020 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'
20021 else
20022 allow_undefined_flag=' -expect_unresolved \*'
20023 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'
20025 archive_cmds_need_lc='no'
20026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20027 hardcode_libdir_separator=:
20030 osf4* | osf5*) # as osf3* with the addition of -msym flag
20031 if test "$GCC" = yes; then
20032 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
20033 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'
20034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20035 else
20036 allow_undefined_flag=' -expect_unresolved \*'
20037 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'
20038 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~
20039 $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'
20041 # Both c and cxx compiler support -rpath directly
20042 hardcode_libdir_flag_spec='-rpath $libdir'
20044 archive_cmds_need_lc='no'
20045 hardcode_libdir_separator=:
20048 solaris*)
20049 no_undefined_flag=' -z defs'
20050 if test "$GCC" = yes; then
20051 wlarc='${wl}'
20052 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20053 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20054 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20055 else
20056 case `$CC -V 2>&1` in
20057 *"Compilers 5.0"*)
20058 wlarc=''
20059 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20060 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20061 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20064 wlarc='${wl}'
20065 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20066 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20067 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20069 esac
20071 hardcode_libdir_flag_spec='-R$libdir'
20072 hardcode_shlibpath_var=no
20073 case $host_os in
20074 solaris2.[0-5] | solaris2.[0-5].*) ;;
20076 # The compiler driver will combine and reorder linker options,
20077 # but understands `-z linker_flag'. GCC discards it without `$wl',
20078 # but is careful enough not to reorder.
20079 # Supported since Solaris 2.6 (maybe 2.5.1?)
20080 if test "$GCC" = yes; then
20081 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20082 else
20083 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20086 esac
20087 link_all_deplibs=yes
20090 sunos4*)
20091 if test "x$host_vendor" = xsequent; then
20092 # Use $CC to link under sequent, because it throws in some extra .o
20093 # files that make .init and .fini sections work.
20094 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20095 else
20096 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20098 hardcode_libdir_flag_spec='-L$libdir'
20099 hardcode_direct=yes
20100 hardcode_minus_L=yes
20101 hardcode_shlibpath_var=no
20104 sysv4)
20105 case $host_vendor in
20106 sni)
20107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20108 hardcode_direct=yes # is this really true???
20110 siemens)
20111 ## LD is ld it makes a PLAMLIB
20112 ## CC just makes a GrossModule.
20113 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20114 reload_cmds='$CC -r -o $output$reload_objs'
20115 hardcode_direct=no
20117 motorola)
20118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20119 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20121 esac
20122 runpath_var='LD_RUN_PATH'
20123 hardcode_shlibpath_var=no
20126 sysv4.3*)
20127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20128 hardcode_shlibpath_var=no
20129 export_dynamic_flag_spec='-Bexport'
20132 sysv4*MP*)
20133 if test -d /usr/nec; then
20134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20135 hardcode_shlibpath_var=no
20136 runpath_var=LD_RUN_PATH
20137 hardcode_runpath_var=yes
20138 ld_shlibs=yes
20142 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20143 no_undefined_flag='${wl}-z,text'
20144 archive_cmds_need_lc=no
20145 hardcode_shlibpath_var=no
20146 runpath_var='LD_RUN_PATH'
20148 if test "$GCC" = yes; then
20149 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20150 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20151 else
20152 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20153 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20157 sysv5* | sco3.2v5* | sco5v6*)
20158 # Note: We can NOT use -z defs as we might desire, because we do not
20159 # link with -lc, and that would cause any symbols used from libc to
20160 # always be unresolved, which means just about no library would
20161 # ever link correctly. If we're not using GNU ld we use -z text
20162 # though, which does catch some bad symbols but isn't as heavy-handed
20163 # as -z defs.
20164 no_undefined_flag='${wl}-z,text'
20165 allow_undefined_flag='${wl}-z,nodefs'
20166 archive_cmds_need_lc=no
20167 hardcode_shlibpath_var=no
20168 hardcode_libdir_flag_spec='${wl}-R,$libdir'
20169 hardcode_libdir_separator=':'
20170 link_all_deplibs=yes
20171 export_dynamic_flag_spec='${wl}-Bexport'
20172 runpath_var='LD_RUN_PATH'
20174 if test "$GCC" = yes; then
20175 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20176 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20177 else
20178 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20179 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20183 uts4*)
20184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20185 hardcode_libdir_flag_spec='-L$libdir'
20186 hardcode_shlibpath_var=no
20190 ld_shlibs=no
20192 esac
20194 if test x$host_vendor = xsni; then
20195 case $host in
20196 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20197 export_dynamic_flag_spec='${wl}-Blargedynsym'
20199 esac
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20204 $as_echo "$ld_shlibs" >&6; }
20205 test "$ld_shlibs" = no && can_build_shared=no
20207 with_gnu_ld=$with_gnu_ld
20224 # Do we need to explicitly link libc?
20226 case "x$archive_cmds_need_lc" in
20227 x|xyes)
20228 # Assume -lc should be added
20229 archive_cmds_need_lc=yes
20231 if test "$enable_shared" = yes && test "$GCC" = yes; then
20232 case $archive_cmds in
20233 *'~'*)
20234 # FIXME: we may have to deal with multi-command sequences.
20236 '$CC '*)
20237 # Test whether the compiler implicitly links with -lc since on some
20238 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20239 # to ld, don't add -lc before -lgcc.
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20241 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20242 if ${lt_cv_archive_cmds_need_lc+:} false; then :
20243 $as_echo_n "(cached) " >&6
20244 else
20245 $RM conftest*
20246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20249 (eval $ac_compile) 2>&5
20250 ac_status=$?
20251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20252 test $ac_status = 0; } 2>conftest.err; then
20253 soname=conftest
20254 lib=conftest
20255 libobjs=conftest.$ac_objext
20256 deplibs=
20257 wl=$lt_prog_compiler_wl
20258 pic_flag=$lt_prog_compiler_pic
20259 compiler_flags=-v
20260 linker_flags=-v
20261 verstring=
20262 output_objdir=.
20263 libname=conftest
20264 lt_save_allow_undefined_flag=$allow_undefined_flag
20265 allow_undefined_flag=
20266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20267 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20268 ac_status=$?
20269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20270 test $ac_status = 0; }
20271 then
20272 lt_cv_archive_cmds_need_lc=no
20273 else
20274 lt_cv_archive_cmds_need_lc=yes
20276 allow_undefined_flag=$lt_save_allow_undefined_flag
20277 else
20278 cat conftest.err 1>&5
20280 $RM conftest*
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20284 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20285 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20287 esac
20290 esac
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20449 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20451 if test "$GCC" = yes; then
20452 case $host_os in
20453 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20454 *) lt_awk_arg="/^libraries:/" ;;
20455 esac
20456 case $host_os in
20457 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20458 *) lt_sed_strip_eq="s,=/,/,g" ;;
20459 esac
20460 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20461 case $lt_search_path_spec in
20462 *\;*)
20463 # if the path contains ";" then we assume it to be the separator
20464 # otherwise default to the standard path separator (i.e. ":") - it is
20465 # assumed that no part of a normal pathname contains ";" but that should
20466 # okay in the real world where ";" in dirpaths is itself problematic.
20467 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20472 esac
20473 # Ok, now we have the path, separated by spaces, we can step through it
20474 # and add multilib dir if necessary.
20475 lt_tmp_lt_search_path_spec=
20476 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20477 for lt_sys_path in $lt_search_path_spec; do
20478 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20480 else
20481 test -d "$lt_sys_path" && \
20482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20484 done
20485 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20486 BEGIN {RS=" "; FS="/|\n";} {
20487 lt_foo="";
20488 lt_count=0;
20489 for (lt_i = NF; lt_i > 0; lt_i--) {
20490 if ($lt_i != "" && $lt_i != ".") {
20491 if ($lt_i == "..") {
20492 lt_count++;
20493 } else {
20494 if (lt_count == 0) {
20495 lt_foo="/" $lt_i lt_foo;
20496 } else {
20497 lt_count--;
20502 if (lt_foo != "") { lt_freq[lt_foo]++; }
20503 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20505 # AWK program above erroneously prepends '/' to C:/dos/paths
20506 # for these hosts.
20507 case $host_os in
20508 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20509 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20510 esac
20511 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20512 else
20513 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20515 library_names_spec=
20516 libname_spec='lib$name'
20517 soname_spec=
20518 shrext_cmds=".so"
20519 postinstall_cmds=
20520 postuninstall_cmds=
20521 finish_cmds=
20522 finish_eval=
20523 shlibpath_var=
20524 shlibpath_overrides_runpath=unknown
20525 version_type=none
20526 dynamic_linker="$host_os ld.so"
20527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20528 need_lib_prefix=unknown
20529 hardcode_into_libs=no
20531 # when you set need_version to no, make sure it does not cause -set_version
20532 # flags to be left without arguments
20533 need_version=unknown
20535 case $host_os in
20536 aix3*)
20537 version_type=linux
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20539 shlibpath_var=LIBPATH
20541 # AIX 3 has no versioning support, so we append a major version to the name.
20542 soname_spec='${libname}${release}${shared_ext}$major'
20545 aix[4-9]*)
20546 version_type=linux
20547 need_lib_prefix=no
20548 need_version=no
20549 hardcode_into_libs=yes
20550 if test "$host_cpu" = ia64; then
20551 # AIX 5 supports IA64
20552 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20553 shlibpath_var=LD_LIBRARY_PATH
20554 else
20555 # With GCC up to 2.95.x, collect2 would create an import file
20556 # for dependence libraries. The import file would start with
20557 # the line `#! .'. This would cause the generated library to
20558 # depend on `.', always an invalid library. This was fixed in
20559 # development snapshots of GCC prior to 3.0.
20560 case $host_os in
20561 aix4 | aix4.[01] | aix4.[01].*)
20562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20563 echo ' yes '
20564 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20566 else
20567 can_build_shared=no
20570 esac
20571 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20572 # soname into executable. Probably we can add versioning support to
20573 # collect2, so additional links can be useful in future.
20574 if test "$aix_use_runtimelinking" = yes; then
20575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20576 # instead of lib<name>.a to let people know that these are not
20577 # typical AIX shared libraries.
20578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579 else
20580 # We preserve .a as extension for shared libraries through AIX4.2
20581 # and later when we are not doing run time linking.
20582 library_names_spec='${libname}${release}.a $libname.a'
20583 soname_spec='${libname}${release}${shared_ext}$major'
20585 shlibpath_var=LIBPATH
20589 amigaos*)
20590 case $host_cpu in
20591 powerpc)
20592 # Since July 2007 AmigaOS4 officially supports .so libraries.
20593 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20596 m68k)
20597 library_names_spec='$libname.ixlibrary $libname.a'
20598 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20599 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'
20601 esac
20604 beos*)
20605 library_names_spec='${libname}${shared_ext}'
20606 dynamic_linker="$host_os ld.so"
20607 shlibpath_var=LIBRARY_PATH
20610 bsdi[45]*)
20611 version_type=linux
20612 need_version=no
20613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 soname_spec='${libname}${release}${shared_ext}$major'
20615 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20616 shlibpath_var=LD_LIBRARY_PATH
20617 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20618 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20619 # the default ld.so.conf also contains /usr/contrib/lib and
20620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20621 # libtool to hard-code these into programs
20624 cygwin* | mingw* | pw32* | cegcc*)
20625 version_type=windows
20626 shrext_cmds=".dll"
20627 need_version=no
20628 need_lib_prefix=no
20630 case $GCC,$host_os in
20631 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20632 library_names_spec='$libname.dll.a'
20633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20634 postinstall_cmds='base_file=`basename \${file}`~
20635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20636 dldir=$destdir/`dirname \$dlpath`~
20637 test -d \$dldir || mkdir -p \$dldir~
20638 $install_prog $dir/$dlname \$dldir/$dlname~
20639 chmod a+x \$dldir/$dlname~
20640 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20641 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20643 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20644 dlpath=$dir/\$dldll~
20645 $RM \$dlpath'
20646 shlibpath_overrides_runpath=yes
20648 case $host_os in
20649 cygwin*)
20650 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20651 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20653 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20655 mingw* | cegcc*)
20656 # MinGW DLLs use traditional 'lib' prefix
20657 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20659 pw32*)
20660 # pw32 DLLs use 'pw' prefix rather than 'lib'
20661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20663 esac
20667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20669 esac
20670 dynamic_linker='Win32 ld.exe'
20671 # FIXME: first we should search . and the directory the executable is in
20672 shlibpath_var=PATH
20675 darwin* | rhapsody*)
20676 dynamic_linker="$host_os dyld"
20677 version_type=darwin
20678 need_lib_prefix=no
20679 need_version=no
20680 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20681 soname_spec='${libname}${release}${major}$shared_ext'
20682 shlibpath_overrides_runpath=yes
20683 shlibpath_var=DYLD_LIBRARY_PATH
20684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20686 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20687 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20690 dgux*)
20691 version_type=linux
20692 need_lib_prefix=no
20693 need_version=no
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20695 soname_spec='${libname}${release}${shared_ext}$major'
20696 shlibpath_var=LD_LIBRARY_PATH
20699 freebsd* | dragonfly*)
20700 # DragonFly does not have aout. When/if they implement a new
20701 # versioning mechanism, adjust this.
20702 if test -x /usr/bin/objformat; then
20703 objformat=`/usr/bin/objformat`
20704 else
20705 case $host_os in
20706 freebsd[23].*) objformat=aout ;;
20707 *) objformat=elf ;;
20708 esac
20710 version_type=freebsd-$objformat
20711 case $version_type in
20712 freebsd-elf*)
20713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20714 need_version=no
20715 need_lib_prefix=no
20717 freebsd-*)
20718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20719 need_version=yes
20721 esac
20722 shlibpath_var=LD_LIBRARY_PATH
20723 case $host_os in
20724 freebsd2.*)
20725 shlibpath_overrides_runpath=yes
20727 freebsd3.[01]* | freebsdelf3.[01]*)
20728 shlibpath_overrides_runpath=yes
20729 hardcode_into_libs=yes
20731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20733 shlibpath_overrides_runpath=no
20734 hardcode_into_libs=yes
20736 *) # from 4.6 on, and DragonFly
20737 shlibpath_overrides_runpath=yes
20738 hardcode_into_libs=yes
20740 esac
20743 haiku*)
20744 version_type=linux
20745 need_lib_prefix=no
20746 need_version=no
20747 dynamic_linker="$host_os runtime_loader"
20748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20749 soname_spec='${libname}${release}${shared_ext}$major'
20750 shlibpath_var=LIBRARY_PATH
20751 shlibpath_overrides_runpath=yes
20752 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20753 hardcode_into_libs=yes
20756 hpux9* | hpux10* | hpux11*)
20757 # Give a soname corresponding to the major version so that dld.sl refuses to
20758 # link against other versions.
20759 version_type=sunos
20760 need_lib_prefix=no
20761 need_version=no
20762 case $host_cpu in
20763 ia64*)
20764 shrext_cmds='.so'
20765 hardcode_into_libs=yes
20766 dynamic_linker="$host_os dld.so"
20767 shlibpath_var=LD_LIBRARY_PATH
20768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20770 soname_spec='${libname}${release}${shared_ext}$major'
20771 if test "X$HPUX_IA64_MODE" = X32; then
20772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20773 else
20774 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20778 hppa*64*)
20779 shrext_cmds='.sl'
20780 hardcode_into_libs=yes
20781 dynamic_linker="$host_os dld.sl"
20782 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20785 soname_spec='${libname}${release}${shared_ext}$major'
20786 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20790 shrext_cmds='.sl'
20791 dynamic_linker="$host_os dld.sl"
20792 shlibpath_var=SHLIB_PATH
20793 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20795 soname_spec='${libname}${release}${shared_ext}$major'
20797 esac
20798 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20799 postinstall_cmds='chmod 555 $lib'
20800 # or fails outright, so override atomically:
20801 install_override_mode=555
20804 interix[3-9]*)
20805 version_type=linux
20806 need_lib_prefix=no
20807 need_version=no
20808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20809 soname_spec='${libname}${release}${shared_ext}$major'
20810 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20811 shlibpath_var=LD_LIBRARY_PATH
20812 shlibpath_overrides_runpath=no
20813 hardcode_into_libs=yes
20816 irix5* | irix6* | nonstopux*)
20817 case $host_os in
20818 nonstopux*) version_type=nonstopux ;;
20820 if test "$lt_cv_prog_gnu_ld" = yes; then
20821 version_type=linux
20822 else
20823 version_type=irix
20824 fi ;;
20825 esac
20826 need_lib_prefix=no
20827 need_version=no
20828 soname_spec='${libname}${release}${shared_ext}$major'
20829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20830 case $host_os in
20831 irix5* | nonstopux*)
20832 libsuff= shlibsuff=
20835 case $LD in # libtool.m4 will add one of these switches to LD
20836 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20837 libsuff= shlibsuff= libmagic=32-bit;;
20838 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20839 libsuff=32 shlibsuff=N32 libmagic=N32;;
20840 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20841 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20842 *) libsuff= shlibsuff= libmagic=never-match;;
20843 esac
20845 esac
20846 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20847 shlibpath_overrides_runpath=no
20848 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20849 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20850 hardcode_into_libs=yes
20853 # No shared lib support for Linux oldld, aout, or coff.
20854 linux*oldld* | linux*aout* | linux*coff*)
20855 dynamic_linker=no
20858 # This must be Linux ELF.
20860 # uclinux* changes (here and below) have been submitted to the libtool
20861 # project, but have not yet been accepted: they are GCC-local changes
20862 # for the time being. (See
20863 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20864 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
20865 version_type=linux
20866 need_lib_prefix=no
20867 need_version=no
20868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20869 soname_spec='${libname}${release}${shared_ext}$major'
20870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20871 shlibpath_var=LD_LIBRARY_PATH
20872 shlibpath_overrides_runpath=no
20874 # Some binutils ld are patched to set DT_RUNPATH
20875 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20876 $as_echo_n "(cached) " >&6
20877 else
20878 lt_cv_shlibpath_overrides_runpath=no
20879 save_LDFLAGS=$LDFLAGS
20880 save_libdir=$libdir
20881 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20882 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20884 /* end confdefs.h. */
20887 main ()
20891 return 0;
20893 _ACEOF
20894 if ac_fn_c_try_link "$LINENO"; then :
20895 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20896 lt_cv_shlibpath_overrides_runpath=yes
20899 rm -f core conftest.err conftest.$ac_objext \
20900 conftest$ac_exeext conftest.$ac_ext
20901 LDFLAGS=$save_LDFLAGS
20902 libdir=$save_libdir
20906 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20908 # This implies no fast_install, which is unacceptable.
20909 # Some rework will be needed to allow for fast_install
20910 # before this can be enabled.
20911 hardcode_into_libs=yes
20913 # Append ld.so.conf contents to the search path
20914 if test -f /etc/ld.so.conf; then
20915 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' ' '`
20916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20919 # We used to test for /lib/ld.so.1 and disable shared libraries on
20920 # powerpc, because MkLinux only supported shared libraries with the
20921 # GNU dynamic linker. Since this was broken with cross compilers,
20922 # most powerpc-linux boxes support dynamic linking these days and
20923 # people can always --disable-shared, the test was removed, and we
20924 # assume the GNU/Linux dynamic linker is in use.
20925 dynamic_linker='GNU/Linux ld.so'
20928 netbsd*)
20929 version_type=sunos
20930 need_lib_prefix=no
20931 need_version=no
20932 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20935 dynamic_linker='NetBSD (a.out) ld.so'
20936 else
20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20938 soname_spec='${libname}${release}${shared_ext}$major'
20939 dynamic_linker='NetBSD ld.elf_so'
20941 shlibpath_var=LD_LIBRARY_PATH
20942 shlibpath_overrides_runpath=yes
20943 hardcode_into_libs=yes
20946 newsos6)
20947 version_type=linux
20948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949 shlibpath_var=LD_LIBRARY_PATH
20950 shlibpath_overrides_runpath=yes
20953 *nto* | *qnx*)
20954 version_type=qnx
20955 need_lib_prefix=no
20956 need_version=no
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 shlibpath_overrides_runpath=no
20961 hardcode_into_libs=yes
20962 dynamic_linker='ldqnx.so'
20965 openbsd*)
20966 version_type=sunos
20967 sys_lib_dlsearch_path_spec="/usr/lib"
20968 need_lib_prefix=no
20969 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20970 case $host_os in
20971 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20972 *) need_version=no ;;
20973 esac
20974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20976 shlibpath_var=LD_LIBRARY_PATH
20977 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20978 case $host_os in
20979 openbsd2.[89] | openbsd2.[89].*)
20980 shlibpath_overrides_runpath=no
20983 shlibpath_overrides_runpath=yes
20985 esac
20986 else
20987 shlibpath_overrides_runpath=yes
20991 os2*)
20992 libname_spec='$name'
20993 shrext_cmds=".dll"
20994 need_lib_prefix=no
20995 library_names_spec='$libname${shared_ext} $libname.a'
20996 dynamic_linker='OS/2 ld.exe'
20997 shlibpath_var=LIBPATH
21000 osf3* | osf4* | osf5*)
21001 version_type=osf
21002 need_lib_prefix=no
21003 need_version=no
21004 soname_spec='${libname}${release}${shared_ext}$major'
21005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21006 shlibpath_var=LD_LIBRARY_PATH
21007 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21008 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21011 rdos*)
21012 dynamic_linker=no
21015 solaris*)
21016 version_type=linux
21017 need_lib_prefix=no
21018 need_version=no
21019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21020 soname_spec='${libname}${release}${shared_ext}$major'
21021 shlibpath_var=LD_LIBRARY_PATH
21022 shlibpath_overrides_runpath=yes
21023 hardcode_into_libs=yes
21024 # ldd complains unless libraries are executable
21025 postinstall_cmds='chmod +x $lib'
21028 sunos4*)
21029 version_type=sunos
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21032 shlibpath_var=LD_LIBRARY_PATH
21033 shlibpath_overrides_runpath=yes
21034 if test "$with_gnu_ld" = yes; then
21035 need_lib_prefix=no
21037 need_version=yes
21040 sysv4 | sysv4.3*)
21041 version_type=linux
21042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21043 soname_spec='${libname}${release}${shared_ext}$major'
21044 shlibpath_var=LD_LIBRARY_PATH
21045 case $host_vendor in
21046 sni)
21047 shlibpath_overrides_runpath=no
21048 need_lib_prefix=no
21049 runpath_var=LD_RUN_PATH
21051 siemens)
21052 need_lib_prefix=no
21054 motorola)
21055 need_lib_prefix=no
21056 need_version=no
21057 shlibpath_overrides_runpath=no
21058 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21060 esac
21063 sysv4*MP*)
21064 if test -d /usr/nec ;then
21065 version_type=linux
21066 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21067 soname_spec='$libname${shared_ext}.$major'
21068 shlibpath_var=LD_LIBRARY_PATH
21072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21073 version_type=freebsd-elf
21074 need_lib_prefix=no
21075 need_version=no
21076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21077 soname_spec='${libname}${release}${shared_ext}$major'
21078 shlibpath_var=LD_LIBRARY_PATH
21079 shlibpath_overrides_runpath=yes
21080 hardcode_into_libs=yes
21081 if test "$with_gnu_ld" = yes; then
21082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21083 else
21084 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21085 case $host_os in
21086 sco3.2v5*)
21087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21089 esac
21091 sys_lib_dlsearch_path_spec='/usr/lib'
21094 tpf*)
21095 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21096 version_type=linux
21097 need_lib_prefix=no
21098 need_version=no
21099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21100 shlibpath_var=LD_LIBRARY_PATH
21101 shlibpath_overrides_runpath=no
21102 hardcode_into_libs=yes
21105 uts4*)
21106 version_type=linux
21107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21108 soname_spec='${libname}${release}${shared_ext}$major'
21109 shlibpath_var=LD_LIBRARY_PATH
21112 # Shared libraries for VwWorks, >= 7 only at this stage
21113 # and (fpic) still incompatible with "large" code models
21114 # in a few configurations. Only for RTP mode in any case,
21115 # and upon explicit request at configure time.
21116 vxworks7*)
21117 dynamic_linker=no
21118 case ${with_multisubdir}-${enable_shared} in
21119 *large*)
21121 *mrtp*-yes)
21122 version_type=linux
21123 need_lib_prefix=no
21124 need_version=no
21125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 soname_spec='${libname}${release}${shared_ext}$major'
21127 dynamic_linker="$host_os module_loader"
21129 esac
21132 dynamic_linker=no
21134 esac
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21136 $as_echo "$dynamic_linker" >&6; }
21137 test "$dynamic_linker" = no && can_build_shared=no
21139 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21140 if test "$GCC" = yes; then
21141 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21144 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21145 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21147 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21148 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21243 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21244 hardcode_action=
21245 if test -n "$hardcode_libdir_flag_spec" ||
21246 test -n "$runpath_var" ||
21247 test "X$hardcode_automatic" = "Xyes" ; then
21249 # We can hardcode non-existent directories.
21250 if test "$hardcode_direct" != no &&
21251 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21252 # have to relink, otherwise we might link with an installed library
21253 # when we should be linking with a yet-to-be-installed one
21254 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21255 test "$hardcode_minus_L" != no; then
21256 # Linking always hardcodes the temporary library directory.
21257 hardcode_action=relink
21258 else
21259 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21260 hardcode_action=immediate
21262 else
21263 # We cannot hardcode anything, or else we can only hardcode existing
21264 # directories.
21265 hardcode_action=unsupported
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21268 $as_echo "$hardcode_action" >&6; }
21270 if test "$hardcode_action" = relink ||
21271 test "$inherit_rpath" = yes; then
21272 # Fast installation is not supported
21273 enable_fast_install=no
21274 elif test "$shlibpath_overrides_runpath" = yes ||
21275 test "$enable_shared" = no; then
21276 # Fast installation is not necessary
21277 enable_fast_install=needless
21285 if test "x$enable_dlopen" != xyes; then
21286 enable_dlopen=unknown
21287 enable_dlopen_self=unknown
21288 enable_dlopen_self_static=unknown
21289 else
21290 lt_cv_dlopen=no
21291 lt_cv_dlopen_libs=
21293 case $host_os in
21294 beos*)
21295 lt_cv_dlopen="load_add_on"
21296 lt_cv_dlopen_libs=
21297 lt_cv_dlopen_self=yes
21300 mingw* | pw32* | cegcc*)
21301 lt_cv_dlopen="LoadLibrary"
21302 lt_cv_dlopen_libs=
21305 cygwin*)
21306 lt_cv_dlopen="dlopen"
21307 lt_cv_dlopen_libs=
21310 darwin*)
21311 # if libdl is installed we need to link against it
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21313 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21314 if ${ac_cv_lib_dl_dlopen+:} false; then :
21315 $as_echo_n "(cached) " >&6
21316 else
21317 ac_check_lib_save_LIBS=$LIBS
21318 LIBS="-ldl $LIBS"
21319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21320 /* end confdefs.h. */
21322 /* Override any GCC internal prototype to avoid an error.
21323 Use char because int might match the return type of a GCC
21324 builtin and then its argument prototype would still apply. */
21325 #ifdef __cplusplus
21326 extern "C"
21327 #endif
21328 char dlopen ();
21330 main ()
21332 return dlopen ();
21334 return 0;
21336 _ACEOF
21337 if ac_fn_c_try_link "$LINENO"; then :
21338 ac_cv_lib_dl_dlopen=yes
21339 else
21340 ac_cv_lib_dl_dlopen=no
21342 rm -f core conftest.err conftest.$ac_objext \
21343 conftest$ac_exeext conftest.$ac_ext
21344 LIBS=$ac_check_lib_save_LIBS
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21347 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21348 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21350 else
21352 lt_cv_dlopen="dyld"
21353 lt_cv_dlopen_libs=
21354 lt_cv_dlopen_self=yes
21361 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21362 if test "x$ac_cv_func_shl_load" = xyes; then :
21363 lt_cv_dlopen="shl_load"
21364 else
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21366 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21367 if ${ac_cv_lib_dld_shl_load+:} false; then :
21368 $as_echo_n "(cached) " >&6
21369 else
21370 ac_check_lib_save_LIBS=$LIBS
21371 LIBS="-ldld $LIBS"
21372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21373 /* end confdefs.h. */
21375 /* Override any GCC internal prototype to avoid an error.
21376 Use char because int might match the return type of a GCC
21377 builtin and then its argument prototype would still apply. */
21378 #ifdef __cplusplus
21379 extern "C"
21380 #endif
21381 char shl_load ();
21383 main ()
21385 return shl_load ();
21387 return 0;
21389 _ACEOF
21390 if ac_fn_c_try_link "$LINENO"; then :
21391 ac_cv_lib_dld_shl_load=yes
21392 else
21393 ac_cv_lib_dld_shl_load=no
21395 rm -f core conftest.err conftest.$ac_objext \
21396 conftest$ac_exeext conftest.$ac_ext
21397 LIBS=$ac_check_lib_save_LIBS
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21400 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21401 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21402 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21403 else
21404 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21405 if test "x$ac_cv_func_dlopen" = xyes; then :
21406 lt_cv_dlopen="dlopen"
21407 else
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21409 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21410 if ${ac_cv_lib_dl_dlopen+:} false; then :
21411 $as_echo_n "(cached) " >&6
21412 else
21413 ac_check_lib_save_LIBS=$LIBS
21414 LIBS="-ldl $LIBS"
21415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21416 /* end confdefs.h. */
21418 /* Override any GCC internal prototype to avoid an error.
21419 Use char because int might match the return type of a GCC
21420 builtin and then its argument prototype would still apply. */
21421 #ifdef __cplusplus
21422 extern "C"
21423 #endif
21424 char dlopen ();
21426 main ()
21428 return dlopen ();
21430 return 0;
21432 _ACEOF
21433 if ac_fn_c_try_link "$LINENO"; then :
21434 ac_cv_lib_dl_dlopen=yes
21435 else
21436 ac_cv_lib_dl_dlopen=no
21438 rm -f core conftest.err conftest.$ac_objext \
21439 conftest$ac_exeext conftest.$ac_ext
21440 LIBS=$ac_check_lib_save_LIBS
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21443 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21444 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21446 else
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21448 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21449 if ${ac_cv_lib_svld_dlopen+:} false; then :
21450 $as_echo_n "(cached) " >&6
21451 else
21452 ac_check_lib_save_LIBS=$LIBS
21453 LIBS="-lsvld $LIBS"
21454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455 /* end confdefs.h. */
21457 /* Override any GCC internal prototype to avoid an error.
21458 Use char because int might match the return type of a GCC
21459 builtin and then its argument prototype would still apply. */
21460 #ifdef __cplusplus
21461 extern "C"
21462 #endif
21463 char dlopen ();
21465 main ()
21467 return dlopen ();
21469 return 0;
21471 _ACEOF
21472 if ac_fn_c_try_link "$LINENO"; then :
21473 ac_cv_lib_svld_dlopen=yes
21474 else
21475 ac_cv_lib_svld_dlopen=no
21477 rm -f core conftest.err conftest.$ac_objext \
21478 conftest$ac_exeext conftest.$ac_ext
21479 LIBS=$ac_check_lib_save_LIBS
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21482 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21483 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
21484 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21485 else
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21487 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21488 if ${ac_cv_lib_dld_dld_link+:} false; then :
21489 $as_echo_n "(cached) " >&6
21490 else
21491 ac_check_lib_save_LIBS=$LIBS
21492 LIBS="-ldld $LIBS"
21493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21494 /* end confdefs.h. */
21496 /* Override any GCC internal prototype to avoid an error.
21497 Use char because int might match the return type of a GCC
21498 builtin and then its argument prototype would still apply. */
21499 #ifdef __cplusplus
21500 extern "C"
21501 #endif
21502 char dld_link ();
21504 main ()
21506 return dld_link ();
21508 return 0;
21510 _ACEOF
21511 if ac_fn_c_try_link "$LINENO"; then :
21512 ac_cv_lib_dld_dld_link=yes
21513 else
21514 ac_cv_lib_dld_dld_link=no
21516 rm -f core conftest.err conftest.$ac_objext \
21517 conftest$ac_exeext conftest.$ac_ext
21518 LIBS=$ac_check_lib_save_LIBS
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21521 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21522 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21523 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21542 esac
21544 if test "x$lt_cv_dlopen" != xno; then
21545 enable_dlopen=yes
21546 else
21547 enable_dlopen=no
21550 case $lt_cv_dlopen in
21551 dlopen)
21552 save_CPPFLAGS="$CPPFLAGS"
21553 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21555 save_LDFLAGS="$LDFLAGS"
21556 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21558 save_LIBS="$LIBS"
21559 LIBS="$lt_cv_dlopen_libs $LIBS"
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21562 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21563 if ${lt_cv_dlopen_self+:} false; then :
21564 $as_echo_n "(cached) " >&6
21565 else
21566 if test "$cross_compiling" = yes; then :
21567 lt_cv_dlopen_self=cross
21568 else
21569 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21570 lt_status=$lt_dlunknown
21571 cat > conftest.$ac_ext <<_LT_EOF
21572 #line 21572 "configure"
21573 #include "confdefs.h"
21575 #if HAVE_DLFCN_H
21576 #include <dlfcn.h>
21577 #endif
21579 #include <stdio.h>
21581 #ifdef RTLD_GLOBAL
21582 # define LT_DLGLOBAL RTLD_GLOBAL
21583 #else
21584 # ifdef DL_GLOBAL
21585 # define LT_DLGLOBAL DL_GLOBAL
21586 # else
21587 # define LT_DLGLOBAL 0
21588 # endif
21589 #endif
21591 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21592 find out it does not work in some platform. */
21593 #ifndef LT_DLLAZY_OR_NOW
21594 # ifdef RTLD_LAZY
21595 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21596 # else
21597 # ifdef DL_LAZY
21598 # define LT_DLLAZY_OR_NOW DL_LAZY
21599 # else
21600 # ifdef RTLD_NOW
21601 # define LT_DLLAZY_OR_NOW RTLD_NOW
21602 # else
21603 # ifdef DL_NOW
21604 # define LT_DLLAZY_OR_NOW DL_NOW
21605 # else
21606 # define LT_DLLAZY_OR_NOW 0
21607 # endif
21608 # endif
21609 # endif
21610 # endif
21611 #endif
21613 /* When -fvisbility=hidden is used, assume the code has been annotated
21614 correspondingly for the symbols needed. */
21615 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21616 void fnord () __attribute__((visibility("default")));
21617 #endif
21619 void fnord () { int i=42; }
21620 int main ()
21622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21623 int status = $lt_dlunknown;
21625 if (self)
21627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21628 else
21630 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21631 else puts (dlerror ());
21633 /* dlclose (self); */
21635 else
21636 puts (dlerror ());
21638 return status;
21640 _LT_EOF
21641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21642 (eval $ac_link) 2>&5
21643 ac_status=$?
21644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21645 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21646 (./conftest; exit; ) >&5 2>/dev/null
21647 lt_status=$?
21648 case x$lt_status in
21649 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21650 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21651 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21652 esac
21653 else :
21654 # compilation failed
21655 lt_cv_dlopen_self=no
21658 rm -fr conftest*
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21663 $as_echo "$lt_cv_dlopen_self" >&6; }
21665 if test "x$lt_cv_dlopen_self" = xyes; then
21666 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21668 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21669 if ${lt_cv_dlopen_self_static+:} false; then :
21670 $as_echo_n "(cached) " >&6
21671 else
21672 if test "$cross_compiling" = yes; then :
21673 lt_cv_dlopen_self_static=cross
21674 else
21675 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21676 lt_status=$lt_dlunknown
21677 cat > conftest.$ac_ext <<_LT_EOF
21678 #line 21678 "configure"
21679 #include "confdefs.h"
21681 #if HAVE_DLFCN_H
21682 #include <dlfcn.h>
21683 #endif
21685 #include <stdio.h>
21687 #ifdef RTLD_GLOBAL
21688 # define LT_DLGLOBAL RTLD_GLOBAL
21689 #else
21690 # ifdef DL_GLOBAL
21691 # define LT_DLGLOBAL DL_GLOBAL
21692 # else
21693 # define LT_DLGLOBAL 0
21694 # endif
21695 #endif
21697 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21698 find out it does not work in some platform. */
21699 #ifndef LT_DLLAZY_OR_NOW
21700 # ifdef RTLD_LAZY
21701 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21702 # else
21703 # ifdef DL_LAZY
21704 # define LT_DLLAZY_OR_NOW DL_LAZY
21705 # else
21706 # ifdef RTLD_NOW
21707 # define LT_DLLAZY_OR_NOW RTLD_NOW
21708 # else
21709 # ifdef DL_NOW
21710 # define LT_DLLAZY_OR_NOW DL_NOW
21711 # else
21712 # define LT_DLLAZY_OR_NOW 0
21713 # endif
21714 # endif
21715 # endif
21716 # endif
21717 #endif
21719 /* When -fvisbility=hidden is used, assume the code has been annotated
21720 correspondingly for the symbols needed. */
21721 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21722 void fnord () __attribute__((visibility("default")));
21723 #endif
21725 void fnord () { int i=42; }
21726 int main ()
21728 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21729 int status = $lt_dlunknown;
21731 if (self)
21733 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21734 else
21736 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21737 else puts (dlerror ());
21739 /* dlclose (self); */
21741 else
21742 puts (dlerror ());
21744 return status;
21746 _LT_EOF
21747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21748 (eval $ac_link) 2>&5
21749 ac_status=$?
21750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21751 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21752 (./conftest; exit; ) >&5 2>/dev/null
21753 lt_status=$?
21754 case x$lt_status in
21755 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21756 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21757 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21758 esac
21759 else :
21760 # compilation failed
21761 lt_cv_dlopen_self_static=no
21764 rm -fr conftest*
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21769 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21772 CPPFLAGS="$save_CPPFLAGS"
21773 LDFLAGS="$save_LDFLAGS"
21774 LIBS="$save_LIBS"
21776 esac
21778 case $lt_cv_dlopen_self in
21779 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21780 *) enable_dlopen_self=unknown ;;
21781 esac
21783 case $lt_cv_dlopen_self_static in
21784 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21785 *) enable_dlopen_self_static=unknown ;;
21786 esac
21805 striplib=
21806 old_striplib=
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21808 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21809 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21810 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21811 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21813 $as_echo "yes" >&6; }
21814 else
21815 # FIXME - insert some real tests, host_os isn't really good enough
21816 case $host_os in
21817 darwin*)
21818 if test -n "$STRIP" ; then
21819 striplib="$STRIP -x"
21820 old_striplib="$STRIP -S"
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21822 $as_echo "yes" >&6; }
21823 else
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21825 $as_echo "no" >&6; }
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21830 $as_echo "no" >&6; }
21832 esac
21846 # Report which library types will actually be built
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21848 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21850 $as_echo "$can_build_shared" >&6; }
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21853 $as_echo_n "checking whether to build shared libraries... " >&6; }
21854 test "$can_build_shared" = "no" && enable_shared=no
21856 # On AIX, shared libraries and static libraries use the same namespace, and
21857 # are all built from PIC.
21858 case $host_os in
21859 aix3*)
21860 test "$enable_shared" = yes && enable_static=no
21861 if test -n "$RANLIB"; then
21862 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21863 postinstall_cmds='$RANLIB $lib'
21867 aix[4-9]*)
21868 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21869 test "$enable_shared" = yes && enable_static=no
21872 esac
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21874 $as_echo "$enable_shared" >&6; }
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21877 $as_echo_n "checking whether to build static libraries... " >&6; }
21878 # Make sure either enable_shared or enable_static is yes.
21879 test "$enable_shared" = yes || enable_static=yes
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21881 $as_echo "$enable_static" >&6; }
21887 ac_ext=cpp
21888 ac_cpp='$CXXCPP $CPPFLAGS'
21889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21893 CC="$lt_save_CC"
21895 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21896 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21897 (test "X$CXX" != "Xg++"))) ; then
21898 ac_ext=cpp
21899 ac_cpp='$CXXCPP $CPPFLAGS'
21900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21904 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21905 if test -z "$CXXCPP"; then
21906 if ${ac_cv_prog_CXXCPP+:} false; then :
21907 $as_echo_n "(cached) " >&6
21908 else
21909 # Double quotes because CXXCPP needs to be expanded
21910 for CXXCPP in "$CXX -E" "/lib/cpp"
21912 ac_preproc_ok=false
21913 for ac_cxx_preproc_warn_flag in '' yes
21915 # Use a header file that comes with gcc, so configuring glibc
21916 # with a fresh cross-compiler works.
21917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21918 # <limits.h> exists even on freestanding compilers.
21919 # On the NeXT, cc -E runs the code through the compiler's parser,
21920 # not just through cpp. "Syntax error" is here to catch this case.
21921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21922 /* end confdefs.h. */
21923 #ifdef __STDC__
21924 # include <limits.h>
21925 #else
21926 # include <assert.h>
21927 #endif
21928 Syntax error
21929 _ACEOF
21930 if ac_fn_cxx_try_cpp "$LINENO"; then :
21932 else
21933 # Broken: fails on valid input.
21934 continue
21936 rm -f conftest.err conftest.i conftest.$ac_ext
21938 # OK, works on sane cases. Now check whether nonexistent headers
21939 # can be detected and how.
21940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21941 /* end confdefs.h. */
21942 #include <ac_nonexistent.h>
21943 _ACEOF
21944 if ac_fn_cxx_try_cpp "$LINENO"; then :
21945 # Broken: success on invalid input.
21946 continue
21947 else
21948 # Passes both tests.
21949 ac_preproc_ok=:
21950 break
21952 rm -f conftest.err conftest.i conftest.$ac_ext
21954 done
21955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21956 rm -f conftest.i conftest.err conftest.$ac_ext
21957 if $ac_preproc_ok; then :
21958 break
21961 done
21962 ac_cv_prog_CXXCPP=$CXXCPP
21965 CXXCPP=$ac_cv_prog_CXXCPP
21966 else
21967 ac_cv_prog_CXXCPP=$CXXCPP
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21970 $as_echo "$CXXCPP" >&6; }
21971 ac_preproc_ok=false
21972 for ac_cxx_preproc_warn_flag in '' yes
21974 # Use a header file that comes with gcc, so configuring glibc
21975 # with a fresh cross-compiler works.
21976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21977 # <limits.h> exists even on freestanding compilers.
21978 # On the NeXT, cc -E runs the code through the compiler's parser,
21979 # not just through cpp. "Syntax error" is here to catch this case.
21980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21981 /* end confdefs.h. */
21982 #ifdef __STDC__
21983 # include <limits.h>
21984 #else
21985 # include <assert.h>
21986 #endif
21987 Syntax error
21988 _ACEOF
21989 if ac_fn_cxx_try_cpp "$LINENO"; then :
21991 else
21992 # Broken: fails on valid input.
21993 continue
21995 rm -f conftest.err conftest.i conftest.$ac_ext
21997 # OK, works on sane cases. Now check whether nonexistent headers
21998 # can be detected and how.
21999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22000 /* end confdefs.h. */
22001 #include <ac_nonexistent.h>
22002 _ACEOF
22003 if ac_fn_cxx_try_cpp "$LINENO"; then :
22004 # Broken: success on invalid input.
22005 continue
22006 else
22007 # Passes both tests.
22008 ac_preproc_ok=:
22009 break
22011 rm -f conftest.err conftest.i conftest.$ac_ext
22013 done
22014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22015 rm -f conftest.i conftest.err conftest.$ac_ext
22016 if $ac_preproc_ok; then :
22018 else
22019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22021 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
22022 See \`config.log' for more details" "$LINENO" 5; }
22025 ac_ext=cpp
22026 ac_cpp='$CXXCPP $CPPFLAGS'
22027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22031 else
22032 _lt_caught_CXX_error=yes
22035 ac_ext=cpp
22036 ac_cpp='$CXXCPP $CPPFLAGS'
22037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22041 archive_cmds_need_lc_CXX=no
22042 allow_undefined_flag_CXX=
22043 always_export_symbols_CXX=no
22044 archive_expsym_cmds_CXX=
22045 compiler_needs_object_CXX=no
22046 export_dynamic_flag_spec_CXX=
22047 hardcode_direct_CXX=no
22048 hardcode_direct_absolute_CXX=no
22049 hardcode_libdir_flag_spec_CXX=
22050 hardcode_libdir_flag_spec_ld_CXX=
22051 hardcode_libdir_separator_CXX=
22052 hardcode_minus_L_CXX=no
22053 hardcode_shlibpath_var_CXX=unsupported
22054 hardcode_automatic_CXX=no
22055 inherit_rpath_CXX=no
22056 module_cmds_CXX=
22057 module_expsym_cmds_CXX=
22058 link_all_deplibs_CXX=unknown
22059 old_archive_cmds_CXX=$old_archive_cmds
22060 reload_flag_CXX=$reload_flag
22061 reload_cmds_CXX=$reload_cmds
22062 no_undefined_flag_CXX=
22063 whole_archive_flag_spec_CXX=
22064 enable_shared_with_static_runtimes_CXX=no
22066 # Source file extension for C++ test sources.
22067 ac_ext=cpp
22069 # Object file extension for compiled C++ test sources.
22070 objext=o
22071 objext_CXX=$objext
22073 # No sense in running all these tests if we already determined that
22074 # the CXX compiler isn't working. Some variables (like enable_shared)
22075 # are currently assumed to apply to all compilers on this platform,
22076 # and will be corrupted by setting them based on a non-working compiler.
22077 if test "$_lt_caught_CXX_error" != yes; then
22078 # Code to be used in simple compile tests
22079 lt_simple_compile_test_code="int some_variable = 0;"
22081 # Code to be used in simple link tests
22082 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
22084 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22091 # If no C compiler was specified, use CC.
22092 LTCC=${LTCC-"$CC"}
22094 # If no C compiler flags were specified, use CFLAGS.
22095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22097 # Allow CC to be a program name with arguments.
22098 compiler=$CC
22101 # save warnings/boilerplate of simple test code
22102 ac_outfile=conftest.$ac_objext
22103 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22104 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22105 _lt_compiler_boilerplate=`cat conftest.err`
22106 $RM conftest*
22108 ac_outfile=conftest.$ac_objext
22109 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22110 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22111 _lt_linker_boilerplate=`cat conftest.err`
22112 $RM -r conftest*
22115 # Allow CC to be a program name with arguments.
22116 lt_save_CC=$CC
22117 lt_save_LD=$LD
22118 lt_save_GCC=$GCC
22119 GCC=$GXX
22120 lt_save_with_gnu_ld=$with_gnu_ld
22121 lt_save_path_LD=$lt_cv_path_LD
22122 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22123 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
22124 else
22125 $as_unset lt_cv_prog_gnu_ld
22127 if test -n "${lt_cv_path_LDCXX+set}"; then
22128 lt_cv_path_LD=$lt_cv_path_LDCXX
22129 else
22130 $as_unset lt_cv_path_LD
22132 test -z "${LDCXX+set}" || LD=$LDCXX
22133 CC=${CXX-"c++"}
22134 compiler=$CC
22135 compiler_CXX=$CC
22136 for cc_temp in $compiler""; do
22137 case $cc_temp in
22138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22140 \-*) ;;
22141 *) break;;
22142 esac
22143 done
22144 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22147 if test -n "$compiler"; then
22148 # We don't want -fno-exception when compiling C++ code, so set the
22149 # no_builtin_flag separately
22150 if test "$GXX" = yes; then
22151 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
22152 else
22153 lt_prog_compiler_no_builtin_flag_CXX=
22156 if test "$GXX" = yes; then
22157 # Set up default GNU C++ configuration
22161 # Check whether --with-gnu-ld was given.
22162 if test "${with_gnu_ld+set}" = set; then :
22163 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22164 else
22165 with_gnu_ld=no
22168 ac_prog=ld
22169 if test "$GCC" = yes; then
22170 # Check if gcc -print-prog-name=ld gives a path.
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22172 $as_echo_n "checking for ld used by $CC... " >&6; }
22173 case $host in
22174 *-*-mingw*)
22175 # gcc leaves a trailing carriage return which upsets mingw
22176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22179 esac
22180 case $ac_prog in
22181 # Accept absolute paths.
22182 [\\/]* | ?:[\\/]*)
22183 re_direlt='/[^/][^/]*/\.\./'
22184 # Canonicalize the pathname of ld
22185 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22186 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22187 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22188 done
22189 test -z "$LD" && LD="$ac_prog"
22192 # If it fails, then pretend we aren't using GCC.
22193 ac_prog=ld
22196 # If it is relative, then search for the first ld in PATH.
22197 with_gnu_ld=unknown
22199 esac
22200 elif test "$with_gnu_ld" = yes; then
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22202 $as_echo_n "checking for GNU ld... " >&6; }
22203 else
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22205 $as_echo_n "checking for non-GNU ld... " >&6; }
22207 if ${lt_cv_path_LD+:} false; then :
22208 $as_echo_n "(cached) " >&6
22209 else
22210 if test -z "$LD"; then
22211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22212 for ac_dir in $PATH; do
22213 IFS="$lt_save_ifs"
22214 test -z "$ac_dir" && ac_dir=.
22215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22216 lt_cv_path_LD="$ac_dir/$ac_prog"
22217 # Check to see if the program is GNU ld. I'd rather use --version,
22218 # but apparently some variants of GNU ld only accept -v.
22219 # Break only if it was the GNU/non-GNU ld that we prefer.
22220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22221 *GNU* | *'with BFD'*)
22222 test "$with_gnu_ld" != no && break
22225 test "$with_gnu_ld" != yes && break
22227 esac
22229 done
22230 IFS="$lt_save_ifs"
22231 else
22232 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22236 LD="$lt_cv_path_LD"
22237 if test -n "$LD"; then
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22239 $as_echo "$LD" >&6; }
22240 else
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22242 $as_echo "no" >&6; }
22244 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22247 if ${lt_cv_prog_gnu_ld+:} false; then :
22248 $as_echo_n "(cached) " >&6
22249 else
22250 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22251 case `$LD -v 2>&1 </dev/null` in
22252 *GNU* | *'with BFD'*)
22253 lt_cv_prog_gnu_ld=yes
22256 lt_cv_prog_gnu_ld=no
22258 esac
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22261 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22262 with_gnu_ld=$lt_cv_prog_gnu_ld
22270 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22271 # archiving commands below assume that GNU ld is being used.
22272 if test "$with_gnu_ld" = yes; then
22273 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22274 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'
22276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22277 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22279 # If archive_cmds runs LD, not CC, wlarc should be empty
22280 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22281 # investigate it a little bit more. (MM)
22282 wlarc='${wl}'
22284 # ancient GNU ld didn't support --whole-archive et. al.
22285 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22286 $GREP 'no-whole-archive' > /dev/null; then
22287 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22288 else
22289 whole_archive_flag_spec_CXX=
22291 else
22292 with_gnu_ld=no
22293 wlarc=
22295 # A generic and very simple default shared library creation
22296 # command for GNU C++ for the case where it uses the native
22297 # linker, instead of GNU ld. If possible, this setting should
22298 # overridden to take advantage of the native linker features on
22299 # the platform it is being used on.
22300 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22303 # Commands to make compiler produce verbose output that lists
22304 # what "hidden" libraries, object files and flags are used when
22305 # linking a shared library.
22306 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22308 else
22309 GXX=no
22310 with_gnu_ld=no
22311 wlarc=
22314 # PORTME: fill in a description of your system's C++ link characteristics
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22316 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22317 ld_shlibs_CXX=yes
22318 case $host_os in
22319 aix3*)
22320 # FIXME: insert proper C++ library support
22321 ld_shlibs_CXX=no
22323 aix[4-9]*)
22324 if test "$host_cpu" = ia64; then
22325 # On IA64, the linker does run time linking by default, so we don't
22326 # have to do anything special.
22327 aix_use_runtimelinking=no
22328 exp_sym_flag='-Bexport'
22329 no_entry_flag=""
22330 else
22331 aix_use_runtimelinking=no
22333 # Test if we are trying to use run time linking or normal
22334 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22335 # need to do runtime linking.
22336 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22337 for ld_flag in $LDFLAGS; do
22338 case $ld_flag in
22339 *-brtl*)
22340 aix_use_runtimelinking=yes
22341 break
22343 esac
22344 done
22346 esac
22348 exp_sym_flag='-bexport'
22349 no_entry_flag='-bnoentry'
22352 # When large executables or shared objects are built, AIX ld can
22353 # have problems creating the table of contents. If linking a library
22354 # or program results in "error TOC overflow" add -mminimal-toc to
22355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22358 archive_cmds_CXX=''
22359 hardcode_direct_CXX=yes
22360 hardcode_direct_absolute_CXX=yes
22361 hardcode_libdir_separator_CXX=':'
22362 link_all_deplibs_CXX=yes
22363 file_list_spec_CXX='${wl}-f,'
22365 if test "$GXX" = yes; then
22366 case $host_os in aix4.[012]|aix4.[012].*)
22367 # We only want to do this on AIX 4.2 and lower, the check
22368 # below for broken collect2 doesn't work under 4.3+
22369 collect2name=`${CC} -print-prog-name=collect2`
22370 if test -f "$collect2name" &&
22371 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22372 then
22373 # We have reworked collect2
22375 else
22376 # We have old collect2
22377 hardcode_direct_CXX=unsupported
22378 # It fails to find uninstalled libraries when the uninstalled
22379 # path is not listed in the libpath. Setting hardcode_minus_L
22380 # to unsupported forces relinking
22381 hardcode_minus_L_CXX=yes
22382 hardcode_libdir_flag_spec_CXX='-L$libdir'
22383 hardcode_libdir_separator_CXX=
22385 esac
22386 shared_flag='-shared'
22387 if test "$aix_use_runtimelinking" = yes; then
22388 shared_flag="$shared_flag "'${wl}-G'
22390 else
22391 # not using gcc
22392 if test "$host_cpu" = ia64; then
22393 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22394 # chokes on -Wl,-G. The following line is correct:
22395 shared_flag='-G'
22396 else
22397 if test "$aix_use_runtimelinking" = yes; then
22398 shared_flag='${wl}-G'
22399 else
22400 shared_flag='${wl}-bM:SRE'
22405 export_dynamic_flag_spec_CXX='${wl}-bexpall'
22406 # It seems that -bexpall does not export symbols beginning with
22407 # underscore (_), so it is better to generate a list of symbols to
22408 # export.
22409 always_export_symbols_CXX=yes
22410 if test "$aix_use_runtimelinking" = yes; then
22411 # Warning - without using the other runtime loading flags (-brtl),
22412 # -berok will link without error, but may produce a broken library.
22413 allow_undefined_flag_CXX='-berok'
22414 # Determine the default libpath from the value encoded in an empty
22415 # executable.
22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22420 main ()
22424 return 0;
22426 _ACEOF
22427 if ac_fn_cxx_try_link "$LINENO"; then :
22429 lt_aix_libpath_sed='
22430 /Import File Strings/,/^$/ {
22431 /^0/ {
22432 s/^0 *\(.*\)$/\1/
22436 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22437 # Check for a 64-bit object if we didn't find anything.
22438 if test -z "$aix_libpath"; then
22439 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22442 rm -f core conftest.err conftest.$ac_objext \
22443 conftest$ac_exeext conftest.$ac_ext
22444 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22446 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22448 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"
22449 else
22450 if test "$host_cpu" = ia64; then
22451 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22452 allow_undefined_flag_CXX="-z nodefs"
22453 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"
22454 else
22455 # Determine the default libpath from the value encoded in an
22456 # empty executable.
22457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458 /* end confdefs.h. */
22461 main ()
22465 return 0;
22467 _ACEOF
22468 if ac_fn_cxx_try_link "$LINENO"; then :
22470 lt_aix_libpath_sed='
22471 /Import File Strings/,/^$/ {
22472 /^0/ {
22473 s/^0 *\(.*\)$/\1/
22477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22478 # Check for a 64-bit object if we didn't find anything.
22479 if test -z "$aix_libpath"; then
22480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22483 rm -f core conftest.err conftest.$ac_objext \
22484 conftest$ac_exeext conftest.$ac_ext
22485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22487 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22488 # Warning - without using the other run time loading flags,
22489 # -berok will link without error, but may produce a broken library.
22490 no_undefined_flag_CXX=' ${wl}-bernotok'
22491 allow_undefined_flag_CXX=' ${wl}-berok'
22492 if test "$with_gnu_ld" = yes; then
22493 # We only use this code for GNU lds that support --whole-archive.
22494 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22495 else
22496 # Exported symbols can be pulled into shared objects from archives
22497 whole_archive_flag_spec_CXX='$convenience'
22499 archive_cmds_need_lc_CXX=yes
22500 # This is similar to how AIX traditionally builds its shared
22501 # libraries.
22502 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'
22507 beos*)
22508 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22509 allow_undefined_flag_CXX=unsupported
22510 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22511 # support --undefined. This deserves some investigation. FIXME
22512 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22513 else
22514 ld_shlibs_CXX=no
22518 chorus*)
22519 case $cc_basename in
22521 # FIXME: insert proper C++ library support
22522 ld_shlibs_CXX=no
22524 esac
22527 cygwin* | mingw* | pw32* | cegcc*)
22528 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22529 # as there is no search path for DLLs.
22530 hardcode_libdir_flag_spec_CXX='-L$libdir'
22531 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
22532 allow_undefined_flag_CXX=unsupported
22533 always_export_symbols_CXX=no
22534 enable_shared_with_static_runtimes_CXX=yes
22536 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22537 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'
22538 # If the export-symbols file already is a .def file (1st line
22539 # is EXPORTS), use it as is; otherwise, prepend...
22540 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22541 cp $export_symbols $output_objdir/$soname.def;
22542 else
22543 echo EXPORTS > $output_objdir/$soname.def;
22544 cat $export_symbols >> $output_objdir/$soname.def;
22546 $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'
22547 else
22548 ld_shlibs_CXX=no
22551 darwin* | rhapsody*)
22555 # Publish an arg to allow the user to select that Darwin host (and target)
22556 # libraries should be given install-names like @rpath/libfoo.dylib. This
22557 # requires that the user of the library then adds an 'rpath' to the DSO that
22558 # needs access.
22559 # NOTE: there are defaults below, for systems that support rpaths. The person
22560 # configuring can override the defaults for any system version that supports
22561 # them - they are, however, forced off for system versions without support.
22562 # Check whether --enable-darwin-at-rpath was given.
22563 if test "${enable_darwin_at_rpath+set}" = set; then :
22564 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22565 # This is not supported before macOS 10.5 / Darwin9.
22566 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22567 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22569 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22570 enable_darwin_at_rpath=no
22572 esac
22574 else
22575 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22576 # As above, before 10.5 / Darwin9 this does not work.
22577 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22578 enable_darwin_at_rpath=no
22581 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22582 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22583 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22584 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22586 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22587 enable_darwin_at_rpath=yes
22589 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22590 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22592 esac
22597 archive_cmds_need_lc_CXX=no
22598 hardcode_direct_CXX=no
22599 hardcode_automatic_CXX=yes
22600 hardcode_shlibpath_var_CXX=unsupported
22601 if test "$lt_cv_ld_force_load" = "yes"; then
22602 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\"`'
22603 else
22604 whole_archive_flag_spec_CXX=''
22606 link_all_deplibs_CXX=yes
22607 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22608 case $cc_basename in
22609 ifort*) _lt_dar_can_shared=yes ;;
22610 *) _lt_dar_can_shared=$GCC ;;
22611 esac
22612 if test "$_lt_dar_can_shared" = "yes"; then
22613 output_verbose_link_cmd=func_echo_all
22614 _lt_install_name='\$rpath/\$soname'
22615 if test "x$enable_darwin_at_rpath" = "xyes"; then
22616 _lt_install_name='@rpath/\$soname'
22618 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22619 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22620 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}"
22621 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}"
22622 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22623 _lt_install_name='\$rpath/\$soname'
22624 if test "x$enable_darwin_at_rpath" = "xyes"; then
22625 _lt_install_name='@rpath/\$soname'
22627 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}"
22628 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}"
22631 else
22632 ld_shlibs_CXX=no
22637 dgux*)
22638 case $cc_basename in
22639 ec++*)
22640 # FIXME: insert proper C++ library support
22641 ld_shlibs_CXX=no
22643 ghcx*)
22644 # Green Hills C++ Compiler
22645 # FIXME: insert proper C++ library support
22646 ld_shlibs_CXX=no
22649 # FIXME: insert proper C++ library support
22650 ld_shlibs_CXX=no
22652 esac
22655 freebsd2.*)
22656 # C++ shared libraries reported to be fairly broken before
22657 # switch to ELF
22658 ld_shlibs_CXX=no
22661 freebsd-elf*)
22662 archive_cmds_need_lc_CXX=no
22665 freebsd* | dragonfly*)
22666 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22667 # conventions
22668 ld_shlibs_CXX=yes
22671 gnu*)
22674 haiku*)
22675 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22676 link_all_deplibs_CXX=yes
22679 hpux9*)
22680 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22681 hardcode_libdir_separator_CXX=:
22682 export_dynamic_flag_spec_CXX='${wl}-E'
22683 hardcode_direct_CXX=yes
22684 hardcode_minus_L_CXX=yes # Not in the search PATH,
22685 # but as the default
22686 # location of the library.
22688 case $cc_basename in
22689 CC*)
22690 # FIXME: insert proper C++ library support
22691 ld_shlibs_CXX=no
22693 aCC*)
22694 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'
22695 # Commands to make compiler produce verbose output that lists
22696 # what "hidden" libraries, object files and flags are used when
22697 # linking a shared library.
22699 # There doesn't appear to be a way to prevent this compiler from
22700 # explicitly linking system object files so we need to strip them
22701 # from the output so that they don't get included in the library
22702 # dependencies.
22703 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"'
22706 if test "$GXX" = yes; then
22707 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'
22708 else
22709 # FIXME: insert proper C++ library support
22710 ld_shlibs_CXX=no
22713 esac
22716 hpux10*|hpux11*)
22717 if test $with_gnu_ld = no; then
22718 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22719 hardcode_libdir_separator_CXX=:
22721 case $host_cpu in
22722 hppa*64*|ia64*)
22725 export_dynamic_flag_spec_CXX='${wl}-E'
22727 esac
22729 case $host_cpu in
22730 hppa*64*|ia64*)
22731 hardcode_direct_CXX=no
22732 hardcode_shlibpath_var_CXX=no
22735 hardcode_direct_CXX=yes
22736 hardcode_direct_absolute_CXX=yes
22737 hardcode_minus_L_CXX=yes # Not in the search PATH,
22738 # but as the default
22739 # location of the library.
22741 esac
22743 case $cc_basename in
22744 CC*)
22745 # FIXME: insert proper C++ library support
22746 ld_shlibs_CXX=no
22748 aCC*)
22749 case $host_cpu in
22750 hppa*64*)
22751 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22753 ia64*)
22754 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22759 esac
22760 # Commands to make compiler produce verbose output that lists
22761 # what "hidden" libraries, object files and flags are used when
22762 # linking a shared library.
22764 # There doesn't appear to be a way to prevent this compiler from
22765 # explicitly linking system object files so we need to strip them
22766 # from the output so that they don't get included in the library
22767 # dependencies.
22768 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"'
22771 if test "$GXX" = yes; then
22772 if test $with_gnu_ld = no; then
22773 case $host_cpu in
22774 hppa*64*)
22775 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22777 ia64*)
22778 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22781 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'
22783 esac
22785 else
22786 # FIXME: insert proper C++ library support
22787 ld_shlibs_CXX=no
22790 esac
22793 interix[3-9]*)
22794 hardcode_direct_CXX=no
22795 hardcode_shlibpath_var_CXX=no
22796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22797 export_dynamic_flag_spec_CXX='${wl}-E'
22798 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22799 # Instead, shared libraries are loaded at an image base (0x10000000 by
22800 # default) and relocated if they conflict, which is a slow very memory
22801 # consuming and fragmenting process. To avoid this, we pick a random,
22802 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22803 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22804 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'
22805 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'
22807 irix5* | irix6*)
22808 case $cc_basename in
22809 CC*)
22810 # SGI C++
22811 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'
22813 # Archives containing C++ object files must be created using
22814 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22815 # necessary to make sure instantiated templates are included
22816 # in the archive.
22817 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22820 if test "$GXX" = yes; then
22821 if test "$with_gnu_ld" = no; then
22822 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'
22823 else
22824 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'
22827 link_all_deplibs_CXX=yes
22829 esac
22830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22831 hardcode_libdir_separator_CXX=:
22832 inherit_rpath_CXX=yes
22835 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22836 case $cc_basename in
22837 KCC*)
22838 # Kuck and Associates, Inc. (KAI) C++ Compiler
22840 # KCC will only create a shared library if the output file
22841 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22842 # to its proper name (with version) after linking.
22843 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'
22844 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'
22845 # Commands to make compiler produce verbose output that lists
22846 # what "hidden" libraries, object files and flags are used when
22847 # linking a shared library.
22849 # There doesn't appear to be a way to prevent this compiler from
22850 # explicitly linking system object files so we need to strip them
22851 # from the output so that they don't get included in the library
22852 # dependencies.
22853 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"'
22855 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22858 # Archives containing C++ object files must be created using
22859 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22860 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22862 icpc* | ecpc* )
22863 # Intel C++
22864 with_gnu_ld=yes
22865 # version 8.0 and above of icpc choke on multiply defined symbols
22866 # if we add $predep_objects and $postdep_objects, however 7.1 and
22867 # earlier do not add the objects themselves.
22868 case `$CC -V 2>&1` in
22869 *"Version 7."*)
22870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22871 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'
22873 *) # Version 8.0 or newer
22874 tmp_idyn=
22875 case $host_cpu in
22876 ia64*) tmp_idyn=' -i_dynamic';;
22877 esac
22878 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22879 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'
22881 esac
22882 archive_cmds_need_lc_CXX=no
22883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22885 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22887 pgCC* | pgcpp*)
22888 # Portland Group C++ compiler
22889 case `$CC -V` in
22890 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22891 prelink_cmds_CXX='tpldir=Template.dir~
22892 rm -rf $tpldir~
22893 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22894 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22895 old_archive_cmds_CXX='tpldir=Template.dir~
22896 rm -rf $tpldir~
22897 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22898 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22899 $RANLIB $oldlib'
22900 archive_cmds_CXX='tpldir=Template.dir~
22901 rm -rf $tpldir~
22902 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22903 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22904 archive_expsym_cmds_CXX='tpldir=Template.dir~
22905 rm -rf $tpldir~
22906 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22907 $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'
22909 *) # Version 6 and above use weak symbols
22910 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22911 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'
22913 esac
22915 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22917 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'
22919 cxx*)
22920 # Compaq C++
22921 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22922 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'
22924 runpath_var=LD_RUN_PATH
22925 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22926 hardcode_libdir_separator_CXX=:
22928 # Commands to make compiler produce verbose output that lists
22929 # what "hidden" libraries, object files and flags are used when
22930 # linking a shared library.
22932 # There doesn't appear to be a way to prevent this compiler from
22933 # explicitly linking system object files so we need to strip them
22934 # from the output so that they don't get included in the library
22935 # dependencies.
22936 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'
22938 xl* | mpixl* | bgxl*)
22939 # IBM XL 8.0 on PPC, with GNU ld
22940 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22941 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22942 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22943 if test "x$supports_anon_versioning" = xyes; then
22944 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22946 echo "local: *; };" >> $output_objdir/$libname.ver~
22947 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22951 case `$CC -V 2>&1 | sed 5q` in
22952 *Sun\ C*)
22953 # Sun C++ 5.9
22954 no_undefined_flag_CXX=' -zdefs'
22955 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22956 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'
22957 hardcode_libdir_flag_spec_CXX='-R$libdir'
22958 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'
22959 compiler_needs_object_CXX=yes
22961 # Not sure whether something based on
22962 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22963 # would be better.
22964 output_verbose_link_cmd='func_echo_all'
22966 # Archives containing C++ object files must be created using
22967 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22968 # necessary to make sure instantiated templates are included
22969 # in the archive.
22970 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22972 esac
22974 esac
22977 lynxos*)
22978 # FIXME: insert proper C++ library support
22979 ld_shlibs_CXX=no
22982 m88k*)
22983 # FIXME: insert proper C++ library support
22984 ld_shlibs_CXX=no
22987 mvs*)
22988 case $cc_basename in
22989 cxx*)
22990 # FIXME: insert proper C++ library support
22991 ld_shlibs_CXX=no
22994 # FIXME: insert proper C++ library support
22995 ld_shlibs_CXX=no
22997 esac
23000 netbsd*)
23001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23002 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
23003 wlarc=
23004 hardcode_libdir_flag_spec_CXX='-R$libdir'
23005 hardcode_direct_CXX=yes
23006 hardcode_shlibpath_var_CXX=no
23008 # Workaround some broken pre-1.5 toolchains
23009 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
23012 *nto* | *qnx*)
23013 ld_shlibs_CXX=yes
23016 openbsd2*)
23017 # C++ shared libraries are fairly broken
23018 ld_shlibs_CXX=no
23021 openbsd*)
23022 if test -f /usr/libexec/ld.so; then
23023 hardcode_direct_CXX=yes
23024 hardcode_shlibpath_var_CXX=no
23025 hardcode_direct_absolute_CXX=yes
23026 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
23027 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23029 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
23030 export_dynamic_flag_spec_CXX='${wl}-E'
23031 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23033 output_verbose_link_cmd=func_echo_all
23034 else
23035 ld_shlibs_CXX=no
23039 osf3* | osf4* | osf5*)
23040 case $cc_basename in
23041 KCC*)
23042 # Kuck and Associates, Inc. (KAI) C++ Compiler
23044 # KCC will only create a shared library if the output file
23045 # ends with ".so" (or ".sl" for HP-UX), so rename the library
23046 # to its proper name (with version) after linking.
23047 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'
23049 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23050 hardcode_libdir_separator_CXX=:
23052 # Archives containing C++ object files must be created using
23053 # the KAI C++ compiler.
23054 case $host in
23055 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
23056 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
23057 esac
23059 RCC*)
23060 # Rational C++ 2.4.1
23061 # FIXME: insert proper C++ library support
23062 ld_shlibs_CXX=no
23064 cxx*)
23065 case $host in
23066 osf3*)
23067 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23068 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'
23069 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23072 allow_undefined_flag_CXX=' -expect_unresolved \*'
23073 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'
23074 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23075 echo "-hidden">> $lib.exp~
23076 $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~
23077 $RM $lib.exp'
23078 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
23080 esac
23082 hardcode_libdir_separator_CXX=:
23084 # Commands to make compiler produce verbose output that lists
23085 # what "hidden" libraries, object files and flags are used when
23086 # linking a shared library.
23088 # There doesn't appear to be a way to prevent this compiler from
23089 # explicitly linking system object files so we need to strip them
23090 # from the output so that they don't get included in the library
23091 # dependencies.
23092 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"'
23095 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23096 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23097 case $host in
23098 osf3*)
23099 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'
23102 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'
23104 esac
23106 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23107 hardcode_libdir_separator_CXX=:
23109 # Commands to make compiler produce verbose output that lists
23110 # what "hidden" libraries, object files and flags are used when
23111 # linking a shared library.
23112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23114 else
23115 # FIXME: insert proper C++ library support
23116 ld_shlibs_CXX=no
23119 esac
23122 psos*)
23123 # FIXME: insert proper C++ library support
23124 ld_shlibs_CXX=no
23127 sunos4*)
23128 case $cc_basename in
23129 CC*)
23130 # Sun C++ 4.x
23131 # FIXME: insert proper C++ library support
23132 ld_shlibs_CXX=no
23134 lcc*)
23135 # Lucid
23136 # FIXME: insert proper C++ library support
23137 ld_shlibs_CXX=no
23140 # FIXME: insert proper C++ library support
23141 ld_shlibs_CXX=no
23143 esac
23146 solaris*)
23147 case $cc_basename in
23148 CC*)
23149 # Sun C++ 4.2, 5.x and Centerline C++
23150 archive_cmds_need_lc_CXX=yes
23151 no_undefined_flag_CXX=' -zdefs'
23152 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23153 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23154 $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'
23156 hardcode_libdir_flag_spec_CXX='-R$libdir'
23157 hardcode_shlibpath_var_CXX=no
23158 case $host_os in
23159 solaris2.[0-5] | solaris2.[0-5].*) ;;
23161 # The compiler driver will combine and reorder linker options,
23162 # but understands `-z linker_flag'.
23163 # Supported since Solaris 2.6 (maybe 2.5.1?)
23164 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
23166 esac
23167 link_all_deplibs_CXX=yes
23169 output_verbose_link_cmd='func_echo_all'
23171 # Archives containing C++ object files must be created using
23172 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23173 # necessary to make sure instantiated templates are included
23174 # in the archive.
23175 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23177 gcx*)
23178 # Green Hills C++ Compiler
23179 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23181 # The C++ compiler must be used to create the archive.
23182 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23185 # GNU C++ compiler with Solaris linker
23186 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23187 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23188 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23189 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23190 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23191 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23193 # Commands to make compiler produce verbose output that lists
23194 # what "hidden" libraries, object files and flags are used when
23195 # linking a shared library.
23196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23197 else
23198 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23199 # platform.
23200 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23201 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23202 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23204 # Commands to make compiler produce verbose output that lists
23205 # what "hidden" libraries, object files and flags are used when
23206 # linking a shared library.
23207 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23210 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23211 case $host_os in
23212 solaris2.[0-5] | solaris2.[0-5].*) ;;
23214 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23216 esac
23219 esac
23222 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23223 no_undefined_flag_CXX='${wl}-z,text'
23224 archive_cmds_need_lc_CXX=no
23225 hardcode_shlibpath_var_CXX=no
23226 runpath_var='LD_RUN_PATH'
23228 case $cc_basename in
23229 CC*)
23230 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23231 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23234 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23235 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23237 esac
23240 sysv5* | sco3.2v5* | sco5v6*)
23241 # Note: We can NOT use -z defs as we might desire, because we do not
23242 # link with -lc, and that would cause any symbols used from libc to
23243 # always be unresolved, which means just about no library would
23244 # ever link correctly. If we're not using GNU ld we use -z text
23245 # though, which does catch some bad symbols but isn't as heavy-handed
23246 # as -z defs.
23247 no_undefined_flag_CXX='${wl}-z,text'
23248 allow_undefined_flag_CXX='${wl}-z,nodefs'
23249 archive_cmds_need_lc_CXX=no
23250 hardcode_shlibpath_var_CXX=no
23251 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
23252 hardcode_libdir_separator_CXX=':'
23253 link_all_deplibs_CXX=yes
23254 export_dynamic_flag_spec_CXX='${wl}-Bexport'
23255 runpath_var='LD_RUN_PATH'
23257 case $cc_basename in
23258 CC*)
23259 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23260 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23261 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
23262 '"$old_archive_cmds_CXX"
23263 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
23264 '"$reload_cmds_CXX"
23267 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23268 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23270 esac
23273 tandem*)
23274 case $cc_basename in
23275 NCC*)
23276 # NonStop-UX NCC 3.20
23277 # FIXME: insert proper C++ library support
23278 ld_shlibs_CXX=no
23281 # FIXME: insert proper C++ library support
23282 ld_shlibs_CXX=no
23284 esac
23287 vxworks*)
23288 # For VxWorks ports, we assume the use of a GNU linker with
23289 # standard elf conventions.
23290 ld_shlibs_CXX=yes
23294 # FIXME: insert proper C++ library support
23295 ld_shlibs_CXX=no
23297 esac
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23300 $as_echo "$ld_shlibs_CXX" >&6; }
23301 test "$ld_shlibs_CXX" = no && can_build_shared=no
23303 GCC_CXX="$GXX"
23304 LD_CXX="$LD"
23306 ## CAVEAT EMPTOR:
23307 ## There is no encapsulation within the following macros, do not change
23308 ## the running order or otherwise move them around unless you know exactly
23309 ## what you are doing...
23310 # Dependencies to place before and after the object being linked:
23311 predep_objects_CXX=
23312 postdep_objects_CXX=
23313 predeps_CXX=
23314 postdeps_CXX=
23315 compiler_lib_search_path_CXX=
23317 cat > conftest.$ac_ext <<_LT_EOF
23318 class Foo
23320 public:
23321 Foo (void) { a = 0; }
23322 private:
23323 int a;
23325 _LT_EOF
23327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23328 (eval $ac_compile) 2>&5
23329 ac_status=$?
23330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23331 test $ac_status = 0; }; then
23332 # Parse the compiler output and extract the necessary
23333 # objects, libraries and library flags.
23335 # Sentinel used to keep track of whether or not we are before
23336 # the conftest object file.
23337 pre_test_object_deps_done=no
23339 for p in `eval "$output_verbose_link_cmd"`; do
23340 case $p in
23342 -L* | -R* | -l*)
23343 # Some compilers place space between "-{L,R}" and the path.
23344 # Remove the space.
23345 if test $p = "-L" ||
23346 test $p = "-R"; then
23347 prev=$p
23348 continue
23349 else
23350 prev=
23353 if test "$pre_test_object_deps_done" = no; then
23354 case $p in
23355 -L* | -R*)
23356 # Internal compiler library paths should come after those
23357 # provided the user. The postdeps already come after the
23358 # user supplied libs so there is no need to process them.
23359 if test -z "$compiler_lib_search_path_CXX"; then
23360 compiler_lib_search_path_CXX="${prev}${p}"
23361 else
23362 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23365 # The "-l" case would never come before the object being
23366 # linked, so don't bother handling this case.
23367 esac
23368 else
23369 if test -z "$postdeps_CXX"; then
23370 postdeps_CXX="${prev}${p}"
23371 else
23372 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23377 *.$objext)
23378 # This assumes that the test object file only shows up
23379 # once in the compiler output.
23380 if test "$p" = "conftest.$objext"; then
23381 pre_test_object_deps_done=yes
23382 continue
23385 if test "$pre_test_object_deps_done" = no; then
23386 if test -z "$predep_objects_CXX"; then
23387 predep_objects_CXX="$p"
23388 else
23389 predep_objects_CXX="$predep_objects_CXX $p"
23391 else
23392 if test -z "$postdep_objects_CXX"; then
23393 postdep_objects_CXX="$p"
23394 else
23395 postdep_objects_CXX="$postdep_objects_CXX $p"
23400 *) ;; # Ignore the rest.
23402 esac
23403 done
23405 # Clean up.
23406 rm -f a.out a.exe
23407 else
23408 echo "libtool.m4: error: problem compiling CXX test program"
23411 $RM -f confest.$objext
23413 # PORTME: override above test on systems where it is broken
23414 case $host_os in
23415 interix[3-9]*)
23416 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23417 # hack all around it, let's just trust "g++" to DTRT.
23418 predep_objects_CXX=
23419 postdep_objects_CXX=
23420 postdeps_CXX=
23423 linux*)
23424 case `$CC -V 2>&1 | sed 5q` in
23425 *Sun\ C*)
23426 # Sun C++ 5.9
23428 # The more standards-conforming stlport4 library is
23429 # incompatible with the Cstd library. Avoid specifying
23430 # it if it's in CXXFLAGS. Ignore libCrun as
23431 # -library=stlport4 depends on it.
23432 case " $CXX $CXXFLAGS " in
23433 *" -library=stlport4 "*)
23434 solaris_use_stlport4=yes
23436 esac
23438 if test "$solaris_use_stlport4" != yes; then
23439 postdeps_CXX='-library=Cstd -library=Crun'
23442 esac
23445 solaris*)
23446 case $cc_basename in
23447 CC*)
23448 # The more standards-conforming stlport4 library is
23449 # incompatible with the Cstd library. Avoid specifying
23450 # it if it's in CXXFLAGS. Ignore libCrun as
23451 # -library=stlport4 depends on it.
23452 case " $CXX $CXXFLAGS " in
23453 *" -library=stlport4 "*)
23454 solaris_use_stlport4=yes
23456 esac
23458 # Adding this requires a known-good setup of shared libraries for
23459 # Sun compiler versions before 5.6, else PIC objects from an old
23460 # archive will be linked into the output, leading to subtle bugs.
23461 if test "$solaris_use_stlport4" != yes; then
23462 postdeps_CXX='-library=Cstd -library=Crun'
23465 esac
23467 esac
23470 case " $postdeps_CXX " in
23471 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
23472 esac
23473 compiler_lib_search_dirs_CXX=
23474 if test -n "${compiler_lib_search_path_CXX}"; then
23475 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23508 lt_prog_compiler_wl_CXX=
23509 lt_prog_compiler_pic_CXX=
23510 lt_prog_compiler_static_CXX=
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23513 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23515 # C++ specific cases for pic, static, wl, etc.
23516 if test "$GXX" = yes; then
23517 lt_prog_compiler_wl_CXX='-Wl,'
23518 lt_prog_compiler_static_CXX='-static'
23520 case $host_os in
23521 aix*)
23522 # All AIX code is PIC.
23523 if test "$host_cpu" = ia64; then
23524 # AIX 5 now supports IA64 processor
23525 lt_prog_compiler_static_CXX='-Bstatic'
23527 lt_prog_compiler_pic_CXX='-fPIC'
23530 amigaos*)
23531 case $host_cpu in
23532 powerpc)
23533 # see comment about AmigaOS4 .so support
23534 lt_prog_compiler_pic_CXX='-fPIC'
23536 m68k)
23537 # FIXME: we need at least 68020 code to build shared libraries, but
23538 # adding the `-m68020' flag to GCC prevents building anything better,
23539 # like `-m68040'.
23540 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23542 esac
23545 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23546 # PIC is the default for these OSes.
23548 mingw* | cygwin* | os2* | pw32* | cegcc*)
23549 # This hack is so that the source file can tell whether it is being
23550 # built for inclusion in a dll (and should export symbols for example).
23551 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23552 # (--disable-auto-import) libraries
23553 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23555 darwin* | rhapsody*)
23556 # PIC is the default on this platform
23557 # Common symbols not allowed in MH_DYLIB files
23558 lt_prog_compiler_pic_CXX='-fno-common'
23560 *djgpp*)
23561 # DJGPP does not support shared libraries at all
23562 lt_prog_compiler_pic_CXX=
23564 haiku*)
23565 # PIC is the default for Haiku.
23566 # The "-static" flag exists, but is broken.
23567 lt_prog_compiler_static_CXX=
23569 interix[3-9]*)
23570 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23571 # Instead, we relocate shared libraries at runtime.
23573 sysv4*MP*)
23574 if test -d /usr/nec; then
23575 lt_prog_compiler_pic_CXX=-Kconform_pic
23578 hpux*)
23579 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23580 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23581 # sets the default TLS model and affects inlining.
23582 case $host_cpu in
23583 hppa*64*)
23586 lt_prog_compiler_pic_CXX='-fPIC'
23588 esac
23590 *qnx* | *nto*)
23591 # QNX uses GNU C++, but need to define -shared option too, otherwise
23592 # it will coredump.
23593 lt_prog_compiler_pic_CXX='-fPIC -shared'
23596 lt_prog_compiler_pic_CXX='-fPIC'
23598 esac
23599 else
23600 case $host_os in
23601 aix[4-9]*)
23602 # All AIX code is PIC.
23603 if test "$host_cpu" = ia64; then
23604 # AIX 5 now supports IA64 processor
23605 lt_prog_compiler_static_CXX='-Bstatic'
23606 else
23607 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23610 chorus*)
23611 case $cc_basename in
23612 cxch68*)
23613 # Green Hills C++ Compiler
23614 # _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"
23616 esac
23618 dgux*)
23619 case $cc_basename in
23620 ec++*)
23621 lt_prog_compiler_pic_CXX='-KPIC'
23623 ghcx*)
23624 # Green Hills C++ Compiler
23625 lt_prog_compiler_pic_CXX='-pic'
23629 esac
23631 freebsd* | dragonfly*)
23632 # FreeBSD uses GNU C++
23634 hpux9* | hpux10* | hpux11*)
23635 case $cc_basename in
23636 CC*)
23637 lt_prog_compiler_wl_CXX='-Wl,'
23638 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23639 if test "$host_cpu" != ia64; then
23640 lt_prog_compiler_pic_CXX='+Z'
23643 aCC*)
23644 lt_prog_compiler_wl_CXX='-Wl,'
23645 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23646 case $host_cpu in
23647 hppa*64*|ia64*)
23648 # +Z the default
23651 lt_prog_compiler_pic_CXX='+Z'
23653 esac
23657 esac
23659 interix*)
23660 # This is c89, which is MS Visual C++ (no shared libs)
23661 # Anyone wants to do a port?
23663 irix5* | irix6* | nonstopux*)
23664 case $cc_basename in
23665 CC*)
23666 lt_prog_compiler_wl_CXX='-Wl,'
23667 lt_prog_compiler_static_CXX='-non_shared'
23668 # CC pic flag -KPIC is the default.
23672 esac
23674 linux* | k*bsd*-gnu | kopensolaris*-gnu)
23675 case $cc_basename in
23676 KCC*)
23677 # KAI C++ Compiler
23678 lt_prog_compiler_wl_CXX='--backend -Wl,'
23679 lt_prog_compiler_pic_CXX='-fPIC'
23681 ecpc* )
23682 # old Intel C++ for x86_64 which still supported -KPIC.
23683 lt_prog_compiler_wl_CXX='-Wl,'
23684 lt_prog_compiler_pic_CXX='-KPIC'
23685 lt_prog_compiler_static_CXX='-static'
23687 icpc* )
23688 # Intel C++, used to be incompatible with GCC.
23689 # ICC 10 doesn't accept -KPIC any more.
23690 lt_prog_compiler_wl_CXX='-Wl,'
23691 lt_prog_compiler_pic_CXX='-fPIC'
23692 lt_prog_compiler_static_CXX='-static'
23694 pgCC* | pgcpp*)
23695 # Portland Group C++ compiler
23696 lt_prog_compiler_wl_CXX='-Wl,'
23697 lt_prog_compiler_pic_CXX='-fpic'
23698 lt_prog_compiler_static_CXX='-Bstatic'
23700 cxx*)
23701 # Compaq C++
23702 # Make sure the PIC flag is empty. It appears that all Alpha
23703 # Linux and Compaq Tru64 Unix objects are PIC.
23704 lt_prog_compiler_pic_CXX=
23705 lt_prog_compiler_static_CXX='-non_shared'
23707 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23708 # IBM XL 8.0, 9.0 on PPC and BlueGene
23709 lt_prog_compiler_wl_CXX='-Wl,'
23710 lt_prog_compiler_pic_CXX='-qpic'
23711 lt_prog_compiler_static_CXX='-qstaticlink'
23714 case `$CC -V 2>&1 | sed 5q` in
23715 *Sun\ C*)
23716 # Sun C++ 5.9
23717 lt_prog_compiler_pic_CXX='-KPIC'
23718 lt_prog_compiler_static_CXX='-Bstatic'
23719 lt_prog_compiler_wl_CXX='-Qoption ld '
23721 esac
23723 esac
23725 lynxos*)
23727 m88k*)
23729 mvs*)
23730 case $cc_basename in
23731 cxx*)
23732 lt_prog_compiler_pic_CXX='-W c,exportall'
23736 esac
23738 netbsd*)
23740 *qnx* | *nto*)
23741 # QNX uses GNU C++, but need to define -shared option too, otherwise
23742 # it will coredump.
23743 lt_prog_compiler_pic_CXX='-fPIC -shared'
23745 osf3* | osf4* | osf5*)
23746 case $cc_basename in
23747 KCC*)
23748 lt_prog_compiler_wl_CXX='--backend -Wl,'
23750 RCC*)
23751 # Rational C++ 2.4.1
23752 lt_prog_compiler_pic_CXX='-pic'
23754 cxx*)
23755 # Digital/Compaq C++
23756 lt_prog_compiler_wl_CXX='-Wl,'
23757 # Make sure the PIC flag is empty. It appears that all Alpha
23758 # Linux and Compaq Tru64 Unix objects are PIC.
23759 lt_prog_compiler_pic_CXX=
23760 lt_prog_compiler_static_CXX='-non_shared'
23764 esac
23766 psos*)
23768 solaris*)
23769 case $cc_basename in
23770 CC*)
23771 # Sun C++ 4.2, 5.x and Centerline C++
23772 lt_prog_compiler_pic_CXX='-KPIC'
23773 lt_prog_compiler_static_CXX='-Bstatic'
23774 lt_prog_compiler_wl_CXX='-Qoption ld '
23776 gcx*)
23777 # Green Hills C++ Compiler
23778 lt_prog_compiler_pic_CXX='-PIC'
23782 esac
23784 sunos4*)
23785 case $cc_basename in
23786 CC*)
23787 # Sun C++ 4.x
23788 lt_prog_compiler_pic_CXX='-pic'
23789 lt_prog_compiler_static_CXX='-Bstatic'
23791 lcc*)
23792 # Lucid
23793 lt_prog_compiler_pic_CXX='-pic'
23797 esac
23799 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23800 case $cc_basename in
23801 CC*)
23802 lt_prog_compiler_wl_CXX='-Wl,'
23803 lt_prog_compiler_pic_CXX='-KPIC'
23804 lt_prog_compiler_static_CXX='-Bstatic'
23806 esac
23808 tandem*)
23809 case $cc_basename in
23810 NCC*)
23811 # NonStop-UX NCC 3.20
23812 lt_prog_compiler_pic_CXX='-KPIC'
23816 esac
23818 vxworks*)
23821 lt_prog_compiler_can_build_shared_CXX=no
23823 esac
23826 case $host_os in
23827 # For platforms which do not support PIC, -DPIC is meaningless:
23828 *djgpp*)
23829 lt_prog_compiler_pic_CXX=
23832 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23834 esac
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23836 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23841 # Check to make sure the PIC flag actually works.
23843 if test -n "$lt_prog_compiler_pic_CXX"; then
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23845 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23846 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
23847 $as_echo_n "(cached) " >&6
23848 else
23849 lt_cv_prog_compiler_pic_works_CXX=no
23850 ac_outfile=conftest.$ac_objext
23851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23852 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23853 # Insert the option either (1) after the last *FLAGS variable, or
23854 # (2) before a word containing "conftest.", or (3) at the end.
23855 # Note that $ac_compile itself does not contain backslashes and begins
23856 # with a dollar sign (not a hyphen), so the echo should work correctly.
23857 # The option is referenced via a variable to avoid confusing sed.
23858 lt_compile=`echo "$ac_compile" | $SED \
23859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23861 -e 's:$: $lt_compiler_flag:'`
23862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23863 (eval "$lt_compile" 2>conftest.err)
23864 ac_status=$?
23865 cat conftest.err >&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 if (exit $ac_status) && test -s "$ac_outfile"; then
23868 # The compiler can only warn and ignore the option if not recognized
23869 # So say no if there are warnings other than the usual output.
23870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23872 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23873 lt_cv_prog_compiler_pic_works_CXX=yes
23876 $RM conftest*
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23880 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23882 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23883 case $lt_prog_compiler_pic_CXX in
23884 "" | " "*) ;;
23885 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23886 esac
23887 else
23888 lt_prog_compiler_pic_CXX=
23889 lt_prog_compiler_can_build_shared_CXX=no
23897 # Check to make sure the static flag actually works.
23899 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23901 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23902 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23903 $as_echo_n "(cached) " >&6
23904 else
23905 lt_cv_prog_compiler_static_works_CXX=no
23906 save_LDFLAGS="$LDFLAGS"
23907 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23908 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23909 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23910 # The linker can only warn and ignore the option if not recognized
23911 # So say no if there are warnings
23912 if test -s conftest.err; then
23913 # Append any errors to the config.log.
23914 cat conftest.err 1>&5
23915 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23917 if diff conftest.exp conftest.er2 >/dev/null; then
23918 lt_cv_prog_compiler_static_works_CXX=yes
23920 else
23921 lt_cv_prog_compiler_static_works_CXX=yes
23924 $RM -r conftest*
23925 LDFLAGS="$save_LDFLAGS"
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23929 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23931 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23933 else
23934 lt_prog_compiler_static_CXX=
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23942 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23943 $as_echo_n "(cached) " >&6
23944 else
23945 lt_cv_prog_compiler_c_o_CXX=no
23946 $RM -r conftest 2>/dev/null
23947 mkdir conftest
23948 cd conftest
23949 mkdir out
23950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23952 lt_compiler_flag="-o out/conftest2.$ac_objext"
23953 # Insert the option either (1) after the last *FLAGS variable, or
23954 # (2) before a word containing "conftest.", or (3) at the end.
23955 # Note that $ac_compile itself does not contain backslashes and begins
23956 # with a dollar sign (not a hyphen), so the echo should work correctly.
23957 lt_compile=`echo "$ac_compile" | $SED \
23958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23960 -e 's:$: $lt_compiler_flag:'`
23961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23962 (eval "$lt_compile" 2>out/conftest.err)
23963 ac_status=$?
23964 cat out/conftest.err >&5
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23967 then
23968 # The compiler can only warn and ignore the option if not recognized
23969 # So say no if there are warnings
23970 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23973 lt_cv_prog_compiler_c_o_CXX=yes
23976 chmod u+w . 2>&5
23977 $RM conftest*
23978 # SGI C++ compiler will create directory out/ii_files/ for
23979 # template instantiation
23980 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23981 $RM out/* && rmdir out
23982 cd ..
23983 $RM -r conftest
23984 $RM conftest*
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23988 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23994 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23995 $as_echo_n "(cached) " >&6
23996 else
23997 lt_cv_prog_compiler_c_o_CXX=no
23998 $RM -r conftest 2>/dev/null
23999 mkdir conftest
24000 cd conftest
24001 mkdir out
24002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24004 lt_compiler_flag="-o out/conftest2.$ac_objext"
24005 # Insert the option either (1) after the last *FLAGS variable, or
24006 # (2) before a word containing "conftest.", or (3) at the end.
24007 # Note that $ac_compile itself does not contain backslashes and begins
24008 # with a dollar sign (not a hyphen), so the echo should work correctly.
24009 lt_compile=`echo "$ac_compile" | $SED \
24010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24012 -e 's:$: $lt_compiler_flag:'`
24013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24014 (eval "$lt_compile" 2>out/conftest.err)
24015 ac_status=$?
24016 cat out/conftest.err >&5
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24019 then
24020 # The compiler can only warn and ignore the option if not recognized
24021 # So say no if there are warnings
24022 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
24023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24025 lt_cv_prog_compiler_c_o_CXX=yes
24028 chmod u+w . 2>&5
24029 $RM conftest*
24030 # SGI C++ compiler will create directory out/ii_files/ for
24031 # template instantiation
24032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24033 $RM out/* && rmdir out
24034 cd ..
24035 $RM -r conftest
24036 $RM conftest*
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24040 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24045 hard_links="nottested"
24046 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
24047 # do not overwrite the value of need_locks provided by the user
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
24049 $as_echo_n "checking if we can lock with hard links... " >&6; }
24050 hard_links=yes
24051 $RM conftest*
24052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24053 touch conftest.a
24054 ln conftest.a conftest.b 2>&5 || hard_links=no
24055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
24057 $as_echo "$hard_links" >&6; }
24058 if test "$hard_links" = no; then
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24060 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24061 need_locks=warn
24063 else
24064 need_locks=no
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24070 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24072 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24073 case $host_os in
24074 aix[4-9]*)
24075 # If we're using GNU nm, then we don't want the "-C" option.
24076 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24077 # Also, AIX nm treats weak defined symbols like other global defined
24078 # symbols, whereas GNU nm marks them as "W".
24079 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
24080 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'
24081 else
24082 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'
24085 pw32*)
24086 export_symbols_cmds_CXX="$ltdll_cmds"
24088 cygwin* | mingw* | cegcc*)
24089 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'
24092 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24094 esac
24095 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
24098 $as_echo "$ld_shlibs_CXX" >&6; }
24099 test "$ld_shlibs_CXX" = no && can_build_shared=no
24101 with_gnu_ld_CXX=$with_gnu_ld
24109 # Do we need to explicitly link libc?
24111 case "x$archive_cmds_need_lc_CXX" in
24112 x|xyes)
24113 # Assume -lc should be added
24114 archive_cmds_need_lc_CXX=yes
24116 if test "$enable_shared" = yes && test "$GCC" = yes; then
24117 case $archive_cmds_CXX in
24118 *'~'*)
24119 # FIXME: we may have to deal with multi-command sequences.
24121 '$CC '*)
24122 # Test whether the compiler implicitly links with -lc since on some
24123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24124 # to ld, don't add -lc before -lgcc.
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24126 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24127 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
24128 $as_echo_n "(cached) " >&6
24129 else
24130 $RM conftest*
24131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24134 (eval $ac_compile) 2>&5
24135 ac_status=$?
24136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24137 test $ac_status = 0; } 2>conftest.err; then
24138 soname=conftest
24139 lib=conftest
24140 libobjs=conftest.$ac_objext
24141 deplibs=
24142 wl=$lt_prog_compiler_wl_CXX
24143 pic_flag=$lt_prog_compiler_pic_CXX
24144 compiler_flags=-v
24145 linker_flags=-v
24146 verstring=
24147 output_objdir=.
24148 libname=conftest
24149 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
24150 allow_undefined_flag_CXX=
24151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24152 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
24153 ac_status=$?
24154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155 test $ac_status = 0; }
24156 then
24157 lt_cv_archive_cmds_need_lc_CXX=no
24158 else
24159 lt_cv_archive_cmds_need_lc_CXX=yes
24161 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
24162 else
24163 cat conftest.err 1>&5
24165 $RM conftest*
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24169 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24170 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
24172 esac
24175 esac
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24241 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24243 library_names_spec=
24244 libname_spec='lib$name'
24245 soname_spec=
24246 shrext_cmds=".so"
24247 postinstall_cmds=
24248 postuninstall_cmds=
24249 finish_cmds=
24250 finish_eval=
24251 shlibpath_var=
24252 shlibpath_overrides_runpath=unknown
24253 version_type=none
24254 dynamic_linker="$host_os ld.so"
24255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24256 need_lib_prefix=unknown
24257 hardcode_into_libs=no
24259 # when you set need_version to no, make sure it does not cause -set_version
24260 # flags to be left without arguments
24261 need_version=unknown
24263 case $host_os in
24264 aix3*)
24265 version_type=linux
24266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24267 shlibpath_var=LIBPATH
24269 # AIX 3 has no versioning support, so we append a major version to the name.
24270 soname_spec='${libname}${release}${shared_ext}$major'
24273 aix[4-9]*)
24274 version_type=linux
24275 need_lib_prefix=no
24276 need_version=no
24277 hardcode_into_libs=yes
24278 if test "$host_cpu" = ia64; then
24279 # AIX 5 supports IA64
24280 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24281 shlibpath_var=LD_LIBRARY_PATH
24282 else
24283 # With GCC up to 2.95.x, collect2 would create an import file
24284 # for dependence libraries. The import file would start with
24285 # the line `#! .'. This would cause the generated library to
24286 # depend on `.', always an invalid library. This was fixed in
24287 # development snapshots of GCC prior to 3.0.
24288 case $host_os in
24289 aix4 | aix4.[01] | aix4.[01].*)
24290 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24291 echo ' yes '
24292 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
24294 else
24295 can_build_shared=no
24298 esac
24299 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24300 # soname into executable. Probably we can add versioning support to
24301 # collect2, so additional links can be useful in future.
24302 if test "$aix_use_runtimelinking" = yes; then
24303 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24304 # instead of lib<name>.a to let people know that these are not
24305 # typical AIX shared libraries.
24306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24307 else
24308 # We preserve .a as extension for shared libraries through AIX4.2
24309 # and later when we are not doing run time linking.
24310 library_names_spec='${libname}${release}.a $libname.a'
24311 soname_spec='${libname}${release}${shared_ext}$major'
24313 shlibpath_var=LIBPATH
24317 amigaos*)
24318 case $host_cpu in
24319 powerpc)
24320 # Since July 2007 AmigaOS4 officially supports .so libraries.
24321 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24324 m68k)
24325 library_names_spec='$libname.ixlibrary $libname.a'
24326 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24327 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'
24329 esac
24332 beos*)
24333 library_names_spec='${libname}${shared_ext}'
24334 dynamic_linker="$host_os ld.so"
24335 shlibpath_var=LIBRARY_PATH
24338 bsdi[45]*)
24339 version_type=linux
24340 need_version=no
24341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24342 soname_spec='${libname}${release}${shared_ext}$major'
24343 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24344 shlibpath_var=LD_LIBRARY_PATH
24345 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24346 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24347 # the default ld.so.conf also contains /usr/contrib/lib and
24348 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24349 # libtool to hard-code these into programs
24352 cygwin* | mingw* | pw32* | cegcc*)
24353 version_type=windows
24354 shrext_cmds=".dll"
24355 need_version=no
24356 need_lib_prefix=no
24358 case $GCC,$host_os in
24359 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
24360 library_names_spec='$libname.dll.a'
24361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24362 postinstall_cmds='base_file=`basename \${file}`~
24363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24364 dldir=$destdir/`dirname \$dlpath`~
24365 test -d \$dldir || mkdir -p \$dldir~
24366 $install_prog $dir/$dlname \$dldir/$dlname~
24367 chmod a+x \$dldir/$dlname~
24368 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24369 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24372 dlpath=$dir/\$dldll~
24373 $RM \$dlpath'
24374 shlibpath_overrides_runpath=yes
24376 case $host_os in
24377 cygwin*)
24378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24382 mingw* | cegcc*)
24383 # MinGW DLLs use traditional 'lib' prefix
24384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24386 pw32*)
24387 # pw32 DLLs use 'pw' prefix rather than 'lib'
24388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24390 esac
24394 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24396 esac
24397 dynamic_linker='Win32 ld.exe'
24398 # FIXME: first we should search . and the directory the executable is in
24399 shlibpath_var=PATH
24402 darwin* | rhapsody*)
24403 dynamic_linker="$host_os dyld"
24404 version_type=darwin
24405 need_lib_prefix=no
24406 need_version=no
24407 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24408 soname_spec='${libname}${release}${major}$shared_ext'
24409 shlibpath_overrides_runpath=yes
24410 shlibpath_var=DYLD_LIBRARY_PATH
24411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24416 dgux*)
24417 version_type=linux
24418 need_lib_prefix=no
24419 need_version=no
24420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24421 soname_spec='${libname}${release}${shared_ext}$major'
24422 shlibpath_var=LD_LIBRARY_PATH
24425 freebsd* | dragonfly*)
24426 # DragonFly does not have aout. When/if they implement a new
24427 # versioning mechanism, adjust this.
24428 if test -x /usr/bin/objformat; then
24429 objformat=`/usr/bin/objformat`
24430 else
24431 case $host_os in
24432 freebsd[23].*) objformat=aout ;;
24433 *) objformat=elf ;;
24434 esac
24436 version_type=freebsd-$objformat
24437 case $version_type in
24438 freebsd-elf*)
24439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24440 need_version=no
24441 need_lib_prefix=no
24443 freebsd-*)
24444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24445 need_version=yes
24447 esac
24448 shlibpath_var=LD_LIBRARY_PATH
24449 case $host_os in
24450 freebsd2.*)
24451 shlibpath_overrides_runpath=yes
24453 freebsd3.[01]* | freebsdelf3.[01]*)
24454 shlibpath_overrides_runpath=yes
24455 hardcode_into_libs=yes
24457 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24458 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24459 shlibpath_overrides_runpath=no
24460 hardcode_into_libs=yes
24462 *) # from 4.6 on, and DragonFly
24463 shlibpath_overrides_runpath=yes
24464 hardcode_into_libs=yes
24466 esac
24469 haiku*)
24470 version_type=linux
24471 need_lib_prefix=no
24472 need_version=no
24473 dynamic_linker="$host_os runtime_loader"
24474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24475 soname_spec='${libname}${release}${shared_ext}$major'
24476 shlibpath_var=LIBRARY_PATH
24477 shlibpath_overrides_runpath=yes
24478 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24479 hardcode_into_libs=yes
24482 hpux9* | hpux10* | hpux11*)
24483 # Give a soname corresponding to the major version so that dld.sl refuses to
24484 # link against other versions.
24485 version_type=sunos
24486 need_lib_prefix=no
24487 need_version=no
24488 case $host_cpu in
24489 ia64*)
24490 shrext_cmds='.so'
24491 hardcode_into_libs=yes
24492 dynamic_linker="$host_os dld.so"
24493 shlibpath_var=LD_LIBRARY_PATH
24494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24496 soname_spec='${libname}${release}${shared_ext}$major'
24497 if test "X$HPUX_IA64_MODE" = X32; then
24498 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24499 else
24500 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24504 hppa*64*)
24505 shrext_cmds='.sl'
24506 hardcode_into_libs=yes
24507 dynamic_linker="$host_os dld.sl"
24508 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24511 soname_spec='${libname}${release}${shared_ext}$major'
24512 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24516 shrext_cmds='.sl'
24517 dynamic_linker="$host_os dld.sl"
24518 shlibpath_var=SHLIB_PATH
24519 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24521 soname_spec='${libname}${release}${shared_ext}$major'
24523 esac
24524 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24525 postinstall_cmds='chmod 555 $lib'
24526 # or fails outright, so override atomically:
24527 install_override_mode=555
24530 interix[3-9]*)
24531 version_type=linux
24532 need_lib_prefix=no
24533 need_version=no
24534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24535 soname_spec='${libname}${release}${shared_ext}$major'
24536 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24537 shlibpath_var=LD_LIBRARY_PATH
24538 shlibpath_overrides_runpath=no
24539 hardcode_into_libs=yes
24542 irix5* | irix6* | nonstopux*)
24543 case $host_os in
24544 nonstopux*) version_type=nonstopux ;;
24546 if test "$lt_cv_prog_gnu_ld" = yes; then
24547 version_type=linux
24548 else
24549 version_type=irix
24550 fi ;;
24551 esac
24552 need_lib_prefix=no
24553 need_version=no
24554 soname_spec='${libname}${release}${shared_ext}$major'
24555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24556 case $host_os in
24557 irix5* | nonstopux*)
24558 libsuff= shlibsuff=
24561 case $LD in # libtool.m4 will add one of these switches to LD
24562 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24563 libsuff= shlibsuff= libmagic=32-bit;;
24564 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24565 libsuff=32 shlibsuff=N32 libmagic=N32;;
24566 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24567 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24568 *) libsuff= shlibsuff= libmagic=never-match;;
24569 esac
24571 esac
24572 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24573 shlibpath_overrides_runpath=no
24574 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24575 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24576 hardcode_into_libs=yes
24579 # No shared lib support for Linux oldld, aout, or coff.
24580 linux*oldld* | linux*aout* | linux*coff*)
24581 dynamic_linker=no
24584 # This must be Linux ELF.
24586 # uclinux* changes (here and below) have been submitted to the libtool
24587 # project, but have not yet been accepted: they are GCC-local changes
24588 # for the time being. (See
24589 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24590 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
24591 version_type=linux
24592 need_lib_prefix=no
24593 need_version=no
24594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24595 soname_spec='${libname}${release}${shared_ext}$major'
24596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24597 shlibpath_var=LD_LIBRARY_PATH
24598 shlibpath_overrides_runpath=no
24600 # Some binutils ld are patched to set DT_RUNPATH
24601 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24602 $as_echo_n "(cached) " >&6
24603 else
24604 lt_cv_shlibpath_overrides_runpath=no
24605 save_LDFLAGS=$LDFLAGS
24606 save_libdir=$libdir
24607 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24608 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24610 /* end confdefs.h. */
24613 main ()
24617 return 0;
24619 _ACEOF
24620 if ac_fn_cxx_try_link "$LINENO"; then :
24621 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24622 lt_cv_shlibpath_overrides_runpath=yes
24625 rm -f core conftest.err conftest.$ac_objext \
24626 conftest$ac_exeext conftest.$ac_ext
24627 LDFLAGS=$save_LDFLAGS
24628 libdir=$save_libdir
24632 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24634 # This implies no fast_install, which is unacceptable.
24635 # Some rework will be needed to allow for fast_install
24636 # before this can be enabled.
24637 hardcode_into_libs=yes
24639 # Append ld.so.conf contents to the search path
24640 if test -f /etc/ld.so.conf; then
24641 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' ' '`
24642 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24645 # We used to test for /lib/ld.so.1 and disable shared libraries on
24646 # powerpc, because MkLinux only supported shared libraries with the
24647 # GNU dynamic linker. Since this was broken with cross compilers,
24648 # most powerpc-linux boxes support dynamic linking these days and
24649 # people can always --disable-shared, the test was removed, and we
24650 # assume the GNU/Linux dynamic linker is in use.
24651 dynamic_linker='GNU/Linux ld.so'
24654 netbsd*)
24655 version_type=sunos
24656 need_lib_prefix=no
24657 need_version=no
24658 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24661 dynamic_linker='NetBSD (a.out) ld.so'
24662 else
24663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24664 soname_spec='${libname}${release}${shared_ext}$major'
24665 dynamic_linker='NetBSD ld.elf_so'
24667 shlibpath_var=LD_LIBRARY_PATH
24668 shlibpath_overrides_runpath=yes
24669 hardcode_into_libs=yes
24672 newsos6)
24673 version_type=linux
24674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24675 shlibpath_var=LD_LIBRARY_PATH
24676 shlibpath_overrides_runpath=yes
24679 *nto* | *qnx*)
24680 version_type=qnx
24681 need_lib_prefix=no
24682 need_version=no
24683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24684 soname_spec='${libname}${release}${shared_ext}$major'
24685 shlibpath_var=LD_LIBRARY_PATH
24686 shlibpath_overrides_runpath=no
24687 hardcode_into_libs=yes
24688 dynamic_linker='ldqnx.so'
24691 openbsd*)
24692 version_type=sunos
24693 sys_lib_dlsearch_path_spec="/usr/lib"
24694 need_lib_prefix=no
24695 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24696 case $host_os in
24697 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24698 *) need_version=no ;;
24699 esac
24700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24702 shlibpath_var=LD_LIBRARY_PATH
24703 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24704 case $host_os in
24705 openbsd2.[89] | openbsd2.[89].*)
24706 shlibpath_overrides_runpath=no
24709 shlibpath_overrides_runpath=yes
24711 esac
24712 else
24713 shlibpath_overrides_runpath=yes
24717 os2*)
24718 libname_spec='$name'
24719 shrext_cmds=".dll"
24720 need_lib_prefix=no
24721 library_names_spec='$libname${shared_ext} $libname.a'
24722 dynamic_linker='OS/2 ld.exe'
24723 shlibpath_var=LIBPATH
24726 osf3* | osf4* | osf5*)
24727 version_type=osf
24728 need_lib_prefix=no
24729 need_version=no
24730 soname_spec='${libname}${release}${shared_ext}$major'
24731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24732 shlibpath_var=LD_LIBRARY_PATH
24733 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24734 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24737 rdos*)
24738 dynamic_linker=no
24741 solaris*)
24742 version_type=linux
24743 need_lib_prefix=no
24744 need_version=no
24745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24746 soname_spec='${libname}${release}${shared_ext}$major'
24747 shlibpath_var=LD_LIBRARY_PATH
24748 shlibpath_overrides_runpath=yes
24749 hardcode_into_libs=yes
24750 # ldd complains unless libraries are executable
24751 postinstall_cmds='chmod +x $lib'
24754 sunos4*)
24755 version_type=sunos
24756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24757 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24758 shlibpath_var=LD_LIBRARY_PATH
24759 shlibpath_overrides_runpath=yes
24760 if test "$with_gnu_ld" = yes; then
24761 need_lib_prefix=no
24763 need_version=yes
24766 sysv4 | sysv4.3*)
24767 version_type=linux
24768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24769 soname_spec='${libname}${release}${shared_ext}$major'
24770 shlibpath_var=LD_LIBRARY_PATH
24771 case $host_vendor in
24772 sni)
24773 shlibpath_overrides_runpath=no
24774 need_lib_prefix=no
24775 runpath_var=LD_RUN_PATH
24777 siemens)
24778 need_lib_prefix=no
24780 motorola)
24781 need_lib_prefix=no
24782 need_version=no
24783 shlibpath_overrides_runpath=no
24784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24786 esac
24789 sysv4*MP*)
24790 if test -d /usr/nec ;then
24791 version_type=linux
24792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24793 soname_spec='$libname${shared_ext}.$major'
24794 shlibpath_var=LD_LIBRARY_PATH
24798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24799 version_type=freebsd-elf
24800 need_lib_prefix=no
24801 need_version=no
24802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24803 soname_spec='${libname}${release}${shared_ext}$major'
24804 shlibpath_var=LD_LIBRARY_PATH
24805 shlibpath_overrides_runpath=yes
24806 hardcode_into_libs=yes
24807 if test "$with_gnu_ld" = yes; then
24808 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24809 else
24810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24811 case $host_os in
24812 sco3.2v5*)
24813 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24815 esac
24817 sys_lib_dlsearch_path_spec='/usr/lib'
24820 tpf*)
24821 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24822 version_type=linux
24823 need_lib_prefix=no
24824 need_version=no
24825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24826 shlibpath_var=LD_LIBRARY_PATH
24827 shlibpath_overrides_runpath=no
24828 hardcode_into_libs=yes
24831 uts4*)
24832 version_type=linux
24833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24834 soname_spec='${libname}${release}${shared_ext}$major'
24835 shlibpath_var=LD_LIBRARY_PATH
24838 # Shared libraries for VwWorks, >= 7 only at this stage
24839 # and (fpic) still incompatible with "large" code models
24840 # in a few configurations. Only for RTP mode in any case,
24841 # and upon explicit request at configure time.
24842 vxworks7*)
24843 dynamic_linker=no
24844 case ${with_multisubdir}-${enable_shared} in
24845 *large*)
24847 *mrtp*-yes)
24848 version_type=linux
24849 need_lib_prefix=no
24850 need_version=no
24851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24852 soname_spec='${libname}${release}${shared_ext}$major'
24853 dynamic_linker="$host_os module_loader"
24855 esac
24858 dynamic_linker=no
24860 esac
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24862 $as_echo "$dynamic_linker" >&6; }
24863 test "$dynamic_linker" = no && can_build_shared=no
24865 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24866 if test "$GCC" = yes; then
24867 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24870 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24871 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24873 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24874 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24915 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24916 hardcode_action_CXX=
24917 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24918 test -n "$runpath_var_CXX" ||
24919 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24921 # We can hardcode non-existent directories.
24922 if test "$hardcode_direct_CXX" != no &&
24923 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24924 # have to relink, otherwise we might link with an installed library
24925 # when we should be linking with a yet-to-be-installed one
24926 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24927 test "$hardcode_minus_L_CXX" != no; then
24928 # Linking always hardcodes the temporary library directory.
24929 hardcode_action_CXX=relink
24930 else
24931 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24932 hardcode_action_CXX=immediate
24934 else
24935 # We cannot hardcode anything, or else we can only hardcode existing
24936 # directories.
24937 hardcode_action_CXX=unsupported
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24940 $as_echo "$hardcode_action_CXX" >&6; }
24942 if test "$hardcode_action_CXX" = relink ||
24943 test "$inherit_rpath_CXX" = yes; then
24944 # Fast installation is not supported
24945 enable_fast_install=no
24946 elif test "$shlibpath_overrides_runpath" = yes ||
24947 test "$enable_shared" = no; then
24948 # Fast installation is not necessary
24949 enable_fast_install=needless
24958 fi # test -n "$compiler"
24960 CC=$lt_save_CC
24961 LDCXX=$LD
24962 LD=$lt_save_LD
24963 GCC=$lt_save_GCC
24964 with_gnu_ld=$lt_save_with_gnu_ld
24965 lt_cv_path_LDCXX=$lt_cv_path_LD
24966 lt_cv_path_LD=$lt_save_path_LD
24967 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24968 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24969 fi # test "$_lt_caught_CXX_error" != yes
24971 ac_ext=cpp
24972 ac_cpp='$CXXCPP $CPPFLAGS'
24973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24992 # Only expand once:
24998 if test x$enable_darwin_at_rpath = xyes; then
24999 ENABLE_DARWIN_AT_RPATH_TRUE=
25000 ENABLE_DARWIN_AT_RPATH_FALSE='#'
25001 else
25002 ENABLE_DARWIN_AT_RPATH_TRUE='#'
25003 ENABLE_DARWIN_AT_RPATH_FALSE=
25006 DARWIN_DO_EXTRA_RPATH=0
25008 # Check whether --with-darwin-extra-rpath was given.
25009 if test "${with_darwin_extra_rpath+set}" = set; then :
25010 withval=$with_darwin_extra_rpath; if test x"$withval" != x; then
25011 DARWIN_ADD_RPATH="$withval"
25012 DARWIN_DO_EXTRA_RPATH=1
25017 cat >>confdefs.h <<_ACEOF
25018 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
25019 _ACEOF
25022 cat >>confdefs.h <<_ACEOF
25023 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
25024 _ACEOF
25027 # Identify the assembler which will work hand-in-glove with the newly
25028 # built GCC, so that we can examine its features. This is the assembler
25029 # which will be driven by the driver program.
25031 # If build != host, and we aren't building gas in-tree, we identify a
25032 # build->target assembler and hope that it will have the same features
25033 # as the host->target assembler we'll be using.
25034 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
25036 if ${gcc_cv_as+:} false; then :
25038 else
25040 if test -x "$DEFAULT_ASSEMBLER"; then
25041 gcc_cv_as="$DEFAULT_ASSEMBLER"
25042 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
25043 && test -f ../gas/Makefile \
25044 && test x$build = x$host; then
25045 gcc_cv_as=../gas/as-new$build_exeext
25046 elif test -x as$build_exeext; then
25047 # Build using assembler in the current directory.
25048 gcc_cv_as=./as$build_exeext
25049 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
25050 gcc_cv_as="$AS_FOR_TARGET"
25051 else
25052 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
25053 set dummy $AS_FOR_TARGET; ac_word=$2
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25055 $as_echo_n "checking for $ac_word... " >&6; }
25056 if ${ac_cv_path_gcc_cv_as+:} false; then :
25057 $as_echo_n "(cached) " >&6
25058 else
25059 case $gcc_cv_as in
25060 [\\/]* | ?:[\\/]*)
25061 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
25064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25065 for as_dir in $PATH
25067 IFS=$as_save_IFS
25068 test -z "$as_dir" && as_dir=.
25069 for ac_exec_ext in '' $ac_executable_extensions; do
25070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25071 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
25072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25073 break 2
25075 done
25076 done
25077 IFS=$as_save_IFS
25080 esac
25082 gcc_cv_as=$ac_cv_path_gcc_cv_as
25083 if test -n "$gcc_cv_as"; then
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
25085 $as_echo "$gcc_cv_as" >&6; }
25086 else
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25088 $as_echo "no" >&6; }
25095 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
25097 case "$ORIGINAL_AS_FOR_TARGET" in
25098 ./as | ./as$build_exeext) ;;
25099 *) ac_config_files="$ac_config_files as:exec-tool.in"
25101 esac
25103 default_ld=
25104 # Check whether --enable-ld was given.
25105 if test "${enable_ld+set}" = set; then :
25106 enableval=$enable_ld; case "${enableval}" in
25108 default_ld=ld.gold
25110 esac
25114 install_gold_as_default=no
25115 # Check whether --enable-gold was given.
25116 if test "${enable_gold+set}" = set; then :
25117 enableval=$enable_gold; case "${enableval}" in
25118 default)
25119 install_gold_as_default=yes
25121 yes)
25122 if test x${default_ld} != x; then
25123 install_gold_as_default=yes
25129 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
25131 esac
25135 # Identify the linker which will work hand-in-glove with the newly
25136 # built GCC, so that we can examine its features. This is the linker
25137 # which will be driven by the driver program.
25139 # If build != host, and we aren't building gas in-tree, we identify a
25140 # build->target linker and hope that it will have the same features
25141 # as the host->target linker we'll be using.
25142 gcc_cv_gld_major_version=
25143 gcc_cv_gld_minor_version=
25144 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
25145 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
25146 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
25148 if ${gcc_cv_ld+:} false; then :
25150 else
25152 if test -x "$DEFAULT_LINKER"; then
25153 gcc_cv_ld="$DEFAULT_LINKER"
25154 elif test $install_gold_as_default = yes \
25155 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
25156 && test -f ../gold/Makefile \
25157 && test x$build = x$host; then
25158 gcc_cv_ld=../gold/ld-new$build_exeext
25159 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
25160 && test -f ../ld/Makefile \
25161 && test x$build = x$host; then
25162 gcc_cv_ld=../ld/ld-new$build_exeext
25163 elif test -x collect-ld$build_exeext; then
25164 # Build using linker in the current directory.
25165 gcc_cv_ld=./collect-ld$build_exeext
25166 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
25167 gcc_cv_ld="$LD_FOR_TARGET"
25168 else
25169 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25170 set dummy $LD_FOR_TARGET; ac_word=$2
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25172 $as_echo_n "checking for $ac_word... " >&6; }
25173 if ${ac_cv_path_gcc_cv_ld+:} false; then :
25174 $as_echo_n "(cached) " >&6
25175 else
25176 case $gcc_cv_ld in
25177 [\\/]* | ?:[\\/]*)
25178 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
25181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25182 for as_dir in $PATH
25184 IFS=$as_save_IFS
25185 test -z "$as_dir" && as_dir=.
25186 for ac_exec_ext in '' $ac_executable_extensions; do
25187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25188 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
25189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25190 break 2
25192 done
25193 done
25194 IFS=$as_save_IFS
25197 esac
25199 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
25200 if test -n "$gcc_cv_ld"; then
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25202 $as_echo "$gcc_cv_ld" >&6; }
25203 else
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25205 $as_echo "no" >&6; }
25212 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
25213 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25214 # if the PLUGIN_LD is set ld-new, just have it as ld
25215 # as that is the installed named.
25216 if test x$PLUGIN_LD_SUFFIX = xld-new \
25217 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
25218 PLUGIN_LD_SUFFIX=ld
25221 # Check whether --with-plugin-ld was given.
25222 if test "${with_plugin_ld+set}" = set; then :
25223 withval=$with_plugin_ld; if test x"$withval" != x; then
25224 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
25225 PLUGIN_LD_SUFFIX="$withval"
25231 cat >>confdefs.h <<_ACEOF
25232 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25233 _ACEOF
25236 # Check to see if we are using gold instead of ld
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25238 $as_echo_n "checking whether we are using gold... " >&6; }
25239 ld_is_gold=no
25240 if test x$gcc_cv_ld != x; then
25241 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25242 | grep "GNU gold" > /dev/null; then
25243 ld_is_gold=yes
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25247 $as_echo "$ld_is_gold" >&6; }
25249 # Check to see if we are using mold instead of ld
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25251 $as_echo_n "checking whether we are using mold... " >&6; }
25252 ld_is_mold=no
25253 if test x$gcc_cv_ld != x; then
25254 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25255 | grep "mold" > /dev/null; then
25256 ld_is_mold=yes
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25260 $as_echo "$ld_is_mold" >&6; }
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25264 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25265 # Check to see if default ld is not gold, but gold is
25266 # available and has support for split stack. If gcc was configured
25267 # with gold then no checking is done.
25269 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
25271 # For platforms other than powerpc64*, enable as appropriate.
25273 gold_non_default=no
25274 ld_gold=`which ${gcc_cv_ld}.gold`
25275 # Make sure this gold has minimal split stack support
25276 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
25277 ld_vers=`$ld_gold --version | sed 1q`
25278 gold_vers=`echo $ld_vers | sed -n \
25279 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25280 case $target in
25281 # check that the gold version contains the complete split stack support
25282 # on powerpc64 big and little endian
25283 powerpc64*-*-*)
25284 case "$gold_vers" in
25285 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
25287 *) gold_non_default=no
25289 esac
25291 esac
25293 if test $gold_non_default = yes; then
25295 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25300 $as_echo "$gold_non_default" >&6; }
25302 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
25304 case "$ORIGINAL_LD_FOR_TARGET" in
25305 ./collect-ld | ./collect-ld$build_exeext) ;;
25306 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
25308 esac
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25311 $as_echo_n "checking what linker to use... " >&6; }
25312 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
25313 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
25314 # Single tree build which includes ld. We want to prefer it
25315 # over whatever linker top-level may have detected, since
25316 # we'll use what we're building after installation anyway.
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25318 $as_echo "newly built ld" >&6; }
25319 in_tree_ld=yes
25320 in_tree_ld_is_elf=no
25321 if (grep 'EMUL = .*elf' ../ld/Makefile \
25322 || grep 'EMUL = .*linux' ../ld/Makefile \
25323 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
25324 in_tree_ld_is_elf=yes
25325 elif test "$ld_is_gold" = yes; then
25326 in_tree_ld_is_elf=yes
25328 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
25330 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25331 if test x$gcc_cv_gld_version != x; then
25332 break
25334 done
25335 case $gcc_cv_gld_version in
25336 VERSION=[0-9]*) ;;
25337 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
25338 esac
25339 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25340 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25341 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
25342 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
25343 else
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25345 $as_echo "$gcc_cv_ld" >&6; }
25346 in_tree_ld=no
25347 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25348 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
25349 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
25355 # Figure out what nm we will be using.
25356 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25357 if ${gcc_cv_nm+:} false; then :
25359 else
25361 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25362 && test -f ../binutils/Makefile \
25363 && test x$build = x$host; then
25364 gcc_cv_nm=../binutils/nm-new$build_exeext
25365 elif test -x nm$build_exeext; then
25366 gcc_cv_nm=./nm$build_exeext
25367 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
25368 gcc_cv_nm="$NM_FOR_TARGET"
25369 else
25370 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25371 set dummy $NM_FOR_TARGET; ac_word=$2
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25373 $as_echo_n "checking for $ac_word... " >&6; }
25374 if ${ac_cv_path_gcc_cv_nm+:} false; then :
25375 $as_echo_n "(cached) " >&6
25376 else
25377 case $gcc_cv_nm in
25378 [\\/]* | ?:[\\/]*)
25379 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
25382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25383 for as_dir in $PATH
25385 IFS=$as_save_IFS
25386 test -z "$as_dir" && as_dir=.
25387 for ac_exec_ext in '' $ac_executable_extensions; do
25388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25389 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
25390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25391 break 2
25393 done
25394 done
25395 IFS=$as_save_IFS
25398 esac
25400 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
25401 if test -n "$gcc_cv_nm"; then
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25403 $as_echo "$gcc_cv_nm" >&6; }
25404 else
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25406 $as_echo "no" >&6; }
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25414 $as_echo_n "checking what nm to use... " >&6; }
25415 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
25416 # Single tree build which includes binutils.
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25418 $as_echo "newly built nm" >&6; }
25419 in_tree_nm=yes
25420 else
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25422 $as_echo "$gcc_cv_nm" >&6; }
25423 in_tree_nm=no
25426 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
25428 case "$ORIGINAL_NM_FOR_TARGET" in
25429 ./nm | ./nm$build_exeext) ;;
25430 *) ac_config_files="$ac_config_files nm:exec-tool.in"
25432 esac
25435 # Figure out what objdump we will be using.
25436 if ${gcc_cv_objdump+:} false; then :
25438 else
25440 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25441 && test -f ../binutils/Makefile \
25442 && test x$build = x$host; then
25443 # Single tree build which includes binutils.
25444 gcc_cv_objdump=../binutils/objdump$build_exeext
25445 elif test -x objdump$build_exeext; then
25446 gcc_cv_objdump=./objdump$build_exeext
25447 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
25448 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
25449 else
25450 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25451 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25453 $as_echo_n "checking for $ac_word... " >&6; }
25454 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
25455 $as_echo_n "(cached) " >&6
25456 else
25457 case $gcc_cv_objdump in
25458 [\\/]* | ?:[\\/]*)
25459 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
25462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25463 for as_dir in $PATH
25465 IFS=$as_save_IFS
25466 test -z "$as_dir" && as_dir=.
25467 for ac_exec_ext in '' $ac_executable_extensions; do
25468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25469 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
25470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25471 break 2
25473 done
25474 done
25475 IFS=$as_save_IFS
25478 esac
25480 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
25481 if test -n "$gcc_cv_objdump"; then
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25483 $as_echo "$gcc_cv_objdump" >&6; }
25484 else
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25486 $as_echo "no" >&6; }
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25494 $as_echo_n "checking what objdump to use... " >&6; }
25495 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
25496 # Single tree build which includes binutils.
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25498 $as_echo "newly built objdump" >&6; }
25499 elif test x$gcc_cv_objdump = x; then
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25501 $as_echo "not found" >&6; }
25502 else
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25504 $as_echo "$gcc_cv_objdump" >&6; }
25507 # Figure out what readelf we will be using.
25508 if ${gcc_cv_readelf+:} false; then :
25510 else
25512 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25513 && test -f ../binutils/Makefile \
25514 && test x$build = x$host; then
25515 # Single tree build which includes binutils.
25516 gcc_cv_readelf=../binutils/readelf$build_exeext
25517 elif test -x readelf$build_exeext; then
25518 gcc_cv_readelf=./readelf$build_exeext
25519 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
25520 gcc_cv_readelf="$READELF_FOR_TARGET"
25521 else
25522 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25523 set dummy $READELF_FOR_TARGET; ac_word=$2
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25525 $as_echo_n "checking for $ac_word... " >&6; }
25526 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
25527 $as_echo_n "(cached) " >&6
25528 else
25529 case $gcc_cv_readelf in
25530 [\\/]* | ?:[\\/]*)
25531 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
25534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25535 for as_dir in $PATH
25537 IFS=$as_save_IFS
25538 test -z "$as_dir" && as_dir=.
25539 for ac_exec_ext in '' $ac_executable_extensions; do
25540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25541 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
25542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25543 break 2
25545 done
25546 done
25547 IFS=$as_save_IFS
25550 esac
25552 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
25553 if test -n "$gcc_cv_readelf"; then
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25555 $as_echo "$gcc_cv_readelf" >&6; }
25556 else
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25558 $as_echo "no" >&6; }
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25566 $as_echo_n "checking what readelf to use... " >&6; }
25567 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
25568 # Single tree build which includes binutils.
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25570 $as_echo "newly built readelf" >&6; }
25571 elif test x$gcc_cv_readelf = x; then
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25573 $as_echo "not found" >&6; }
25574 else
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25576 $as_echo "$gcc_cv_readelf" >&6; }
25579 # Figure out what otool we will be using.
25580 if ${gcc_cv_otool+:} false; then :
25582 else
25584 if test -x otool$build_exeext; then
25585 gcc_cv_otool=./otool$build_exeext
25586 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
25587 gcc_cv_otool="$OTOOL_FOR_TARGET"
25588 else
25589 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25590 set dummy $OTOOL_FOR_TARGET; ac_word=$2
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25592 $as_echo_n "checking for $ac_word... " >&6; }
25593 if ${ac_cv_path_gcc_cv_otool+:} false; then :
25594 $as_echo_n "(cached) " >&6
25595 else
25596 case $gcc_cv_otool in
25597 [\\/]* | ?:[\\/]*)
25598 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
25601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25602 for as_dir in $PATH
25604 IFS=$as_save_IFS
25605 test -z "$as_dir" && as_dir=.
25606 for ac_exec_ext in '' $ac_executable_extensions; do
25607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25608 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
25609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25610 break 2
25612 done
25613 done
25614 IFS=$as_save_IFS
25617 esac
25619 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
25620 if test -n "$gcc_cv_otool"; then
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25622 $as_echo "$gcc_cv_otool" >&6; }
25623 else
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25625 $as_echo "no" >&6; }
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25633 $as_echo_n "checking what otool to use... " >&6; }
25634 if test x$gcc_cv_otool = x; then
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25636 $as_echo "not found" >&6; }
25637 else
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25639 $as_echo "$gcc_cv_otool" >&6; }
25642 # Figure out the dsymutil we will use.
25643 if ${gcc_cv_dsymutil+:} false; then :
25645 else
25647 if test -x "$DEFAULT_DSYMUTIL"; then
25648 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
25649 elif test -x dsymutil$build_exeext; then
25650 gcc_cv_dsymutil=./dsymutil$build_exeext
25651 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
25652 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
25653 elif ( set dummy $DSYMUTIL; test -x $2 ); then
25654 gcc_cv_dsymutil=$DSYMUTIL
25655 else
25656 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25657 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25659 $as_echo_n "checking for $ac_word... " >&6; }
25660 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
25661 $as_echo_n "(cached) " >&6
25662 else
25663 case $gcc_cv_dsymutil in
25664 [\\/]* | ?:[\\/]*)
25665 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
25668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25669 for as_dir in $PATH
25671 IFS=$as_save_IFS
25672 test -z "$as_dir" && as_dir=.
25673 for ac_exec_ext in '' $ac_executable_extensions; do
25674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25675 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
25676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25677 break 2
25679 done
25680 done
25681 IFS=$as_save_IFS
25684 esac
25686 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
25687 if test -n "$gcc_cv_dsymutil"; then
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25689 $as_echo "$gcc_cv_dsymutil" >&6; }
25690 else
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25692 $as_echo "no" >&6; }
25699 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
25701 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25702 ./dsymutil | ./dsymutil$build_exeext) ;;
25703 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
25705 esac
25707 # Figure out what assembler alignment features are present.
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25709 $as_echo_n "checking assembler flags... " >&6; }
25710 if ${gcc_cv_as_flags+:} false; then :
25711 $as_echo_n "(cached) " >&6
25712 else
25713 case "$target" in
25714 i[34567]86-*-linux*)
25715 gcc_cv_as_flags=--32
25717 x86_64-*-linux-gnux32)
25718 gcc_cv_as_flags=--x32
25720 x86_64-*-linux*)
25721 gcc_cv_as_flags=--64
25723 powerpc*-*-darwin*)
25724 gcc_cv_as_flags="-arch ppc"
25727 gcc_cv_as_flags=" "
25729 esac
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25732 $as_echo "$gcc_cv_as_flags" >&6; }
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25735 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25736 if ${gcc_cv_as_balign_and_p2align+:} false; then :
25737 $as_echo_n "(cached) " >&6
25738 else
25739 gcc_cv_as_balign_and_p2align=no
25740 if test x$gcc_cv_as != x; then
25741 $as_echo '.balign 4
25742 .p2align 2' > conftest.s
25743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25745 (eval $ac_try) 2>&5
25746 ac_status=$?
25747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25748 test $ac_status = 0; }; }
25749 then
25750 gcc_cv_as_balign_and_p2align=yes
25751 else
25752 echo "configure: failed program was" >&5
25753 cat conftest.s >&5
25755 rm -f conftest.o conftest.s
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25759 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25760 if test $gcc_cv_as_balign_and_p2align = yes; then
25762 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25768 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25769 if ${gcc_cv_as_max_skip_p2align+:} false; then :
25770 $as_echo_n "(cached) " >&6
25771 else
25772 gcc_cv_as_max_skip_p2align=no
25773 if test x$gcc_cv_as != x; then
25774 $as_echo '.p2align 4,,7' > conftest.s
25775 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25777 (eval $ac_try) 2>&5
25778 ac_status=$?
25779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25780 test $ac_status = 0; }; }
25781 then
25782 gcc_cv_as_max_skip_p2align=yes
25783 else
25784 echo "configure: failed program was" >&5
25785 cat conftest.s >&5
25787 rm -f conftest.o conftest.s
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25791 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25792 if test $gcc_cv_as_max_skip_p2align = yes; then
25794 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25800 $as_echo_n "checking assembler for .literal16... " >&6; }
25801 if ${gcc_cv_as_literal16+:} false; then :
25802 $as_echo_n "(cached) " >&6
25803 else
25804 gcc_cv_as_literal16=no
25805 if test x$gcc_cv_as != x; then
25806 $as_echo '.literal16' > conftest.s
25807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25809 (eval $ac_try) 2>&5
25810 ac_status=$?
25811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25812 test $ac_status = 0; }; }
25813 then
25814 gcc_cv_as_literal16=yes
25815 else
25816 echo "configure: failed program was" >&5
25817 cat conftest.s >&5
25819 rm -f conftest.o conftest.s
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25823 $as_echo "$gcc_cv_as_literal16" >&6; }
25824 if test $gcc_cv_as_literal16 = yes; then
25826 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25832 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25833 if ${gcc_cv_as_subsection_m1+:} false; then :
25834 $as_echo_n "(cached) " >&6
25835 else
25836 gcc_cv_as_subsection_m1=no
25837 if test x$gcc_cv_as != x; then
25838 $as_echo 'conftest_label1: .word 0
25839 .subsection -1
25840 conftest_label2: .word 0
25841 .previous' > conftest.s
25842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25844 (eval $ac_try) 2>&5
25845 ac_status=$?
25846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25847 test $ac_status = 0; }; }
25848 then
25849 if test x$gcc_cv_nm != x; then
25850 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
25851 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
25852 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
25853 then :
25854 else gcc_cv_as_subsection_m1=yes
25856 rm -f conftest.nm1 conftest.nm2
25858 else
25859 echo "configure: failed program was" >&5
25860 cat conftest.s >&5
25862 rm -f conftest.o conftest.s
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25866 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25867 if test $gcc_cv_as_subsection_m1 = yes; then
25869 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25875 $as_echo_n "checking assembler for .weak... " >&6; }
25876 if ${gcc_cv_as_weak+:} false; then :
25877 $as_echo_n "(cached) " >&6
25878 else
25879 gcc_cv_as_weak=no
25880 if test x$gcc_cv_as != x; then
25881 $as_echo ' .weak foobar' > conftest.s
25882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25884 (eval $ac_try) 2>&5
25885 ac_status=$?
25886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25887 test $ac_status = 0; }; }
25888 then
25889 gcc_cv_as_weak=yes
25890 else
25891 echo "configure: failed program was" >&5
25892 cat conftest.s >&5
25894 rm -f conftest.o conftest.s
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25898 $as_echo "$gcc_cv_as_weak" >&6; }
25899 if test $gcc_cv_as_weak = yes; then
25901 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25907 $as_echo_n "checking assembler for .weakref... " >&6; }
25908 if ${gcc_cv_as_weakref+:} false; then :
25909 $as_echo_n "(cached) " >&6
25910 else
25911 gcc_cv_as_weakref=no
25912 if test x$gcc_cv_as != x; then
25913 $as_echo ' .weakref foobar, barfnot' > conftest.s
25914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25916 (eval $ac_try) 2>&5
25917 ac_status=$?
25918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25919 test $ac_status = 0; }; }
25920 then
25921 gcc_cv_as_weakref=yes
25922 else
25923 echo "configure: failed program was" >&5
25924 cat conftest.s >&5
25926 rm -f conftest.o conftest.s
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25930 $as_echo "$gcc_cv_as_weakref" >&6; }
25931 if test $gcc_cv_as_weakref = yes; then
25933 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25939 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25940 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
25941 $as_echo_n "(cached) " >&6
25942 else
25943 gcc_cv_as_nsubspa_comdat=no
25944 if test x$gcc_cv_as != x; then
25945 $as_echo ' .SPACE $TEXT$
25946 .NSUBSPA $CODE$,COMDAT' > conftest.s
25947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25949 (eval $ac_try) 2>&5
25950 ac_status=$?
25951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25952 test $ac_status = 0; }; }
25953 then
25954 gcc_cv_as_nsubspa_comdat=yes
25955 else
25956 echo "configure: failed program was" >&5
25957 cat conftest.s >&5
25959 rm -f conftest.o conftest.s
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
25963 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
25964 if test $gcc_cv_as_nsubspa_comdat = yes; then
25966 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
25971 # .hidden needs to be supported in both the assembler and the linker,
25972 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25973 # This is irritatingly difficult to feature test for; we have to check the
25974 # date string after the version number. If we've got an in-tree
25975 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25976 # to be safe.
25977 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25978 case "${target}" in
25979 *-*-aix*)
25980 conftest_s=' .globl foobar,hidden'
25983 conftest_s=' .hidden foobar
25984 foobar:'
25986 esac
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
25988 $as_echo_n "checking assembler for .hidden... " >&6; }
25989 if ${gcc_cv_as_hidden+:} false; then :
25990 $as_echo_n "(cached) " >&6
25991 else
25992 gcc_cv_as_hidden=no
25993 if test x$gcc_cv_as != x; then
25994 $as_echo "$conftest_s" > conftest.s
25995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25997 (eval $ac_try) 2>&5
25998 ac_status=$?
25999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26000 test $ac_status = 0; }; }
26001 then
26002 gcc_cv_as_hidden=yes
26003 else
26004 echo "configure: failed program was" >&5
26005 cat conftest.s >&5
26007 rm -f conftest.o conftest.s
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
26011 $as_echo "$gcc_cv_as_hidden" >&6; }
26014 case "${target}" in
26015 *-*-darwin*)
26016 # Darwin as has some visibility support, though with a different syntax.
26017 gcc_cv_as_hidden=yes
26019 esac
26021 # gnu_indirect_function type is an extension proposed at
26022 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
26023 # selection of function implementation
26024 # Check whether --enable-gnu-indirect-function was given.
26025 if test "${enable_gnu_indirect_function+set}" = set; then :
26026 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
26027 yes | no) ;;
26028 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
26029 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26030 esac
26031 else
26032 enable_gnu_indirect_function="$default_gnu_indirect_function"
26036 case "${target}" in
26037 riscv*-*-linux*)
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
26039 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
26040 cat > conftest.s <<EOF
26041 .text
26042 .type foo_resolver, @function
26043 foo_resolver:
26045 .size foo_resolver, .-foo_resolver
26047 .globl foo
26048 .type foo, %gnu_indirect_function
26049 .set foo, foo_resolver
26051 .globl bar
26052 .type bar, @function
26053 bar:
26054 call foo
26056 .size bar, .-bar
26058 if test x$gcc_cv_as != x \
26059 && test x$gcc_cv_ld != x \
26060 && test x$gcc_cv_readelf != x \
26061 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26062 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26063 && $gcc_cv_readelf --relocs --wide conftest \
26064 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
26065 enable_gnu_indirect_function=yes
26067 rm -f conftest conftest.o conftest.s
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
26069 $as_echo "$enable_gnu_indirect_function" >&6; }
26071 esac
26073 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
26075 cat >>confdefs.h <<_ACEOF
26076 #define HAVE_GNU_INDIRECT_FUNCTION $gif
26077 _ACEOF
26081 if test $in_tree_ld != yes ; then
26082 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
26083 if echo "$ld_ver" | grep GNU > /dev/null; then
26084 if test x"$ld_is_gold" = xyes; then
26085 # GNU gold --version looks like this:
26087 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
26089 # We extract the binutils version which is more familiar and specific
26090 # than the gold version.
26091 ld_vers=`echo $ld_ver | sed -n \
26092 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26093 else
26094 # GNU ld --version looks like this:
26096 # GNU ld (GNU Binutils) 2.21.51.20110225
26097 ld_vers=`echo $ld_ver | sed -n \
26098 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26100 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'`
26101 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26102 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26103 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
26104 else
26105 case "${target}" in
26106 *-*-solaris2*)
26107 # Solaris 2 ld -V output looks like this for a regular version:
26109 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
26111 # but test versions add stuff at the end:
26113 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
26115 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
26116 # numbers can be used in ld.so.1 feature checks even if a different
26117 # linker is configured.
26118 ld_ver=`$gcc_cv_ld -V 2>&1`
26119 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
26120 ld_vers=`echo $ld_ver | sed -n \
26121 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
26122 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26123 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26126 esac
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
26131 $as_echo_n "checking linker for .hidden support... " >&6; }
26132 if ${gcc_cv_ld_hidden+:} false; then :
26133 $as_echo_n "(cached) " >&6
26134 else
26135 if test $in_tree_ld = yes ; then
26136 gcc_cv_ld_hidden=no
26137 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 \
26138 && test $in_tree_ld_is_elf = yes; then
26139 gcc_cv_ld_hidden=yes
26141 else
26142 gcc_cv_ld_hidden=yes
26143 if test x"$ld_is_gold" = xyes; then
26145 elif test x"$ld_is_mold" = xyes; then
26147 elif echo "$ld_ver" | grep GNU > /dev/null; then
26148 if test 0"$ld_date" -lt 20020404; then
26149 if test -n "$ld_date"; then
26150 # If there was date string, but was earlier than 2002-04-04, fail
26151 gcc_cv_ld_hidden=no
26152 elif test -z "$ld_vers"; then
26153 # If there was no date string nor ld version number, something is wrong
26154 gcc_cv_ld_hidden=no
26155 else
26156 test -z "$ld_vers_patch" && ld_vers_patch=0
26157 if test "$ld_vers_major" -lt 2; then
26158 gcc_cv_ld_hidden=no
26159 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26160 gcc_cv_ld_hidden="no"
26161 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26162 gcc_cv_ld_hidden=no
26166 else
26167 case "${target}" in
26168 *-*-aix[789]*)
26169 gcc_cv_ld_hidden=yes
26171 *-*-darwin*)
26172 # Darwin ld has some visibility support.
26173 gcc_cv_ld_hidden=yes
26175 hppa64*-*-hpux* | ia64*-*-hpux*)
26176 gcc_cv_ld_hidden=yes
26178 *-*-solaris2*)
26179 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26180 # .symbolic was only added in Solaris 9 12/02.
26181 gcc_cv_ld_hidden=yes
26184 gcc_cv_ld_hidden=no
26186 esac
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26191 $as_echo "$gcc_cv_ld_hidden" >&6; }
26192 libgcc_visibility=no
26195 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26196 libgcc_visibility=yes
26198 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26203 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26204 gcc_cv_ld_ro_rw_mix=unknown
26205 if test $in_tree_ld = yes ; then
26206 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 \
26207 && test $in_tree_ld_is_elf = yes; then
26208 gcc_cv_ld_ro_rw_mix=read-write
26210 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26211 echo '.section myfoosect, "a"' > conftest1.s
26212 echo '.section myfoosect, "aw"' > conftest2.s
26213 echo '.byte 1' >> conftest2.s
26214 echo '.section myfoosect, "a"' > conftest3.s
26215 echo '.byte 0' >> conftest3.s
26216 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
26217 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
26218 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
26219 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26220 conftest2.o conftest3.o > /dev/null 2>&1 \
26221 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
26222 conftest2.o conftest3.o > /dev/null 2>&1; then
26223 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
26224 | sed -e '/myfoosect/!d' -e N`
26225 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
26226 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
26227 gcc_cv_ld_ro_rw_mix=read-only
26228 else
26229 gcc_cv_ld_ro_rw_mix=read-write
26234 rm -f conftest.* conftest[123].*
26236 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
26238 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26242 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26244 # Check whether --enable-initfini-array was given.
26245 if test "${enable_initfini_array+set}" = set; then :
26246 enableval=$enable_initfini_array;
26247 else
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26250 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26251 if ${gcc_cv_initfini_array+:} false; then :
26252 $as_echo_n "(cached) " >&6
26253 else
26254 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26255 case "${target}" in
26256 ia64-*)
26257 if test "$cross_compiling" = yes; then :
26258 gcc_cv_initfini_array=no
26259 else
26260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26261 /* end confdefs.h. */
26263 #ifndef __ELF__
26264 #error Not an ELF OS
26265 #endif
26266 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26267 if it can be used. */
26268 static int x = -1;
26269 int main (void) { return x; }
26270 int foo (void) { x = 0; }
26271 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26273 _ACEOF
26274 if ac_fn_cxx_try_run "$LINENO"; then :
26275 gcc_cv_initfini_array=yes
26276 else
26277 gcc_cv_initfini_array=no
26279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26280 conftest.$ac_objext conftest.beam conftest.$ac_ext
26284 gcc_cv_initfini_array=no
26285 if test $in_tree_ld = yes ; then
26286 if test "$gcc_cv_gld_major_version" -eq 2 \
26287 -a "$gcc_cv_gld_minor_version" -ge 22 \
26288 -o "$gcc_cv_gld_major_version" -gt 2 \
26289 && test $in_tree_ld_is_elf = yes; then
26290 gcc_cv_initfini_array=yes
26292 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26293 case $target:$gas in
26294 *:yes)
26295 sh_flags='"a"'
26296 sh_type='%progbits'
26298 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
26299 sh_flags='"a"'
26300 sh_type='@progbits'
26302 sparc*-*-solaris2*:no)
26303 sh_flags='#alloc'
26304 sh_type='#progbits'
26305 sh_quote='"'
26307 esac
26308 case "$target:$gnu_ld" in
26309 *:yes)
26310 cat > conftest.s <<EOF
26311 .section .dtors,$sh_flags,$sh_type
26312 .balign 4
26313 .byte 'A', 'A', 'A', 'A'
26314 .section .ctors,$sh_flags,$sh_type
26315 .balign 4
26316 .byte 'B', 'B', 'B', 'B'
26317 .section .fini_array.65530,$sh_flags,$sh_type
26318 .balign 4
26319 .byte 'C', 'C', 'C', 'C'
26320 .section .init_array.65530,$sh_flags,$sh_type
26321 .balign 4
26322 .byte 'D', 'D', 'D', 'D'
26323 .section .dtors.64528,$sh_flags,$sh_type
26324 .balign 4
26325 .byte 'E', 'E', 'E', 'E'
26326 .section .ctors.64528,$sh_flags,$sh_type
26327 .balign 4
26328 .byte 'F', 'F', 'F', 'F'
26329 .section .fini_array.01005,$sh_flags,$sh_type
26330 .balign 4
26331 .byte 'G', 'G', 'G', 'G'
26332 .section .init_array.01005,$sh_flags,$sh_type
26333 .balign 4
26334 .byte 'H', 'H', 'H', 'H'
26335 .text
26336 .globl _start
26337 _start:
26339 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26340 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26341 && $gcc_cv_objdump -s -j .init_array conftest \
26342 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
26343 && $gcc_cv_objdump -s -j .fini_array conftest \
26344 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
26345 gcc_cv_initfini_array=yes
26348 *-*-solaris2*:no)
26349 # When Solaris ld added constructor priority support, it was
26350 # decided to only handle .init_array.N/.fini_array.N since
26351 # there was no need for backwards compatibility with
26352 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26353 # sections with correct execution order resp. to
26354 # .init_array/.fini_array, while gld merges them into
26355 # .init_array/.fini_array.
26356 cat > conftest.s <<EOF
26357 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26358 .align 4
26359 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26360 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26361 .align 4
26362 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26363 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26364 .align 4
26365 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26366 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26367 .align 4
26368 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26369 .text
26370 .globl _start
26371 _start:
26373 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26374 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26375 && $gcc_cv_objdump -s -j .init_array conftest \
26376 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
26377 && $gcc_cv_objdump -s -j .fini_array conftest \
26378 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
26379 gcc_cv_initfini_array=yes
26382 esac
26383 rm -f conftest conftest.*
26385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26386 /* end confdefs.h. */
26388 #ifndef __ELF__
26389 # error Not an ELF OS
26390 #endif
26391 #include <stdlib.h>
26392 #if defined __GLIBC_PREREQ
26393 # if __GLIBC_PREREQ (2, 4)
26394 # else
26395 # error GLIBC 2.4 required
26396 # endif
26397 #else
26398 # if defined __sun__ && defined __svr4__
26399 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26400 # else
26401 # error The C library not known to support .init_array/.fini_array
26402 # endif
26403 #endif
26405 _ACEOF
26406 if ac_fn_cxx_try_cpp "$LINENO"; then :
26408 else
26409 gcc_cv_initfini_array=no
26411 rm -f conftest.err conftest.i conftest.$ac_ext;;
26412 esac
26413 else
26414 case "${target}" in
26415 aarch64*-linux-gnu*)
26416 # AArch64 postdates glibc support for .init_array/.fini_array,
26417 # so we don't need the preprocessor test above.
26418 gcc_cv_initfini_array=yes
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26423 $as_echo_n "checking cross compile... guessing... " >&6; }
26424 gcc_cv_initfini_array=no
26426 esac
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26430 $as_echo "$gcc_cv_initfini_array" >&6; }
26431 enable_initfini_array=$gcc_cv_initfini_array
26436 cat >>confdefs.h <<_ACEOF
26437 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26438 _ACEOF
26442 # Some assemblers (GNU as for LoongArch) generates relocations for
26443 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26444 # probing leb128 support then.
26445 case $target in
26446 loongarch*-*-*)
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26448 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26449 if ${gcc_cv_as_mno_relax+:} false; then :
26450 $as_echo_n "(cached) " >&6
26451 else
26452 gcc_cv_as_mno_relax=no
26453 if test x$gcc_cv_as != x; then
26454 $as_echo '.text' > conftest.s
26455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26457 (eval $ac_try) 2>&5
26458 ac_status=$?
26459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26460 test $ac_status = 0; }; }
26461 then
26462 gcc_cv_as_mno_relax=yes
26463 else
26464 echo "configure: failed program was" >&5
26465 cat conftest.s >&5
26467 rm -f conftest.o conftest.s
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26471 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26472 if test $gcc_cv_as_mno_relax = yes; then
26473 check_leb128_asflags=-mno-relax
26478 check_leb128_asflags=
26480 esac
26482 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26483 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26484 # these directives, even when they appear to accept them.
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26486 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26487 if ${gcc_cv_as_leb128+:} false; then :
26488 $as_echo_n "(cached) " >&6
26489 else
26490 gcc_cv_as_leb128=no
26491 if test x$gcc_cv_as != x; then
26492 $as_echo ' .data
26493 .uleb128 L2 - L1
26495 .uleb128 1280
26496 .sleb128 -1010
26498 .uleb128 0x8000000000000000
26499 ' > conftest.s
26500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26502 (eval $ac_try) 2>&5
26503 ac_status=$?
26504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26505 test $ac_status = 0; }; }
26506 then
26508 if test "x$gcc_cv_objdump" != x; then
26509 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
26510 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
26511 gcc_cv_as_leb128=yes
26513 elif test "x$gcc_cv_otool" != x; then
26514 if $gcc_cv_otool -d conftest.o 2>/dev/null \
26515 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
26516 gcc_cv_as_leb128=yes
26518 else
26519 # play safe, assume the assembler is broken.
26523 else
26524 echo "configure: failed program was" >&5
26525 cat conftest.s >&5
26527 rm -f conftest.o conftest.s
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26531 $as_echo "$gcc_cv_as_leb128" >&6; }
26532 if test $gcc_cv_as_leb128 = yes; then
26534 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26537 if test $gcc_cv_as_leb128 != yes; then
26539 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26543 # Determine if an .eh_frame section is read-only.
26544 gcc_fn_eh_frame_ro () {
26545 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
26546 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
26547 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
26550 # Check if we have assembler support for unwind directives.
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26552 $as_echo_n "checking assembler for cfi directives... " >&6; }
26553 if ${gcc_cv_as_cfi_directive+:} false; then :
26554 $as_echo_n "(cached) " >&6
26555 else
26556 gcc_cv_as_cfi_directive=no
26557 if test x$gcc_cv_as != x; then
26558 $as_echo ' .text
26559 .cfi_startproc
26560 .cfi_offset 0, 0
26561 .cfi_same_value 1
26562 .cfi_def_cfa 1, 2
26563 .cfi_escape 1, 2, 3, 4, 5
26564 .cfi_endproc' > conftest.s
26565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26567 (eval $ac_try) 2>&5
26568 ac_status=$?
26569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26570 test $ac_status = 0; }; }
26571 then
26572 case "$target" in
26573 *-*-solaris*)
26574 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26575 # read-only and read-write sections, we need to make sure that the
26576 # assembler used emits read-write .eh_frame sections.
26577 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
26578 gcc_cv_as_cfi_directive=yes
26579 elif test "x$gcc_cv_objdump" = x; then
26580 # No objdump, err on the side of caution.
26581 gcc_cv_as_cfi_directive=no
26582 else
26583 if test x$gas = xyes; then
26584 as_32_opt="--32"
26585 as_64_opt="--64"
26586 else
26587 as_32_opt="-m32"
26588 as_64_opt="-m64"
26590 case "$target" in
26591 sparc*-*-solaris2.*)
26592 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26593 if gcc_fn_eh_frame_ro $as_32_opt \
26594 || gcc_fn_eh_frame_ro $as_64_opt; then
26595 gcc_cv_as_cfi_directive=no
26596 else
26597 gcc_cv_as_cfi_directive=yes
26600 i?86-*-solaris2.* | x86_64-*-solaris2.*)
26601 # On Solaris/x86, make sure that GCC and assembler agree on using
26602 # read-only .eh_frame sections for 64-bit.
26603 if gcc_fn_eh_frame_ro $as_32_opt; then
26604 gcc_cv_as_cfi_directive=no
26605 elif gcc_fn_eh_frame_ro $as_64_opt; then
26606 gcc_cv_as_cfi_directive=yes
26607 else
26608 gcc_cv_as_cfi_directive=no
26611 esac
26614 *-*-*)
26615 gcc_cv_as_cfi_directive=yes
26617 esac
26618 else
26619 echo "configure: failed program was" >&5
26620 cat conftest.s >&5
26622 rm -f conftest.o conftest.s
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26626 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26629 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26631 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26632 if ${gcc_cv_as_cfi_advance_working+:} false; then :
26633 $as_echo_n "(cached) " >&6
26634 else
26635 gcc_cv_as_cfi_advance_working=no
26636 if test x$gcc_cv_as != x; then
26637 $as_echo ' .text
26638 .cfi_startproc
26639 .cfi_adjust_cfa_offset 64
26640 .skip 75040, 0
26641 .cfi_adjust_cfa_offset 128
26642 .cfi_endproc' > conftest.s
26643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26645 (eval $ac_try) 2>&5
26646 ac_status=$?
26647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26648 test $ac_status = 0; }; }
26649 then
26651 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
26652 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
26653 gcc_cv_as_cfi_advance_working=yes
26656 else
26657 echo "configure: failed program was" >&5
26658 cat conftest.s >&5
26660 rm -f conftest.o conftest.s
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26664 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26667 else
26668 # no objdump, err on the side of caution
26669 gcc_cv_as_cfi_advance_working=no
26673 cat >>confdefs.h <<_ACEOF
26674 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26675 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26676 _ACEOF
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26681 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26682 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
26683 $as_echo_n "(cached) " >&6
26684 else
26685 gcc_cv_as_cfi_personality_directive=no
26686 if test x$gcc_cv_as != x; then
26687 $as_echo ' .text
26688 .cfi_startproc
26689 .cfi_personality 0, symbol
26690 .cfi_endproc' > conftest.s
26691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26693 (eval $ac_try) 2>&5
26694 ac_status=$?
26695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26696 test $ac_status = 0; }; }
26697 then
26698 gcc_cv_as_cfi_personality_directive=yes
26699 else
26700 echo "configure: failed program was" >&5
26701 cat conftest.s >&5
26703 rm -f conftest.o conftest.s
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26707 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26711 cat >>confdefs.h <<_ACEOF
26712 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26713 _ACEOF
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26717 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26718 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
26719 $as_echo_n "(cached) " >&6
26720 else
26721 gcc_cv_as_cfi_sections_directive=no
26722 if test x$gcc_cv_as != x; then
26723 $as_echo ' .text
26724 .cfi_sections .debug_frame, .eh_frame
26725 .cfi_startproc
26726 .cfi_endproc' > conftest.s
26727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; }; }
26733 then
26734 case $target_os in
26735 win32 | pe | cygwin* | mingw32*)
26736 # Need to check that we generated the correct relocation for the
26737 # .debug_frame section. This was fixed for binutils 2.21.
26738 gcc_cv_as_cfi_sections_directive=no
26739 if test "x$gcc_cv_objdump" != x; then
26740 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
26741 grep -i secrel > /dev/null; then
26742 gcc_cv_as_cfi_sections_directive=yes
26747 gcc_cv_as_cfi_sections_directive=yes
26749 esac
26750 else
26751 echo "configure: failed program was" >&5
26752 cat conftest.s >&5
26754 rm -f conftest.o conftest.s
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26758 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26763 cat >>confdefs.h <<_ACEOF
26764 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26765 _ACEOF
26768 # GAS versions up to and including 2.11.0 may mis-optimize
26769 # .eh_frame data.
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26771 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26772 if ${gcc_cv_as_eh_frame+:} false; then :
26773 $as_echo_n "(cached) " >&6
26774 else
26775 gcc_cv_as_eh_frame=no
26776 if test x$gcc_cv_as != x; then
26777 $as_echo ' .text
26778 .LFB1:
26779 .4byte 0
26780 .L1:
26781 .4byte 0
26782 .LFE1:
26783 .section .eh_frame,"aw",@progbits
26784 __FRAME_BEGIN__:
26785 .4byte .LECIE1-.LSCIE1
26786 .LSCIE1:
26787 .4byte 0x0
26788 .byte 0x1
26789 .ascii "z\0"
26790 .byte 0x1
26791 .byte 0x78
26792 .byte 0x1a
26793 .byte 0x0
26794 .byte 0x4
26795 .4byte 1
26796 .p2align 1
26797 .LECIE1:
26798 .LSFDE1:
26799 .4byte .LEFDE1-.LASFDE1
26800 .LASFDE1:
26801 .4byte .LASFDE1-__FRAME_BEGIN__
26802 .4byte .LFB1
26803 .4byte .LFE1-.LFB1
26804 .byte 0x4
26805 .4byte .LFE1-.LFB1
26806 .byte 0x4
26807 .4byte .L1-.LFB1
26808 .LEFDE1:' > conftest.s
26809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26811 (eval $ac_try) 2>&5
26812 ac_status=$?
26813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26814 test $ac_status = 0; }; }
26815 then
26816 cat > conftest.lit <<EOF
26817 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26818 0010 01000000 12000000 18000000 00000000 ................
26819 0020 08000000 04080000 0044 .........D
26821 cat > conftest.big <<EOF
26822 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26823 0010 00000001 00000012 00000018 00000000 ................
26824 0020 00000008 04000000 0844 .........D
26826 # If the assembler didn't choke, and we can objdump,
26827 # and we got the correct data, then succeed.
26828 # The text in the here-document typically retains its unix-style line
26829 # endings, while the output of objdump will use host line endings.
26830 # Therefore, use diff -b for the comparisons.
26831 if test x$gcc_cv_objdump != x \
26832 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
26833 | tail -3 > conftest.got \
26834 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
26835 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
26836 then
26837 gcc_cv_as_eh_frame=yes
26838 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26843 test $ac_status = 0; }; }; then
26844 gcc_cv_as_eh_frame=buggy
26845 else
26846 # Uh oh, what do we do now?
26847 gcc_cv_as_eh_frame=no
26849 else
26850 echo "configure: failed program was" >&5
26851 cat conftest.s >&5
26853 rm -f conftest.o conftest.s
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26857 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26861 if test $gcc_cv_as_eh_frame = buggy; then
26863 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26867 # Test if the assembler supports the section flag 'e' or #exclude for
26868 # specifying an excluded section.
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26870 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26871 if ${gcc_cv_as_section_exclude_e+:} false; then :
26872 $as_echo_n "(cached) " >&6
26873 else
26874 gcc_cv_as_section_exclude_e=no
26875 if test x$gcc_cv_as != x; then
26876 $as_echo '.section foo1,"e"
26877 .byte 0,0,0,0' > conftest.s
26878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26883 test $ac_status = 0; }; }
26884 then
26885 gcc_cv_as_section_exclude_e=yes
26886 else
26887 echo "configure: failed program was" >&5
26888 cat conftest.s >&5
26890 rm -f conftest.o conftest.s
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26894 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26897 if test $gcc_cv_as_section_exclude_e = no; then
26898 case "${target}" in
26899 # Solaris as uses #exclude instead.
26900 *-*-solaris2*)
26901 case "${target}" in
26902 sparc*-*-solaris2*)
26903 conftest_s='.section "foo1", #exclude'
26905 i?86-*-solaris2* | x86_64-*-solaris2*)
26906 conftest_s='.section foo1, #exclude'
26908 esac
26910 esac
26911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26912 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26913 if ${gcc_cv_as_section_exclude_hash+:} false; then :
26914 $as_echo_n "(cached) " >&6
26915 else
26916 gcc_cv_as_section_exclude_hash=no
26917 if test x$gcc_cv_as != x; then
26918 $as_echo "$conftest_s
26919 .byte 0,0,0,0" > conftest.s
26920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26922 (eval $ac_try) 2>&5
26923 ac_status=$?
26924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26925 test $ac_status = 0; }; }
26926 then
26927 gcc_cv_as_section_exclude_hash=yes
26928 else
26929 echo "configure: failed program was" >&5
26930 cat conftest.s >&5
26932 rm -f conftest.o conftest.s
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26936 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26941 cat >>confdefs.h <<_ACEOF
26942 #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`
26943 _ACEOF
26946 # Test if the assembler supports the section flag 'R' for specifying
26947 # section with SHF_GNU_RETAIN.
26948 case "${target}" in
26949 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26950 # assembler supports the section flag 'R', it doesn't mean that
26951 # Solairs ld supports it.
26952 *-*-solaris2*)
26953 gcc_cv_as_shf_gnu_retain=no
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
26957 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
26958 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
26959 $as_echo_n "(cached) " >&6
26960 else
26961 gcc_cv_as_shf_gnu_retain=no
26962 if test x$gcc_cv_as != x; then
26963 $as_echo '.section .foo,"awR",%progbits
26964 .byte 0' > conftest.s
26965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26967 (eval $ac_try) 2>&5
26968 ac_status=$?
26969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26970 test $ac_status = 0; }; }
26971 then
26972 gcc_cv_as_shf_gnu_retain=yes
26973 else
26974 echo "configure: failed program was" >&5
26975 cat conftest.s >&5
26977 rm -f conftest.o conftest.s
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
26981 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
26985 esac
26987 cat >>confdefs.h <<_ACEOF
26988 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
26989 _ACEOF
26992 # Test if the assembler supports the section flag 'o' for specifying
26993 # section with link-order.
26994 case "${target}" in
26995 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26996 # assembler supports the section flag 'o', it doesn't mean that
26997 # Solairs ld supports it.
26998 *-*-solaris2*)
26999 gcc_cv_as_section_link_order=no
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
27003 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
27004 if ${gcc_cv_as_section_link_order+:} false; then :
27005 $as_echo_n "(cached) " >&6
27006 else
27007 gcc_cv_as_section_link_order=no
27008 if test x$gcc_cv_as != x; then
27009 $as_echo '.section .foo,"a"
27010 .byte 0
27011 .section __patchable_function_entries,"awo",%progbits,.foo
27012 .byte 0' > conftest.s
27013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27015 (eval $ac_try) 2>&5
27016 ac_status=$?
27017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27018 test $ac_status = 0; }; }
27019 then
27020 gcc_cv_as_section_link_order=yes
27021 else
27022 echo "configure: failed program was" >&5
27023 cat conftest.s >&5
27025 rm -f conftest.o conftest.s
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
27029 $as_echo "$gcc_cv_as_section_link_order" >&6; }
27033 esac
27035 cat >>confdefs.h <<_ACEOF
27036 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
27037 _ACEOF
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27041 $as_echo_n "checking assembler for section merging support... " >&6; }
27042 if ${gcc_cv_as_shf_merge+:} false; then :
27043 $as_echo_n "(cached) " >&6
27044 else
27045 gcc_cv_as_shf_merge=no
27046 if test x$gcc_cv_as != x; then
27047 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
27048 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27050 (eval $ac_try) 2>&5
27051 ac_status=$?
27052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27053 test $ac_status = 0; }; }
27054 then
27055 gcc_cv_as_shf_merge=yes
27056 else
27057 echo "configure: failed program was" >&5
27058 cat conftest.s >&5
27060 rm -f conftest.o conftest.s
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27064 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27067 if test $gcc_cv_as_shf_merge = no; then
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27069 $as_echo_n "checking assembler for section merging support... " >&6; }
27070 if ${gcc_cv_as_shf_merge+:} false; then :
27071 $as_echo_n "(cached) " >&6
27072 else
27073 gcc_cv_as_shf_merge=no
27074 if test x$gcc_cv_as != x; then
27075 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
27076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27078 (eval $ac_try) 2>&5
27079 ac_status=$?
27080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27081 test $ac_status = 0; }; }
27082 then
27083 gcc_cv_as_shf_merge=yes
27084 else
27085 echo "configure: failed program was" >&5
27086 cat conftest.s >&5
27088 rm -f conftest.o conftest.s
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27092 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27097 cat >>confdefs.h <<_ACEOF
27098 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
27099 _ACEOF
27102 gcc_cv_ld_aligned_shf_merge=yes
27103 case "$target" in
27104 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
27105 # alignment > 1.
27106 sparc*-*-solaris2.11*)
27107 if test x"$gnu_ld" = xno \
27108 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
27109 gcc_cv_ld_aligned_shf_merge=no
27112 esac
27114 cat >>confdefs.h <<_ACEOF
27115 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
27116 _ACEOF
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
27120 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
27121 if ${gcc_cv_as_comdat_group+:} false; then :
27122 $as_echo_n "(cached) " >&6
27123 else
27124 gcc_cv_as_comdat_group=no
27125 if test x$gcc_cv_as != x; then
27126 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
27127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27129 (eval $ac_try) 2>&5
27130 ac_status=$?
27131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27132 test $ac_status = 0; }; }
27133 then
27134 gcc_cv_as_comdat_group=yes
27135 else
27136 echo "configure: failed program was" >&5
27137 cat conftest.s >&5
27139 rm -f conftest.o conftest.s
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
27143 $as_echo "$gcc_cv_as_comdat_group" >&6; }
27146 if test $gcc_cv_as_comdat_group = yes; then
27147 gcc_cv_as_comdat_group_percent=no
27148 gcc_cv_as_comdat_group_group=no
27149 else
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
27151 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
27152 if ${gcc_cv_as_comdat_group_percent+:} false; then :
27153 $as_echo_n "(cached) " >&6
27154 else
27155 gcc_cv_as_comdat_group_percent=no
27156 if test x$gcc_cv_as != x; then
27157 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
27158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27160 (eval $ac_try) 2>&5
27161 ac_status=$?
27162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27163 test $ac_status = 0; }; }
27164 then
27165 gcc_cv_as_comdat_group_percent=yes
27166 else
27167 echo "configure: failed program was" >&5
27168 cat conftest.s >&5
27170 rm -f conftest.o conftest.s
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
27174 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27177 if test $gcc_cv_as_comdat_group_percent = yes; then
27178 gcc_cv_as_comdat_group_group=no
27179 else
27180 case "${target}" in
27181 # Sun as uses a completely different syntax.
27182 *-*-solaris2*)
27183 case "${target}" in
27184 sparc*-*-solaris2*)
27185 conftest_s='
27186 .group foo,".text%foo",#comdat
27187 .section ".text%foo", #alloc,#execinstr,#progbits
27188 .globl foo
27189 foo:
27192 i?86-*-solaris2* | x86_64-*-solaris2*)
27193 conftest_s='
27194 .group foo,.text%foo,#comdat
27195 .section .text%foo, "ax", @progbits
27196 .globl foo
27197 foo:
27200 esac
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27202 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27203 if ${gcc_cv_as_comdat_group_group+:} false; then :
27204 $as_echo_n "(cached) " >&6
27205 else
27206 gcc_cv_as_comdat_group_group=no
27207 if test x$gcc_cv_as != x; then
27208 $as_echo "$conftest_s" > conftest.s
27209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27211 (eval $ac_try) 2>&5
27212 ac_status=$?
27213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27214 test $ac_status = 0; }; }
27215 then
27216 gcc_cv_as_comdat_group_group=yes
27217 else
27218 echo "configure: failed program was" >&5
27219 cat conftest.s >&5
27221 rm -f conftest.o conftest.s
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27225 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27229 esac
27230 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27231 gcc_cv_as_comdat_group_group=no
27235 if test x"$ld_is_gold" = xyes; then
27236 comdat_group=yes
27237 elif test x"$ld_is_mold" = xyes; then
27238 comdat_group=yes
27239 elif test $in_tree_ld = yes ; then
27240 comdat_group=no
27241 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 \
27242 && test $in_tree_ld_is_elf = yes; then
27243 comdat_group=yes
27245 elif echo "$ld_ver" | grep GNU > /dev/null; then
27246 comdat_group=yes
27247 if test 0"$ld_date" -lt 20050308; then
27248 if test -n "$ld_date"; then
27249 # If there was date string, but was earlier than 2005-03-08, fail
27250 comdat_group=no
27251 elif test "$ld_vers_major" -lt 2; then
27252 comdat_group=no
27253 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27254 comdat_group=no
27257 else
27258 case "${target}" in
27259 *-*-solaris2.1[1-9]*)
27260 comdat_group=no
27261 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27262 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27263 # version 1.688.
27265 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27266 # least ld version 1.2267.
27267 if test "$ld_vers_major" -gt 1; then
27268 comdat_group=yes
27269 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
27270 comdat_group=yes
27271 elif test "$ld_vers_minor" -ge 2267; then
27272 comdat_group=yes
27276 # Assume linkers other than GNU ld don't support COMDAT group.
27277 comdat_group=no
27279 esac
27281 # Allow overriding the automatic COMDAT group tests above.
27282 # Check whether --enable-comdat was given.
27283 if test "${enable_comdat+set}" = set; then :
27284 enableval=$enable_comdat; comdat_group="$enable_comdat"
27287 if test $comdat_group = no; then
27288 gcc_cv_as_comdat_group=no
27289 gcc_cv_as_comdat_group_percent=no
27290 gcc_cv_as_comdat_group_group=no
27293 cat >>confdefs.h <<_ACEOF
27294 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27295 || test $gcc_cv_as_comdat_group_percent = yes \
27296 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27297 _ACEOF
27300 # Restrict this test to Solaris/x86: other targets define this statically.
27301 case "${target}" in
27302 i?86-*-solaris2* | x86_64-*-solaris2*)
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
27304 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
27305 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
27306 hidden_linkonce=yes
27307 else
27308 case "${target}" in
27309 # Full support for hidden thunks in linkonce sections only appeared in
27310 # Solaris 11/OpenSolaris.
27311 *-*-solaris2.1[1-9]*)
27312 hidden_linkonce=yes
27315 hidden_linkonce=no
27317 esac
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
27320 $as_echo "$hidden_linkonce" >&6; }
27322 cat >>confdefs.h <<_ACEOF
27323 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
27324 _ACEOF
27327 esac
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27330 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27331 if ${gcc_cv_as_is_stmt+:} false; then :
27332 $as_echo_n "(cached) " >&6
27333 else
27334 gcc_cv_as_is_stmt=no
27335 if test x$gcc_cv_as != x; then
27336 $as_echo ' .text
27337 .file 1 "conf.c"
27338 .loc 1 1 0 is_stmt 1' > conftest.s
27339 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27341 (eval $ac_try) 2>&5
27342 ac_status=$?
27343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27344 test $ac_status = 0; }; }
27345 then
27346 gcc_cv_as_is_stmt=yes
27347 else
27348 echo "configure: failed program was" >&5
27349 cat conftest.s >&5
27351 rm -f conftest.o conftest.s
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27355 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27356 if test $gcc_cv_as_is_stmt = yes; then
27358 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27364 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27365 if ${gcc_cv_as_discriminator+:} false; then :
27366 $as_echo_n "(cached) " >&6
27367 else
27368 gcc_cv_as_discriminator=no
27369 if test x$gcc_cv_as != x; then
27370 $as_echo ' .text
27371 .file 1 "conf.c"
27372 .loc 1 1 0 discriminator 1' > conftest.s
27373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27375 (eval $ac_try) 2>&5
27376 ac_status=$?
27377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27378 test $ac_status = 0; }; }
27379 then
27380 gcc_cv_as_discriminator=yes
27381 else
27382 echo "configure: failed program was" >&5
27383 cat conftest.s >&5
27385 rm -f conftest.o conftest.s
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27389 $as_echo "$gcc_cv_as_discriminator" >&6; }
27390 if test $gcc_cv_as_discriminator = yes; then
27392 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27397 # Catch the newlib flag of the same name so we can gate GCC features on it.
27398 # Check whether --enable-newlib-nano-formatted-io was given.
27399 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27400 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
27401 yes|no)
27404 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27406 esac
27410 # Thread-local storage - the check is heavily parameterized.
27411 conftest_s=
27412 tls_as_opt=
27413 case "$target" in
27414 alpha*-*-*)
27415 conftest_s='
27416 .section ".tdata","awT",@progbits
27417 foo: .long 25
27418 .text
27419 ldq $27,__tls_get_addr($29) !literal!1
27420 lda $16,foo($29) !tlsgd!1
27421 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27422 ldq $27,__tls_get_addr($29) !literal!2
27423 lda $16,foo($29) !tlsldm!2
27424 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27425 ldq $1,foo($29) !gotdtprel
27426 ldah $2,foo($29) !dtprelhi
27427 lda $3,foo($2) !dtprello
27428 lda $4,foo($29) !dtprel
27429 ldq $1,foo($29) !gottprel
27430 ldah $2,foo($29) !tprelhi
27431 lda $3,foo($2) !tprello
27432 lda $4,foo($29) !tprel'
27433 tls_as_opt=--fatal-warnings
27435 arc*-*-*)
27436 conftest_s='
27437 add_s r0,r0, @foo@tpoff'
27439 cris-*-*|crisv32-*-*)
27440 conftest_s='
27441 .section ".tdata","awT",@progbits
27442 x: .long 25
27443 .text
27444 move.d x:IE,$r10
27445 nop'
27446 tls_as_opt=--fatal-warnings
27448 frv*-*-*)
27449 conftest_s='
27450 .section ".tdata","awT",@progbits
27451 x: .long 25
27452 .text
27453 call #gettlsoff(x)'
27455 hppa*-*-linux*)
27456 conftest_s='
27457 t1: .reg %r20
27458 t2: .reg %r21
27459 gp: .reg %r19
27460 .section ".tdata","awT",@progbits
27461 foo: .long 25
27462 .text
27463 .align 4
27464 addil LT%foo-$tls_gdidx$,gp
27465 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27466 b __tls_get_addr
27468 addil LT%foo-$tls_ldidx$,gp
27469 b __tls_get_addr
27470 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27471 addil LR%foo-$tls_dtpoff$,%ret0
27472 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27473 mfctl %cr27,%t1
27474 addil LT%foo-$tls_ieoff$,gp
27475 ldw RT%foo-$tls_ieoff$(%r1),%t2
27476 add %t1,%t2,%t3
27477 mfctl %cr27,%t1
27478 addil LR%foo-$tls_leoff$,%t1
27479 ldo RR%foo-$tls_leoff$(%r1),%t2'
27480 tls_as_opt=--fatal-warnings
27482 arm*-*-*)
27483 conftest_s='
27484 .section ".tdata","awT",%progbits
27485 foo: .long 25
27486 .text
27487 .word foo(gottpoff)
27488 .word foo(tpoff)
27489 .word foo(tlsgd)
27490 .word foo(tlsldm)
27491 .word foo(tlsldo)'
27493 i[34567]86-*-* | x86_64-*-*)
27494 case "$target" in
27495 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
27496 on_solaris=yes
27499 on_solaris=no
27501 esac
27502 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27503 conftest_s='
27504 .section .tdata,"awt",@progbits'
27505 tls_section_flag=t
27507 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27509 else
27510 conftest_s='
27511 .section ".tdata","awT",@progbits'
27512 tls_section_flag=T
27513 tls_as_opt="--fatal-warnings"
27515 case "$target" in
27516 i[34567]86-*-*)
27517 if test x$on_solaris = xyes; then
27518 case $gas_flag in
27519 yes) tls_as_opt="$tls_as_opt --32" ;;
27520 esac
27522 conftest_s="$conftest_s
27523 foo: .long 25
27524 .text
27525 movl %gs:0, %eax
27526 leal foo@tlsgd(,%ebx,1), %eax
27527 leal foo@tlsldm(%ebx), %eax
27528 leal foo@dtpoff(%eax), %edx
27529 movl foo@gottpoff(%ebx), %eax
27530 subl foo@gottpoff(%ebx), %eax
27531 addl foo@gotntpoff(%ebx), %eax
27532 movl foo@indntpoff, %eax
27533 movl \$foo@tpoff, %eax
27534 subl \$foo@tpoff, %eax
27535 leal foo@ntpoff(%ecx), %eax"
27537 x86_64-*-*)
27538 if test x$on_solaris = xyes; then
27539 case $gas_flag in
27540 yes) tls_as_opt="$tls_as_opt --64" ;;
27541 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
27542 esac
27544 conftest_s="$conftest_s
27545 foo: .long 25
27546 .text
27547 movq %fs:0, %rax
27548 leaq foo@tlsgd(%rip), %rdi
27549 leaq foo@tlsld(%rip), %rdi
27550 leaq foo@dtpoff(%rax), %rdx
27551 movq foo@gottpoff(%rip), %rax
27552 movq \$foo@tpoff, %rax"
27554 esac
27556 ia64-*-*)
27557 conftest_s='
27558 .section ".tdata","awT",@progbits
27559 foo: data8 25
27560 .text
27561 addl r16 = @ltoff(@dtpmod(foo#)), gp
27562 addl r17 = @ltoff(@dtprel(foo#)), gp
27563 addl r18 = @ltoff(@tprel(foo#)), gp
27564 addl r19 = @dtprel(foo#), gp
27565 adds r21 = @dtprel(foo#), r13
27566 movl r23 = @dtprel(foo#)
27567 addl r20 = @tprel(foo#), gp
27568 adds r22 = @tprel(foo#), r13
27569 movl r24 = @tprel(foo#)'
27570 tls_as_opt=--fatal-warnings
27572 loongarch*-*-*)
27573 conftest_s='
27574 .section .tdata,"awT",@progbits
27575 x: .word 2
27576 .text
27577 la.tls.gd $a0,x
27578 bl __tls_get_addr'
27579 tls_first_major=0
27580 tls_first_minor=0
27581 tls_as_opt='--fatal-warnings'
27583 microblaze*-*-*)
27584 conftest_s='
27585 .section .tdata,"awT",@progbits
27587 .word 2
27588 .text
27589 addik r5,r20,x@TLSGD
27590 addik r5,r20,x@TLSLDM'
27591 tls_as_opt='--fatal-warnings'
27593 mips*-*-*)
27594 conftest_s='
27595 .section .tdata,"awT",@progbits
27597 .word 2
27598 .text
27599 addiu $4, $28, %tlsgd(x)
27600 addiu $4, $28, %tlsldm(x)
27601 lui $4, %dtprel_hi(x)
27602 addiu $4, $4, %dtprel_lo(x)
27603 lw $4, %gottprel(x)($28)
27604 lui $4, %tprel_hi(x)
27605 addiu $4, $4, %tprel_lo(x)'
27606 tls_as_opt='-32 --fatal-warnings'
27608 m68k-*-*)
27609 conftest_s='
27610 .section .tdata,"awT",@progbits
27612 .word 2
27613 .text
27614 foo:
27615 move.l x@TLSGD(%a5),%a0
27616 move.l x@TLSLDM(%a5),%a0
27617 move.l x@TLSLDO(%a5),%a0
27618 move.l x@TLSIE(%a5),%a0
27619 move.l x@TLSLE(%a5),%a0'
27620 tls_as_opt='--fatal-warnings'
27622 nios2-*-*)
27623 conftest_s='
27624 .section ".tdata","awT",@progbits'
27625 tls_as_opt="--fatal-warnings"
27627 aarch64*-*-*)
27628 conftest_s='
27629 .section ".tdata","awT",%progbits
27630 foo: .long 25
27631 .text
27632 adrp x0, :tlsgd:x
27633 add x0, x0, #:tlsgd_lo12:x
27634 bl __tls_get_addr
27635 nop'
27636 tls_as_opt='--fatal-warnings'
27638 or1k*-*-*)
27639 conftest_s='
27640 .section ".tdata","awT",@progbits
27641 foo: .long 25
27642 .text
27643 l.movhi r3, tpoffha(foo)
27644 l.add r3, r3, r10
27645 l.lwz r4, tpofflo(foo)(r3)'
27646 tls_as_opt=--fatal-warnings
27648 powerpc-ibm-aix*)
27649 conftest_s='
27650 .extern __get_tpointer
27651 .toc
27652 LC..1:
27653 .tc a[TC],a[TL]@le
27654 .csect .text[PR]
27655 .tlstest:
27656 lwz 9,LC..1(2)
27657 bla __get_tpointer
27658 lwzx 3,9,3
27659 .globl a
27660 .csect a[TL],4
27662 .space 4'
27664 powerpc64*-*-*)
27665 conftest_s='
27666 .section ".tdata","awT",@progbits
27667 .align 3
27668 ld0: .space 8
27669 ld1: .space 8
27670 x1: .space 8
27671 x2: .space 8
27672 x3: .space 8
27673 .text
27674 addi 3,2,ld0@got@tlsgd
27675 bl .__tls_get_addr
27677 addi 3,2,ld1@toc
27678 bl .__tls_get_addr
27680 addi 3,2,x1@got@tlsld
27681 bl .__tls_get_addr
27683 addi 9,3,x1@dtprel
27684 bl .__tls_get_addr
27686 addis 9,3,x2@dtprel@ha
27687 addi 9,9,x2@dtprel@l
27688 bl .__tls_get_addr
27690 ld 9,x3@got@dtprel(2)
27691 add 9,9,3
27692 bl .__tls_get_addr
27693 nop'
27694 tls_as_opt="-a64 --fatal-warnings"
27696 powerpc*-*-*)
27697 conftest_s='
27698 .section ".tdata","awT",@progbits
27699 .align 2
27700 ld0: .space 4
27701 ld1: .space 4
27702 x1: .space 4
27703 x2: .space 4
27704 x3: .space 4
27705 .text
27706 addi 3,31,ld0@got@tlsgd
27707 bl __tls_get_addr
27708 addi 3,31,x1@got@tlsld
27709 bl __tls_get_addr
27710 addi 9,3,x1@dtprel
27711 addis 9,3,x2@dtprel@ha
27712 addi 9,9,x2@dtprel@l
27713 lwz 9,x3@got@tprel(31)
27714 add 9,9,x@tls
27715 addi 9,2,x1@tprel
27716 addis 9,2,x2@tprel@ha
27717 addi 9,9,x2@tprel@l'
27718 tls_as_opt="-a32 --fatal-warnings"
27720 riscv*-*-*)
27721 conftest_s='
27722 .section .tdata,"awT",@progbits
27723 x: .word 2
27724 .text
27725 la.tls.gd a0,x
27726 call __tls_get_addr'
27727 tls_as_opt='--fatal-warnings'
27729 s390-*-*)
27730 conftest_s='
27731 .section ".tdata","awT",@progbits
27732 foo: .long 25
27733 .text
27734 .long foo@TLSGD
27735 .long foo@TLSLDM
27736 .long foo@DTPOFF
27737 .long foo@NTPOFF
27738 .long foo@GOTNTPOFF
27739 .long foo@INDNTPOFF
27740 l %r1,foo@GOTNTPOFF(%r12)
27741 l %r1,0(%r1):tls_load:foo
27742 bas %r14,0(%r1,%r13):tls_gdcall:foo
27743 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27744 tls_as_opt="-m31 --fatal-warnings"
27746 s390x-*-*)
27747 conftest_s='
27748 .section ".tdata","awT",@progbits
27749 foo: .long 25
27750 .text
27751 .quad foo@TLSGD
27752 .quad foo@TLSLDM
27753 .quad foo@DTPOFF
27754 .quad foo@NTPOFF
27755 .quad foo@GOTNTPOFF
27756 lg %r1,foo@GOTNTPOFF(%r12)
27757 larl %r1,foo@INDNTPOFF
27758 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27759 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27760 tls_as_opt="-m64 -Aesame --fatal-warnings"
27762 sh-*-* | sh[123456789lbe]*-*-*)
27763 conftest_s='
27764 .section ".tdata","awT",@progbits
27765 foo: .long 25
27766 .text
27767 .long foo@TLSGD
27768 .long foo@TLSLDM
27769 .long foo@DTPOFF
27770 .long foo@GOTTPOFF
27771 .long foo@TPOFF'
27772 tls_as_opt=--fatal-warnings
27774 sparc*-*-*)
27775 case "$target" in
27776 sparc*-sun-solaris2.*)
27777 on_solaris=yes
27780 on_solaris=no
27782 esac
27783 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27784 conftest_s='
27785 .section ".tdata",#alloc,#write,#tls'
27786 else
27787 conftest_s='
27788 .section ".tdata","awT",@progbits'
27789 tls_as_opt="-32 --fatal-warnings"
27791 conftest_s="$conftest_s
27792 foo: .long 25
27793 .text
27794 sethi %tgd_hi22(foo), %o0
27795 add %o0, %tgd_lo10(foo), %o1
27796 add %l7, %o1, %o0, %tgd_add(foo)
27797 call __tls_get_addr, %tgd_call(foo)
27798 sethi %tldm_hi22(foo), %l1
27799 add %l1, %tldm_lo10(foo), %l2
27800 add %l7, %l2, %o0, %tldm_add(foo)
27801 call __tls_get_addr, %tldm_call(foo)
27802 sethi %tldo_hix22(foo), %l3
27803 xor %l3, %tldo_lox10(foo), %l4
27804 add %o0, %l4, %l5, %tldo_add(foo)
27805 sethi %tie_hi22(foo), %o3
27806 add %o3, %tie_lo10(foo), %o3
27807 ld [%l7 + %o3], %o2, %tie_ld(foo)
27808 add %g7, %o2, %o4, %tie_add(foo)
27809 sethi %tle_hix22(foo), %l1
27810 xor %l1, %tle_lox10(foo), %o5
27811 ld [%g7 + %o5], %o1"
27813 xtensa*-*-*)
27814 conftest_s='
27815 .section ".tdata","awT",@progbits
27816 foo: .long 25
27817 .text
27818 movi a8, foo@TLSFUNC
27819 movi a10, foo@TLSARG
27820 callx8.tls a8, foo@TLSCALL'
27822 esac
27823 set_have_as_tls=no
27824 if test "x$enable_tls" = xno ; then
27825 : # TLS explicitly disabled.
27826 elif test "x$enable_tls" = xyes ; then
27827 set_have_as_tls=yes # TLS explicitly enabled.
27828 elif test -z "$conftest_s"; then
27829 : # If we don't have a check, assume no support.
27830 else
27831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27832 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27833 if ${gcc_cv_as_tls+:} false; then :
27834 $as_echo_n "(cached) " >&6
27835 else
27836 gcc_cv_as_tls=no
27837 if test x$gcc_cv_as != x; then
27838 $as_echo "$conftest_s" > conftest.s
27839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27841 (eval $ac_try) 2>&5
27842 ac_status=$?
27843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27844 test $ac_status = 0; }; }
27845 then
27846 gcc_cv_as_tls=yes
27847 else
27848 echo "configure: failed program was" >&5
27849 cat conftest.s >&5
27851 rm -f conftest.o conftest.s
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27855 $as_echo "$gcc_cv_as_tls" >&6; }
27856 if test $gcc_cv_as_tls = yes; then
27857 set_have_as_tls=yes
27861 if test $set_have_as_tls = yes ; then
27863 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27867 # Target-specific assembler checks.
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27870 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27871 gcc_cv_ld_static_dynamic=no
27872 gcc_cv_ld_static_option='-Bstatic'
27873 gcc_cv_ld_dynamic_option='-Bdynamic'
27874 if test $in_tree_ld = yes ; then
27875 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
27876 gcc_cv_ld_static_dynamic=yes
27878 elif test x$gcc_cv_ld != x; then
27879 # Check if linker supports -Bstatic/-Bdynamic option
27880 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
27881 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
27882 gcc_cv_ld_static_dynamic=yes
27883 else
27884 case "$target" in
27885 # AIX ld uses -b flags
27886 *-*-aix4.[23]* | *-*-aix[5-9]*)
27887 gcc_cv_ld_static_dynamic=yes
27888 gcc_cv_ld_static_option="-bstatic"
27889 gcc_cv_ld_dynamic_option="-bdynamic"
27891 # HP-UX ld uses -a flags to select between shared and archive.
27892 *-*-hpux*)
27893 if test x"$gnu_ld" = xno; then
27894 gcc_cv_ld_static_dynamic=yes
27895 gcc_cv_ld_static_option="-aarchive_shared"
27896 gcc_cv_ld_dynamic_option="-adefault"
27899 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27900 *-*-solaris2*)
27901 gcc_cv_ld_static_dynamic=yes
27903 esac
27906 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
27908 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27911 cat >>confdefs.h <<_ACEOF
27912 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27913 _ACEOF
27916 cat >>confdefs.h <<_ACEOF
27917 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27918 _ACEOF
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27922 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27925 $as_echo_n "checking linker --version-script option... " >&6; }
27926 gcc_cv_ld_version_script=no
27927 ld_version_script_option=''
27928 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27929 gcc_cv_ld_version_script=yes
27930 ld_version_script_option='--version-script'
27931 elif test x$gcc_cv_ld != x; then
27932 case "$target" in
27933 # Solaris 2 ld always supports -M. It also supports a subset of
27934 # --version-script since Solaris 11.4, but requires
27935 # -z gnu-version-script-compat to activate.
27936 *-*-solaris2*)
27937 gcc_cv_ld_version_script=yes
27938 ld_version_script_option='-M'
27940 esac
27942 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
27944 $as_echo "$gcc_cv_ld_version_script" >&6; }
27947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
27948 $as_echo_n "checking linker soname option... " >&6; }
27949 gcc_cv_ld_soname=no
27950 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27951 gcc_cv_ld_soname=yes
27952 ld_soname_option='-soname'
27953 elif test x$gcc_cv_ld != x; then
27954 case "$target" in
27955 *-*-darwin*)
27956 gcc_cv_ld_soname=yes
27957 ld_soname_option='-install_name'
27959 # Solaris 2 ld always supports -h. It also supports --soname for GNU
27960 # ld compatiblity since some Solaris 10 update.
27961 *-*-solaris2*)
27962 gcc_cv_ld_soname=yes
27963 ld_soname_option='-h'
27965 esac
27967 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
27969 $as_echo "$gcc_cv_ld_soname" >&6; }
27972 if test x"$demangler_in_ld" = xyes; then
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
27974 $as_echo_n "checking linker --demangle support... " >&6; }
27975 gcc_cv_ld_demangle=no
27976 if test $in_tree_ld = yes; then
27977 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 \
27978 gcc_cv_ld_demangle=yes
27980 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
27981 # Check if the GNU linker supports --demangle option
27982 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
27983 gcc_cv_ld_demangle=yes
27986 if test x"$gcc_cv_ld_demangle" = xyes; then
27988 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
27992 $as_echo "$gcc_cv_ld_demangle" >&6; }
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
27996 $as_echo_n "checking linker plugin support... " >&6; }
27997 gcc_cv_lto_plugin=0
27998 if test -f liblto_plugin.la; then
27999 save_ld_ver="$ld_ver"
28000 save_ld_vers_major="$ld_vers_major"
28001 save_ld_vers_minor="$ld_vers_minor"
28002 save_ld_is_gold="$ld_is_gold"
28004 ld_is_gold=no
28006 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
28007 ld_ver="GNU ld"
28008 # FIXME: ld_is_gold?
28009 ld_vers_major="$gcc_cv_gld_major_version"
28010 ld_vers_minor="$gcc_cv_gld_minor_version"
28011 else
28012 # Determine plugin linker version.
28013 # FIXME: Partial duplicate from above, generalize.
28014 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
28015 if echo "$ld_ver" | grep GNU > /dev/null; then
28016 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
28017 ld_is_gold=yes
28018 ld_vers=`echo $ld_ver | sed -n \
28019 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
28020 else
28021 ld_vers=`echo $ld_ver | sed -n \
28022 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
28024 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
28025 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
28029 # Determine plugin support.
28030 if echo "$ld_ver" | grep GNU > /dev/null; then
28031 # Require GNU ld or gold 2.21+ for plugin support by default.
28032 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
28033 gcc_cv_lto_plugin=2
28034 elif test "$ld_is_mold" = yes; then
28035 gcc_cv_lto_plugin=2
28036 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
28037 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
28038 gcc_cv_lto_plugin=1
28042 ld_ver="$save_ld_ver"
28043 ld_vers_major="$save_ld_vers_major"
28044 ld_vers_minor="$save_ld_vers_minor"
28045 ld_is_gold="$save_ld_is_gold"
28048 cat >>confdefs.h <<_ACEOF
28049 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
28050 _ACEOF
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
28053 $as_echo "$gcc_cv_lto_plugin" >&6; }
28055 # Target OS-specific assembler checks.
28057 case "$target_os" in
28058 darwin*)
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
28060 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
28061 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
28062 $as_echo_n "(cached) " >&6
28063 else
28064 gcc_cv_as_mmacosx_version_min=no
28065 if test x$gcc_cv_as != x; then
28066 $as_echo '.text' > conftest.s
28067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
28068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28069 (eval $ac_try) 2>&5
28070 ac_status=$?
28071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28072 test $ac_status = 0; }; }
28073 then
28074 gcc_cv_as_mmacosx_version_min=yes
28075 else
28076 echo "configure: failed program was" >&5
28077 cat conftest.s >&5
28079 rm -f conftest.o conftest.s
28082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
28083 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
28084 if test $gcc_cv_as_mmacosx_version_min = yes; then
28086 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
28090 if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
28092 $as_echo_n "checking assembler for .build_version... " >&6; }
28093 if ${gcc_cv_as_darwin_build_version+:} false; then :
28094 $as_echo_n "(cached) " >&6
28095 else
28096 gcc_cv_as_darwin_build_version=no
28097 if test x$gcc_cv_as != x; then
28098 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
28099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
28100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28101 (eval $ac_try) 2>&5
28102 ac_status=$?
28103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28104 test $ac_status = 0; }; }
28105 then
28106 gcc_cv_as_darwin_build_version=yes
28107 else
28108 echo "configure: failed program was" >&5
28109 cat conftest.s >&5
28111 rm -f conftest.o conftest.s
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
28115 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
28116 if test $gcc_cv_as_darwin_build_version = yes; then
28118 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
28124 esac
28126 # Target CPU-specific assembler checks.
28128 case "$target" in
28129 aarch64*-*-*)
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
28131 $as_echo_n "checking assembler for -mabi option... " >&6; }
28132 if ${gcc_cv_as_aarch64_mabi+:} false; then :
28133 $as_echo_n "(cached) " >&6
28134 else
28135 gcc_cv_as_aarch64_mabi=no
28136 if test x$gcc_cv_as != x; then
28137 $as_echo '.text' > conftest.s
28138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
28139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28140 (eval $ac_try) 2>&5
28141 ac_status=$?
28142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28143 test $ac_status = 0; }; }
28144 then
28145 gcc_cv_as_aarch64_mabi=yes
28146 else
28147 echo "configure: failed program was" >&5
28148 cat conftest.s >&5
28150 rm -f conftest.o conftest.s
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
28154 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
28157 if test x$gcc_cv_as_aarch64_mabi = xyes; then
28159 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
28161 else
28162 if test x$with_abi = xilp32; then
28163 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28164 Upgrade the Assembler." "$LINENO" 5
28166 if test x"$with_multilib_list" = xdefault; then
28167 TM_MULTILIB_CONFIG=lp64
28168 else
28169 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
28170 for aarch64_multilib in ${aarch64_multilibs}; do
28171 case ${aarch64_multilib} in
28172 ilp32)
28173 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28174 Upgrade the Assembler." "$LINENO" 5
28178 esac
28179 done
28182 # Check if we have binutils support for relocations types needed by -fpic
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
28184 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
28185 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
28186 $as_echo_n "(cached) " >&6
28187 else
28188 gcc_cv_as_aarch64_picreloc=no
28189 if test x$gcc_cv_as != x; then
28190 $as_echo '
28191 .text
28192 ldr x0, [x2, #:gotpage_lo15:globalsym]
28193 ' > conftest.s
28194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_picreloc=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_picreloc" >&5
28210 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28211 if test $gcc_cv_as_aarch64_picreloc = yes; then
28213 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28217 # Enable Branch Target Identification Mechanism and Return Address
28218 # Signing by default.
28219 # Check whether --enable-standard-branch-protection was given.
28220 if test "${enable_standard_branch_protection+set}" = set; then :
28221 enableval=$enable_standard_branch_protection;
28222 case $enableval in
28223 yes)
28224 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
28229 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
28230 Valid choices are 'yes' and 'no'." "$LINENO" 5
28232 esac
28236 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28237 # Check whether --enable-fix-cortex-a53-835769 was given.
28238 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28239 enableval=$enable_fix_cortex_a53_835769;
28240 case $enableval in
28241 yes)
28242 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28247 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28248 Valid choices are 'yes' and 'no'." "$LINENO" 5
28251 esac
28255 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28256 # Check whether --enable-fix-cortex-a53-843419 was given.
28257 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28258 enableval=$enable_fix_cortex_a53_843419;
28259 case $enableval in
28260 yes)
28261 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28266 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28267 Valid choices are 'yes' and 'no'." "$LINENO" 5
28270 esac
28276 # All TARGET_ABI_OSF targets.
28277 alpha*-*-linux* | alpha*-*-*bsd*)
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28279 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28280 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
28281 $as_echo_n "(cached) " >&6
28282 else
28283 gcc_cv_as_alpha_explicit_relocs=no
28284 if test x$gcc_cv_as != x; then
28285 $as_echo ' .set nomacro
28286 .text
28287 extbl $3, $2, $3 !lituse_bytoff!1
28288 ldq $2, a($29) !literal!1
28289 ldq $4, b($29) !literal!2
28290 ldq_u $3, 0($2) !lituse_base!1
28291 ldq $27, f($29) !literal!5
28292 jsr $26, ($27), f !lituse_jsr!5
28293 ldah $29, 0($26) !gpdisp!3
28294 lda $0, c($29) !gprel
28295 ldah $1, d($29) !gprelhigh
28296 lda $1, d($1) !gprellow
28297 lda $29, 0($29) !gpdisp!3' > conftest.s
28298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28300 (eval $ac_try) 2>&5
28301 ac_status=$?
28302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28303 test $ac_status = 0; }; }
28304 then
28305 gcc_cv_as_alpha_explicit_relocs=yes
28306 else
28307 echo "configure: failed program was" >&5
28308 cat conftest.s >&5
28310 rm -f conftest.o conftest.s
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28314 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28315 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28317 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28322 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28323 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
28324 $as_echo_n "(cached) " >&6
28325 else
28326 gcc_cv_as_alpha_jsrdirect_relocs=no
28327 if test x$gcc_cv_as != x; then
28328 $as_echo ' .set nomacro
28329 .text
28330 ldq $27, a($29) !literal!1
28331 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28334 (eval $ac_try) 2>&5
28335 ac_status=$?
28336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28337 test $ac_status = 0; }; }
28338 then
28339 gcc_cv_as_alpha_jsrdirect_relocs=yes
28340 else
28341 echo "configure: failed program was" >&5
28342 cat conftest.s >&5
28344 rm -f conftest.o conftest.s
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28348 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28349 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28351 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28357 avr-*-*)
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28359 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28360 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
28361 $as_echo_n "(cached) " >&6
28362 else
28363 gcc_cv_as_avr_mlink_relax=no
28364 if test x$gcc_cv_as != x; then
28365 $as_echo '.text' > conftest.s
28366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28368 (eval $ac_try) 2>&5
28369 ac_status=$?
28370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28371 test $ac_status = 0; }; }
28372 then
28373 gcc_cv_as_avr_mlink_relax=yes
28374 else
28375 echo "configure: failed program was" >&5
28376 cat conftest.s >&5
28378 rm -f conftest.o conftest.s
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28382 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28383 if test $gcc_cv_as_avr_mlink_relax = yes; then
28385 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28391 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28392 if ${gcc_cv_as_avr_mrmw+:} false; then :
28393 $as_echo_n "(cached) " >&6
28394 else
28395 gcc_cv_as_avr_mrmw=no
28396 if test x$gcc_cv_as != x; then
28397 $as_echo '.text' > conftest.s
28398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28400 (eval $ac_try) 2>&5
28401 ac_status=$?
28402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28403 test $ac_status = 0; }; }
28404 then
28405 gcc_cv_as_avr_mrmw=yes
28406 else
28407 echo "configure: failed program was" >&5
28408 cat conftest.s >&5
28410 rm -f conftest.o conftest.s
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28414 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28415 if test $gcc_cv_as_avr_mrmw = yes; then
28417 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28423 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28424 if ${gcc_cv_as_avr_mgccisr+:} false; then :
28425 $as_echo_n "(cached) " >&6
28426 else
28427 gcc_cv_as_avr_mgccisr=no
28428 if test x$gcc_cv_as != x; then
28429 $as_echo '.text
28430 __gcc_isr 1
28431 __gcc_isr 2
28432 __gcc_isr 0,r24
28433 ' > conftest.s
28434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28436 (eval $ac_try) 2>&5
28437 ac_status=$?
28438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28439 test $ac_status = 0; }; }
28440 then
28441 gcc_cv_as_avr_mgccisr=yes
28442 else
28443 echo "configure: failed program was" >&5
28444 cat conftest.s >&5
28446 rm -f conftest.o conftest.s
28449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28450 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28451 if test $gcc_cv_as_avr_mgccisr = yes; then
28453 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28458 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28459 # Check how default linker description file implements .rodata for
28460 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28461 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28463 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28464 cat > conftest.s <<EOF
28465 .section .rodata,"a",@progbits
28466 .global xxvaryy
28467 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28468 xxvaryy:
28469 .word 1
28471 rm -f conftest.nm
28472 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28474 (eval $ac_try) 2>&5
28475 ac_status=$?
28476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28477 test $ac_status = 0; }; }
28478 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28480 (eval $ac_try) 2>&5
28481 ac_status=$?
28482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28483 test $ac_status = 0; }; }
28484 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
28485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28486 (eval $ac_try) 2>&5
28487 ac_status=$?
28488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28489 test $ac_status = 0; }; }
28490 if test -s conftest.nm
28491 then
28492 if grep ' R xxvaryy' conftest.nm > /dev/null; then
28493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28494 $as_echo "yes" >&6; }
28496 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28498 else
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28500 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28501 echo "$as_me: nm output was" >&5
28502 cat conftest.nm >&5
28503 { $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
28504 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28506 else
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28508 $as_echo "test failed" >&6; }
28509 echo "$as_me: failed program was" >&5
28510 cat conftest.s >&5
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28512 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28514 rm -f conftest.s conftest.o conftest.elf conftest.nm
28516 # Check for emulation avrxmega2_flmap.
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega2_flmap support (PR31124)" >&5
28518 $as_echo_n "checking binutils for avrxmega2_flmap support (PR31124)... " >&6; }
28519 cat > conftest.s <<EOF
28520 .section .text,"ax",@progbits
28521 ldi r16, __flmap_value_with_lock
28523 { ac_try='$gcc_cv_as -mmcu=avrxmega2 conftest.s -o conftest.o'
28524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28525 (eval $ac_try) 2>&5
28526 ac_status=$?
28527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28528 test $ac_status = 0; }; }
28529 { ac_try='$gcc_cv_ld -mavrxmega2_flmap conftest.o -o conftest.elf'
28530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28531 (eval $ac_try) 2>&5
28532 ac_status=$?
28533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28534 test $ac_status = 0; }; }
28535 if test -s conftest.elf
28536 then
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28538 $as_echo "yes" >&6; }
28540 $as_echo "#define HAVE_LD_AVR_AVRXMEGA2_FLMAP 1" >>confdefs.h
28542 else
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28544 $as_echo "no" >&6; }
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28546 $as_echo "$as_me: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28548 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28550 rm -f conftest.o conftest.elf
28552 # Check for emulation avrxmega4_flmap.
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega4_flmap support (PR31124)" >&5
28554 $as_echo_n "checking binutils for avrxmega4_flmap support (PR31124)... " >&6; }
28555 { ac_try='$gcc_cv_as -mmcu=avrxmega4 conftest.s -o conftest.o'
28556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28557 (eval $ac_try) 2>&5
28558 ac_status=$?
28559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28560 test $ac_status = 0; }; }
28561 { ac_try='$gcc_cv_ld -mavrxmega4_flmap conftest.o -o conftest.elf'
28562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28563 (eval $ac_try) 2>&5
28564 ac_status=$?
28565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28566 test $ac_status = 0; }; }
28567 if test -s conftest.elf
28568 then
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28570 $as_echo "yes" >&6; }
28572 $as_echo "#define HAVE_LD_AVR_AVRXMEGA4_FLMAP 1" >>confdefs.h
28574 else
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28576 $as_echo "no" >&6; }
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28578 $as_echo "$as_me: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28580 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28582 rm -f conftest.s conftest.o conftest.elf
28585 cris-*-*)
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28587 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28588 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
28589 $as_echo_n "(cached) " >&6
28590 else
28591 gcc_cv_as_cris_no_mul_bug=no
28592 if test x$gcc_cv_as != x; then
28593 $as_echo '.text' > conftest.s
28594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28596 (eval $ac_try) 2>&5
28597 ac_status=$?
28598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28599 test $ac_status = 0; }; }
28600 then
28601 gcc_cv_as_cris_no_mul_bug=yes
28602 else
28603 echo "configure: failed program was" >&5
28604 cat conftest.s >&5
28606 rm -f conftest.o conftest.s
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28610 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28611 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28613 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28619 sparc*-*-*)
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28621 $as_echo_n "checking assembler for -relax option... " >&6; }
28622 if ${gcc_cv_as_sparc_relax+:} false; then :
28623 $as_echo_n "(cached) " >&6
28624 else
28625 gcc_cv_as_sparc_relax=no
28626 if test x$gcc_cv_as != x; then
28627 $as_echo '.text' > conftest.s
28628 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28630 (eval $ac_try) 2>&5
28631 ac_status=$?
28632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28633 test $ac_status = 0; }; }
28634 then
28635 gcc_cv_as_sparc_relax=yes
28636 else
28637 echo "configure: failed program was" >&5
28638 cat conftest.s >&5
28640 rm -f conftest.o conftest.s
28643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28644 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28645 if test $gcc_cv_as_sparc_relax = yes; then
28647 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28653 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28654 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
28655 $as_echo_n "(cached) " >&6
28656 else
28657 gcc_cv_as_sparc_gotdata_op=no
28658 if test x$gcc_cv_as != x; then
28659 $as_echo '.text
28660 .align 4
28661 foo:
28663 bar:
28664 sethi %gdop_hix22(foo), %g1
28665 xor %g1, %gdop_lox10(foo), %g1
28666 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28669 (eval $ac_try) 2>&5
28670 ac_status=$?
28671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28672 test $ac_status = 0; }; }
28673 then
28674 if test x$gcc_cv_ld != x \
28675 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28676 if test x$gcc_cv_objdump != x; then
28677 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
28678 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
28679 gcc_cv_as_sparc_gotdata_op=no
28680 else
28681 gcc_cv_as_sparc_gotdata_op=yes
28685 rm -f conftest
28686 else
28687 echo "configure: failed program was" >&5
28688 cat conftest.s >&5
28690 rm -f conftest.o conftest.s
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28694 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28695 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28697 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28703 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28704 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
28705 $as_echo_n "(cached) " >&6
28706 else
28707 gcc_cv_as_sparc_ua_pcrel=no
28708 if test x$gcc_cv_as != x; then
28709 $as_echo '.text
28710 foo:
28712 .data
28713 .align 4
28714 .byte 0
28715 .uaword %r_disp32(foo)' > conftest.s
28716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28718 (eval $ac_try) 2>&5
28719 ac_status=$?
28720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28721 test $ac_status = 0; }; }
28722 then
28723 if test x$gcc_cv_ld != x \
28724 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28725 gcc_cv_as_sparc_ua_pcrel=yes
28727 rm -f conftest
28728 else
28729 echo "configure: failed program was" >&5
28730 cat conftest.s >&5
28732 rm -f conftest.o conftest.s
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28736 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28737 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28739 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28743 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28744 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
28745 $as_echo_n "(cached) " >&6
28746 else
28747 gcc_cv_as_sparc_ua_pcrel_hidden=no
28748 if test x$gcc_cv_as != x; then
28749 $as_echo '.data
28750 .align 4
28751 .byte 0x31
28752 .uaword %r_disp32(foo)
28753 .byte 0x32, 0x33, 0x34
28754 .global foo
28755 .hidden foo
28756 foo:
28757 .skip 4' > conftest.s
28758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28760 (eval $ac_try) 2>&5
28761 ac_status=$?
28762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28763 test $ac_status = 0; }; }
28764 then
28765 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28766 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
28767 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
28768 | grep ' 31000000 07323334' > /dev/null 2>&1; then
28769 if $gcc_cv_objdump -R conftest 2> /dev/null \
28770 | grep 'DISP32' > /dev/null 2>&1; then
28772 else
28773 gcc_cv_as_sparc_ua_pcrel_hidden=yes
28776 rm -f conftest
28777 else
28778 echo "configure: failed program was" >&5
28779 cat conftest.s >&5
28781 rm -f conftest.o conftest.s
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28785 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28786 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28788 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28794 # unaligned pcrel relocs
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28797 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28798 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
28799 $as_echo_n "(cached) " >&6
28800 else
28801 gcc_cv_as_sparc_offsetable_lo10=no
28802 if test x$gcc_cv_as != x; then
28803 $as_echo '.text
28804 or %g1, %lo(ab) + 12, %g1
28805 or %g1, %lo(ab + 12), %g1' > conftest.s
28806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28808 (eval $ac_try) 2>&5
28809 ac_status=$?
28810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28811 test $ac_status = 0; }; }
28812 then
28813 if test x$gcc_cv_objdump != x \
28814 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
28815 | grep ' 82106000 82106000' > /dev/null 2>&1; then
28816 gcc_cv_as_sparc_offsetable_lo10=yes
28818 else
28819 echo "configure: failed program was" >&5
28820 cat conftest.s >&5
28822 rm -f conftest.o conftest.s
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28826 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28827 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28829 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28835 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28836 if ${gcc_cv_as_sparc_fmaf+:} false; then :
28837 $as_echo_n "(cached) " >&6
28838 else
28839 gcc_cv_as_sparc_fmaf=no
28840 if test x$gcc_cv_as != x; then
28841 $as_echo '.text
28842 .register %g2, #scratch
28843 .register %g3, #scratch
28844 .align 4
28845 fmaddd %f0, %f2, %f4, %f6
28846 addxccc %g1, %g2, %g3
28847 fsrl32 %f2, %f4, %f8
28848 fnaddd %f10, %f12, %f14' > conftest.s
28849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28851 (eval $ac_try) 2>&5
28852 ac_status=$?
28853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28854 test $ac_status = 0; }; }
28855 then
28856 gcc_cv_as_sparc_fmaf=yes
28857 else
28858 echo "configure: failed program was" >&5
28859 cat conftest.s >&5
28861 rm -f conftest.o conftest.s
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28865 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28866 if test $gcc_cv_as_sparc_fmaf = yes; then
28868 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28874 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28875 if ${gcc_cv_as_sparc_sparc4+:} false; then :
28876 $as_echo_n "(cached) " >&6
28877 else
28878 gcc_cv_as_sparc_sparc4=no
28879 if test x$gcc_cv_as != x; then
28880 $as_echo '.text
28881 .register %g2, #scratch
28882 .register %g3, #scratch
28883 .align 4
28884 cxbe %g2, %g3, 1f
28885 1: cwbneg %g2, %g3, 1f
28886 1: sha1
28888 aes_kexpand0 %f4, %f6, %f8
28889 des_round %f38, %f40, %f42, %f44
28890 camellia_f %f54, %f56, %f58, %f60
28891 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28892 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28894 (eval $ac_try) 2>&5
28895 ac_status=$?
28896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28897 test $ac_status = 0; }; }
28898 then
28899 gcc_cv_as_sparc_sparc4=yes
28900 else
28901 echo "configure: failed program was" >&5
28902 cat conftest.s >&5
28904 rm -f conftest.o conftest.s
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28908 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28909 if test $gcc_cv_as_sparc_sparc4 = yes; then
28911 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28917 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28918 if ${gcc_cv_as_sparc_sparc5+:} false; then :
28919 $as_echo_n "(cached) " >&6
28920 else
28921 gcc_cv_as_sparc_sparc5=no
28922 if test x$gcc_cv_as != x; then
28923 $as_echo '.text
28924 .register %g2, #scratch
28925 .register %g3, #scratch
28926 .align 4
28927 subxc %g1, %g2, %g3
28928 fpadd8 %f0, %f2, %f4' > conftest.s
28929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28931 (eval $ac_try) 2>&5
28932 ac_status=$?
28933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28934 test $ac_status = 0; }; }
28935 then
28936 gcc_cv_as_sparc_sparc5=yes
28937 else
28938 echo "configure: failed program was" >&5
28939 cat conftest.s >&5
28941 rm -f conftest.o conftest.s
28944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28945 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28946 if test $gcc_cv_as_sparc_sparc5 = yes; then
28948 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28954 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28955 if ${gcc_cv_as_sparc_sparc6+:} false; then :
28956 $as_echo_n "(cached) " >&6
28957 else
28958 gcc_cv_as_sparc_sparc6=no
28959 if test x$gcc_cv_as != x; then
28960 $as_echo '.text
28961 .register %g2, #scratch
28962 .register %g3, #scratch
28963 .align 4
28964 rd %entropy, %g1
28965 fpsll64x %f0, %f2, %f4' > conftest.s
28966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28968 (eval $ac_try) 2>&5
28969 ac_status=$?
28970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28971 test $ac_status = 0; }; }
28972 then
28973 gcc_cv_as_sparc_sparc6=yes
28974 else
28975 echo "configure: failed program was" >&5
28976 cat conftest.s >&5
28978 rm -f conftest.o conftest.s
28981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28982 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28983 if test $gcc_cv_as_sparc_sparc6 = yes; then
28985 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28991 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28992 if ${gcc_cv_as_sparc_leon+:} false; then :
28993 $as_echo_n "(cached) " >&6
28994 else
28995 gcc_cv_as_sparc_leon=no
28996 if test x$gcc_cv_as != x; then
28997 $as_echo '.text
28998 .register %g2, #scratch
28999 .register %g3, #scratch
29000 .align 4
29001 smac %g2, %g3, %g1
29002 umac %g2, %g3, %g1
29003 casa [%g2] 0xb, %g3, %g1' > conftest.s
29004 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
29005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29006 (eval $ac_try) 2>&5
29007 ac_status=$?
29008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29009 test $ac_status = 0; }; }
29010 then
29011 gcc_cv_as_sparc_leon=yes
29012 else
29013 echo "configure: failed program was" >&5
29014 cat conftest.s >&5
29016 rm -f conftest.o conftest.s
29019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
29020 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
29021 if test $gcc_cv_as_sparc_leon = yes; then
29023 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
29029 i[34567]86-*-* | x86_64-*-*)
29030 case $target_os in
29031 cygwin*)
29032 # Full C++ conformance when using a shared libstdc++-v3 requires some
29033 # support from the Cygwin DLL, which in more recent versions exports
29034 # wrappers to aid in interposing and redirecting operators new, delete,
29035 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
29036 # are configuring for a version of Cygwin that exports the wrappers.
29037 if test x$host = x$target && test x$host_cpu = xi686; then
29038 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
29039 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
29040 gcc_ac_cygwin_dll_wrappers=yes
29041 else
29042 gcc_ac_cygwin_dll_wrappers=no
29045 else
29046 # Can't check presence of libc functions during cross-compile, so
29047 # we just have to assume we're building for an up-to-date target.
29048 gcc_ac_cygwin_dll_wrappers=yes
29051 cat >>confdefs.h <<_ACEOF
29052 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
29053 _ACEOF
29055 esac
29056 case $target_os in
29057 cygwin* | pe | mingw32*)
29058 # Recent binutils allows the three-operand form of ".comm" on PE. This
29059 # definition is used unconditionally to initialise the default state of
29060 # the target option variable that governs usage of the feature.
29061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
29062 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
29063 if ${gcc_cv_as_comm_has_align+:} false; then :
29064 $as_echo_n "(cached) " >&6
29065 else
29066 gcc_cv_as_comm_has_align=no
29067 if test x$gcc_cv_as != x; then
29068 $as_echo '.comm foo,1,32' > conftest.s
29069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29071 (eval $ac_try) 2>&5
29072 ac_status=$?
29073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29074 test $ac_status = 0; }; }
29075 then
29076 gcc_cv_as_comm_has_align=yes
29077 else
29078 echo "configure: failed program was" >&5
29079 cat conftest.s >&5
29081 rm -f conftest.o conftest.s
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
29085 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
29089 cat >>confdefs.h <<_ACEOF
29090 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
29091 _ACEOF
29093 # Used for DWARF 2 in PE
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
29095 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
29096 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
29097 $as_echo_n "(cached) " >&6
29098 else
29099 gcc_cv_as_ix86_pe_secrel32=no
29100 if test x$gcc_cv_as != x; then
29101 $as_echo '.text
29102 foo: nop
29103 .data
29104 .secrel32 foo' > conftest.s
29105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29110 test $ac_status = 0; }; }
29111 then
29112 if test x$gcc_cv_ld != x \
29113 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
29114 gcc_cv_as_ix86_pe_secrel32=yes
29116 rm -f conftest
29117 else
29118 echo "configure: failed program was" >&5
29119 cat conftest.s >&5
29121 rm -f conftest.o conftest.s
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
29125 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
29126 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
29128 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
29132 # Test if the assembler supports the extended form of the .section
29133 # directive that specifies section alignment. LTO support uses this,
29134 # but normally only after installation, so we warn but don't fail the
29135 # configure if LTO is enabled but the assembler does not support it.
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
29137 $as_echo_n "checking assembler for .section with alignment... " >&6; }
29138 if ${gcc_cv_as_section_has_align+:} false; then :
29139 $as_echo_n "(cached) " >&6
29140 else
29141 gcc_cv_as_section_has_align=no
29142 if test x$gcc_cv_as != x; then
29143 $as_echo '.section lto_test,"dr0"' > conftest.s
29144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
29145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29146 (eval $ac_try) 2>&5
29147 ac_status=$?
29148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29149 test $ac_status = 0; }; }
29150 then
29151 gcc_cv_as_section_has_align=yes
29152 else
29153 echo "configure: failed program was" >&5
29154 cat conftest.s >&5
29156 rm -f conftest.o conftest.s
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
29160 $as_echo "$gcc_cv_as_section_has_align" >&6; }
29163 if test x$gcc_cv_as_section_has_align != xyes; then
29164 case ",$enable_languages," in
29165 *,lto,*)
29166 { $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
29167 $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;}
29169 esac
29172 esac
29173 case $target_os in
29174 darwin2* | darwin19*)
29175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
29176 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
29177 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
29178 $as_echo_n "(cached) " >&6
29179 else
29180 gcc_cv_as_mllvm_x86_pad_for_align=no
29181 if test x$gcc_cv_as != x; then
29182 $as_echo '.text' > conftest.s
29183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
29184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29185 (eval $ac_try) 2>&5
29186 ac_status=$?
29187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29188 test $ac_status = 0; }; }
29189 then
29190 gcc_cv_as_mllvm_x86_pad_for_align=yes
29191 else
29192 echo "configure: failed program was" >&5
29193 cat conftest.s >&5
29195 rm -f conftest.o conftest.s
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
29199 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
29200 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
29202 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29207 esac
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29210 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29211 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
29212 $as_echo_n "(cached) " >&6
29213 else
29214 gcc_cv_as_ix86_xbrace_comment=no
29215 if test x$gcc_cv_as != x; then
29216 $as_echo '.text' > conftest.s
29217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29219 (eval $ac_try) 2>&5
29220 ac_status=$?
29221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29222 test $ac_status = 0; }; }
29223 then
29224 gcc_cv_as_ix86_xbrace_comment=yes
29225 else
29226 echo "configure: failed program was" >&5
29227 cat conftest.s >&5
29229 rm -f conftest.o conftest.s
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29233 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29234 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29236 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29242 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29243 if ${gcc_cv_as_ix86_filds+:} false; then :
29244 $as_echo_n "(cached) " >&6
29245 else
29246 gcc_cv_as_ix86_filds=no
29247 if test x$gcc_cv_as != x; then
29248 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29249 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29251 (eval $ac_try) 2>&5
29252 ac_status=$?
29253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29254 test $ac_status = 0; }; }
29255 then
29256 gcc_cv_as_ix86_filds=yes
29257 else
29258 echo "configure: failed program was" >&5
29259 cat conftest.s >&5
29261 rm -f conftest.o conftest.s
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29265 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29266 if test $gcc_cv_as_ix86_filds = yes; then
29268 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29274 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29275 if ${gcc_cv_as_ix86_fildq+:} false; then :
29276 $as_echo_n "(cached) " >&6
29277 else
29278 gcc_cv_as_ix86_fildq=no
29279 if test x$gcc_cv_as != x; then
29280 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29283 (eval $ac_try) 2>&5
29284 ac_status=$?
29285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29286 test $ac_status = 0; }; }
29287 then
29288 gcc_cv_as_ix86_fildq=yes
29289 else
29290 echo "configure: failed program was" >&5
29291 cat conftest.s >&5
29293 rm -f conftest.o conftest.s
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29297 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29298 if test $gcc_cv_as_ix86_fildq = yes; then
29300 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29306 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29307 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
29308 $as_echo_n "(cached) " >&6
29309 else
29310 gcc_cv_as_ix86_cmov_sun_syntax=no
29311 if test x$gcc_cv_as != x; then
29312 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29315 (eval $ac_try) 2>&5
29316 ac_status=$?
29317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29318 test $ac_status = 0; }; }
29319 then
29320 gcc_cv_as_ix86_cmov_sun_syntax=yes
29321 else
29322 echo "configure: failed program was" >&5
29323 cat conftest.s >&5
29325 rm -f conftest.o conftest.s
29328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29329 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29330 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29332 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29338 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29339 if ${gcc_cv_as_ix86_ffreep+:} false; then :
29340 $as_echo_n "(cached) " >&6
29341 else
29342 gcc_cv_as_ix86_ffreep=no
29343 if test x$gcc_cv_as != x; then
29344 $as_echo 'ffreep %st(1)' > conftest.s
29345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29347 (eval $ac_try) 2>&5
29348 ac_status=$?
29349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29350 test $ac_status = 0; }; }
29351 then
29352 gcc_cv_as_ix86_ffreep=yes
29353 else
29354 echo "configure: failed program was" >&5
29355 cat conftest.s >&5
29357 rm -f conftest.o conftest.s
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29361 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29362 if test $gcc_cv_as_ix86_ffreep = yes; then
29364 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29370 $as_echo_n "checking assembler for .quad directive... " >&6; }
29371 if ${gcc_cv_as_ix86_quad+:} false; then :
29372 $as_echo_n "(cached) " >&6
29373 else
29374 gcc_cv_as_ix86_quad=no
29375 if test x$gcc_cv_as != x; then
29376 $as_echo '.quad 0' > conftest.s
29377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29379 (eval $ac_try) 2>&5
29380 ac_status=$?
29381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29382 test $ac_status = 0; }; }
29383 then
29384 gcc_cv_as_ix86_quad=yes
29385 else
29386 echo "configure: failed program was" >&5
29387 cat conftest.s >&5
29389 rm -f conftest.o conftest.s
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29393 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29394 if test $gcc_cv_as_ix86_quad = yes; then
29396 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29402 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29403 if ${gcc_cv_as_ix86_sahf+:} false; then :
29404 $as_echo_n "(cached) " >&6
29405 else
29406 gcc_cv_as_ix86_sahf=no
29407 if test x$gcc_cv_as != x; then
29408 $as_echo '.code64
29409 sahf' > conftest.s
29410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29412 (eval $ac_try) 2>&5
29413 ac_status=$?
29414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29415 test $ac_status = 0; }; }
29416 then
29417 gcc_cv_as_ix86_sahf=yes
29418 else
29419 echo "configure: failed program was" >&5
29420 cat conftest.s >&5
29422 rm -f conftest.o conftest.s
29425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29426 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29427 if test $gcc_cv_as_ix86_sahf = yes; then
29429 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29435 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29436 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
29437 $as_echo_n "(cached) " >&6
29438 else
29439 gcc_cv_as_ix86_interunit_movq=no
29440 if test x$gcc_cv_as != x; then
29441 $as_echo '.code64
29442 movq %mm0, %rax
29443 movq %rax, %xmm0' > conftest.s
29444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29446 (eval $ac_try) 2>&5
29447 ac_status=$?
29448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29449 test $ac_status = 0; }; }
29450 then
29451 gcc_cv_as_ix86_interunit_movq=yes
29452 else
29453 echo "configure: failed program was" >&5
29454 cat conftest.s >&5
29456 rm -f conftest.o conftest.s
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29460 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29464 cat >>confdefs.h <<_ACEOF
29465 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29466 _ACEOF
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29470 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29471 if ${gcc_cv_as_ix86_hle+:} false; then :
29472 $as_echo_n "(cached) " >&6
29473 else
29474 gcc_cv_as_ix86_hle=no
29475 if test x$gcc_cv_as != x; then
29476 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29479 (eval $ac_try) 2>&5
29480 ac_status=$?
29481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29482 test $ac_status = 0; }; }
29483 then
29484 gcc_cv_as_ix86_hle=yes
29485 else
29486 echo "configure: failed program was" >&5
29487 cat conftest.s >&5
29489 rm -f conftest.o conftest.s
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29493 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29494 if test $gcc_cv_as_ix86_hle = yes; then
29496 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29502 $as_echo_n "checking assembler for swap suffix... " >&6; }
29503 if ${gcc_cv_as_ix86_swap+:} false; then :
29504 $as_echo_n "(cached) " >&6
29505 else
29506 gcc_cv_as_ix86_swap=no
29507 if test x$gcc_cv_as != x; then
29508 $as_echo 'movl.s %esp, %ebp' > conftest.s
29509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29511 (eval $ac_try) 2>&5
29512 ac_status=$?
29513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29514 test $ac_status = 0; }; }
29515 then
29516 gcc_cv_as_ix86_swap=yes
29517 else
29518 echo "configure: failed program was" >&5
29519 cat conftest.s >&5
29521 rm -f conftest.o conftest.s
29524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29525 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29526 if test $gcc_cv_as_ix86_swap = yes; then
29528 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29534 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29535 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
29536 $as_echo_n "(cached) " >&6
29537 else
29538 gcc_cv_as_ix86_diff_sect_delta=no
29539 if test x$gcc_cv_as != x; then
29540 $as_echo '.section .rodata
29541 .L1:
29542 .long .L2-.L1
29543 .long .L3-.L1
29544 .text
29545 .L3: nop
29546 .L2: nop' > conftest.s
29547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29549 (eval $ac_try) 2>&5
29550 ac_status=$?
29551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29552 test $ac_status = 0; }; }
29553 then
29554 gcc_cv_as_ix86_diff_sect_delta=yes
29555 else
29556 echo "configure: failed program was" >&5
29557 cat conftest.s >&5
29559 rm -f conftest.o conftest.s
29562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29563 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29564 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29566 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29572 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29573 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
29574 $as_echo_n "(cached) " >&6
29575 else
29576 gcc_cv_as_ix86_rep_lock_prefix=no
29577 if test x$gcc_cv_as != x; then
29578 $as_echo 'rep movsl
29579 rep ret
29580 rep nop
29581 rep bsf %ecx, %eax
29582 rep bsr %ecx, %eax
29583 lock addl %edi, (%eax,%esi)
29584 lock orl $0, (%esp)' > conftest.s
29585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29587 (eval $ac_try) 2>&5
29588 ac_status=$?
29589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29590 test $ac_status = 0; }; }
29591 then
29592 gcc_cv_as_ix86_rep_lock_prefix=yes
29593 else
29594 echo "configure: failed program was" >&5
29595 cat conftest.s >&5
29597 rm -f conftest.o conftest.s
29600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29601 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29602 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29604 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29610 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29611 if ${gcc_cv_as_ix86_ud2+:} false; then :
29612 $as_echo_n "(cached) " >&6
29613 else
29614 gcc_cv_as_ix86_ud2=no
29615 if test x$gcc_cv_as != x; then
29616 $as_echo 'ud2' > conftest.s
29617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29619 (eval $ac_try) 2>&5
29620 ac_status=$?
29621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29622 test $ac_status = 0; }; }
29623 then
29624 gcc_cv_as_ix86_ud2=yes
29625 else
29626 echo "configure: failed program was" >&5
29627 cat conftest.s >&5
29629 rm -f conftest.o conftest.s
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29633 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29634 if test $gcc_cv_as_ix86_ud2 = yes; then
29636 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29641 # Enforce 32-bit output with gas and gld.
29642 if test x$gas = xyes; then
29643 as_ix86_gas_32_opt="--32"
29645 if echo "$ld_ver" | grep GNU > /dev/null; then
29646 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
29647 ld_ix86_gld_32_opt="-melf_i386_sol2"
29648 else
29649 ld_ix86_gld_32_opt="-melf_i386"
29653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29654 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29655 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
29656 $as_echo_n "(cached) " >&6
29657 else
29658 gcc_cv_as_ix86_tlsgdplt=no
29659 if test x$gcc_cv_as != x; then
29660 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29663 (eval $ac_try) 2>&5
29664 ac_status=$?
29665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29666 test $ac_status = 0; }; }
29667 then
29668 if test x$gcc_cv_ld != x \
29669 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29670 gcc_cv_as_ix86_tlsgdplt=yes
29672 rm -f conftest
29673 else
29674 echo "configure: failed program was" >&5
29675 cat conftest.s >&5
29677 rm -f conftest.o conftest.s
29680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29681 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29682 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29684 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29689 conftest_s='
29690 .section .tdata,"aw'$tls_section_flag'",@progbits
29691 tls_ld:
29692 .section .text,"ax",@progbits
29693 call tls_ld@tlsldmplt'
29695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29696 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29697 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
29698 $as_echo_n "(cached) " >&6
29699 else
29700 gcc_cv_as_ix86_tlsldmplt=no
29701 if test x$gcc_cv_as != x; then
29702 $as_echo "$conftest_s" > conftest.s
29703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29705 (eval $ac_try) 2>&5
29706 ac_status=$?
29707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29708 test $ac_status = 0; }; }
29709 then
29710 if test x$gcc_cv_ld != x \
29711 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29712 gcc_cv_as_ix86_tlsldmplt=yes
29714 rm -f conftest
29715 else
29716 echo "configure: failed program was" >&5
29717 cat conftest.s >&5
29719 rm -f conftest.o conftest.s
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29723 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29727 cat >>confdefs.h <<_ACEOF
29728 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29729 _ACEOF
29732 conftest_s='
29733 .section .text,"ax",@progbits
29734 .globl _start
29735 .type _start, @function
29736 _start:
29737 leal value@tlsldm(%ebx), %eax
29738 call ___tls_get_addr@plt
29740 .section .tdata,"aw'$tls_section_flag'",@progbits
29741 .type value, @object
29742 value:'
29743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29744 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29745 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
29746 $as_echo_n "(cached) " >&6
29747 else
29748 gcc_cv_as_ix86_tlsldm=no
29749 if test x$gcc_cv_as != x; then
29750 $as_echo "$conftest_s" > conftest.s
29751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29753 (eval $ac_try) 2>&5
29754 ac_status=$?
29755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29756 test $ac_status = 0; }; }
29757 then
29758 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29759 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
29760 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
29761 || dis conftest 2>/dev/null | grep nop > /dev/null; then
29762 gcc_cv_as_ix86_tlsldm=yes
29765 rm -f conftest
29766 else
29767 echo "configure: failed program was" >&5
29768 cat conftest.s >&5
29770 rm -f conftest.o conftest.s
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29774 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29778 cat >>confdefs.h <<_ACEOF
29779 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29780 _ACEOF
29783 conftest_s='
29784 .data
29785 bar:
29786 .byte 1
29787 .text
29788 .global _start
29789 _start:
29790 cmpl $0, bar@GOT
29791 jmp *_start@GOT'
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29793 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29794 if ${gcc_cv_as_ix86_got32x+:} false; then :
29795 $as_echo_n "(cached) " >&6
29796 else
29797 gcc_cv_as_ix86_got32x=no
29798 if test x$gcc_cv_as != x; then
29799 $as_echo "$conftest_s" > conftest.s
29800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29802 (eval $ac_try) 2>&5
29803 ac_status=$?
29804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29805 test $ac_status = 0; }; }
29806 then
29807 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29808 && test x$gcc_cv_readelf != x \
29809 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29810 | grep R_386_GOT32X > /dev/null 2>&1 \
29811 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29812 if $gcc_cv_objdump -dw conftest 2>&1 \
29813 | grep 0xffffff > /dev/null 2>&1; then
29814 gcc_cv_as_ix86_got32x=no
29815 else
29816 gcc_cv_as_ix86_got32x=yes
29819 rm -f conftest
29820 else
29821 echo "configure: failed program was" >&5
29822 cat conftest.s >&5
29824 rm -f conftest.o conftest.s
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29828 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29832 cat >>confdefs.h <<_ACEOF
29833 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29834 _ACEOF
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29838 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29839 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
29840 $as_echo_n "(cached) " >&6
29841 else
29842 gcc_cv_as_ix86_gotoff_in_data=no
29843 if test x$gcc_cv_as != x; then
29844 $as_echo ' .text
29845 .L0:
29847 .data
29848 .long .L0@GOTOFF' > conftest.s
29849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29851 (eval $ac_try) 2>&5
29852 ac_status=$?
29853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29854 test $ac_status = 0; }; }
29855 then
29856 gcc_cv_as_ix86_gotoff_in_data=yes
29857 else
29858 echo "configure: failed program was" >&5
29859 cat conftest.s >&5
29861 rm -f conftest.o conftest.s
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29865 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29869 cat >>confdefs.h <<_ACEOF
29870 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29871 _ACEOF
29874 conftest_s='
29875 .section .text,"ax",@progbits
29876 .globl _start
29877 .type _start, @function
29878 _start:
29879 leal ld@tlsldm(%ecx), %eax
29880 call *___tls_get_addr@GOT(%ecx)
29881 leal gd@tlsgd(%ecx), %eax
29882 call *___tls_get_addr@GOT(%ecx)
29884 .section .tdata,"aw'$tls_section_flag'",@progbits
29885 .type ld, @object
29887 .byte 0
29888 .globl gd
29889 .type gd, @object
29891 .byte 0'
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29893 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29894 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
29895 $as_echo_n "(cached) " >&6
29896 else
29897 gcc_cv_as_ix86_tls_get_addr_via_got=no
29898 if test x$gcc_cv_as != x; then
29899 $as_echo "$conftest_s" > conftest.s
29900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29902 (eval $ac_try) 2>&5
29903 ac_status=$?
29904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29905 test $ac_status = 0; }; }
29906 then
29907 if test x$gcc_cv_ld != x \
29908 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29909 gcc_cv_as_ix86_tls_get_addr_via_got=yes
29911 rm -f conftest
29912 else
29913 echo "configure: failed program was" >&5
29914 cat conftest.s >&5
29916 rm -f conftest.o conftest.s
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29920 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29924 cat >>confdefs.h <<_ACEOF
29925 #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`
29926 _ACEOF
29930 ia64*-*-*)
29931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
29932 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
29933 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
29934 $as_echo_n "(cached) " >&6
29935 else
29936 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
29937 if test x$gcc_cv_as != x; then
29938 $as_echo ' .text
29939 addl r15 = @ltoffx(x#), gp
29941 ld8.mov r16 = [r15], x#
29942 ' > conftest.s
29943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29945 (eval $ac_try) 2>&5
29946 ac_status=$?
29947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29948 test $ac_status = 0; }; }
29949 then
29950 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
29951 else
29952 echo "configure: failed program was" >&5
29953 cat conftest.s >&5
29955 rm -f conftest.o conftest.s
29958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
29959 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
29960 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
29962 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
29969 powerpc*-*-*)
29971 case $target in
29972 *-*-darwin*)
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
29974 $as_echo_n "checking assembler for .machine directive support... " >&6; }
29975 if ${gcc_cv_as_machine_directive+:} false; then :
29976 $as_echo_n "(cached) " >&6
29977 else
29978 gcc_cv_as_machine_directive=no
29979 if test x$gcc_cv_as != x; then
29980 $as_echo ' .machine ppc7400' > conftest.s
29981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29983 (eval $ac_try) 2>&5
29984 ac_status=$?
29985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29986 test $ac_status = 0; }; }
29987 then
29988 gcc_cv_as_machine_directive=yes
29989 else
29990 echo "configure: failed program was" >&5
29991 cat conftest.s >&5
29993 rm -f conftest.o conftest.s
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
29997 $as_echo "$gcc_cv_as_machine_directive" >&6; }
30000 if test x$gcc_cv_as_machine_directive != xyes; then
30001 echo "*** This target requires an assembler supporting \".machine\"" >&2
30002 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
30003 test x$build = x$target && exit 1
30006 esac
30008 case $target in
30009 *-*-aix*) conftest_s=' .machine "pwr5"
30010 .csect .text[PR]
30011 mfcr 3,128';;
30012 *-*-darwin*) conftest_s=' .text
30013 mfcr r3,128';;
30014 *) conftest_s=' .machine power4
30015 .text
30016 mfcr 3,128';;
30017 esac
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
30020 $as_echo_n "checking assembler for mfcr field support... " >&6; }
30021 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
30022 $as_echo_n "(cached) " >&6
30023 else
30024 gcc_cv_as_powerpc_mfcrf=no
30025 if test x$gcc_cv_as != x; then
30026 $as_echo "$conftest_s" > conftest.s
30027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30029 (eval $ac_try) 2>&5
30030 ac_status=$?
30031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30032 test $ac_status = 0; }; }
30033 then
30034 gcc_cv_as_powerpc_mfcrf=yes
30035 else
30036 echo "configure: failed program was" >&5
30037 cat conftest.s >&5
30039 rm -f conftest.o conftest.s
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
30043 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
30044 if test $gcc_cv_as_powerpc_mfcrf = yes; then
30046 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
30051 case $target in
30052 *-*-aix*) conftest_s=' .machine "pwr10"
30053 .csect .text[PR]
30054 tend. 0';;
30055 *-*-darwin*) conftest_s=' .text
30056 tend. 0';;
30057 *) conftest_s=' .machine power10
30058 .text
30059 tend. 0';;
30060 esac
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
30063 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
30064 if ${gcc_cv_as_power10_htm+:} false; then :
30065 $as_echo_n "(cached) " >&6
30066 else
30067 gcc_cv_as_power10_htm=no
30068 if test x$gcc_cv_as != x; then
30069 $as_echo "$conftest_s" > conftest.s
30070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30072 (eval $ac_try) 2>&5
30073 ac_status=$?
30074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30075 test $ac_status = 0; }; }
30076 then
30077 gcc_cv_as_power10_htm=yes
30078 else
30079 echo "configure: failed program was" >&5
30080 cat conftest.s >&5
30082 rm -f conftest.o conftest.s
30085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
30086 $as_echo "$gcc_cv_as_power10_htm" >&6; }
30087 if test $gcc_cv_as_power10_htm = yes; then
30089 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
30094 case $target in
30095 *-*-aix*) conftest_s=' .csect .text[PR]
30096 LCF..0:
30097 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
30098 *-*-darwin*)
30099 conftest_s=' .text
30100 LCF0:
30101 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
30102 *) conftest_s=' .text
30103 .LCF0:
30104 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
30105 esac
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
30108 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
30109 if ${gcc_cv_as_powerpc_rel16+:} false; then :
30110 $as_echo_n "(cached) " >&6
30111 else
30112 gcc_cv_as_powerpc_rel16=no
30113 if test x$gcc_cv_as != x; then
30114 $as_echo "$conftest_s" > conftest.s
30115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30117 (eval $ac_try) 2>&5
30118 ac_status=$?
30119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30120 test $ac_status = 0; }; }
30121 then
30122 gcc_cv_as_powerpc_rel16=yes
30123 else
30124 echo "configure: failed program was" >&5
30125 cat conftest.s >&5
30127 rm -f conftest.o conftest.s
30130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
30131 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
30132 if test $gcc_cv_as_powerpc_rel16 = yes; then
30134 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30139 case $target in
30140 *-*-aix*) conftest_s=' .machine "pwr7"
30141 .csect .text[PR]
30142 lxvd2x 1,2,3';;
30143 *) conftest_s=' .machine power7
30144 .text
30145 lxvd2x 1,2,3';;
30146 esac
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30149 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30150 if ${gcc_cv_as_powerpc_vsx+:} false; then :
30151 $as_echo_n "(cached) " >&6
30152 else
30153 gcc_cv_as_powerpc_vsx=no
30154 if test x$gcc_cv_as != x; then
30155 $as_echo "$conftest_s" > conftest.s
30156 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30158 (eval $ac_try) 2>&5
30159 ac_status=$?
30160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30161 test $ac_status = 0; }; }
30162 then
30163 gcc_cv_as_powerpc_vsx=yes
30164 else
30165 echo "configure: failed program was" >&5
30166 cat conftest.s >&5
30168 rm -f conftest.o conftest.s
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30172 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30173 if test $gcc_cv_as_powerpc_vsx = yes; then
30175 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30181 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30182 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
30183 $as_echo_n "(cached) " >&6
30184 else
30185 gcc_cv_as_powerpc_gnu_attribute=no
30186 if test x$gcc_cv_as != x; then
30187 $as_echo '.gnu_attribute 4,1' > conftest.s
30188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30190 (eval $ac_try) 2>&5
30191 ac_status=$?
30192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30193 test $ac_status = 0; }; }
30194 then
30195 gcc_cv_as_powerpc_gnu_attribute=yes
30196 else
30197 echo "configure: failed program was" >&5
30198 cat conftest.s >&5
30200 rm -f conftest.o conftest.s
30203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30204 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30205 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30207 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30213 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30214 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
30215 $as_echo_n "(cached) " >&6
30216 else
30217 gcc_cv_as_powerpc_entry_markers=no
30218 if test x$gcc_cv_as != x; then
30219 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30222 (eval $ac_try) 2>&5
30223 ac_status=$?
30224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30225 test $ac_status = 0; }; }
30226 then
30227 gcc_cv_as_powerpc_entry_markers=yes
30228 else
30229 echo "configure: failed program was" >&5
30230 cat conftest.s >&5
30232 rm -f conftest.o conftest.s
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30236 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30237 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30239 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30245 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30246 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
30247 $as_echo_n "(cached) " >&6
30248 else
30249 gcc_cv_as_powerpc_pltseq_markers=no
30250 if test x$gcc_cv_as != x; then
30251 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
30253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30254 (eval $ac_try) 2>&5
30255 ac_status=$?
30256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30257 test $ac_status = 0; }; }
30258 then
30259 gcc_cv_as_powerpc_pltseq_markers=yes
30260 else
30261 echo "configure: failed program was" >&5
30262 cat conftest.s >&5
30264 rm -f conftest.o conftest.s
30267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30268 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30269 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30271 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30276 case $target in
30277 *-*-aix*)
30278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30279 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30280 if ${gcc_cv_as_aix_ref+:} false; then :
30281 $as_echo_n "(cached) " >&6
30282 else
30283 gcc_cv_as_aix_ref=no
30284 if test x$gcc_cv_as != x; then
30285 $as_echo ' .csect stuff[rw]
30286 stuff:
30287 .long 1
30288 .extern sym
30289 .ref sym
30290 ' > conftest.s
30291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30293 (eval $ac_try) 2>&5
30294 ac_status=$?
30295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30296 test $ac_status = 0; }; }
30297 then
30298 gcc_cv_as_aix_ref=yes
30299 else
30300 echo "configure: failed program was" >&5
30301 cat conftest.s >&5
30303 rm -f conftest.o conftest.s
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30307 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30308 if test $gcc_cv_as_aix_ref = yes; then
30310 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30316 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30317 if ${gcc_cv_as_aix_dwloc+:} false; then :
30318 $as_echo_n "(cached) " >&6
30319 else
30320 gcc_cv_as_aix_dwloc=no
30321 if test x$gcc_cv_as != x; then
30322 $as_echo ' .dwsect 0xA0000
30323 Lframe..0:
30324 .vbyte 4,Lframe..0
30325 ' > conftest.s
30326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30328 (eval $ac_try) 2>&5
30329 ac_status=$?
30330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30331 test $ac_status = 0; }; }
30332 then
30333 gcc_cv_as_aix_dwloc=yes
30334 else
30335 echo "configure: failed program was" >&5
30336 cat conftest.s >&5
30338 rm -f conftest.o conftest.s
30341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30342 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30343 if test $gcc_cv_as_aix_dwloc = yes; then
30345 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30350 esac
30353 mips*-*-*)
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30355 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30356 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
30357 $as_echo_n "(cached) " >&6
30358 else
30359 gcc_cv_as_mips_explicit_relocs=no
30360 if test x$gcc_cv_as != x; then
30361 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30364 (eval $ac_try) 2>&5
30365 ac_status=$?
30366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30367 test $ac_status = 0; }; }
30368 then
30369 gcc_cv_as_mips_explicit_relocs=yes
30370 else
30371 echo "configure: failed program was" >&5
30372 cat conftest.s >&5
30374 rm -f conftest.o conftest.s
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30378 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30379 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30380 if test x$target_cpu_default = x
30381 then target_cpu_default=MASK_EXPLICIT_RELOCS
30382 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
30387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30388 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30389 if ${gcc_cv_as_mips_no_shared+:} false; then :
30390 $as_echo_n "(cached) " >&6
30391 else
30392 gcc_cv_as_mips_no_shared=no
30393 if test x$gcc_cv_as != x; then
30394 $as_echo 'nop' > conftest.s
30395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30397 (eval $ac_try) 2>&5
30398 ac_status=$?
30399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30400 test $ac_status = 0; }; }
30401 then
30402 gcc_cv_as_mips_no_shared=yes
30403 else
30404 echo "configure: failed program was" >&5
30405 cat conftest.s >&5
30407 rm -f conftest.o conftest.s
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30411 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30412 if test $gcc_cv_as_mips_no_shared = yes; then
30414 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30420 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30421 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
30422 $as_echo_n "(cached) " >&6
30423 else
30424 gcc_cv_as_mips_gnu_attribute=no
30425 if test x$gcc_cv_as != x; then
30426 $as_echo '.gnu_attribute 4,1' > conftest.s
30427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30429 (eval $ac_try) 2>&5
30430 ac_status=$?
30431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30432 test $ac_status = 0; }; }
30433 then
30434 gcc_cv_as_mips_gnu_attribute=yes
30435 else
30436 echo "configure: failed program was" >&5
30437 cat conftest.s >&5
30439 rm -f conftest.o conftest.s
30442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30443 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30444 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30446 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30452 $as_echo_n "checking assembler for .module support... " >&6; }
30453 if ${gcc_cv_as_mips_dot_module+:} false; then :
30454 $as_echo_n "(cached) " >&6
30455 else
30456 gcc_cv_as_mips_dot_module=no
30457 if test x$gcc_cv_as != x; then
30458 $as_echo '.module mips2
30459 .module fp=xx' > conftest.s
30460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
30461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30462 (eval $ac_try) 2>&5
30463 ac_status=$?
30464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30465 test $ac_status = 0; }; }
30466 then
30467 gcc_cv_as_mips_dot_module=yes
30468 else
30469 echo "configure: failed program was" >&5
30470 cat conftest.s >&5
30472 rm -f conftest.o conftest.s
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30476 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30477 if test $gcc_cv_as_mips_dot_module = yes; then
30479 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30483 if test x$gcc_cv_as_mips_dot_module = xno \
30484 && test x$with_fp_32 != x; then
30485 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30489 $as_echo_n "checking assembler for .micromips support... " >&6; }
30490 if ${gcc_cv_as_micromips_support+:} false; then :
30491 $as_echo_n "(cached) " >&6
30492 else
30493 gcc_cv_as_micromips_support=no
30494 if test x$gcc_cv_as != x; then
30495 $as_echo '.set micromips' > conftest.s
30496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30498 (eval $ac_try) 2>&5
30499 ac_status=$?
30500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30501 test $ac_status = 0; }; }
30502 then
30503 gcc_cv_as_micromips_support=yes
30504 else
30505 echo "configure: failed program was" >&5
30506 cat conftest.s >&5
30508 rm -f conftest.o conftest.s
30511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30512 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30513 if test $gcc_cv_as_micromips_support = yes; then
30515 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30521 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30522 if ${gcc_cv_as_mips_dtprelword+:} false; then :
30523 $as_echo_n "(cached) " >&6
30524 else
30525 gcc_cv_as_mips_dtprelword=no
30526 if test x$gcc_cv_as != x; then
30527 $as_echo '.section .tdata,"awT",@progbits
30529 .word 2
30530 .text
30531 .dtprelword x+0x8000' > conftest.s
30532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30534 (eval $ac_try) 2>&5
30535 ac_status=$?
30536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30537 test $ac_status = 0; }; }
30538 then
30539 gcc_cv_as_mips_dtprelword=yes
30540 else
30541 echo "configure: failed program was" >&5
30542 cat conftest.s >&5
30544 rm -f conftest.o conftest.s
30547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30548 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30549 if test $gcc_cv_as_mips_dtprelword = yes; then
30551 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30557 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30558 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
30559 $as_echo_n "(cached) " >&6
30560 else
30561 gcc_cv_as_mips_dspr1_mult=no
30562 if test x$gcc_cv_as != x; then
30563 $as_echo ' .set mips32r2
30564 .set nodspr2
30565 .set dsp
30566 madd $ac3,$4,$5
30567 maddu $ac3,$4,$5
30568 msub $ac3,$4,$5
30569 msubu $ac3,$4,$5
30570 mult $ac3,$4,$5
30571 multu $ac3,$4,$5' > conftest.s
30572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30574 (eval $ac_try) 2>&5
30575 ac_status=$?
30576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30577 test $ac_status = 0; }; }
30578 then
30579 gcc_cv_as_mips_dspr1_mult=yes
30580 else
30581 echo "configure: failed program was" >&5
30582 cat conftest.s >&5
30584 rm -f conftest.o conftest.s
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30588 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30589 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30591 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30597 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30598 gcc_cv_as_ld_jalr_reloc=no
30599 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30600 if test $in_tree_ld = yes ; then
30601 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 \
30602 && test $in_tree_ld_is_elf = yes; then
30603 gcc_cv_as_ld_jalr_reloc=yes
30605 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
30606 echo ' .ent x' > conftest.s
30607 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30608 echo ' lw $25,%call16(y)($28)' >> conftest.s
30609 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30610 echo '1: jalr $25' >> conftest.s
30611 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30612 echo '1: jalr $25' >> conftest.s
30613 echo ' .end x' >> conftest.s
30614 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
30615 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
30616 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
30617 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
30618 gcc_cv_as_ld_jalr_reloc=yes
30621 rm -f conftest.*
30624 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30625 if test x$target_cpu_default = x; then
30626 target_cpu_default=MASK_RELAX_PIC_CALLS
30627 else
30628 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30632 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30635 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30636 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
30637 $as_echo_n "(cached) " >&6
30638 else
30639 gcc_cv_ld_mips_personality_relaxation=no
30640 if test $in_tree_ld = yes ; then
30641 if test "$gcc_cv_gld_major_version" -eq 2 \
30642 -a "$gcc_cv_gld_minor_version" -ge 21 \
30643 -o "$gcc_cv_gld_major_version" -gt 2; then
30644 gcc_cv_ld_mips_personality_relaxation=yes
30646 elif test x$gcc_cv_as != x \
30647 -a x$gcc_cv_ld != x \
30648 -a x$gcc_cv_readelf != x ; then
30649 cat > conftest.s <<EOF
30650 .cfi_startproc
30651 .cfi_personality 0x80,indirect_ptr
30652 .ent test
30653 test:
30655 .end test
30656 .cfi_endproc
30658 .section .data,"aw",@progbits
30659 indirect_ptr:
30660 .dc.a personality
30662 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
30663 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
30664 if $gcc_cv_readelf -d conftest 2>&1 \
30665 | grep TEXTREL > /dev/null 2>&1; then
30667 elif $gcc_cv_readelf --relocs conftest 2>&1 \
30668 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
30670 else
30671 gcc_cv_ld_mips_personality_relaxation=yes
30675 rm -f conftest.s conftest.o conftest
30677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30678 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30679 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
30681 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30686 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30687 if ${gcc_cv_as_mips_nan+:} false; then :
30688 $as_echo_n "(cached) " >&6
30689 else
30690 gcc_cv_as_mips_nan=no
30691 if test x$gcc_cv_as != x; then
30692 $as_echo '' > conftest.s
30693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30695 (eval $ac_try) 2>&5
30696 ac_status=$?
30697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30698 test $ac_status = 0; }; }
30699 then
30700 gcc_cv_as_mips_nan=yes
30701 else
30702 echo "configure: failed program was" >&5
30703 cat conftest.s >&5
30705 rm -f conftest.o conftest.s
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30709 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30710 if test $gcc_cv_as_mips_nan = yes; then
30712 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30716 if test x$gcc_cv_as_mips_nan = xno \
30717 && test x$with_nan != x; then
30718 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30721 msp430-*-*)
30722 # Earlier GAS versions generically support .gnu_attribute, but the
30723 # msp430 assembler will not do anything with it.
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30725 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30726 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
30727 $as_echo_n "(cached) " >&6
30728 else
30729 gcc_cv_as_msp430_gnu_attribute=no
30730 if test x$gcc_cv_as != x; then
30731 $as_echo '.gnu_attribute 4,1' > conftest.s
30732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30734 (eval $ac_try) 2>&5
30735 ac_status=$?
30736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30737 test $ac_status = 0; }; }
30738 then
30739 gcc_cv_as_msp430_gnu_attribute=yes
30740 else
30741 echo "configure: failed program was" >&5
30742 cat conftest.s >&5
30744 rm -f conftest.o conftest.s
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30748 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30749 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30751 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30756 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30757 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
30758 $as_echo_n "(cached) " >&6
30759 else
30760 gcc_cv_as_msp430_mspabi_attribute=no
30761 if test x$gcc_cv_as != x; then
30762 $as_echo '.mspabi_attribute 4,2' > conftest.s
30763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30765 (eval $ac_try) 2>&5
30766 ac_status=$?
30767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30768 test $ac_status = 0; }; }
30769 then
30770 gcc_cv_as_msp430_mspabi_attribute=yes
30771 else
30772 echo "configure: failed program was" >&5
30773 cat conftest.s >&5
30775 rm -f conftest.o conftest.s
30778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30779 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30780 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30782 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30786 if test x$enable_newlib_nano_formatted_io = xyes; then
30788 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30792 nios2-*-*)
30793 # Versions 2.33 and earlier lacked support for the %gotoff relocation
30794 # syntax that is documented in the ABI specification.
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
30796 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
30797 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
30798 $as_echo_n "(cached) " >&6
30799 else
30800 gcc_cv_as_nios2_gotoff_relocation=no
30801 if test x$gcc_cv_as != x; then
30802 $as_echo ' .extern foo
30803 .data
30804 .long %gotoff(foo)' > conftest.s
30805 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30807 (eval $ac_try) 2>&5
30808 ac_status=$?
30809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30810 test $ac_status = 0; }; }
30811 then
30812 gcc_cv_as_nios2_gotoff_relocation=yes
30813 else
30814 echo "configure: failed program was" >&5
30815 cat conftest.s >&5
30817 rm -f conftest.o conftest.s
30820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
30821 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
30822 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
30824 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
30829 riscv*-*-*)
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30831 $as_echo_n "checking assembler for .attribute support... " >&6; }
30832 if ${gcc_cv_as_riscv_attribute+:} false; then :
30833 $as_echo_n "(cached) " >&6
30834 else
30835 gcc_cv_as_riscv_attribute=no
30836 if test x$gcc_cv_as != x; then
30837 $as_echo '.attribute stack_align,4' > conftest.s
30838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30840 (eval $ac_try) 2>&5
30841 ac_status=$?
30842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30843 test $ac_status = 0; }; }
30844 then
30845 gcc_cv_as_riscv_attribute=yes
30846 else
30847 echo "configure: failed program was" >&5
30848 cat conftest.s >&5
30850 rm -f conftest.o conftest.s
30853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30854 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30855 if test $gcc_cv_as_riscv_attribute = yes; then
30857 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30862 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30863 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
30864 $as_echo_n "(cached) " >&6
30865 else
30866 gcc_cv_as_riscv_isa_spec=no
30867 if test x$gcc_cv_as != x; then
30868 $as_echo '' > conftest.s
30869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30871 (eval $ac_try) 2>&5
30872 ac_status=$?
30873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30874 test $ac_status = 0; }; }
30875 then
30876 gcc_cv_as_riscv_isa_spec=yes
30877 else
30878 echo "configure: failed program was" >&5
30879 cat conftest.s >&5
30881 rm -f conftest.o conftest.s
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30885 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30886 if test $gcc_cv_as_riscv_isa_spec = yes; then
30888 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
30893 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
30894 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
30895 $as_echo_n "(cached) " >&6
30896 else
30897 gcc_cv_as_riscv_march_zifencei=no
30898 if test x$gcc_cv_as != x; then
30899 $as_echo '' > conftest.s
30900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
30901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30902 (eval $ac_try) 2>&5
30903 ac_status=$?
30904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30905 test $ac_status = 0; }; }
30906 then
30907 gcc_cv_as_riscv_march_zifencei=yes
30908 else
30909 echo "configure: failed program was" >&5
30910 cat conftest.s >&5
30912 rm -f conftest.o conftest.s
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
30916 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
30917 if test $gcc_cv_as_riscv_march_zifencei = yes; then
30919 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
30924 loongarch*-*-*)
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30926 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30927 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
30928 $as_echo_n "(cached) " >&6
30929 else
30930 gcc_cv_as_loongarch_dtprelword=no
30931 if test x$gcc_cv_as != x; then
30932 $as_echo '' > conftest.s
30933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
30934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30935 (eval $ac_try) 2>&5
30936 ac_status=$?
30937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30938 test $ac_status = 0; }; }
30939 then
30940 .section .tdata,"awT",@progbits
30942 .word 2
30943 .text
30944 .dtprelword x+0x8000
30945 else
30946 echo "configure: failed program was" >&5
30947 cat conftest.s >&5
30949 rm -f conftest.o conftest.s
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
30953 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
30955 if test $gcc_cv_as_loongarch_dtprelword != yes; then
30957 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30961 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30962 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
30963 $as_echo_n "(cached) " >&6
30964 else
30965 gcc_cv_as_loongarch_explicit_relocs=no
30966 if test x$gcc_cv_as != x; then
30967 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
30968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30970 (eval $ac_try) 2>&5
30971 ac_status=$?
30972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30973 test $ac_status = 0; }; }
30974 then
30975 gcc_cv_as_loongarch_explicit_relocs=yes
30976 else
30977 echo "configure: failed program was" >&5
30978 cat conftest.s >&5
30980 rm -f conftest.o conftest.s
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
30984 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
30985 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
30987 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
30992 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
30993 if ${gcc_cv_as_loongarch_call36+:} false; then :
30994 $as_echo_n "(cached) " >&6
30995 else
30996 gcc_cv_as_loongarch_call36=no
30997 if test x$gcc_cv_as != x; then
30998 $as_echo 'pcaddu18i $r1, %call36(a)
30999 jirl $r1, $r1, 0' > conftest.s
31000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31002 (eval $ac_try) 2>&5
31003 ac_status=$?
31004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31005 test $ac_status = 0; }; }
31006 then
31007 gcc_cv_as_loongarch_call36=yes
31008 else
31009 echo "configure: failed program was" >&5
31010 cat conftest.s >&5
31012 rm -f conftest.o conftest.s
31015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
31016 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
31017 if test $gcc_cv_as_loongarch_call36 = yes; then
31019 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
31023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
31024 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
31025 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
31026 $as_echo_n "(cached) " >&6
31027 else
31028 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
31029 if test x$gcc_cv_as != x; then
31030 $as_echo '.cfi_startproc
31031 .cfi_personality 0x9b,a
31032 .cfi_lsda 0x1b,b
31033 .cfi_endproc' > conftest.s
31034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31036 (eval $ac_try) 2>&5
31037 ac_status=$?
31038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31039 test $ac_status = 0; }; }
31040 then
31041 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
31042 else
31043 echo "configure: failed program was" >&5
31044 cat conftest.s >&5
31046 rm -f conftest.o conftest.s
31049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
31050 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
31051 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
31053 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
31058 $as_echo_n "checking assembler for -mrelax option... " >&6; }
31059 if ${gcc_cv_as_loongarch_relax+:} false; then :
31060 $as_echo_n "(cached) " >&6
31061 else
31062 gcc_cv_as_loongarch_relax=no
31063 if test x$gcc_cv_as != x; then
31064 $as_echo '.text' > conftest.s
31065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
31066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31067 (eval $ac_try) 2>&5
31068 ac_status=$?
31069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31070 test $ac_status = 0; }; }
31071 then
31072 gcc_cv_as_loongarch_relax=yes
31073 else
31074 echo "configure: failed program was" >&5
31075 cat conftest.s >&5
31077 rm -f conftest.o conftest.s
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
31081 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
31082 if test $gcc_cv_as_loongarch_relax = yes; then
31084 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
31088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
31089 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
31090 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then :
31091 $as_echo_n "(cached) " >&6
31092 else
31093 gcc_cv_as_loongarch_cond_branch_relax=no
31094 if test x$gcc_cv_as != x; then
31095 $as_echo 'a:
31096 .rept 32769
31098 .endr
31099 beq $a0,$a1,a' > conftest.s
31100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31102 (eval $ac_try) 2>&5
31103 ac_status=$?
31104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31105 test $ac_status = 0; }; }
31106 then
31107 gcc_cv_as_loongarch_cond_branch_relax=yes
31108 else
31109 echo "configure: failed program was" >&5
31110 cat conftest.s >&5
31112 rm -f conftest.o conftest.s
31115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31116 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31117 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31119 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls le relaxation support" >&5
31124 $as_echo_n "checking assembler for tls le relaxation support... " >&6; }
31125 if ${gcc_cv_as_loongarch_tls_le_relaxation_support+:} false; then :
31126 $as_echo_n "(cached) " >&6
31127 else
31128 gcc_cv_as_loongarch_tls_le_relaxation_support=no
31129 if test x$gcc_cv_as != x; then
31130 $as_echo 'lu12i.w $t0,%le_hi20_r(a)' > conftest.s
31131 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31133 (eval $ac_try) 2>&5
31134 ac_status=$?
31135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31136 test $ac_status = 0; }; }
31137 then
31138 gcc_cv_as_loongarch_tls_le_relaxation_support=yes
31139 else
31140 echo "configure: failed program was" >&5
31141 cat conftest.s >&5
31143 rm -f conftest.o conftest.s
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_tls_le_relaxation_support" >&5
31147 $as_echo "$gcc_cv_as_loongarch_tls_le_relaxation_support" >&6; }
31148 if test $gcc_cv_as_loongarch_tls_le_relaxation_support = yes; then
31150 $as_echo "#define HAVE_AS_TLS_LE_RELAXATION 1" >>confdefs.h
31155 s390*-*-*)
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31157 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31158 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
31159 $as_echo_n "(cached) " >&6
31160 else
31161 gcc_cv_as_s390_gnu_attribute=no
31162 if test x$gcc_cv_as != x; then
31163 $as_echo '.gnu_attribute 8,1' > conftest.s
31164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31166 (eval $ac_try) 2>&5
31167 ac_status=$?
31168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31169 test $ac_status = 0; }; }
31170 then
31171 gcc_cv_as_s390_gnu_attribute=yes
31172 else
31173 echo "configure: failed program was" >&5
31174 cat conftest.s >&5
31176 rm -f conftest.o conftest.s
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31180 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31181 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31183 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31188 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31189 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
31190 $as_echo_n "(cached) " >&6
31191 else
31192 gcc_cv_as_s390_machine_machinemode=no
31193 if test x$gcc_cv_as != x; then
31194 $as_echo ' .machinemode push
31195 .machinemode pop
31196 .machine push
31197 .machine pop' > conftest.s
31198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31200 (eval $ac_try) 2>&5
31201 ac_status=$?
31202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31203 test $ac_status = 0; }; }
31204 then
31205 gcc_cv_as_s390_machine_machinemode=yes
31206 else
31207 echo "configure: failed program was" >&5
31208 cat conftest.s >&5
31210 rm -f conftest.o conftest.s
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31214 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31215 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31217 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31222 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31223 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
31224 $as_echo_n "(cached) " >&6
31225 else
31226 gcc_cv_as_s390_architecture_modifiers=no
31227 if test x$gcc_cv_as != x; then
31228 $as_echo ' .machine z13+vx ' > conftest.s
31229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31231 (eval $ac_try) 2>&5
31232 ac_status=$?
31233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31234 test $ac_status = 0; }; }
31235 then
31236 gcc_cv_as_s390_architecture_modifiers=yes
31237 else
31238 echo "configure: failed program was" >&5
31239 cat conftest.s >&5
31241 rm -f conftest.o conftest.s
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31245 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31246 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31248 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31253 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31254 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
31255 $as_echo_n "(cached) " >&6
31256 else
31257 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
31258 if test x$gcc_cv_as != x; then
31259 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31262 (eval $ac_try) 2>&5
31263 ac_status=$?
31264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31265 test $ac_status = 0; }; }
31266 then
31267 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
31268 else
31269 echo "configure: failed program was" >&5
31270 cat conftest.s >&5
31272 rm -f conftest.o conftest.s
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31276 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31277 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31279 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31284 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31285 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
31286 $as_echo_n "(cached) " >&6
31287 else
31288 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
31289 if test x$gcc_cv_as != x; then
31290 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31293 (eval $ac_try) 2>&5
31294 ac_status=$?
31295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31296 test $ac_status = 0; }; }
31297 then
31298 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
31299 else
31300 echo "configure: failed program was" >&5
31301 cat conftest.s >&5
31303 rm -f conftest.o conftest.s
31306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31307 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31308 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31310 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31316 esac
31318 # Mips, LoongArch and HP-UX need the GNU assembler.
31319 # Linux on IA64 might be able to use the Intel assembler.
31321 case "$target" in
31322 mips*-*-* | loongarch*-*-* | *-*-hpux* )
31323 if test x$gas_flag = xyes \
31324 || test x"$host" != x"$build" \
31325 || test ! -x "$gcc_cv_as" \
31326 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
31328 else
31329 echo "*** This configuration requires the GNU assembler" >&2
31330 exit 1
31333 esac
31335 # AMD GCN needs the LLVM assembler and linker.
31336 # Test that LLVM is at least 13.0.1.
31337 case "$target" in
31338 amdgcn-* | gcn-*)
31339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31340 $as_echo_n "checking llvm assembler version... " >&6; }
31341 gcc_cv_as_version="unknown"
31342 if test x$gcc_cv_as != x; then
31343 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31344 case "$gcc_cv_as_version" in
31345 13.0.[1-9]*) ;; # 13.0.1+
31346 13.[1-9]*) ;; # 13.1+
31347 1[4-9]*) ;; # 14..19
31348 [2-9][0-9]*) ;; # 20..99
31349 [1-9][0-9][0-9]*) ;; # 100+
31350 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
31351 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31352 esac
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31355 $as_echo "$gcc_cv_as_version, ok" >&6; }
31357 esac
31359 case "$target" in
31360 arm*)
31361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31362 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31363 if ${gcc_cv_as_arm_option_extensions+:} false; then :
31364 $as_echo_n "(cached) " >&6
31365 else
31366 gcc_cv_as_arm_option_extensions=no
31367 if test x$gcc_cv_as != x; then
31368 $as_echo '.text
31369 .thumb
31370 .syntax unified
31371 vmov.f32 s0, s1' > conftest.s
31372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31374 (eval $ac_try) 2>&5
31375 ac_status=$?
31376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31377 test $ac_status = 0; }; }
31378 then
31379 gcc_cv_as_arm_option_extensions=yes
31380 else
31381 echo "configure: failed program was" >&5
31382 cat conftest.s >&5
31384 rm -f conftest.o conftest.s
31387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31388 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31389 if test $gcc_cv_as_arm_option_extensions = yes; then
31391 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31395 esac
31397 # ??? Not all targets support dwarf2 debug_line, even within a version
31398 # of gas. Moreover, we need to emit a valid instruction to trigger any
31399 # info to the output file. So, as supported targets are added to gas 2.11,
31400 # add some instruction here to (also) show we expect this might work.
31401 # ??? Once 2.11 is released, probably need to add first known working
31402 # version to the per-target configury.
31403 case "$cpu_type" in
31404 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31405 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
31406 | visium | xstormy16 | xtensa)
31407 insn="nop"
31409 ia64 | s390)
31410 insn="nop 0"
31412 mmix)
31413 insn="swym 0"
31415 esac
31416 if test x"$insn" != x; then
31417 conftest_s="\
31418 .file 1 \"conftest.s\"
31419 .loc 1 3 0
31420 $insn"
31421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31422 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31423 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
31424 $as_echo_n "(cached) " >&6
31425 else
31426 gcc_cv_as_dwarf2_debug_line=no
31427 if test x$gcc_cv_as != x; then
31428 $as_echo "$conftest_s" > conftest.s
31429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31431 (eval $ac_try) 2>&5
31432 ac_status=$?
31433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31434 test $ac_status = 0; }; }
31435 then
31436 if test x$gcc_cv_objdump != x \
31437 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
31438 | grep debug_line > /dev/null 2>&1; then
31439 gcc_cv_as_dwarf2_debug_line=yes
31440 elif test x$gcc_cv_otool != x \
31441 && $gcc_cv_otool -l conftest.o 2> /dev/null \
31442 | grep debug_line > /dev/null 2>&1; then
31443 gcc_cv_as_dwarf2_debug_line=yes
31445 else
31446 echo "configure: failed program was" >&5
31447 cat conftest.s >&5
31449 rm -f conftest.o conftest.s
31452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31453 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31457 # The .debug_line file table must be in the exact order that
31458 # we specified the files, since these indices are also used
31459 # by DW_AT_decl_file. Approximate this test by testing if
31460 # the assembler bitches if the same index is assigned twice.
31461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31462 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31463 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
31464 $as_echo_n "(cached) " >&6
31465 else
31466 gcc_cv_as_dwarf2_file_buggy=no
31467 if test x$gcc_cv_as != x; then
31468 $as_echo ' .file 1 "foo.s"
31469 .file 1 "bar.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_file_buggy=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_file_buggy" >&5
31486 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31490 if test $gcc_cv_as_dwarf2_debug_line = yes \
31491 && test $gcc_cv_as_dwarf2_file_buggy = no; then
31493 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31496 if test $gcc_cv_as_leb128 = yes; then
31497 conftest_s="\
31498 .file 1 \"conftest.s\"
31499 .loc 1 3 0 view .LVU1
31500 $insn
31501 .data
31502 .uleb128 .LVU1
31503 .uleb128 .LVU1
31505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31506 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31507 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
31508 $as_echo_n "(cached) " >&6
31509 else
31510 gcc_cv_as_dwarf2_debug_view=no
31511 if test x$gcc_cv_as != x; then
31512 $as_echo "$conftest_s" > conftest.s
31513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31515 (eval $ac_try) 2>&5
31516 ac_status=$?
31517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31518 test $ac_status = 0; }; }
31519 then
31520 gcc_cv_as_dwarf2_debug_view=yes
31521 else
31522 echo "configure: failed program was" >&5
31523 cat conftest.s >&5
31525 rm -f conftest.o conftest.s
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31529 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31530 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31532 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31540 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31541 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
31542 $as_echo_n "(cached) " >&6
31543 else
31544 gcc_cv_as_gdwarf2_flag=no
31545 if test x$gcc_cv_as != x; then
31546 $as_echo "$insn" > conftest.s
31547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31549 (eval $ac_try) 2>&5
31550 ac_status=$?
31551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31552 test $ac_status = 0; }; }
31553 then
31554 gcc_cv_as_gdwarf2_flag=yes
31555 else
31556 echo "configure: failed program was" >&5
31557 cat conftest.s >&5
31559 rm -f conftest.o conftest.s
31562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31563 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31564 if test $gcc_cv_as_gdwarf2_flag = yes; then
31566 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31572 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31573 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
31574 $as_echo_n "(cached) " >&6
31575 else
31576 gcc_cv_as_gdwarf_5_flag=no
31577 if test x$gcc_cv_as != x; then
31578 $as_echo "$insn" > conftest.s
31579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31581 (eval $ac_try) 2>&5
31582 ac_status=$?
31583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31584 test $ac_status = 0; }; }
31585 then
31586 if test x$gcc_cv_objdump != x \
31587 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
31588 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
31589 gcc_cv_as_gdwarf_5_flag=yes;
31591 else
31592 echo "configure: failed program was" >&5
31593 cat conftest.s >&5
31595 rm -f conftest.o conftest.s
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31599 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31600 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31602 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31607 case $target_os in
31608 win32 | pe | cygwin* | mingw32*)
31609 section_flags=\"dr\"
31610 function_type=".def foo; .scl 2; .type 32; .endef"
31611 function_size="";;
31613 section_flags=\"\",%progbits
31614 function_type=".type foo, %function"
31615 function_size=".size foo, .-foo";;
31616 esac
31617 dwarf4_debug_info_size=0x46
31618 dwarf4_high_pc_form=7
31619 dwarf4_debug_aranges_size=0x2c
31620 dwarf4_line_sz=9
31621 for dwarf4_addr_size in 8 4; do
31622 conftest_s="\
31623 .file \"a.c\"
31624 .text
31625 .Ltext0:
31626 .p2align 4
31627 .globl foo
31628 $function_type
31629 foo:
31630 .LFB0:
31631 .LM1:
31632 $insn
31633 .LM2:
31634 .LFE0:
31635 $function_size
31636 .Letext0:
31637 .section .debug_info,$section_flags
31638 .Ldebug_info0:
31639 .4byte $dwarf4_debug_info_size
31640 .2byte 0x4
31641 .4byte .Ldebug_abbrev0
31642 .byte 0x$dwarf4_addr_size
31643 .byte 0x1
31644 .ascii \"GNU C17\\0\"
31645 .byte 0xc
31646 .ascii \"a.c\\0\"
31647 .ascii \"/\\0\"
31648 .${dwarf4_addr_size}byte .Ltext0
31649 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31650 .4byte .Ldebug_line0
31651 .byte 0x2
31652 .ascii \"foo\\0\"
31653 .byte 0x1
31654 .byte 0x2
31655 .byte 0x1
31656 .${dwarf4_addr_size}byte .LFB0
31657 .${dwarf4_addr_size}byte .LFE0-.LFB0
31658 .byte 0x1
31659 .byte 0x9c
31660 .byte 0
31661 .section .debug_abbrev,$section_flags
31662 .Ldebug_abbrev0:
31663 .byte 0x1
31664 .byte 0x11
31665 .byte 0x1
31666 .byte 0x25
31667 .byte 0x8
31668 .byte 0x13
31669 .byte 0xb
31670 .byte 0x3
31671 .byte 0x8
31672 .byte 0x1b
31673 .byte 0x8
31674 .byte 0x11
31675 .byte 0x1
31676 .byte 0x12
31677 .byte 0x$dwarf4_high_pc_form
31678 .byte 0x10
31679 .byte 0x17
31680 .byte 0
31681 .byte 0
31682 .byte 0x2
31683 .byte 0x2e
31684 .byte 0
31685 .byte 0x3f
31686 .byte 0x19
31687 .byte 0x3
31688 .byte 0x8
31689 .byte 0x3a
31690 .byte 0xb
31691 .byte 0x3b
31692 .byte 0xb
31693 .byte 0x39
31694 .byte 0xb
31695 .byte 0x11
31696 .byte 0x1
31697 .byte 0x12
31698 .byte 0x$dwarf4_high_pc_form
31699 .byte 0x40
31700 .byte 0x18
31701 .byte 0
31702 .byte 0
31703 .byte 0
31704 .section .debug_aranges,$section_flags
31705 .4byte $dwarf4_debug_aranges_size
31706 .2byte 0x2
31707 .4byte .Ldebug_info0
31708 .byte 0x8
31709 .byte 0
31710 .2byte 0
31711 .2byte 0
31712 .${dwarf4_addr_size}byte .Ltext0
31713 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31714 .${dwarf4_addr_size}byte 0
31715 .${dwarf4_addr_size}byte 0
31716 .section .debug_line,$section_flags
31717 .Ldebug_line0:
31718 .4byte .LELT0-.LSLT0
31719 .LSLT0:
31720 .2byte 0x4
31721 .4byte .LELTP0-.LASLTP0
31722 .LASLTP0:
31723 .byte 0x1
31724 .byte 0x1
31725 .byte 0x1
31726 .byte 0xf6
31727 .byte 0xf2
31728 .byte 0xd
31729 .byte 0
31730 .byte 0x1
31731 .byte 0x1
31732 .byte 0x1
31733 .byte 0x1
31734 .byte 0
31735 .byte 0
31736 .byte 0
31737 .byte 0x1
31738 .byte 0
31739 .byte 0
31740 .byte 0x1
31741 .byte 0
31742 .ascii \"a.c\\0\"
31743 .byte 0
31744 .byte 0
31745 .byte 0
31746 .byte 0
31747 .LELTP0:
31748 .byte 0
31749 .byte 0x$dwarf4_line_sz
31750 .byte 0x2
31751 .${dwarf4_addr_size}byte .LM1
31752 .byte 0x18
31753 .byte 0x5
31754 .byte 0x1
31755 .byte 0
31756 .byte 0x$dwarf4_line_sz
31757 .byte 0x2
31758 .${dwarf4_addr_size}byte .LM2
31759 .byte 0x1
31760 .byte 0x5
31761 .byte 0x1
31762 .byte 0
31763 .byte 0x$dwarf4_line_sz
31764 .byte 0x2
31765 .${dwarf4_addr_size}byte .Letext0
31766 .byte 0
31767 .byte 0x1
31768 .byte 0x1
31769 .LELT0:
31770 .section .debug_str,$section_flags
31771 .ident \"GCC\"
31773 dwarf4_success=no
31774 if test $dwarf4_addr_size = 4; then
31775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31776 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31777 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
31778 $as_echo_n "(cached) " >&6
31779 else
31780 gcc_cv_as_debug_line_32_flag=no
31781 if test x$gcc_cv_as != x; then
31782 $as_echo "$conftest_s" > conftest.s
31783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31785 (eval $ac_try) 2>&5
31786 ac_status=$?
31787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31788 test $ac_status = 0; }; }
31789 then
31790 gcc_cv_as_debug_line_32_flag=yes
31791 else
31792 echo "configure: failed program was" >&5
31793 cat conftest.s >&5
31795 rm -f conftest.o conftest.s
31798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31799 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31800 if test $gcc_cv_as_debug_line_32_flag = yes; then
31801 dwarf4_success=yes
31804 else
31805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31806 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31807 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
31808 $as_echo_n "(cached) " >&6
31809 else
31810 gcc_cv_as_debug_line_64_flag=no
31811 if test x$gcc_cv_as != x; then
31812 $as_echo "$conftest_s" > conftest.s
31813 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31815 (eval $ac_try) 2>&5
31816 ac_status=$?
31817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31818 test $ac_status = 0; }; }
31819 then
31820 gcc_cv_as_debug_line_64_flag=yes
31821 else
31822 echo "configure: failed program was" >&5
31823 cat conftest.s >&5
31825 rm -f conftest.o conftest.s
31828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31829 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31830 if test $gcc_cv_as_debug_line_64_flag = yes; then
31831 dwarf4_success=yes
31835 if test $dwarf4_success = yes; then
31836 dwarf4_success=no
31837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31838 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31839 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
31840 $as_echo_n "(cached) " >&6
31841 else
31842 gcc_cv_as_dwarf_4_debug_line_flag=no
31843 if test x$gcc_cv_as != x; then
31844 $as_echo "$conftest_s" > conftest.s
31845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31847 (eval $ac_try) 2>&5
31848 ac_status=$?
31849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31850 test $ac_status = 0; }; }
31851 then
31852 gcc_cv_as_dwarf_4_debug_line_flag=yes
31853 else
31854 echo "configure: failed program was" >&5
31855 cat conftest.s >&5
31857 rm -f conftest.o conftest.s
31860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31861 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31862 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31863 dwarf4_success=yes
31866 break
31868 dwarf4_debug_info_size=0x36
31869 dwarf4_high_pc_form=6
31870 dwarf4_debug_aranges_size=0x1c
31871 dwarf4_line_sz=5
31872 done
31874 if test $dwarf4_success = yes; then
31875 conftest_s="\
31876 .file \"foo.c\"
31877 .text
31878 bar:
31879 #APP
31880 # 82 \"xxx.h\" 1
31881 $insn
31882 # 0 \"\" 2
31883 #NO_APP
31884 $insn
31885 foo:
31886 .file 1 \"foo.c\"
31887 $insn
31888 .file 2 \"foo.h\"
31891 dwarf4_success=no
31892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
31893 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
31894 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
31895 $as_echo_n "(cached) " >&6
31896 else
31897 gcc_cv_as_dwarf_4_app_flag=no
31898 if test x$gcc_cv_as != x; then
31899 $as_echo "$conftest_s" > conftest.s
31900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31902 (eval $ac_try) 2>&5
31903 ac_status=$?
31904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31905 test $ac_status = 0; }; }
31906 then
31907 gcc_cv_as_dwarf_4_app_flag=yes
31908 else
31909 echo "configure: failed program was" >&5
31910 cat conftest.s >&5
31912 rm -f conftest.o conftest.s
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
31916 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
31917 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
31918 dwarf4_success=yes
31923 if test $dwarf4_success = yes; then
31924 conftest_s="\
31925 .text
31926 .globl foo
31927 $function_type
31928 foo:
31929 $insn
31930 $function_size
31931 .file 1 \"foo.c\"
31933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
31934 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
31935 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
31936 $as_echo_n "(cached) " >&6
31937 else
31938 gcc_cv_as_working_gdwarf_n_flag=no
31939 if test x$gcc_cv_as != x; then
31940 $as_echo "$conftest_s" > conftest.s
31941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31943 (eval $ac_try) 2>&5
31944 ac_status=$?
31945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31946 test $ac_status = 0; }; }
31947 then
31948 if test x$gcc_cv_objdump != x \
31949 && $gcc_cv_objdump -W conftest.o 2>&1 \
31950 | grep conftest.s > /dev/null 2>&1; then
31951 gcc_cv_as_working_gdwarf_n_flag=no
31952 else
31953 gcc_cv_as_working_gdwarf_n_flag=yes
31955 else
31956 echo "configure: failed program was" >&5
31957 cat conftest.s >&5
31959 rm -f conftest.o conftest.s
31962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
31963 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
31966 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
31968 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
31974 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
31975 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
31976 $as_echo_n "(cached) " >&6
31977 else
31978 gcc_cv_as_debug_prefix_map_flag=no
31979 if test x$gcc_cv_as != x; then
31980 $as_echo "$insn" > conftest.s
31981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
31982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31983 (eval $ac_try) 2>&5
31984 ac_status=$?
31985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31986 test $ac_status = 0; }; }
31987 then
31988 gcc_cv_as_debug_prefix_map_flag=yes
31989 else
31990 echo "configure: failed program was" >&5
31991 cat conftest.s >&5
31993 rm -f conftest.o conftest.s
31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
31997 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
31998 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
32000 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
32007 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
32008 if ${gcc_cv_as_compress_debug+:} false; then :
32009 $as_echo_n "(cached) " >&6
32010 else
32011 gcc_cv_as_compress_debug=no
32012 if test x$gcc_cv_as != x; then
32013 $as_echo '' > conftest.s
32014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32016 (eval $ac_try) 2>&5
32017 ac_status=$?
32018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32019 test $ac_status = 0; }; }
32020 then
32021 # gas compiled without zlib cannot compress debug sections and warns
32022 # about it, but still exits successfully. So check for this, too.
32023 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
32024 then
32025 gcc_cv_as_compress_debug=0
32026 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
32027 then
32028 gcc_cv_as_compress_debug=1
32029 gcc_cv_as_compress_debug_option="--compress-debug-sections"
32030 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
32031 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
32032 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
32033 then
32034 gcc_cv_as_compress_debug=2
32036 else
32037 gcc_cv_as_compress_debug=0
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_compress_debug" >&5
32047 $as_echo "$gcc_cv_as_compress_debug" >&6; }
32051 cat >>confdefs.h <<_ACEOF
32052 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
32053 _ACEOF
32056 cat >>confdefs.h <<_ACEOF
32057 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
32058 _ACEOF
32061 cat >>confdefs.h <<_ACEOF
32062 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
32063 _ACEOF
32066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
32067 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
32068 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
32069 $as_echo_n "(cached) " >&6
32070 else
32071 gcc_cv_as_lcomm_with_alignment=no
32072 if test x$gcc_cv_as != x; then
32073 $as_echo '.lcomm bar,4,16' > conftest.s
32074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32076 (eval $ac_try) 2>&5
32077 ac_status=$?
32078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32079 test $ac_status = 0; }; }
32080 then
32081 gcc_cv_as_lcomm_with_alignment=yes
32082 else
32083 echo "configure: failed program was" >&5
32084 cat conftest.s >&5
32086 rm -f conftest.o conftest.s
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
32090 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
32091 if test $gcc_cv_as_lcomm_with_alignment = yes; then
32093 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32098 if test x$with_sysroot = x && test x$host = x$target \
32099 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32100 && test "$prefix" != "NONE"; then
32102 cat >>confdefs.h <<_ACEOF
32103 #define PREFIX_INCLUDE_DIR "$prefix/include"
32104 _ACEOF
32108 # Determine the version of glibc, if any, used on the target.
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32110 $as_echo_n "checking for target glibc version... " >&6; }
32112 # Check whether --with-glibc-version was given.
32113 if test "${with_glibc_version+set}" = set; then :
32114 withval=$with_glibc_version;
32115 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32116 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32117 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32118 else
32119 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
32121 else
32123 glibc_version_major=0
32124 glibc_version_minor=0
32125 if test -f $target_header_dir/features.h \
32126 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32127 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32128 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32129 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32134 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32136 cat >>confdefs.h <<_ACEOF
32137 #define TARGET_GLIBC_MAJOR $glibc_version_major
32138 _ACEOF
32141 cat >>confdefs.h <<_ACEOF
32142 #define TARGET_GLIBC_MINOR $glibc_version_minor
32143 _ACEOF
32146 # Check whether --enable-gnu-unique-object was given.
32147 if test "${enable_gnu_unique_object+set}" = set; then :
32148 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32149 yes | no) ;;
32150 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32151 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32152 esac
32153 else
32154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32155 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32156 if ${gcc_cv_as_gnu_unique_object+:} false; then :
32157 $as_echo_n "(cached) " >&6
32158 else
32159 gcc_cv_as_gnu_unique_object=no
32160 if test x$gcc_cv_as != x; then
32161 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32164 (eval $ac_try) 2>&5
32165 ac_status=$?
32166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32167 test $ac_status = 0; }; }
32168 then
32169 gcc_cv_as_gnu_unique_object=yes
32170 else
32171 echo "configure: failed program was" >&5
32172 cat conftest.s >&5
32174 rm -f conftest.o conftest.s
32177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32178 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32179 if test $gcc_cv_as_gnu_unique_object = yes; then
32180 # We need to unquote above to to use the definition from config.gcc.
32181 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32183 if test $glibc_version_major -gt 2 \
32184 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32185 enable_gnu_unique_object=yes
32192 if test x$enable_gnu_unique_object = xyes; then
32194 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32199 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32200 if ${gcc_cv_as_line_zero+:} false; then :
32201 $as_echo_n "(cached) " >&6
32202 else
32203 gcc_cv_as_line_zero=no
32204 if test "x$gcc_cv_as" != x; then
32205 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32206 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32208 (eval $ac_try) 2>&5
32209 ac_status=$?
32210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32211 test $ac_status = 0; }; } &&
32212 test "x`cat conftest.out`" = x
32213 then
32214 gcc_cv_as_line_zero=yes
32215 else
32216 echo "configure: failed program was" >&5
32217 cat conftest.s >&5
32218 echo "configure: error output was" >&5
32219 cat conftest.out >&5
32221 rm -f conftest.o conftest.s conftest.out
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32225 $as_echo "$gcc_cv_as_line_zero" >&6; }
32226 if test "x$gcc_cv_as_line_zero" = xyes; then
32228 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32233 $as_echo_n "checking support for thin archives... " >&6; }
32234 thin_archive_support=no
32235 echo 'int main (void) { return 0; }' > conftest.c
32236 if ($AR --version | sed 1q | grep "GNU ar" \
32237 && $CC $CFLAGS -c conftest.c \
32238 && $AR rcT conftest.a conftest.o \
32239 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
32240 thin_archive_support=yes
32242 rm -f conftest.c conftest.o conftest.a conftest
32243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32244 $as_echo "$thin_archive_support" >&6; }
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32248 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32249 gcc_cv_ld_eh_frame_hdr=no
32250 if test $in_tree_ld = yes ; then
32251 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 \
32252 && test $in_tree_ld_is_elf = yes; then
32253 gcc_cv_ld_eh_frame_hdr=yes
32255 elif test x$gcc_cv_ld != x; then
32256 if echo "$ld_ver" | grep GNU > /dev/null; then
32257 # Check if linker supports --eh-frame-hdr option
32258 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
32259 gcc_cv_ld_eh_frame_hdr=yes
32261 else
32262 case "$target" in
32263 *-*-solaris2*)
32264 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32265 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
32266 gcc_cv_ld_eh_frame_hdr=yes
32269 esac
32273 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
32275 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32279 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32282 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32283 gcc_cv_ld_eh_frame_ciev3=no
32284 if test $in_tree_ld = yes ; then
32285 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 \
32286 && test $in_tree_ld_is_elf = yes; then
32287 gcc_cv_ld_eh_frame_ciev3=yes
32289 elif test x$gcc_cv_ld != x; then
32290 if echo "$ld_ver" | grep GNU > /dev/null; then
32291 gcc_cv_ld_eh_frame_ciev3=yes
32292 if test 0"$ld_date" -lt 20040513; then
32293 if test -n "$ld_date"; then
32294 # If there was date string, but was earlier than 2004-05-13, fail
32295 gcc_cv_ld_eh_frame_ciev3=no
32296 elif test "$ld_vers_major" -lt 2; then
32297 gcc_cv_ld_eh_frame_ciev3=no
32298 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32299 gcc_cv_ld_eh_frame_ciev3=no
32302 else
32303 case "$target" in
32304 *-*-solaris2*)
32305 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32306 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
32307 gcc_cv_ld_eh_frame_ciev3=yes
32310 esac
32314 cat >>confdefs.h <<_ACEOF
32315 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32316 _ACEOF
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32319 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32322 $as_echo_n "checking linker position independent executable support... " >&6; }
32323 gcc_cv_ld_pie=no
32324 if test $in_tree_ld = yes ; then
32325 case "$target" in
32326 # Full PIE support on Solaris was only introduced in gld 2.26.
32327 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
32328 *) gcc_gld_pie_min_version=15 ;;
32329 esac
32330 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 \
32331 && test $in_tree_ld_is_elf = yes; then
32332 gcc_cv_ld_pie=yes
32334 elif test x$gcc_cv_ld != x; then
32335 # Check if linker supports -pie option
32336 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
32337 gcc_cv_ld_pie=yes
32338 case "$target" in
32339 *-*-solaris2*)
32340 if echo "$ld_ver" | grep GNU > /dev/null \
32341 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32342 gcc_cv_ld_pie=no
32345 esac
32346 else
32347 case "$target" in
32348 *-*-solaris2.1[1-9]*)
32349 # Solaris 11.3 added PIE support.
32350 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
32351 gcc_cv_ld_pie=yes
32354 esac
32357 if test x"$gcc_cv_ld_pie" = xyes; then
32359 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32363 $as_echo "$gcc_cv_ld_pie" >&6; }
32365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32366 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32367 gcc_cv_ld_pie_copyreloc=no
32368 if test $gcc_cv_ld_pie = yes ; then
32369 if test $in_tree_ld = yes ; then
32370 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
32371 gcc_cv_ld_pie_copyreloc=yes
32373 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32374 # Check if linker supports -pie option with copy reloc
32375 case "$target" in
32376 i?86-*-linux* | x86_64-*-linux*)
32377 cat > conftest1.s <<EOF
32378 .globl a_glob
32379 .data
32380 .type a_glob, @object
32381 .size a_glob, 4
32382 a_glob:
32383 .long 2
32385 cat > conftest2.s <<EOF
32386 .text
32387 .globl main
32388 .type main, @function
32389 main:
32390 movl %eax, a_glob(%rip)
32391 .size main, .-main
32392 .globl ptr
32393 .section .data.rel,"aw",@progbits
32394 .type ptr, @object
32395 ptr:
32396 .quad a_glob
32398 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32399 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
32400 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32401 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
32402 gcc_cv_ld_pie_copyreloc=yes
32404 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32406 esac
32410 cat >>confdefs.h <<_ACEOF
32411 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32412 _ACEOF
32414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32415 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32418 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32419 gcc_cv_ld_eh_gc_sections=no
32420 if test $in_tree_ld = yes ; then
32421 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 \
32422 && test $in_tree_ld_is_elf = yes; then
32423 gcc_cv_ld_eh_gc_sections=yes
32425 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
32426 cat > conftest.s <<EOF
32427 .section .text
32428 .globl _start
32429 .type _start, @function
32430 _start:
32431 .long foo
32432 .size _start, .-_start
32433 .section .text.foo,"ax",@progbits
32434 .type foo, @function
32435 foo:
32436 .long 0
32437 .size foo, .-foo
32438 .section .gcc_except_table.foo,"a",@progbits
32439 .L0:
32440 .long 0
32441 .section .eh_frame,"a",@progbits
32442 .long .L0
32444 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32445 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32446 | grep "gc-sections option ignored" > /dev/null; then
32447 gcc_cv_ld_eh_gc_sections=no
32448 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32449 | grep gcc_except_table > /dev/null; then
32450 gcc_cv_ld_eh_gc_sections=yes
32451 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32452 if test x$gcc_cv_as_comdat_group != xyes; then
32453 gcc_cv_ld_eh_gc_sections=no
32454 cat > conftest.s <<EOF
32455 .section .text
32456 .globl _start
32457 .type _start, @function
32458 _start:
32459 .long foo
32460 .size _start, .-_start
32461 .section .gnu.linkonce.t.foo,"ax",@progbits
32462 .type foo, @function
32463 foo:
32464 .long 0
32465 .size foo, .-foo
32466 .section .gcc_except_table.foo,"a",@progbits
32467 .L0:
32468 .long 0
32469 .section .eh_frame,"a",@progbits
32470 .long .L0
32472 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32473 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32474 | grep "gc-sections option ignored" > /dev/null; then
32475 gcc_cv_ld_eh_gc_sections=no
32476 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32477 | grep gcc_except_table > /dev/null; then
32478 gcc_cv_ld_eh_gc_sections=yes
32484 rm -f conftest.s conftest.o conftest
32486 case "$target" in
32487 hppa*-*-linux*)
32488 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32489 gcc_cv_ld_eh_gc_sections=no
32491 esac
32492 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
32494 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32498 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32501 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32502 gcc_cv_ld_eh_gc_sections_bug=no
32503 if test $in_tree_ld = yes ; then
32504 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 \
32505 && test $in_tree_ld_is_elf = yes; then
32506 gcc_cv_ld_eh_gc_sections_bug=yes
32508 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
32509 gcc_cv_ld_eh_gc_sections_bug=yes
32510 cat > conftest.s <<EOF
32511 .section .text
32512 .globl _start
32513 .type _start, @function
32514 _start:
32515 .long foo
32516 .size _start, .-_start
32517 .section .text.startup.foo,"ax",@progbits
32518 .type foo, @function
32519 foo:
32520 .long 0
32521 .size foo, .-foo
32522 .section .gcc_except_table.foo,"a",@progbits
32523 .L0:
32524 .long 0
32525 .section .eh_frame,"a",@progbits
32526 .long .L0
32528 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32529 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32530 | grep "gc-sections option ignored" > /dev/null; then
32532 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32533 | grep gcc_except_table > /dev/null; then
32534 gcc_cv_ld_eh_gc_sections_bug=no
32537 rm -f conftest.s conftest.o conftest
32539 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
32541 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32545 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32548 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32549 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32550 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
32551 gcc_cv_ld_compress_debug=1
32552 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
32553 # Detect zstd debug section compression support
32554 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
32555 gcc_cv_ld_compress_debug=2
32557 else
32558 case "${target}" in
32559 *-*-solaris2*)
32560 # Introduced in Solaris 11.2.
32561 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
32562 gcc_cv_ld_compress_debug=1
32563 gcc_cv_ld_compress_debug_option="-z compress-sections"
32564 else
32565 gcc_cv_ld_compress_debug=0
32569 # Assume linkers other than GNU ld don't support compessed debug
32570 # sections.
32571 gcc_cv_ld_compress_debug=0
32573 esac
32576 cat >>confdefs.h <<_ACEOF
32577 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32578 _ACEOF
32581 cat >>confdefs.h <<_ACEOF
32582 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32583 _ACEOF
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32586 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32588 if test x"$ld64_flag" = x"yes"; then
32590 # Set defaults for possibly untestable items.
32591 gcc_cv_ld64_export_dynamic=0
32592 gcc_cv_ld64_platform_version=0
32593 gcc_cv_ld64_demangle=0
32595 if test "$build" = "$host"; then
32596 darwin_try_test=1
32597 else
32598 darwin_try_test=0
32601 # On Darwin, because of FAT library support, it is often possible to execute
32602 # exes from compatible archs even when the host differs from the build system.
32603 case "$build","$host" in
32604 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
32605 darwin_try_test=1;;
32606 *) ;;
32607 esac
32609 # If the configurer specified a minimum ld64 version to be supported, then use
32610 # that to determine feature support.
32611 if test x"${gcc_cv_ld64_version}" != x; then
32612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32613 $as_echo_n "checking ld64 specified version... " >&6; }
32614 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32616 $as_echo "$gcc_cv_ld64_major" >&6; }
32617 if test "$gcc_cv_ld64_major" -ge 97; then
32618 gcc_cv_ld64_demangle=1
32620 if test "$gcc_cv_ld64_major" -ge 236; then
32621 gcc_cv_ld64_export_dynamic=1
32623 if test "$gcc_cv_ld64_major" -ge 512; then
32624 gcc_cv_ld64_platform_version=1
32626 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32627 # If the version was not specified, try to find it.
32628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32629 $as_echo_n "checking linker version... " >&6; }
32630 if test x"${gcc_cv_ld64_version}" = x; then
32631 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32632 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32635 $as_echo "$gcc_cv_ld64_version" >&6; }
32637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32638 $as_echo_n "checking linker for -demangle support... " >&6; }
32639 gcc_cv_ld64_demangle=1
32640 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32641 gcc_cv_ld64_demangle=0
32643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32644 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32647 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32648 gcc_cv_ld64_export_dynamic=1
32649 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32650 gcc_cv_ld64_export_dynamic=0
32652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32653 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32656 $as_echo_n "checking linker for -platform_version support... " >&6; }
32657 gcc_cv_ld64_platform_version=1
32658 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32659 gcc_cv_ld64_platform_version=0
32661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32662 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32665 if test x"${gcc_cv_ld64_version}" != x; then
32667 cat >>confdefs.h <<_ACEOF
32668 #define LD64_VERSION "${gcc_cv_ld64_version}"
32669 _ACEOF
32674 cat >>confdefs.h <<_ACEOF
32675 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32676 _ACEOF
32680 cat >>confdefs.h <<_ACEOF
32681 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32682 _ACEOF
32686 cat >>confdefs.h <<_ACEOF
32687 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32688 _ACEOF
32692 if test x"$dsymutil_flag" = x"yes"; then
32694 # If the user specified a dsymutil path, then we will already have the
32695 # version string, otherwise, pick it up.
32696 if test x"$gcc_cv_dsymutil" = x; then
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32698 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32699 dsymutil_vers="tool unspecified"
32700 elif test x"$dsymutil_vers" = x; then
32701 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32704 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
32705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32706 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32707 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
32708 dsymutil_kind=DWARFUTILS
32709 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32710 elif echo $dsymutil_temp | grep clang- > /dev/null; then
32711 dsymutil_kind=CLANG
32712 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32713 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
32714 dsymutil_kind=LLVM
32715 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32716 else
32717 dsymutil_kind=DET_UNKNOWN
32718 dsymutil_vers="0.0"
32720 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32721 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32722 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32723 if test x"${dsymutil_minor}" = x; then
32724 dsymutil_minor=0
32726 if test x"${dsymutil_tiny}" = x; then
32727 dsymutil_tiny=0
32730 cat >>confdefs.h <<_ACEOF
32731 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32732 _ACEOF
32734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32735 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32738 case $target_os in
32739 win32 | pe | cygwin* | mingw32*)
32740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
32741 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
32742 gcc_cv_ld_broken_pe_dwarf5=yes
32743 if test $in_tree_ld = yes ; then
32744 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32745 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32746 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32747 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32748 gcc_cv_ld_broken_pe_dwarf5=no
32750 else
32751 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32752 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32753 gcc_cv_ld_broken_pe_dwarf5=no
32756 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32758 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32762 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32765 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32766 gcc_cv_ld_disable_dynamicbase=no
32767 if test $in_tree_ld = yes; then
32768 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 \
32769 gcc_cv_ld_disable_dynamicbase=yes
32771 else
32772 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
32773 gcc_cv_ld_disable_dynamicbase=yes
32776 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
32778 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32782 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32784 esac
32786 # --------
32787 # UNSORTED
32788 # --------
32790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32791 $as_echo_n "checking linker --as-needed support... " >&6; }
32792 if ${gcc_cv_ld_as_needed+:} false; then :
32793 $as_echo_n "(cached) " >&6
32794 else
32795 gcc_cv_ld_as_needed=no
32796 gcc_cv_ld_as_needed_option='--as-needed'
32797 gcc_cv_ld_no_as_needed_option='--no-as-needed'
32798 if test $in_tree_ld = yes ; then
32799 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 \
32800 && test $in_tree_ld_is_elf = yes; then
32801 gcc_cv_ld_as_needed=yes
32802 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32803 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32804 gcc_cv_ld_no_as_needed_option='--pop-state'
32807 elif test x$gcc_cv_ld != x; then
32808 # Check if linker supports --as-needed and --no-as-needed options
32809 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
32810 gcc_cv_ld_as_needed=yes
32811 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
32812 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
32813 && echo "$ld_ver" | grep GNU > /dev/null \
32814 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32815 # Use these options only when both ld.bfd and ld.gold support
32816 # --push-state/--pop-state, which unfortunately wasn't added
32817 # at the same time.
32818 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32819 gcc_cv_ld_no_as_needed_option='--pop-state'
32822 case "$target:$gnu_ld" in
32823 *-*-solaris2*:no)
32824 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32825 # forms.
32826 gcc_cv_ld_as_needed=yes
32827 gcc_cv_ld_as_needed_option="-z ignore"
32828 gcc_cv_ld_no_as_needed_option="-z record"
32830 esac
32832 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32833 # dl_iterate_phdr, i.e. since Solaris 11.
32834 case "$target" in
32835 *-*-solaris2.1[1-9]*)
32836 case "$target" in
32837 i?86-*-* | x86_64-*-*)
32838 if echo "$ld_ver" | grep GNU > /dev/null; then
32839 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32840 gcc_cv_ld_as_needed=no
32843 esac
32845 *-*-solaris2*)
32846 gcc_cv_ld_as_needed=no
32848 esac
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32852 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32853 if test x"$gcc_cv_ld_as_needed" = xyes; then
32855 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32858 cat >>confdefs.h <<_ACEOF
32859 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32860 _ACEOF
32863 cat >>confdefs.h <<_ACEOF
32864 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32865 _ACEOF
32869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32870 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32871 saved_LDFLAGS="$LDFLAGS"
32872 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
32873 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32875 /* end confdefs.h. */
32876 int main(void) {return 0;}
32877 _ACEOF
32878 if ac_fn_cxx_try_link "$LINENO"; then :
32879 gcc_cv_ld_clearcap=yes; break
32880 else
32881 gcc_cv_ld_clearcap=no
32883 rm -f core conftest.err conftest.$ac_objext \
32884 conftest$ac_exeext conftest.$ac_ext
32885 done
32886 LDFLAGS="$saved_LDFLAGS"
32887 if test "x$gcc_cv_ld_clearcap" = xyes; then
32889 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
32891 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
32894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
32895 $as_echo "$gcc_cv_ld_clearcap" >&6; }
32897 case "$target" in
32898 powerpc*-*-*)
32899 case "$target" in
32900 *le-*-linux*)
32901 emul_name="-melf32lppc"
32904 emul_name="-melf32ppc"
32906 esac
32907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
32908 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
32909 if ${gcc_cv_ld_ppc_attr+:} false; then :
32910 $as_echo_n "(cached) " >&6
32911 else
32912 gcc_cv_ld_ppc_attr=no
32913 if test x"$ld_is_gold" = xyes; then
32914 gcc_cv_ld_ppc_attr=yes
32915 elif test $in_tree_ld = yes ; then
32916 if test "$gcc_cv_gld_major_version" -eq 2 \
32917 -a "$gcc_cv_gld_minor_version" -ge 28 \
32918 -o "$gcc_cv_gld_major_version" -gt 2; then
32919 gcc_cv_ld_ppc_attr=yes
32921 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32922 # check that merging the long double .gnu_attribute doesn't warn
32923 cat > conftest1.s <<EOF
32924 .gnu_attribute 4,1
32926 cat > conftest2.s <<EOF
32927 .gnu_attribute 4,9
32929 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32930 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32931 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
32932 && test ! -s conftest.err; then
32933 gcc_cv_ld_ppc_attr=yes
32935 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
32939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
32940 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
32941 if test x$gcc_cv_ld_ppc_attr = xyes; then
32943 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
32947 esac
32949 case "$target:$tm_file" in
32950 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
32951 case "$target" in
32952 *le-*-linux*)
32953 emul_name="-melf64lppc"
32955 *-*-linux*)
32956 emul_name="-melf64ppc"
32958 *le-*-freebsd*)
32959 emul_name="-melf64lppc_fbsd"
32961 *-*-freebsd*)
32962 emul_name="-melf64ppc_fbsd"
32964 esac
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
32966 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
32967 if ${gcc_cv_ld_no_dot_syms+:} false; then :
32968 $as_echo_n "(cached) " >&6
32969 else
32970 gcc_cv_ld_no_dot_syms=no
32971 if test x"$ld_is_gold" = xyes; then
32972 gcc_cv_ld_no_dot_syms=yes
32973 elif test $in_tree_ld = yes ; then
32974 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
32975 gcc_cv_ld_no_dot_syms=yes
32977 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32978 cat > conftest1.s <<EOF
32979 .text
32980 bl .foo
32982 cat > conftest2.s <<EOF
32983 .section ".opd","aw"
32984 .align 3
32985 .globl foo
32986 .type foo,@function
32987 foo:
32988 .quad .LEfoo,.TOC.@tocbase,0
32989 .text
32990 .LEfoo:
32992 .size foo,.-.LEfoo
32994 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32995 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32996 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
32997 gcc_cv_ld_no_dot_syms=yes
32999 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
33003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
33004 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
33005 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
33007 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
33011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33012 $as_echo_n "checking linker large toc support... " >&6; }
33013 if ${gcc_cv_ld_large_toc+:} false; then :
33014 $as_echo_n "(cached) " >&6
33015 else
33016 gcc_cv_ld_large_toc=no
33017 if test x"$ld_is_gold" = xyes; then
33018 gcc_cv_ld_large_toc=yes
33019 elif test $in_tree_ld = yes ; then
33020 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
33021 gcc_cv_ld_large_toc=yes
33023 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
33024 cat > conftest.s <<EOF
33025 .section ".tbss","awT",@nobits
33026 .align 3
33027 ie0: .space 8
33028 .global _start
33029 .text
33030 _start:
33031 addis 9,13,ie0@got@tprel@ha
33032 ld 9,ie0@got@tprel@l(9)
33034 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33035 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
33036 gcc_cv_ld_large_toc=yes
33038 rm -f conftest conftest.o conftest.s
33042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33043 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33044 if test x"$gcc_cv_ld_large_toc" = xyes; then
33046 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
33051 $as_echo_n "checking linker toc pointer alignment... " >&6; }
33052 if ${gcc_cv_ld_toc_align+:} false; then :
33053 $as_echo_n "(cached) " >&6
33054 else
33055 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
33056 cat > conftest.s <<EOF
33057 .global _start
33058 .text
33059 _start:
33060 addis 9,2,x@got@ha
33061 .section .data.rel.ro,"aw",@progbits
33062 .p2align 16
33063 .space 32768
33064 x: .quad .TOC.
33066 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33067 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
33068 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)) }'`
33070 rm -f conftest conftest.o conftest.s
33074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
33075 $as_echo "$gcc_cv_ld_toc_align" >&6; }
33076 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
33078 cat >>confdefs.h <<_ACEOF
33079 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
33080 _ACEOF
33084 esac
33086 case "$target" in
33087 *-*-aix*)
33088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33089 $as_echo_n "checking linker large toc support... " >&6; }
33090 if ${gcc_cv_ld_large_toc+:} false; then :
33091 $as_echo_n "(cached) " >&6
33092 else
33093 gcc_cv_ld_large_toc=no
33094 if test x$gcc_cv_as != x ; then
33095 cat > conftest.s <<EOF
33096 .toc
33097 LC..1:
33098 .tc a[TC],a[RW]
33099 .extern a[RW]
33100 .csect .text[PR]
33101 .largetoctest:
33102 addis 9,LC..1@u(2)
33103 ld 3,LC..1@l(9)
33105 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
33106 gcc_cv_ld_large_toc=yes
33108 rm -f conftest conftest.o conftest.s
33112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33113 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33114 if test x"$gcc_cv_ld_large_toc" = xyes; then
33116 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33120 esac
33122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33123 $as_echo_n "checking linker --build-id support... " >&6; }
33124 if ${gcc_cv_ld_buildid+:} false; then :
33125 $as_echo_n "(cached) " >&6
33126 else
33127 gcc_cv_ld_buildid=no
33128 if test $in_tree_ld = yes ; then
33129 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33130 "$gcc_cv_gld_minor_version" -ge 18 -o \
33131 "$gcc_cv_gld_major_version" -gt 2 \
33132 && test $in_tree_ld_is_elf = yes; then
33133 gcc_cv_ld_buildid=yes
33135 elif test x$gcc_cv_ld != x; then
33136 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
33137 gcc_cv_ld_buildid=yes
33141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33142 $as_echo "$gcc_cv_ld_buildid" >&6; }
33143 if test x"$gcc_cv_ld_buildid" = xyes; then
33145 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33149 # Check whether --enable-linker-build-id was given.
33150 if test "${enable_linker_build_id+set}" = set; then :
33151 enableval=$enable_linker_build_id;
33152 else
33153 enable_linker_build_id=no
33157 if test x"$enable_linker_build_id" = xyes; then
33158 if test x"$gcc_cv_ld_buildid" = xyes; then
33160 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33162 else
33163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33164 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33168 # In binutils 2.21, GNU ld gained support for new emulations fully
33169 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33171 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33172 if ${gcc_cv_ld_sol2_emulation+:} false; then :
33173 $as_echo_n "(cached) " >&6
33174 else
33175 gcc_cv_ld_sol2_emulation=no
33176 if test $in_tree_ld = yes ; then
33177 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33178 "$gcc_cv_gld_minor_version" -ge 21 -o \
33179 "$gcc_cv_gld_major_version" -gt 2 \
33180 && test $in_tree_ld_is_elf = yes; then
33181 gcc_cv_ld_sol2_emulation=yes
33183 elif test x$gcc_cv_ld != x; then
33184 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
33185 grep _sol2 > /dev/null; then
33186 gcc_cv_ld_sol2_emulation=yes
33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33191 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33192 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
33194 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33199 $as_echo_n "checking linker --sysroot support... " >&6; }
33200 if ${gcc_cv_ld_sysroot+:} false; then :
33201 $as_echo_n "(cached) " >&6
33202 else
33203 gcc_cv_ld_sysroot=no
33204 if test $in_tree_ld = yes ; then
33205 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
33206 gcc_cv_ld_sysroot=yes
33208 elif test x$gcc_cv_ld != x; then
33209 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
33210 gcc_cv_ld_sysroot=yes
33214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33215 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33216 if test x"$gcc_cv_ld_sysroot" = xyes; then
33218 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33222 case $target in
33223 *-*-solaris2*)
33224 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33226 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33227 if ${gcc_cv_solaris_crts+:} false; then :
33228 $as_echo_n "(cached) " >&6
33229 else
33230 gcc_cv_solaris_crts=no
33231 if test x$host != x$target; then
33232 if test "x$with_sysroot" = xyes; then
33233 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
33234 else
33235 target_sysroot="${with_sysroot}"
33238 target_libdir="$target_sysroot/usr/lib"
33239 # At the time they were added, gcrt1.o became a symlink for backwards
33240 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33241 case $target in
33242 i?86-*-solaris2* | x86_64-*-solaris2*)
33243 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
33245 sparc*-*-solaris2*)
33246 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
33248 esac
33250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33251 $as_echo "$gcc_cv_solaris_crts" >&6; }
33253 esac
33254 if test x$gcc_cv_solaris_crts = xyes; then
33256 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33260 # Check whether --enable-libssp was given.
33261 if test "${enable_libssp+set}" = set; then :
33262 enableval=$enable_libssp; case "${enableval}" in
33263 yes|no)
33266 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
33268 esac
33272 # Test for stack protector support in target C library.
33273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33274 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33275 if ${gcc_cv_libc_provides_ssp+:} false; then :
33276 $as_echo_n "(cached) " >&6
33277 else
33278 gcc_cv_libc_provides_ssp=no
33279 if test "x$enable_libssp" = "xno"; then
33280 gcc_cv_libc_provides_ssp=yes
33281 elif test "x$enable_libssp" = "xyes"; then
33282 gcc_cv_libc_provides_ssp=no
33283 else
33284 case "$target" in
33285 *-*-musl*)
33286 # All versions of musl provide stack protector
33287 gcc_cv_libc_provides_ssp=yes;;
33288 *-*-linux* | *-*-kfreebsd*-gnu)
33289 # glibc 2.4 and later provides __stack_chk_fail and
33290 # either __stack_chk_guard, or TLS access to stack guard canary.
33292 if test $glibc_version_major -gt 2 \
33293 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33294 gcc_cv_libc_provides_ssp=yes
33295 else
33297 if test -f $target_header_dir/features.h \
33298 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33299 $target_header_dir/features.h > /dev/null; then
33300 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33301 $target_header_dir/features.h > /dev/null && \
33302 test -f $target_header_dir/bits/uClibc_config.h && \
33303 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33304 $target_header_dir/bits/uClibc_config.h > /dev/null; then
33305 gcc_cv_libc_provides_ssp=yes
33307 # all versions of Bionic support stack protector
33308 elif test -f $target_header_dir/sys/cdefs.h \
33309 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33310 $target_header_dir/sys/cdefs.h > /dev/null; then
33311 gcc_cv_libc_provides_ssp=yes
33315 *-*-gnu*)
33316 # Avoid complicated tests (see
33317 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33318 # simply assert that glibc does provide this, which is true for all
33319 # realistically usable GNU/Hurd configurations.
33320 # All supported versions of musl provide it as well
33321 gcc_cv_libc_provides_ssp=yes;;
33322 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
33323 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33324 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
33325 gcc_cv_libc_provides_ssp=yes
33326 else
33327 echo "no __stack_chk_fail on this target"
33331 *) gcc_cv_libc_provides_ssp=no ;;
33332 esac
33335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33336 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33338 if test x$gcc_cv_libc_provides_ssp = xyes; then
33340 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33344 # Check whether --enable-default-ssp was given.
33345 # Check whether --enable-default-ssp was given.
33346 if test "${enable_default_ssp+set}" = set; then :
33347 enableval=$enable_default_ssp;
33348 if test x$gcc_cv_libc_provides_ssp = xyes; then
33349 case "$target" in
33350 ia64*-*-*) enable_default_ssp=no ;;
33351 *) enable_default_ssp=$enableval ;;
33352 esac
33353 else
33354 enable_default_ssp=no
33356 else
33357 enable_default_ssp=no
33360 if test x$enable_default_ssp = xyes ; then
33362 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33367 # Test for <sys/sdt.h> on the target.
33369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33370 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33371 if ${gcc_cv_sys_sdt_h+:} false; then :
33372 $as_echo_n "(cached) " >&6
33373 else
33375 gcc_cv_sys_sdt_h=no
33376 if test -f $target_header_dir/sys/sdt.h; then
33377 gcc_cv_sys_sdt_h=yes
33381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33382 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33383 if test x$gcc_cv_sys_sdt_h = xyes; then :
33386 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33391 # Check if TFmode long double should be used by default or not.
33392 # Some glibc targets used DFmode long double, but with glibc 2.4
33393 # and later they can use TFmode.
33394 case "$target" in
33395 powerpc*-*-linux* | \
33396 sparc*-*-linux* | \
33397 s390*-*-linux* | \
33398 alpha*-*-linux*)
33400 # Check whether --with-long-double-128 was given.
33401 if test "${with_long_double_128+set}" = set; then :
33402 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
33403 else
33405 case "$target" in
33406 s390*-*-linux-musl*)
33407 gcc_cv_target_ldbl128=yes
33409 powerpc*-*-linux-musl*)
33410 gcc_cv_target_ldbl128=no
33414 if test $glibc_version_major -gt 2 \
33415 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33416 gcc_cv_target_ldbl128=yes
33417 else
33419 gcc_cv_target_ldbl128=no
33420 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33421 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
33422 && gcc_cv_target_ldbl128=yes
33427 esac
33432 esac
33433 if test x$gcc_cv_target_ldbl128 = xyes; then
33435 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33439 # Check if TFmode long double target should use the IBM extended double or IEEE
33440 # 128-bit floating point formats if long doubles are 128-bits long. The long
33441 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33442 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33443 # libgcc.
33445 # Check whether --with-long-double-format was given.
33446 if test "${with_long_double_format+set}" = set; then :
33447 withval=$with_long_double_format;
33448 case "$target:$with_long_double_format" in
33449 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
33452 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
33453 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33454 case "$with_cpu" in
33455 power7 | power8 | power9 | power1*)
33459 as_fn_error $? "Configuration option --with-long-double-format is only \
33460 supported if the default cpu is power7 or newer" "$LINENO" 5
33461 with_long_double_format=""
33463 esac
33465 powerpc64*-*-linux*:*)
33466 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33467 with_long_double_format=""
33470 as_fn_error $? "Configure option --with-long-double-format is only supported \
33471 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33472 with_long_double_format=""
33474 esac
33478 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33479 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33480 gcc_cv_libc_provides_hwcap_in_tcb=no
33481 case "$target" in
33482 powerpc*-*-linux*)
33484 if test $glibc_version_major -gt 2 \
33485 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33486 gcc_cv_libc_provides_hwcap_in_tcb=yes
33489 esac
33490 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
33492 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33496 # Check if the target LIBC handles PT_GNU_STACK.
33497 gcc_cv_libc_gnustack=unknown
33498 case "$target" in
33499 mips*-*-linux-musl*)
33500 gcc_cv_libc_gnustack=yes
33502 mips*-*-linux*)
33504 if test $glibc_version_major -gt 2 \
33505 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33506 gcc_cv_libc_gnustack=yes
33509 esac
33510 if test x$gcc_cv_libc_gnustack = xyes; then
33512 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33517 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33518 gcc_cv_target_dl_iterate_phdr=unknown
33519 case "$target" in
33520 *-*-solaris2*)
33521 # <link.h> needs both a dl_iterate_phdr declaration and support for
33522 # compilation with largefile support.
33523 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
33524 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
33525 gcc_cv_target_dl_iterate_phdr=yes
33526 else
33527 gcc_cv_target_dl_iterate_phdr=no
33530 *-*-dragonfly* | *-*-freebsd*)
33531 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
33532 gcc_cv_target_dl_iterate_phdr=yes
33533 else
33534 gcc_cv_target_dl_iterate_phdr=no
33537 *-linux-musl*)
33538 gcc_cv_target_dl_iterate_phdr=yes
33540 esac
33542 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
33544 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33548 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33550 # We no longer support different GC mechanisms. Emit an error if
33551 # the user configures with --with-gc.
33553 # Check whether --with-gc was given.
33554 if test "${with_gc+set}" = set; then :
33555 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33559 # Libraries to use on the host. This will normally be set by the top
33560 # level Makefile. Here we simply capture the value for our Makefile.
33561 if test -z "${HOST_LIBS+set}"; then
33562 HOST_LIBS=
33566 # Use the system's zlib library.
33568 # Use the system's zlib library.
33569 zlibdir="-L\$(top_builddir)/../zlib"
33570 zlibinc="-I\$(top_srcdir)/../zlib"
33572 # Check whether --with-system-zlib was given.
33573 if test "${with_system_zlib+set}" = set; then :
33574 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
33575 zlibdir=
33576 zlibinc=
33586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33587 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33588 # Check whether --enable-maintainer-mode was given.
33589 if test "${enable_maintainer_mode+set}" = set; then :
33590 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
33591 else
33592 maintainer_mode=no
33596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33597 $as_echo "$maintainer_mode" >&6; }
33599 if test "$maintainer_mode" = "yes"; then
33600 MAINT=''
33601 else
33602 MAINT='#'
33605 if test -z "$CTAGS"; then
33606 CTAGS=ctags
33609 if test -z "$ETAGS"; then
33610 ETAGS=etags
33613 if test -z "$CSCOPE"; then
33614 CSCOPE=cscope
33619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33620 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33621 # Check whether --enable-link-mutex was given.
33622 if test "${enable_link_mutex+set}" = set; then :
33623 enableval=$enable_link_mutex; do_link_mutex=$enableval
33624 else
33625 do_link_mutex=no
33628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33629 $as_echo "$do_link_mutex" >&6; }
33631 if test "$do_link_mutex" = "yes"; then
33632 DO_LINK_MUTEX=true
33633 { $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
33634 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33635 else
33636 DO_LINK_MUTEX=false
33641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33642 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33643 # Check whether --enable-link-serialization was given.
33644 if test "${enable_link_serialization+set}" = set; then :
33645 enableval=$enable_link_serialization; do_link_serialization=$enableval
33646 else
33647 do_link_serialization=no
33650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33651 $as_echo "$do_link_serialization" >&6; }
33653 case "$do_link_serialization" in
33654 yes)
33655 DO_LINK_SERIALIZATION=1;;
33656 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
33657 DO_LINK_SERIALIZATION=$do_link_serialization;;
33659 DO_LINK_SERIALIZATION=;;
33661 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33662 esac
33665 # --------------
33666 # Language hooks
33667 # --------------
33669 # Make empty files to contain the specs and options for each language.
33670 # Then add #include lines to for a compiler that has specs and/or options.
33672 subdirs=
33673 lang_opt_files=
33674 lang_specs_files=
33675 lang_tree_files=
33676 # These (without "all_") are set in each config-lang.in.
33677 # `language' must be a single word so is spelled singularly.
33678 all_languages=
33679 all_compilers=
33680 all_outputs='Makefile'
33681 # List of language configure and makefile fragments.
33682 all_lang_configurefrags=
33683 all_lang_makefrags=
33684 # Additional files for gengtype
33685 all_gtfiles="$target_gtfiles"
33687 # These are the languages that are set in --enable-languages,
33688 # and are available in the GCC tree.
33689 all_selected_languages=
33691 # Add the language fragments.
33692 # Languages are added via two mechanisms. Some information must be
33693 # recorded in makefile variables, these are defined in config-lang.in.
33694 # We accumulate them and plug them into the main Makefile.
33695 # The other mechanism is a set of hooks for each of the main targets
33696 # like `clean', `install', etc.
33698 language_hooks="Make-hooks"
33700 for lang in ${srcdir}/*/config-lang.in
33702 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33704 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33705 if test "x$lang_alias" = x
33706 then
33707 echo "$lang doesn't set \$language." 1>&2
33708 exit 1
33710 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33711 subdirs="$subdirs $subdir"
33713 # $gcc_subdir is where the gcc integration files are to be found
33714 # for a language, both for internal compiler purposes (compiler
33715 # sources implementing front-end to GCC tree converters), and for
33716 # build infrastructure purposes (Make-lang.in, etc.)
33718 # This will be <subdir> (relative to $srcdir) if a line like
33719 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33720 # is found in <langdir>/config-lang.in, and will remain <langdir>
33721 # otherwise.
33723 # Except for the language alias (fetched above), the regular
33724 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33725 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33726 # only this and the language alias.
33728 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33729 if [ "$gcc_subdir" = "" ]; then
33730 gcc_subdir="$subdir"
33733 case ",$enable_languages," in
33734 *,$lang_alias,*)
33735 all_selected_languages="$all_selected_languages $lang_alias"
33736 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
33737 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33740 esac
33742 language=
33743 boot_language=
33744 compilers=
33745 outputs=
33746 gtfiles=
33747 subdir_requires=
33748 . ${srcdir}/$gcc_subdir/config-lang.in
33749 if test "x$language" = x
33750 then
33751 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33752 exit 1
33755 ok=:
33756 case ",$enable_languages," in
33757 *,$lang_alias,*) ;;
33759 for i in $subdir_requires; do
33760 test -f "${srcdir}/$i/config-lang.in" && continue
33761 ok=false
33762 break
33763 done
33765 esac
33766 $ok || continue
33768 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33769 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
33770 # Put c/Make-lang.in fragment first to match serialization languages order.
33771 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33772 else
33773 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33775 if test -f $srcdir/$gcc_subdir/lang.opt; then
33776 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33777 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33779 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
33780 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33782 all_languages="$all_languages $language"
33783 all_compilers="$all_compilers $compilers"
33784 all_outputs="$all_outputs $outputs"
33785 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
33786 case ",$enable_languages," in
33787 *,lto,*)
33789 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33791 enable_lto=yes
33794 *) ;;
33795 esac
33796 done
33798 check_languages=
33799 for language in $all_selected_languages
33801 check_languages="$check_languages check-$language"
33802 done
33804 selftest_languages=
33805 for language in $all_selected_languages
33807 selftest_languages="$selftest_languages selftest-$language"
33808 done
33810 # We link each language in with a set of hooks, reached indirectly via
33811 # lang.${target}. Only do so for selected languages.
33813 rm -f Make-hooks
33814 touch Make-hooks
33815 target_list="all.cross start.encap rest.encap tags \
33816 install-common install-man install-info install-dvi install-pdf \
33817 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33818 mostlyclean clean distclean maintainer-clean install-plugin"
33820 for t in $target_list
33823 for lang in $all_selected_languages
33825 x="$x $lang.$t"
33826 done
33827 echo "lang.$t: $x" >> Make-hooks
33828 done
33830 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33831 echo "SERIAL_LIST =" >> Make-hooks
33832 echo else >> Make-hooks
33833 lang_cnt=0
33834 lang_list=
33835 prev=c
33836 serialization_languages=c
33837 for lang in $all_selected_languages
33839 test $lang = c && continue
33840 if test $lang = lto; then
33841 serialization_languages="$serialization_languages lto1 lto2"
33842 else
33843 serialization_languages="$serialization_languages $lang"
33845 done
33846 for lang in $serialization_languages
33848 test $lang = c && continue
33849 lang_cnt=`expr $lang_cnt + 1`
33850 lang_list=" $prev$lang_list"
33851 prev=${lang}
33852 done
33853 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33854 echo endif >> Make-hooks
33855 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33856 echo "INDEX.c = 0" >> Make-hooks
33857 lang_idx=1
33858 for lang in $serialization_languages
33860 test $lang = c && continue
33861 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33862 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33863 lang_cnt=`expr $lang_cnt - 1`
33864 lang_idx=`expr $lang_idx + 1`
33865 done
33867 # --------
33868 # Option include files
33869 # --------
33871 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
33872 option_includes="option-includes.mk"
33875 # --------
33876 # UNSORTED
33877 # --------
33879 # Create .gdbinit.
33881 echo "dir ." > .gdbinit
33882 echo "dir ${srcdir}" >> .gdbinit
33883 if test x$gdb_needs_out_file_path = xyes
33884 then
33885 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
33887 if test "x$subdirs" != x; then
33888 for s in $subdirs
33890 echo "dir ${srcdir}/$s" >> .gdbinit
33891 done
33893 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
33894 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
33896 # Put a breakpoint on __asan_report_error to help with debugging buffer
33897 # overflow.
33898 case "$CFLAGS" in
33899 *-fsanitize=address*)
33900 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
33902 esac
33904 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
33908 # Find a directory in which to install a shared libgcc.
33910 # Check whether --enable-version-specific-runtime-libs was given.
33911 if test "${enable_version_specific_runtime_libs+set}" = set; then :
33912 enableval=$enable_version_specific_runtime_libs;
33916 # Substitute configuration variables
33989 # Echo link setup.
33990 if test x${build} = x${host} ; then
33991 if test x${host} = x${target} ; then
33992 echo "Links are now set up to build a native compiler for ${target}." 1>&2
33993 else
33994 echo "Links are now set up to build a cross-compiler" 1>&2
33995 echo " from ${host} to ${target}." 1>&2
33997 else
33998 if test x${host} = x${target} ; then
33999 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
34000 echo " for ${target}." 1>&2
34001 else
34002 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
34003 echo " from ${host} to ${target}." 1>&2
34012 if test "x${ISLLIBS}" != "x" ; then
34014 $as_echo "#define HAVE_isl 1" >>confdefs.h
34018 # Check for plugin support
34019 # Check whether --enable-plugin was given.
34020 if test "${enable_plugin+set}" = set; then :
34021 enableval=$enable_plugin; enable_plugin=$enableval
34022 else
34023 enable_plugin=yes; default_plugin=yes
34027 pluginlibs=
34028 plugin_check=yes
34030 case "${host}" in
34031 *-*-mingw*)
34032 # Since plugin support under MinGW is not as straightforward as on
34033 # other platforms (e.g., we have to link import library, etc), we
34034 # only enable it if explicitly requested.
34035 if test x"$default_plugin" = x"yes"; then
34036 enable_plugin=no
34037 elif test x"$enable_plugin" = x"yes"; then
34038 # Use make's target variable to derive import library name.
34039 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
34040 plugin_check=no
34043 *-*-darwin*)
34044 if test x$build = x$host; then
34045 export_sym_check="nm${exeext} -g"
34046 elif test x$host = x$target; then
34047 export_sym_check="$gcc_cv_nm -g"
34048 else
34049 export_sym_check=
34053 if test x$build = x$host; then
34054 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34055 elif test x$host = x$target; then
34056 export_sym_check="$gcc_cv_objdump -T"
34057 else
34058 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34061 esac
34063 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
34065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
34066 $as_echo_n "checking for exported symbols... " >&6; }
34067 if test "x$export_sym_check" != x; then
34068 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
34069 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34070 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34071 : # No need to use a flag
34072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34073 $as_echo "yes" >&6; }
34074 else
34075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34076 $as_echo "yes" >&6; }
34077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
34078 $as_echo_n "checking for -rdynamic... " >&6; }
34079 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34080 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34081 plugin_rdynamic=yes
34082 pluginlibs="-rdynamic"
34083 else
34084 plugin_rdynamic=no
34085 enable_plugin=no
34087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
34088 $as_echo "$plugin_rdynamic" >&6; }
34090 else
34091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
34092 $as_echo "unable to check" >&6; }
34095 # Check -ldl
34096 saved_LIBS="$LIBS"
34097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34098 $as_echo_n "checking for library containing dlopen... " >&6; }
34099 if ${ac_cv_search_dlopen+:} false; then :
34100 $as_echo_n "(cached) " >&6
34101 else
34102 ac_func_search_save_LIBS=$LIBS
34103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34104 /* end confdefs.h. */
34106 /* Override any GCC internal prototype to avoid an error.
34107 Use char because int might match the return type of a GCC
34108 builtin and then its argument prototype would still apply. */
34109 #ifdef __cplusplus
34110 extern "C"
34111 #endif
34112 char dlopen ();
34114 main ()
34116 return dlopen ();
34118 return 0;
34120 _ACEOF
34121 for ac_lib in '' dl; do
34122 if test -z "$ac_lib"; then
34123 ac_res="none required"
34124 else
34125 ac_res=-l$ac_lib
34126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34128 if ac_fn_cxx_try_link "$LINENO"; then :
34129 ac_cv_search_dlopen=$ac_res
34131 rm -f core conftest.err conftest.$ac_objext \
34132 conftest$ac_exeext
34133 if ${ac_cv_search_dlopen+:} false; then :
34134 break
34136 done
34137 if ${ac_cv_search_dlopen+:} false; then :
34139 else
34140 ac_cv_search_dlopen=no
34142 rm conftest.$ac_ext
34143 LIBS=$ac_func_search_save_LIBS
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34146 $as_echo "$ac_cv_search_dlopen" >&6; }
34147 ac_res=$ac_cv_search_dlopen
34148 if test "$ac_res" != no; then :
34149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34153 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
34154 pluginlibs="$pluginlibs -ldl"
34156 LIBS="$saved_LIBS"
34158 # Check that we can build shared objects with -fPIC -shared
34159 saved_LDFLAGS="$LDFLAGS"
34160 saved_CFLAGS="$CFLAGS"
34161 saved_CXXFLAGS="$CXXFLAGS"
34162 case "${host}" in
34163 *-*-darwin*)
34164 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34165 CFLAGS="$CFLAGS -fPIC"
34166 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34167 CXXFLAGS="$CXXFLAGS -fPIC"
34168 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
34171 CFLAGS="$CFLAGS -fPIC"
34172 CXXFLAGS="$CXXFLAGS -fPIC"
34173 LDFLAGS="$LDFLAGS -fPIC -shared"
34175 esac
34176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34177 $as_echo_n "checking for -fPIC -shared... " >&6; }
34178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34179 /* end confdefs.h. */
34180 extern int X;
34182 main ()
34184 return X == 0;
34186 return 0;
34188 _ACEOF
34189 if ac_fn_cxx_try_link "$LINENO"; then :
34190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34191 $as_echo "yes" >&6; }; have_pic_shared=yes
34192 else
34193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34194 $as_echo "no" >&6; }; have_pic_shared=no
34196 rm -f core conftest.err conftest.$ac_objext \
34197 conftest$ac_exeext conftest.$ac_ext
34198 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
34199 pluginlibs=
34200 enable_plugin=no
34202 LDFLAGS="$saved_LDFLAGS"
34203 CFLAGS="$saved_CFLAGS"
34204 CXXFLAGS="$saved_CXXFLAGS"
34206 # If plugin support had been requested but not available, fail.
34207 if test x"$enable_plugin" = x"no" ; then
34208 if test x"$default_plugin" != x"yes"; then
34209 as_fn_error $? "
34210 Building GCC with plugin support requires a host that supports
34211 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34218 if test x"$enable_plugin" = x"yes"; then
34220 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34225 # Enable --enable-host-shared
34226 # Check whether --enable-host-shared was given.
34227 if test "${enable_host_shared+set}" = set; then :
34228 enableval=$enable_host_shared;
34233 # Enable --enable-host-pie
34234 # Check whether --enable-host-pie was given.
34235 if test "${enable_host_pie+set}" = set; then :
34236 enableval=$enable_host_pie;
34241 # Enable --enable-host-bind-now
34242 # Check whether --enable-host-bind-now was given.
34243 if test "${enable_host_bind_now+set}" = set; then :
34244 enableval=$enable_host_bind_now;
34249 # Check whether --enable-libquadmath-support was given.
34250 if test "${enable_libquadmath_support+set}" = set; then :
34251 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
34252 else
34253 ENABLE_LIBQUADMATH_SUPPORT=yes
34256 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34258 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34263 # Specify what hash style to use by default.
34265 # Check whether --with-linker-hash-style was given.
34266 if test "${with_linker_hash_style+set}" = set; then :
34267 withval=$with_linker_hash_style; case x"$withval" in
34268 xsysv)
34269 LINKER_HASH_STYLE=sysv
34271 xgnu)
34272 LINKER_HASH_STYLE=gnu
34274 xboth)
34275 LINKER_HASH_STYLE=both
34278 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34280 esac
34281 else
34282 LINKER_HASH_STYLE=''
34285 if test x"${LINKER_HASH_STYLE}" != x; then
34287 cat >>confdefs.h <<_ACEOF
34288 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34289 _ACEOF
34293 # Specify what should be the default of -fdiagnostics-color option.
34295 # Check whether --with-diagnostics-color was given.
34296 if test "${with_diagnostics_color+set}" = set; then :
34297 withval=$with_diagnostics_color; case x"$withval" in
34298 xnever)
34299 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
34301 xauto)
34302 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34304 xauto-if-env)
34305 DIAGNOSTICS_COLOR_DEFAULT=-1
34307 xalways)
34308 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
34311 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34313 esac
34314 else
34315 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34319 cat >>confdefs.h <<_ACEOF
34320 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34321 _ACEOF
34324 # Specify what should be the default of -fdiagnostics-urls option.
34326 # Check whether --with-diagnostics-urls was given.
34327 if test "${with_diagnostics_urls+set}" = set; then :
34328 withval=$with_diagnostics_urls; case x"$withval" in
34329 xnever)
34330 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
34332 xauto)
34333 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34335 xauto-if-env)
34336 DIAGNOSTICS_URLS_DEFAULT=-1
34338 xalways)
34339 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
34342 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34344 esac
34345 else
34346 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34350 cat >>confdefs.h <<_ACEOF
34351 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34352 _ACEOF
34355 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34356 # of jit/jit-playback.cc.
34357 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34358 echo "gcc_driver_version: ${gcc_driver_version}"
34359 cat > gcc-driver-name.h <<EOF
34360 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34363 # Check whether --enable-default-pie was given.
34364 # Check whether --enable-default-pie was given.
34365 if test "${enable_default_pie+set}" = set; then :
34366 enableval=$enable_default_pie; enable_default_pie=$enableval
34367 else
34368 enable_default_pie=no
34371 if test x$enable_default_pie = xyes ; then
34373 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34378 # Check if -fno-PIE works.
34379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34380 $as_echo_n "checking for -fno-PIE option... " >&6; }
34381 if ${gcc_cv_c_no_fpie+:} false; then :
34382 $as_echo_n "(cached) " >&6
34383 else
34384 saved_CXXFLAGS="$CXXFLAGS"
34385 CXXFLAGS="$CXXFLAGS -fno-PIE"
34386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34387 /* end confdefs.h. */
34388 int main(void) {return 0;}
34389 _ACEOF
34390 if ac_fn_cxx_try_compile "$LINENO"; then :
34391 gcc_cv_c_no_fpie=yes
34392 else
34393 gcc_cv_c_no_fpie=no
34395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34396 CXXFLAGS="$saved_CXXFLAGS"
34398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34399 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34401 # Check if -no-pie works.
34402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34403 $as_echo_n "checking for -no-pie option... " >&6; }
34404 if ${gcc_cv_no_pie+:} false; then :
34405 $as_echo_n "(cached) " >&6
34406 else
34407 saved_LDFLAGS="$LDFLAGS"
34408 LDFLAGS="$LDFLAGS -no-pie"
34409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34410 /* end confdefs.h. */
34411 int main(void) {return 0;}
34412 _ACEOF
34413 if ac_fn_cxx_try_link "$LINENO"; then :
34414 gcc_cv_no_pie=yes
34415 else
34416 gcc_cv_no_pie=no
34418 rm -f core conftest.err conftest.$ac_objext \
34419 conftest$ac_exeext conftest.$ac_ext
34420 LDFLAGS="$saved_LDFLAGS"
34422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34423 $as_echo "$gcc_cv_no_pie" >&6; }
34425 if test x$enable_host_shared = xyes; then
34426 PICFLAG=-fPIC
34427 elif test x$enable_host_pie = xyes; then
34428 PICFLAG=-fPIE
34429 elif test x$gcc_cv_c_no_fpie = xyes; then
34430 PICFLAG=-fno-PIE
34431 else
34432 PICFLAG=
34437 if test x$enable_host_pie = xyes; then
34438 LD_PICFLAG=-pie
34439 elif test x$gcc_cv_no_pie = xyes; then
34440 LD_PICFLAG=-no-pie
34441 else
34442 LD_PICFLAG=
34445 if test x$enable_host_bind_now = xyes; then
34446 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
34451 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34452 # Check whether --enable-cet was given.
34453 if test "${enable_cet+set}" = set; then :
34454 enableval=$enable_cet;
34455 case "$enableval" in
34456 yes|no|auto) ;;
34457 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34458 esac
34460 else
34461 enable_cet=auto
34465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34466 $as_echo_n "checking for CET support... " >&6; }
34468 case "$host" in
34469 i[34567]86-*-linux* | x86_64-*-linux*)
34470 may_have_cet=yes
34471 cet_save_CFLAGS="$CFLAGS"
34472 CFLAGS="$CFLAGS -fcf-protection"
34473 case "$enable_cet" in
34474 auto)
34475 # Check if target supports multi-byte NOPs
34476 # and if compiler and assembler support CET.
34477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34478 /* end confdefs.h. */
34481 main ()
34484 #if !defined(__SSE2__)
34485 #error target does not support multi-byte NOPs
34486 #else
34487 asm ("setssbsy");
34488 #endif
34491 return 0;
34493 _ACEOF
34494 if ac_fn_cxx_try_compile "$LINENO"; then :
34495 enable_cet=yes
34496 else
34497 enable_cet=no
34499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34501 yes)
34502 # Check if compiler and assembler support CET.
34503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34504 /* end confdefs.h. */
34507 main ()
34509 asm ("setssbsy");
34511 return 0;
34513 _ACEOF
34514 if ac_fn_cxx_try_compile "$LINENO"; then :
34515 support_cet=yes
34516 else
34517 support_cet=no
34519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34520 if test $support_cet = "no"; then
34521 if test x$enable_bootstrap != xno \
34522 && test -z "${with_build_subdir}" \
34523 && (test ! -f ../stage_current \
34524 || test `cat ../stage_current` != "stage1"); then
34525 # Require CET support only for the final GCC build.
34526 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34527 else
34528 # Don't enable CET without CET support for non-bootstrap
34529 # build, in stage1 nor for build support.
34530 enable_cet=no
34534 esac
34535 CFLAGS="$cet_save_CFLAGS"
34538 may_have_cet=no
34539 enable_cet=no
34541 esac
34543 cet_save_CFLAGS="$CFLAGS"
34544 CFLAGS="$CFLAGS -fcf-protection=none"
34545 cet_save_LDFLAGS="$LDFLAGS"
34546 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34547 if test x$may_have_cet = xyes; then
34548 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34550 /* end confdefs.h. */
34553 main ()
34555 return 0;
34557 return 0;
34559 _ACEOF
34560 if ac_fn_cxx_try_link "$LINENO"; then :
34561 may_have_cet=yes
34562 else
34563 may_have_cet=no
34565 rm -f core conftest.err conftest.$ac_objext \
34566 conftest$ac_exeext conftest.$ac_ext
34569 if test x$may_have_cet = xyes; then
34570 if test x$cross_compiling = xno; then
34571 if test "$cross_compiling" = yes; then :
34572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34574 as_fn_error $? "cannot run test program while cross compiling
34575 See \`config.log' for more details" "$LINENO" 5; }
34576 else
34577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34578 /* end confdefs.h. */
34581 main ()
34583 asm ("endbr32");
34584 return 0;
34587 _ACEOF
34588 if ac_fn_cxx_try_run "$LINENO"; then :
34589 have_multi_byte_nop=yes
34590 else
34591 have_multi_byte_nop=no
34593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34594 conftest.$ac_objext conftest.beam conftest.$ac_ext
34597 have_cet=no
34598 if test x$have_multi_byte_nop = xyes; then
34599 if test "$cross_compiling" = yes; then :
34600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34602 as_fn_error $? "cannot run test program while cross compiling
34603 See \`config.log' for more details" "$LINENO" 5; }
34604 else
34605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34606 /* end confdefs.h. */
34608 static void
34609 foo (void)
34613 static void
34614 __attribute__ ((noinline, noclone))
34615 xxx (void (*f) (void))
34617 f ();
34620 static void
34621 __attribute__ ((noinline, noclone))
34622 bar (void)
34624 xxx (foo);
34628 main ()
34630 bar ();
34631 return 0;
34634 _ACEOF
34635 if ac_fn_cxx_try_run "$LINENO"; then :
34636 have_cet=no
34637 else
34638 have_cet=yes
34640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34641 conftest.$ac_objext conftest.beam conftest.$ac_ext
34645 if test x$enable_cet = xno -a x$have_cet = xyes; then
34646 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34649 else
34650 # Enable CET in cross compiler if possible so that it will run on both
34651 # CET and non-CET hosts.
34652 have_cet=yes
34654 if test x$enable_cet = xyes; then
34655 CET_HOST_FLAGS="-fcf-protection"
34656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34657 $as_echo "yes" >&6; }
34658 else
34659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34660 $as_echo "no" >&6; }
34662 CFLAGS="$cet_save_CFLAGS"
34663 LDFLAGS="$cet_save_LDFLAGS"
34665 case x$enable_languages in
34666 *jit*)
34669 CET_HOST_FLAGS=
34671 esac
34674 # Check linker supports '-z bndplt'
34675 ld_bndplt_support=no
34676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34677 $as_echo_n "checking linker -z bndplt option... " >&6; }
34678 if test x"$ld_is_gold" = xno; then
34679 if test $in_tree_ld = yes ; then
34680 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
34681 ld_bndplt_support=yes
34683 elif test x$gcc_cv_ld != x; then
34684 # Check if linker supports -z bndplt option
34685 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
34686 ld_bndplt_support=yes
34690 if test x"$ld_bndplt_support" = xyes; then
34692 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34696 $as_echo "$ld_bndplt_support" >&6; }
34698 # Check linker supports '--push-state'/'--pop-state'
34699 ld_pushpopstate_support=no
34700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34701 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34702 if test x"$ld_is_gold" = xno; then
34703 if test $in_tree_ld = yes ; then
34704 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
34705 ld_pushpopstate_support=yes
34707 elif test x$gcc_cv_ld != x; then
34708 # Check if linker supports --push-state/--pop-state options
34709 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
34710 ld_pushpopstate_support=yes
34714 if test x"$ld_pushpopstate_support" = xyes; then
34716 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34720 $as_echo "$ld_pushpopstate_support" >&6; }
34722 # On s390, float_t has historically been statically defined as double for no
34723 # good reason. To comply with the C standard in the light of this definition,
34724 # gcc has evaluated float expressions in double precision when in
34725 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34726 # a smooth transition towards the new model used by most architectures, where
34727 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34728 # float_t from that, this behavior can be configured with
34729 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34730 # the old model. When omitted, native builds and cross compiles that have target
34731 # libc headers will detect whether libc clamps float_t to double and in that
34732 # case maintain the old model. Otherwise, they will default to the new model.
34733 # Check whether --enable-s390-excess-float-precision was given.
34734 if test "${enable_s390_excess_float_precision+set}" = set; then :
34735 enableval=$enable_s390_excess_float_precision;
34736 else
34737 enable_s390_excess_float_precision=auto
34741 case $target in
34742 s390*-linux*)
34743 if test x"$enable_s390_excess_float_precision" = xauto; then
34744 # Can we autodetect the behavior of the target libc?
34745 if test "$target" = "$host" -a "$host" = "$build"; then
34746 enable_s390_excess_float_precision=autodetect
34747 elif test "x$with_headers" != xno; then
34748 # cross build. are target headers available?
34749 # carefully coerce the build-system compiler to use target headers
34750 saved_CXXFLAGS="$CXXFLAGS"
34751 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34752 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34753 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34755 /* end confdefs.h. */
34757 #include <math.h>
34759 _ACEOF
34760 if ac_fn_cxx_try_compile "$LINENO"; then :
34761 enable_s390_excess_float_precision=autodetect
34763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34764 CXXFLAGS="$saved_CXXFLAGS"
34767 if test x"$enable_s390_excess_float_precision" = xautodetect; then
34768 saved_CXXFLAGS="$CXXFLAGS"
34769 if ! test "$target" = "$host" -a "$host" = "$build"; then
34770 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34771 unset CROSS_TEST_CXXFLAGS
34773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34774 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34775 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
34776 $as_echo_n "(cached) " >&6
34777 else
34779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34780 /* end confdefs.h. */
34782 #define __FLT_EVAL_METHOD__ 0
34783 #include <math.h>
34784 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34786 _ACEOF
34787 if ac_fn_cxx_try_compile "$LINENO"; then :
34788 gcc_cv_float_t_clamped_to_double=yes
34789 else
34790 gcc_cv_float_t_clamped_to_double=no
34792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34795 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34796 CXXFLAGS="$saved_CXXFLAGS"
34797 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
34798 else
34799 # no way to detect behavior of target libc, default to new model
34800 enable_s390_excess_float_precision=no
34805 if test x"$enable_s390_excess_float_precision" = xyes; then
34807 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34811 esac
34813 # Check if the linker supports '-z now'
34814 ld_now_support=no
34815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34816 $as_echo_n "checking linker -z now option... " >&6; }
34817 if test x"$ld_is_gold" = xyes; then
34818 ld_now_support=yes
34819 elif test $in_tree_ld = yes ; then
34820 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
34821 ld_now_support=yes
34823 elif test x$gcc_cv_ld != x; then
34824 # Check if linker supports -z now
34825 if $gcc_cv_ld --help 2>&1 | grep -- '-z now' > /dev/null; then
34826 ld_now_support=yes
34830 cat >>confdefs.h <<_ACEOF
34831 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
34832 _ACEOF
34834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
34835 $as_echo "$ld_now_support" >&6; }
34837 # Check if the linker supports '-z relro'
34838 ld_relro_support=no
34839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
34840 $as_echo_n "checking linker -z relro option... " >&6; }
34841 if test x"$ld_is_gold" = xyes; then
34842 ld_relro_support=yes
34843 elif test $in_tree_ld = yes ; then
34844 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
34845 ld_relro_support=yes
34847 elif test x$gcc_cv_ld != x; then
34848 # Check if linker supports -z relro
34849 if $gcc_cv_ld --help 2>&1 | grep -- '-z relro' > /dev/null; then
34850 ld_relro_support=yes
34854 cat >>confdefs.h <<_ACEOF
34855 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
34856 _ACEOF
34858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
34859 $as_echo "$ld_relro_support" >&6; }
34861 case $target_os in
34862 linux* | gnu*)
34863 # -fhardened is only supported on GNU/Linux.
34864 fhardened_support=yes
34867 fhardened_support=no
34869 esac
34872 cat >>confdefs.h <<_ACEOF
34873 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
34874 _ACEOF
34876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
34877 $as_echo "$fhardened_support" >&6; }
34879 # Configure the subdirectories
34880 # AC_CONFIG_SUBDIRS($subdirs)
34882 # Create the Makefile
34883 # and configure language subdirectories
34884 ac_config_files="$ac_config_files $all_outputs"
34887 ac_config_commands="$ac_config_commands default"
34889 cat >confcache <<\_ACEOF
34890 # This file is a shell script that caches the results of configure
34891 # tests run on this system so they can be shared between configure
34892 # scripts and configure runs, see configure's option --config-cache.
34893 # It is not useful on other systems. If it contains results you don't
34894 # want to keep, you may remove or edit it.
34896 # config.status only pays attention to the cache file if you give it
34897 # the --recheck option to rerun configure.
34899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34901 # following values.
34903 _ACEOF
34905 # The following way of writing the cache mishandles newlines in values,
34906 # but we know of no workaround that is simple, portable, and efficient.
34907 # So, we kill variables containing newlines.
34908 # Ultrix sh set writes to stderr and can't be redirected directly,
34909 # and sets the high bit in the cache file unless we assign to the vars.
34911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34912 eval ac_val=\$$ac_var
34913 case $ac_val in #(
34914 *${as_nl}*)
34915 case $ac_var in #(
34916 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34918 esac
34919 case $ac_var in #(
34920 _ | IFS | as_nl) ;; #(
34921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34922 *) { eval $ac_var=; unset $ac_var;} ;;
34923 esac ;;
34924 esac
34925 done
34927 (set) 2>&1 |
34928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34929 *${as_nl}ac_space=\ *)
34930 # `set' does not quote correctly, so add quotes: double-quote
34931 # substitution turns \\\\ into \\, and sed turns \\ into \.
34932 sed -n \
34933 "s/'/'\\\\''/g;
34934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34935 ;; #(
34937 # `set' quotes correctly as required by POSIX, so do not add quotes.
34938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34940 esac |
34941 sort
34943 sed '
34944 /^ac_cv_env_/b end
34945 t clear
34946 :clear
34947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34948 t end
34949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34950 :end' >>confcache
34951 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34952 if test -w "$cache_file"; then
34953 if test "x$cache_file" != "x/dev/null"; then
34954 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34955 $as_echo "$as_me: updating cache $cache_file" >&6;}
34956 if test ! -f "$cache_file" || test -h "$cache_file"; then
34957 cat confcache >"$cache_file"
34958 else
34959 case $cache_file in #(
34960 */* | ?:*)
34961 mv -f confcache "$cache_file"$$ &&
34962 mv -f "$cache_file"$$ "$cache_file" ;; #(
34964 mv -f confcache "$cache_file" ;;
34965 esac
34968 else
34969 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34970 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34973 rm -f confcache
34975 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34976 # Let make expand exec_prefix.
34977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34979 DEFS=-DHAVE_CONFIG_H
34981 ac_libobjs=
34982 ac_ltlibobjs=
34984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34985 # 1. Remove the extension, and $U if already installed.
34986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34987 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34989 # will be set to the directory where LIBOBJS objects are built.
34990 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34991 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34992 done
34993 LIBOBJS=$ac_libobjs
34995 LTLIBOBJS=$ac_ltlibobjs
34999 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
35000 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
35001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35004 : "${CONFIG_STATUS=./config.status}"
35005 ac_write_fail=0
35006 ac_clean_files_save=$ac_clean_files
35007 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35009 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35010 as_write_fail=0
35011 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35012 #! $SHELL
35013 # Generated by $as_me.
35014 # Run this file to recreate the current configuration.
35015 # Compiler output produced by configure, useful for debugging
35016 # configure, is in config.log if it exists.
35018 debug=false
35019 ac_cs_recheck=false
35020 ac_cs_silent=false
35022 SHELL=\${CONFIG_SHELL-$SHELL}
35023 export SHELL
35024 _ASEOF
35025 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35026 ## -------------------- ##
35027 ## M4sh Initialization. ##
35028 ## -------------------- ##
35030 # Be more Bourne compatible
35031 DUALCASE=1; export DUALCASE # for MKS sh
35032 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35033 emulate sh
35034 NULLCMD=:
35035 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35036 # is contrary to our usage. Disable this feature.
35037 alias -g '${1+"$@"}'='"$@"'
35038 setopt NO_GLOB_SUBST
35039 else
35040 case `(set -o) 2>/dev/null` in #(
35041 *posix*) :
35042 set -o posix ;; #(
35043 *) :
35045 esac
35049 as_nl='
35051 export as_nl
35052 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35053 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35055 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35056 # Prefer a ksh shell builtin over an external printf program on Solaris,
35057 # but without wasting forks for bash or zsh.
35058 if test -z "$BASH_VERSION$ZSH_VERSION" \
35059 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35060 as_echo='print -r --'
35061 as_echo_n='print -rn --'
35062 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35063 as_echo='printf %s\n'
35064 as_echo_n='printf %s'
35065 else
35066 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35067 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35068 as_echo_n='/usr/ucb/echo -n'
35069 else
35070 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35071 as_echo_n_body='eval
35072 arg=$1;
35073 case $arg in #(
35074 *"$as_nl"*)
35075 expr "X$arg" : "X\\(.*\\)$as_nl";
35076 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35077 esac;
35078 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35080 export as_echo_n_body
35081 as_echo_n='sh -c $as_echo_n_body as_echo'
35083 export as_echo_body
35084 as_echo='sh -c $as_echo_body as_echo'
35087 # The user is always right.
35088 if test "${PATH_SEPARATOR+set}" != set; then
35089 PATH_SEPARATOR=:
35090 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35091 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35092 PATH_SEPARATOR=';'
35097 # IFS
35098 # We need space, tab and new line, in precisely that order. Quoting is
35099 # there to prevent editors from complaining about space-tab.
35100 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35101 # splitting by setting IFS to empty value.)
35102 IFS=" "" $as_nl"
35104 # Find who we are. Look in the path if we contain no directory separator.
35105 as_myself=
35106 case $0 in #((
35107 *[\\/]* ) as_myself=$0 ;;
35108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35109 for as_dir in $PATH
35111 IFS=$as_save_IFS
35112 test -z "$as_dir" && as_dir=.
35113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35114 done
35115 IFS=$as_save_IFS
35118 esac
35119 # We did not find ourselves, most probably we were run as `sh COMMAND'
35120 # in which case we are not to be found in the path.
35121 if test "x$as_myself" = x; then
35122 as_myself=$0
35124 if test ! -f "$as_myself"; then
35125 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35126 exit 1
35129 # Unset variables that we do not need and which cause bugs (e.g. in
35130 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35131 # suppresses any "Segmentation fault" message there. '((' could
35132 # trigger a bug in pdksh 5.2.14.
35133 for as_var in BASH_ENV ENV MAIL MAILPATH
35134 do eval test x\${$as_var+set} = xset \
35135 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35136 done
35137 PS1='$ '
35138 PS2='> '
35139 PS4='+ '
35141 # NLS nuisances.
35142 LC_ALL=C
35143 export LC_ALL
35144 LANGUAGE=C
35145 export LANGUAGE
35147 # CDPATH.
35148 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35151 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35152 # ----------------------------------------
35153 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35154 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35155 # script with STATUS, using 1 if that was 0.
35156 as_fn_error ()
35158 as_status=$1; test $as_status -eq 0 && as_status=1
35159 if test "$4"; then
35160 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35161 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35163 $as_echo "$as_me: error: $2" >&2
35164 as_fn_exit $as_status
35165 } # as_fn_error
35168 # as_fn_set_status STATUS
35169 # -----------------------
35170 # Set $? to STATUS, without forking.
35171 as_fn_set_status ()
35173 return $1
35174 } # as_fn_set_status
35176 # as_fn_exit STATUS
35177 # -----------------
35178 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35179 as_fn_exit ()
35181 set +e
35182 as_fn_set_status $1
35183 exit $1
35184 } # as_fn_exit
35186 # as_fn_unset VAR
35187 # ---------------
35188 # Portably unset VAR.
35189 as_fn_unset ()
35191 { eval $1=; unset $1;}
35193 as_unset=as_fn_unset
35194 # as_fn_append VAR VALUE
35195 # ----------------------
35196 # Append the text in VALUE to the end of the definition contained in VAR. Take
35197 # advantage of any shell optimizations that allow amortized linear growth over
35198 # repeated appends, instead of the typical quadratic growth present in naive
35199 # implementations.
35200 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35201 eval 'as_fn_append ()
35203 eval $1+=\$2
35205 else
35206 as_fn_append ()
35208 eval $1=\$$1\$2
35210 fi # as_fn_append
35212 # as_fn_arith ARG...
35213 # ------------------
35214 # Perform arithmetic evaluation on the ARGs, and store the result in the
35215 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35216 # must be portable across $(()) and expr.
35217 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35218 eval 'as_fn_arith ()
35220 as_val=$(( $* ))
35222 else
35223 as_fn_arith ()
35225 as_val=`expr "$@" || test $? -eq 1`
35227 fi # as_fn_arith
35230 if expr a : '\(a\)' >/dev/null 2>&1 &&
35231 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35232 as_expr=expr
35233 else
35234 as_expr=false
35237 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35238 as_basename=basename
35239 else
35240 as_basename=false
35243 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35244 as_dirname=dirname
35245 else
35246 as_dirname=false
35249 as_me=`$as_basename -- "$0" ||
35250 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35251 X"$0" : 'X\(//\)$' \| \
35252 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35253 $as_echo X/"$0" |
35254 sed '/^.*\/\([^/][^/]*\)\/*$/{
35255 s//\1/
35258 /^X\/\(\/\/\)$/{
35259 s//\1/
35262 /^X\/\(\/\).*/{
35263 s//\1/
35266 s/.*/./; q'`
35268 # Avoid depending upon Character Ranges.
35269 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35270 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35271 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35272 as_cr_digits='0123456789'
35273 as_cr_alnum=$as_cr_Letters$as_cr_digits
35275 ECHO_C= ECHO_N= ECHO_T=
35276 case `echo -n x` in #(((((
35277 -n*)
35278 case `echo 'xy\c'` in
35279 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35280 xy) ECHO_C='\c';;
35281 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35282 ECHO_T=' ';;
35283 esac;;
35285 ECHO_N='-n';;
35286 esac
35288 rm -f conf$$ conf$$.exe conf$$.file
35289 if test -d conf$$.dir; then
35290 rm -f conf$$.dir/conf$$.file
35291 else
35292 rm -f conf$$.dir
35293 mkdir conf$$.dir 2>/dev/null
35295 if (echo >conf$$.file) 2>/dev/null; then
35296 if ln -s conf$$.file conf$$ 2>/dev/null; then
35297 as_ln_s='ln -s'
35298 # ... but there are two gotchas:
35299 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35300 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35301 # In both cases, we have to default to `cp -pR'.
35302 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35303 as_ln_s='cp -pR'
35304 elif ln conf$$.file conf$$ 2>/dev/null; then
35305 as_ln_s=ln
35306 else
35307 as_ln_s='cp -pR'
35309 else
35310 as_ln_s='cp -pR'
35312 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35313 rmdir conf$$.dir 2>/dev/null
35316 # as_fn_mkdir_p
35317 # -------------
35318 # Create "$as_dir" as a directory, including parents if necessary.
35319 as_fn_mkdir_p ()
35322 case $as_dir in #(
35323 -*) as_dir=./$as_dir;;
35324 esac
35325 test -d "$as_dir" || eval $as_mkdir_p || {
35326 as_dirs=
35327 while :; do
35328 case $as_dir in #(
35329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35330 *) as_qdir=$as_dir;;
35331 esac
35332 as_dirs="'$as_qdir' $as_dirs"
35333 as_dir=`$as_dirname -- "$as_dir" ||
35334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35335 X"$as_dir" : 'X\(//\)[^/]' \| \
35336 X"$as_dir" : 'X\(//\)$' \| \
35337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35338 $as_echo X"$as_dir" |
35339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35340 s//\1/
35343 /^X\(\/\/\)[^/].*/{
35344 s//\1/
35347 /^X\(\/\/\)$/{
35348 s//\1/
35351 /^X\(\/\).*/{
35352 s//\1/
35355 s/.*/./; q'`
35356 test -d "$as_dir" && break
35357 done
35358 test -z "$as_dirs" || eval "mkdir $as_dirs"
35359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35362 } # as_fn_mkdir_p
35363 if mkdir -p . 2>/dev/null; then
35364 as_mkdir_p='mkdir -p "$as_dir"'
35365 else
35366 test -d ./-p && rmdir ./-p
35367 as_mkdir_p=false
35371 # as_fn_executable_p FILE
35372 # -----------------------
35373 # Test if FILE is an executable regular file.
35374 as_fn_executable_p ()
35376 test -f "$1" && test -x "$1"
35377 } # as_fn_executable_p
35378 as_test_x='test -x'
35379 as_executable_p=as_fn_executable_p
35381 # Sed expression to map a string onto a valid CPP name.
35382 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35384 # Sed expression to map a string onto a valid variable name.
35385 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35388 exec 6>&1
35389 ## ----------------------------------- ##
35390 ## Main body of $CONFIG_STATUS script. ##
35391 ## ----------------------------------- ##
35392 _ASEOF
35393 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35396 # Save the log message, to keep $0 and so on meaningful, and to
35397 # report actual input values of CONFIG_FILES etc. instead of their
35398 # values after options handling.
35399 ac_log="
35400 This file was extended by $as_me, which was
35401 generated by GNU Autoconf 2.69. Invocation command line was
35403 CONFIG_FILES = $CONFIG_FILES
35404 CONFIG_HEADERS = $CONFIG_HEADERS
35405 CONFIG_LINKS = $CONFIG_LINKS
35406 CONFIG_COMMANDS = $CONFIG_COMMANDS
35407 $ $0 $@
35409 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35412 _ACEOF
35414 case $ac_config_files in *"
35415 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35416 esac
35418 case $ac_config_headers in *"
35419 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35420 esac
35423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35424 # Files that config.status was made for.
35425 config_files="$ac_config_files"
35426 config_headers="$ac_config_headers"
35427 config_links="$ac_config_links"
35428 config_commands="$ac_config_commands"
35430 _ACEOF
35432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35433 ac_cs_usage="\
35434 \`$as_me' instantiates files and other configuration actions
35435 from templates according to the current configuration. Unless the files
35436 and actions are specified as TAGs, all are instantiated by default.
35438 Usage: $0 [OPTION]... [TAG]...
35440 -h, --help print this help, then exit
35441 -V, --version print version number and configuration settings, then exit
35442 --config print configuration, then exit
35443 -q, --quiet, --silent
35444 do not print progress messages
35445 -d, --debug don't remove temporary files
35446 --recheck update $as_me by reconfiguring in the same conditions
35447 --file=FILE[:TEMPLATE]
35448 instantiate the configuration file FILE
35449 --header=FILE[:TEMPLATE]
35450 instantiate the configuration header FILE
35452 Configuration files:
35453 $config_files
35455 Configuration headers:
35456 $config_headers
35458 Configuration links:
35459 $config_links
35461 Configuration commands:
35462 $config_commands
35464 Report bugs to the package provider."
35466 _ACEOF
35467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35468 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35469 ac_cs_version="\\
35470 config.status
35471 configured by $0, generated by GNU Autoconf 2.69,
35472 with options \\"\$ac_cs_config\\"
35474 Copyright (C) 2012 Free Software Foundation, Inc.
35475 This config.status script is free software; the Free Software Foundation
35476 gives unlimited permission to copy, distribute and modify it."
35478 ac_pwd='$ac_pwd'
35479 srcdir='$srcdir'
35480 INSTALL='$INSTALL'
35481 AWK='$AWK'
35482 test -n "\$AWK" || AWK=awk
35483 _ACEOF
35485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35486 # The default lists apply if the user does not specify any file.
35487 ac_need_defaults=:
35488 while test $# != 0
35490 case $1 in
35491 --*=?*)
35492 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35493 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35494 ac_shift=:
35496 --*=)
35497 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35498 ac_optarg=
35499 ac_shift=:
35502 ac_option=$1
35503 ac_optarg=$2
35504 ac_shift=shift
35506 esac
35508 case $ac_option in
35509 # Handling of the options.
35510 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35511 ac_cs_recheck=: ;;
35512 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35513 $as_echo "$ac_cs_version"; exit ;;
35514 --config | --confi | --conf | --con | --co | --c )
35515 $as_echo "$ac_cs_config"; exit ;;
35516 --debug | --debu | --deb | --de | --d | -d )
35517 debug=: ;;
35518 --file | --fil | --fi | --f )
35519 $ac_shift
35520 case $ac_optarg in
35521 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35522 '') as_fn_error $? "missing file argument" ;;
35523 esac
35524 as_fn_append CONFIG_FILES " '$ac_optarg'"
35525 ac_need_defaults=false;;
35526 --header | --heade | --head | --hea )
35527 $ac_shift
35528 case $ac_optarg in
35529 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35530 esac
35531 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35532 ac_need_defaults=false;;
35533 --he | --h)
35534 # Conflict between --help and --header
35535 as_fn_error $? "ambiguous option: \`$1'
35536 Try \`$0 --help' for more information.";;
35537 --help | --hel | -h )
35538 $as_echo "$ac_cs_usage"; exit ;;
35539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35541 ac_cs_silent=: ;;
35543 # This is an error.
35544 -*) as_fn_error $? "unrecognized option: \`$1'
35545 Try \`$0 --help' for more information." ;;
35547 *) as_fn_append ac_config_targets " $1"
35548 ac_need_defaults=false ;;
35550 esac
35551 shift
35552 done
35554 ac_configure_extra_args=
35556 if $ac_cs_silent; then
35557 exec 6>/dev/null
35558 ac_configure_extra_args="$ac_configure_extra_args --silent"
35561 _ACEOF
35562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35563 if \$ac_cs_recheck; then
35564 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35565 shift
35566 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35567 CONFIG_SHELL='$SHELL'
35568 export CONFIG_SHELL
35569 exec "\$@"
35572 _ACEOF
35573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35574 exec 5>>config.log
35576 echo
35577 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35578 ## Running $as_me. ##
35579 _ASBOX
35580 $as_echo "$ac_log"
35581 } >&5
35583 _ACEOF
35584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35586 # INIT-COMMANDS
35588 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35589 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35590 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35591 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35592 # from automake.
35593 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35594 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35595 LINGUAS="${LINGUAS-%UNSET%}"
35597 subdirs='$subdirs'
35599 _ACEOF
35601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35603 # Handling of arguments.
35604 for ac_config_target in $ac_config_targets
35606 case $ac_config_target in
35607 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
35608 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
35609 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
35610 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35611 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
35612 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35613 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
35614 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35615 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35616 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
35617 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35619 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35620 esac
35621 done
35624 # If the user did not use the arguments to specify the items to instantiate,
35625 # then the envvar interface is used. Set only those that are not.
35626 # We use the long form for the default assignment because of an extremely
35627 # bizarre bug on SunOS 4.1.3.
35628 if $ac_need_defaults; then
35629 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35630 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35631 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
35632 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35635 # Have a temporary directory for convenience. Make it in the build tree
35636 # simply because there is no reason against having it here, and in addition,
35637 # creating and moving files from /tmp can sometimes cause problems.
35638 # Hook for its removal unless debugging.
35639 # Note that there is a small window in which the directory will not be cleaned:
35640 # after its creation but before its name has been assigned to `$tmp'.
35641 $debug ||
35643 tmp= ac_tmp=
35644 trap 'exit_status=$?
35645 : "${ac_tmp:=$tmp}"
35646 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35648 trap 'as_fn_exit 1' 1 2 13 15
35650 # Create a (secure) tmp directory for tmp files.
35653 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35654 test -d "$tmp"
35655 } ||
35657 tmp=./conf$$-$RANDOM
35658 (umask 077 && mkdir "$tmp")
35659 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35660 ac_tmp=$tmp
35662 # Set up the scripts for CONFIG_FILES section.
35663 # No need to generate them if there are no CONFIG_FILES.
35664 # This happens for instance with `./config.status config.h'.
35665 if test -n "$CONFIG_FILES"; then
35667 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35668 ac_cs_awk_getline=:
35669 ac_cs_awk_pipe_init=
35670 ac_cs_awk_read_file='
35671 while ((getline aline < (F[key])) > 0)
35672 print(aline)
35673 close(F[key])'
35674 ac_cs_awk_pipe_fini=
35675 else
35676 ac_cs_awk_getline=false
35677 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35678 ac_cs_awk_read_file='
35679 print "|#_!!_#|"
35680 print "cat " F[key] " &&"
35681 '$ac_cs_awk_pipe_init
35682 # The final `:' finishes the AND list.
35683 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35685 ac_cr=`echo X | tr X '\015'`
35686 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35687 # But we know of no other shell where ac_cr would be empty at this
35688 # point, so we can use a bashism as a fallback.
35689 if test "x$ac_cr" = x; then
35690 eval ac_cr=\$\'\\r\'
35692 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35693 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35694 ac_cs_awk_cr='\\r'
35695 else
35696 ac_cs_awk_cr=$ac_cr
35699 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35700 _ACEOF
35702 # Create commands to substitute file output variables.
35704 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35705 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35706 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35707 echo "_ACAWK" &&
35708 echo "_ACEOF"
35709 } >conf$$files.sh &&
35710 . ./conf$$files.sh ||
35711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35712 rm -f conf$$files.sh
35715 echo "cat >conf$$subs.awk <<_ACEOF" &&
35716 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35717 echo "_ACEOF"
35718 } >conf$$subs.sh ||
35719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35720 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35721 ac_delim='%!_!# '
35722 for ac_last_try in false false false false false :; do
35723 . ./conf$$subs.sh ||
35724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35726 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35727 if test $ac_delim_n = $ac_delim_num; then
35728 break
35729 elif $ac_last_try; then
35730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35731 else
35732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35734 done
35735 rm -f conf$$subs.sh
35737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35738 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35739 _ACEOF
35740 sed -n '
35742 s/^/S["/; s/!.*/"]=/
35745 s/^[^!]*!//
35746 :repl
35747 t repl
35748 s/'"$ac_delim"'$//
35749 t delim
35752 s/\(.\{148\}\)..*/\1/
35753 t more1
35754 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35757 b repl
35758 :more1
35759 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35762 s/.\{148\}//
35763 t nl
35764 :delim
35766 s/\(.\{148\}\)..*/\1/
35767 t more2
35768 s/["\\]/\\&/g; s/^/"/; s/$/"/
35771 :more2
35772 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35775 s/.\{148\}//
35776 t delim
35777 ' <conf$$subs.awk | sed '
35778 /^[^""]/{
35780 s/\n//
35782 ' >>$CONFIG_STATUS || ac_write_fail=1
35783 rm -f conf$$subs.awk
35784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35785 _ACAWK
35786 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35787 for (key in S) S_is_set[key] = 1
35788 FS = "\a"
35789 \$ac_cs_awk_pipe_init
35792 line = $ 0
35793 nfields = split(line, field, "@")
35794 substed = 0
35795 len = length(field[1])
35796 for (i = 2; i < nfields; i++) {
35797 key = field[i]
35798 keylen = length(key)
35799 if (S_is_set[key]) {
35800 value = S[key]
35801 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35802 len += length(value) + length(field[++i])
35803 substed = 1
35804 } else
35805 len += 1 + keylen
35807 if (nfields == 3 && !substed) {
35808 key = field[2]
35809 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35810 \$ac_cs_awk_read_file
35811 next
35814 print line
35816 \$ac_cs_awk_pipe_fini
35817 _ACAWK
35818 _ACEOF
35819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35820 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35821 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35822 else
35824 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35825 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35826 _ACEOF
35828 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35829 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35830 # trailing colons and then remove the whole line if VPATH becomes empty
35831 # (actually we leave an empty line to preserve line numbers).
35832 if test "x$srcdir" = x.; then
35833 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35835 s///
35836 s/^/:/
35837 s/[ ]*$/:/
35838 s/:\$(srcdir):/:/g
35839 s/:\${srcdir}:/:/g
35840 s/:@srcdir@:/:/g
35841 s/^:*//
35842 s/:*$//
35844 s/\(=[ ]*\).*/\1/
35846 s/\n//
35847 s/^[^=]*=[ ]*$//
35851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35852 fi # test -n "$CONFIG_FILES"
35854 # Set up the scripts for CONFIG_HEADERS section.
35855 # No need to generate them if there are no CONFIG_HEADERS.
35856 # This happens for instance with `./config.status Makefile'.
35857 if test -n "$CONFIG_HEADERS"; then
35858 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35859 BEGIN {
35860 _ACEOF
35862 # Transform confdefs.h into an awk script `defines.awk', embedded as
35863 # here-document in config.status, that substitutes the proper values into
35864 # config.h.in to produce config.h.
35866 # Create a delimiter string that does not exist in confdefs.h, to ease
35867 # handling of long lines.
35868 ac_delim='%!_!# '
35869 for ac_last_try in false false :; do
35870 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35871 if test -z "$ac_tt"; then
35872 break
35873 elif $ac_last_try; then
35874 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35875 else
35876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35878 done
35880 # For the awk script, D is an array of macro values keyed by name,
35881 # likewise P contains macro parameters if any. Preserve backslash
35882 # newline sequences.
35884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35885 sed -n '
35886 s/.\{148\}/&'"$ac_delim"'/g
35887 t rset
35888 :rset
35889 s/^[ ]*#[ ]*define[ ][ ]*/ /
35890 t def
35892 :def
35893 s/\\$//
35894 t bsnl
35895 s/["\\]/\\&/g
35896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35897 D["\1"]=" \3"/p
35898 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35900 :bsnl
35901 s/["\\]/\\&/g
35902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35903 D["\1"]=" \3\\\\\\n"\\/p
35904 t cont
35905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35906 t cont
35908 :cont
35910 s/.\{148\}/&'"$ac_delim"'/g
35911 t clear
35912 :clear
35913 s/\\$//
35914 t bsnlc
35915 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35917 :bsnlc
35918 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35919 b cont
35920 ' <confdefs.h | sed '
35921 s/'"$ac_delim"'/"\\\
35922 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35925 for (key in D) D_is_set[key] = 1
35926 FS = "\a"
35928 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35929 line = \$ 0
35930 split(line, arg, " ")
35931 if (arg[1] == "#") {
35932 defundef = arg[2]
35933 mac1 = arg[3]
35934 } else {
35935 defundef = substr(arg[1], 2)
35936 mac1 = arg[2]
35938 split(mac1, mac2, "(") #)
35939 macro = mac2[1]
35940 prefix = substr(line, 1, index(line, defundef) - 1)
35941 if (D_is_set[macro]) {
35942 # Preserve the white space surrounding the "#".
35943 print prefix "define", macro P[macro] D[macro]
35944 next
35945 } else {
35946 # Replace #undef with comments. This is necessary, for example,
35947 # in the case of _POSIX_SOURCE, which is predefined and required
35948 # on some systems where configure will not decide to define it.
35949 if (defundef == "undef") {
35950 print "/*", prefix defundef, macro, "*/"
35951 next
35955 { print }
35956 _ACAWK
35957 _ACEOF
35958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35959 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35960 fi # test -n "$CONFIG_HEADERS"
35963 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35964 shift
35965 for ac_tag
35967 case $ac_tag in
35968 :[FHLC]) ac_mode=$ac_tag; continue;;
35969 esac
35970 case $ac_mode$ac_tag in
35971 :[FHL]*:*);;
35972 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35973 :[FH]-) ac_tag=-:-;;
35974 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35975 esac
35976 ac_save_IFS=$IFS
35977 IFS=:
35978 set x $ac_tag
35979 IFS=$ac_save_IFS
35980 shift
35981 ac_file=$1
35982 shift
35984 case $ac_mode in
35985 :L) ac_source=$1;;
35986 :[FH])
35987 ac_file_inputs=
35988 for ac_f
35990 case $ac_f in
35991 -) ac_f="$ac_tmp/stdin";;
35992 *) # Look for the file first in the build tree, then in the source tree
35993 # (if the path is not absolute). The absolute path cannot be DOS-style,
35994 # because $ac_f cannot contain `:'.
35995 test -f "$ac_f" ||
35996 case $ac_f in
35997 [\\/$]*) false;;
35998 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35999 esac ||
36000 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36001 esac
36002 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36003 as_fn_append ac_file_inputs " '$ac_f'"
36004 done
36006 # Let's still pretend it is `configure' which instantiates (i.e., don't
36007 # use $as_me), people would be surprised to read:
36008 # /* config.h. Generated by config.status. */
36009 configure_input='Generated from '`
36010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36011 `' by configure.'
36012 if test x"$ac_file" != x-; then
36013 configure_input="$ac_file. $configure_input"
36014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36015 $as_echo "$as_me: creating $ac_file" >&6;}
36017 # Neutralize special characters interpreted by sed in replacement strings.
36018 case $configure_input in #(
36019 *\&* | *\|* | *\\* )
36020 ac_sed_conf_input=`$as_echo "$configure_input" |
36021 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36022 *) ac_sed_conf_input=$configure_input;;
36023 esac
36025 case $ac_tag in
36026 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36028 esac
36030 esac
36032 ac_dir=`$as_dirname -- "$ac_file" ||
36033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36034 X"$ac_file" : 'X\(//\)[^/]' \| \
36035 X"$ac_file" : 'X\(//\)$' \| \
36036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36037 $as_echo X"$ac_file" |
36038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36039 s//\1/
36042 /^X\(\/\/\)[^/].*/{
36043 s//\1/
36046 /^X\(\/\/\)$/{
36047 s//\1/
36050 /^X\(\/\).*/{
36051 s//\1/
36054 s/.*/./; q'`
36055 as_dir="$ac_dir"; as_fn_mkdir_p
36056 ac_builddir=.
36058 case "$ac_dir" in
36059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36062 # A ".." for each directory in $ac_dir_suffix.
36063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36064 case $ac_top_builddir_sub in
36065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36067 esac ;;
36068 esac
36069 ac_abs_top_builddir=$ac_pwd
36070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36071 # for backward compatibility:
36072 ac_top_builddir=$ac_top_build_prefix
36074 case $srcdir in
36075 .) # We are building in place.
36076 ac_srcdir=.
36077 ac_top_srcdir=$ac_top_builddir_sub
36078 ac_abs_top_srcdir=$ac_pwd ;;
36079 [\\/]* | ?:[\\/]* ) # Absolute name.
36080 ac_srcdir=$srcdir$ac_dir_suffix;
36081 ac_top_srcdir=$srcdir
36082 ac_abs_top_srcdir=$srcdir ;;
36083 *) # Relative name.
36084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36085 ac_top_srcdir=$ac_top_build_prefix$srcdir
36086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36087 esac
36088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36091 case $ac_mode in
36094 # CONFIG_FILE
36097 case $INSTALL in
36098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36099 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36100 esac
36101 _ACEOF
36103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36104 # If the template does not know about datarootdir, expand it.
36105 # FIXME: This hack should be removed a few years after 2.60.
36106 ac_datarootdir_hack=; ac_datarootdir_seen=
36107 ac_sed_dataroot='
36108 /datarootdir/ {
36112 /@datadir@/p
36113 /@docdir@/p
36114 /@infodir@/p
36115 /@localedir@/p
36116 /@mandir@/p'
36117 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36118 *datarootdir*) ac_datarootdir_seen=yes;;
36119 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36121 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36122 _ACEOF
36123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36124 ac_datarootdir_hack='
36125 s&@datadir@&$datadir&g
36126 s&@docdir@&$docdir&g
36127 s&@infodir@&$infodir&g
36128 s&@localedir@&$localedir&g
36129 s&@mandir@&$mandir&g
36130 s&\\\${datarootdir}&$datarootdir&g' ;;
36131 esac
36132 _ACEOF
36134 # Neutralize VPATH when `$srcdir' = `.'.
36135 # Shell code in configure.ac might set extrasub.
36136 # FIXME: do we really want to maintain this feature?
36137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36138 ac_sed_extra="$ac_vpsub
36139 $extrasub
36140 _ACEOF
36141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36144 s|@configure_input@|$ac_sed_conf_input|;t t
36145 s&@top_builddir@&$ac_top_builddir_sub&;t t
36146 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36147 s&@srcdir@&$ac_srcdir&;t t
36148 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36149 s&@top_srcdir@&$ac_top_srcdir&;t t
36150 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36151 s&@builddir@&$ac_builddir&;t t
36152 s&@abs_builddir@&$ac_abs_builddir&;t t
36153 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36154 s&@INSTALL@&$ac_INSTALL&;t t
36155 $ac_datarootdir_hack
36157 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36158 if $ac_cs_awk_getline; then
36159 $AWK -f "$ac_tmp/subs.awk"
36160 else
36161 $AWK -f "$ac_tmp/subs.awk" | $SHELL
36162 fi \
36163 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36165 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36166 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36167 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36168 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36170 which seems to be undefined. Please make sure it is defined" >&5
36171 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36172 which seems to be undefined. Please make sure it is defined" >&2;}
36174 rm -f "$ac_tmp/stdin"
36175 case $ac_file in
36176 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36177 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36178 esac \
36179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36183 # CONFIG_HEADER
36185 if test x"$ac_file" != x-; then
36187 $as_echo "/* $configure_input */" \
36188 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36189 } >"$ac_tmp/config.h" \
36190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36191 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36192 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36193 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36194 else
36195 rm -f "$ac_file"
36196 mv "$ac_tmp/config.h" "$ac_file" \
36197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36199 else
36200 $as_echo "/* $configure_input */" \
36201 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36202 || as_fn_error $? "could not create -" "$LINENO" 5
36207 # CONFIG_LINK
36210 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
36212 else
36213 # Prefer the file from the source tree if names are identical.
36214 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36215 ac_source=$srcdir/$ac_source
36218 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36219 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36221 if test ! -r "$ac_source"; then
36222 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36224 rm -f "$ac_file"
36226 # Try a relative symlink, then a hard link, then a copy.
36227 case $ac_source in
36228 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36229 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36230 esac
36231 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36232 ln "$ac_source" "$ac_file" 2>/dev/null ||
36233 cp -p "$ac_source" "$ac_file" ||
36234 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36237 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36238 $as_echo "$as_me: executing $ac_file commands" >&6;}
36240 esac
36243 case $ac_file$ac_mode in
36244 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36245 "gccdepdir":C)
36246 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36247 for lang in $subdirs c-family common analyzer text-art rtl-ssa
36249 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36250 done ;;
36251 "default-1":C)
36252 for ac_file in $CONFIG_FILES; do
36253 # Support "outfile[:infile[:infile...]]"
36254 case "$ac_file" in
36255 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36256 esac
36257 # PO directories have a Makefile.in generated from Makefile.in.in.
36258 case "$ac_file" in */Makefile.in)
36259 # Adjust a relative srcdir.
36260 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36261 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36262 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36263 # In autoconf-2.13 it is called $ac_given_srcdir.
36264 # In autoconf-2.50 it is called $srcdir.
36265 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36266 case "$ac_given_srcdir" in
36267 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36268 /*) top_srcdir="$ac_given_srcdir" ;;
36269 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36270 esac
36271 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36272 rm -f "$ac_dir/POTFILES"
36273 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36274 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36275 POMAKEFILEDEPS="POTFILES.in"
36276 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36277 # on $ac_dir but don't depend on user-specified configuration
36278 # parameters.
36279 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36280 # The LINGUAS file contains the set of available languages.
36281 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36282 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36284 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36285 # Hide the ALL_LINGUAS assigment from automake.
36286 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36287 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36288 else
36289 # The set of available languages was given in configure.ac.
36290 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36292 case "$ac_given_srcdir" in
36293 .) srcdirpre= ;;
36294 *) srcdirpre='$(srcdir)/' ;;
36295 esac
36296 POFILES=
36297 GMOFILES=
36298 UPDATEPOFILES=
36299 DUMMYPOFILES=
36300 for lang in $ALL_LINGUAS; do
36301 POFILES="$POFILES $srcdirpre$lang.po"
36302 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36303 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36304 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36305 done
36306 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36307 # environment variable.
36308 INST_LINGUAS=
36309 if test -n "$ALL_LINGUAS"; then
36310 for presentlang in $ALL_LINGUAS; do
36311 useit=no
36312 if test "%UNSET%" != "$LINGUAS"; then
36313 desiredlanguages="$LINGUAS"
36314 else
36315 desiredlanguages="$ALL_LINGUAS"
36317 for desiredlang in $desiredlanguages; do
36318 # Use the presentlang catalog if desiredlang is
36319 # a. equal to presentlang, or
36320 # b. a variant of presentlang (because in this case,
36321 # presentlang can be used as a fallback for messages
36322 # which are not translated in the desiredlang catalog).
36323 case "$desiredlang" in
36324 "$presentlang"*) useit=yes;;
36325 esac
36326 done
36327 if test $useit = yes; then
36328 INST_LINGUAS="$INST_LINGUAS $presentlang"
36330 done
36332 CATALOGS=
36333 if test -n "$INST_LINGUAS"; then
36334 for lang in $INST_LINGUAS; do
36335 CATALOGS="$CATALOGS $lang.gmo"
36336 done
36338 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36339 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"
36340 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36341 if test -f "$f"; then
36342 case "$f" in
36343 *.orig | *.bak | *~) ;;
36344 *) cat "$f" >> "$ac_dir/Makefile" ;;
36345 esac
36347 done
36350 esac
36351 done ;;
36352 "as":F) chmod +x as ;;
36353 "collect-ld":F) chmod +x collect-ld ;;
36354 "nm":F) chmod +x nm ;;
36355 "dsymutil":F) chmod +x dsymutil ;;
36356 "default":C)
36357 case ${CONFIG_HEADERS} in
36358 *auto-host.h:config.in*)
36359 echo > cstamp-h ;;
36360 esac
36361 # Make sure all the subdirs exist.
36362 for d in $subdirs doc build common c-family
36364 test -d $d || mkdir $d
36365 done
36368 esac
36369 done # for ac_tag
36372 as_fn_exit 0
36373 _ACEOF
36374 ac_clean_files=$ac_clean_files_save
36376 test $ac_write_fail = 0 ||
36377 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36380 # configure is writing to config.log, and then calls config.status.
36381 # config.status does its own redirection, appending to config.log.
36382 # Unfortunately, on DOS this fails, as config.log is still kept open
36383 # by configure, so config.status won't be able to write to it; its
36384 # output is simply discarded. So we exec the FD to /dev/null,
36385 # effectively closing config.log, so it can be properly (re)opened and
36386 # appended to by config.status. When coming back to configure, we
36387 # need to make the FD available again.
36388 if test "$no_create" != yes; then
36389 ac_cs_success=:
36390 ac_config_status_args=
36391 test "$silent" = yes &&
36392 ac_config_status_args="$ac_config_status_args --quiet"
36393 exec 5>/dev/null
36394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36395 exec 5>>config.log
36396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36397 # would make configure fail if this is the last instruction.
36398 $ac_cs_success || as_fn_exit 1
36400 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36402 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}